We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d3c321 commit f2c884fCopy full SHA for f2c884f
python/pyspark/util.py
@@ -35,6 +35,10 @@ def _exception_message(excp):
35
True
36
"""
37
if isinstance(excp, Py4JJavaError):
38
+ # 'Py4JJavaError' doesn't contain the stack trace available on the Java side in 'message'
39
+ # attribute in Python 2. We should call 'str' function on this exception in general but
40
+ # 'Py4JJavaError' has an issue about addressing non-ascii strings. So, here we work
41
+ # around by the direct call, '__str__()'. Please see SPARK-23517.
42
return excp.__str__()
43
if hasattr(excp, "message"):
44
return excp.message
0 commit comments