cloud-fan commented on code in PR #37520:
URL: https://github.com/apache/spark/pull/37520#discussion_r960169126
##########
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServerErrors.scala:
##########
@@ -36,11 +36,10 @@ object HiveThriftServerErrors {
" new task for execution, please retry the operation", rejected)
}
- def runningQueryError(e: Throwable): Throwable = e match {
- case st: SparkThrowable =>
- val errorClassPrefix = Option(st.getErrorClass).map(e => s"[$e]
").getOrElse("")
- new HiveSQLException(
- s"Error running query: ${errorClassPrefix}${st.toString}",
st.getSqlState, st)
Review Comment:
found a behavior change here: previously we call `st.toString`, but now
`SparkThrowableHelper.getMessage` will call `st.getMessage` at the end.
Can we restore the previous behavior?
--
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]