gaborgsomogyi commented on a change in pull request #24403: [SPARK-23014][SS]
Fully remove V1 memory sink.
URL: https://github.com/apache/spark/pull/24403#discussion_r279362817
##########
File path: python/pyspark/sql/streaming.py
##########
@@ -186,7 +186,7 @@ def exception(self):
je = self._jsq.exception().get()
msg = je.toString().split(': ', 1)[1] # Drop the Java
StreamingQueryException type info
stackTrace = '\n\t at '.join(map(lambda x: x.toString(),
je.getStackTrace()))
- return StreamingQueryException(msg, stackTrace)
+ return StreamingQueryException(msg, stackTrace, je.getCause())
Review comment:
Cause check (not None) is inside `class CapturedException`. Do you suggest
something different here?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]