Martin Grund created SPARK-45852:
------------------------------------

             Summary: Gracefully deal with recursion exception during Spark 
Connect logging
                 Key: SPARK-45852
                 URL: https://issues.apache.org/jira/browse/SPARK-45852
             Project: Spark
          Issue Type: Improvement
          Components: Connect
    Affects Versions: 3.5.0
            Reporter: Martin Grund


```
from google.protobuf.text_format import MessageToString
from pyspark.sql.functions import col, lit

df = spark.range(10)

for x in range(800):
  df = df.withColumn(f"next{x}", lit(1))
  MessageToString(df._plan.to_proto(spark._client), as_one_line=True)

```



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to