Tian Gao created SPARK-54599:
--------------------------------
Summary: Make PythonException a SparkThrowable and handle it in
Python
Key: SPARK-54599
URL: https://issues.apache.org/jira/browse/SPARK-54599
Project: Spark
Issue Type: Improvement
Components: PySpark
Affects Versions: 4.2.0
Reporter: Tian Gao
For now, if Python workers raise an exception, it will be passed to JVM and
became a RuntimeError - Python driver has to capture it and check the message
to reconstruct the exception.
There are a few issues with it - first of all, we have special code to deal
with such a common issue. Then there's no way to associate a SQLSTATE with the
exception.
By making PythonException a normal SparkThrowable, we can use the shared code
path for it, which supports SQLSTATE natively.
We can also polish the exception message a bit.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]