MaxGekk commented on code in PR #38744:
URL: https://github.com/apache/spark/pull/38744#discussion_r1028220801
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryCompilationErrors.scala:
##########
@@ -3393,4 +3393,15 @@ private[sql] object QueryCompilationErrors extends
QueryErrorsBase {
"unsupported" -> unsupported.toString,
"class" -> unsupported.getClass.toString))
}
+
+ def funcBuildError(funcName: String, cause: Exception): Throwable = {
+ cause.getCause match {
+ case st: SparkThrowable with Throwable => st
Review Comment:
If some Spark's exception happens during preparation of a function call, we
just propagate it to users AS IS otherwise (something we didn't catch) we wrap
it by `AnalysisException(errorClass = FAILED_FUNCTION_CALL)`
--
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]