HyukjinKwon commented on code in PR #50313:
URL: https://github.com/apache/spark/pull/50313#discussion_r2011386426


##########
python/pyspark/errors/exceptions/captured.py:
##########
@@ -185,6 +186,11 @@ def getQueryContext(self) -> List[BaseQueryContext]:
 
 
 def convert_exception(e: "Py4JJavaError") -> CapturedException:
+    converted = _convert_exception(e)
+    return recover_python_exception(converted)

Review Comment:
   If this is specific to UDF, I think we can do this below for 
`org.apache.spark.api.python.PythonException` case. For connect case too.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to