heyihong commented on code in PR #54056:
URL: https://github.com/apache/spark/pull/54056#discussion_r2782468992
##########
sql/connect/server/src/main/scala/org/apache/spark/sql/connect/planner/StreamingQueryListenerHelper.scala:
##########
@@ -91,16 +92,13 @@ class PythonStreamingQueryListener(listener:
SimplePythonFunction, sessionHolder
log"Streaming query listener function ${MDC(FUNCTION_NAME,
functionName)} " +
log"completed (ret: 0)")
case SpecialLengths.PYTHON_EXCEPTION_THROWN =>
- val traceback = PythonWorkerUtils.readUTF(dataIn)
- val msg = s"Found error inside Streaming query listener Python " +
- s"process for function $functionName"
+ val msg = PythonWorkerUtils.readUTF(dataIn)
throw new PythonException(
- errorClass = "PYTHON_EXCEPTION",
- messageParameters = Map("msg" -> msg, "traceback" -> traceback))
+ s"Found error inside Streaming query listener Python " +
+ s"process for function $functionName: $msg",
+ null)
case otherValue =>
- throw new IllegalStateException(
- s"Unexpected return value $otherValue from the " +
- s"Python worker.")
+ throw
IllegalStateErrors.streamingQueryUnexpectedReturnValue(otherValue.toString)
Review Comment:
Is it possible to pass sessionHolder.sessionId, sessionHolder.userId, and
otherValue instead?
--
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]