cloud-fan commented on code in PR #37520:
URL: https://github.com/apache/spark/pull/37520#discussion_r954599653
##########
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("")
Review Comment:
I noticed that thriftserver already pretty the error class. Can we keep it
when the format is PRETTY?
##########
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("")
Review Comment:
I noticed that thriftserver already print the error class. Can we keep it
when the format is PRETTY?
--
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]