Hyukjin Kwon created SPARK-61001:
------------------------------------

             Summary: Raise the errors of toLocalIterator of the Python client 
as PySpark does
                 Key: SPARK-61001
                 URL: https://issues.apache.org/jira/browse/SPARK-61001
             Project: Spark
          Issue Type: Bug
          Components: Connect
    Affects Versions: connect-rust-4.3.0
            Reporter: Hyukjin Kwon


In PySpark Connect, {{DataFrame.toLocalIterator()}} raises the error of an 
execution that fails while it iterates. The Rust-backed Python client ends the 
iteration without an error, so the rows of a failing query look complete: for 
{{spark.sql("SELECT assert_true(id < 0) AS x FROM range(3)")}}, 
{{list(df.toLocalIterator())}} raises {{SparkRuntimeException}} 
{{USER_RAISED_EXCEPTION}} in PySpark 4.3.0, with or without 
{{prefetchPartitions}}, and is {{[]}} with the client. Raise the error as 
PySpark does.




--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to