ueshin commented on code in PR #39882:
URL: https://github.com/apache/spark/pull/39882#discussion_r1099750611


##########
python/pyspark/sql/streaming/query.py:
##########
@@ -387,7 +390,7 @@ def exception(self) -> Optional[StreamingQueryException]:
             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, je.getCause())
+            return CapturedStreamingQueryException(msg, stackTrace, 
je.getCause())

Review Comment:
   The name `StreamingQueryException` is already imported for the return type 
annotation, so we just need to use another name.
   
   
https://github.com/apache/spark/blob/673d2de773a3c05e3e1325e727d31a7aa403186d/python/pyspark/sql/streaming/query.py#L24-L27



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to