ulysses-you commented on code in PR #38302:
URL: https://github.com/apache/spark/pull/38302#discussion_r998908655
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/SQLExecution.scala:
##########
@@ -115,7 +115,8 @@ object SQLExecution {
throw e
} finally {
val endTime = System.nanoTime()
- val event = SparkListenerSQLExecutionEnd(executionId,
System.currentTimeMillis())
+ val event = SparkListenerSQLExecutionEnd(
+ executionId, System.currentTimeMillis(), ex.map(_.getMessage))
Review Comment:
two use cases:
- live event listener
User can get the original exception from `QueryExecutionListener`
- history event
User can not get exception from `SparkListenerSQLExecutionEnd`. In
general, the error info can be catched from stage events
--
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]