MaxGekk commented on code in PR #45438:
URL: https://github.com/apache/spark/pull/45438#discussion_r1517860532
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/QueryExecution.scala:
##########
@@ -540,20 +540,26 @@ object QueryExecution {
}
/**
- * Converts asserts, null pointer exceptions to internal errors.
+ * Converts asserts, null pointer exceptions and scala match errors to
internal errors.
*/
private[sql] def toInternalError(msg: String, e: Throwable): Throwable = e
match {
case e @ (_: java.lang.NullPointerException | _: java.lang.AssertionError)
=>
Review Comment:
Why don't you add just one more case of `scala.MatchError` here?
The devs who will investigate the issue will see the cause exception
`scala.MatchError`.
--
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]