Github user liancheng commented on a diff in the pull request:
https://github.com/apache/spark/pull/12040#discussion_r58225981
--- Diff: sql/hive/src/main/scala/org/apache/spark/sql/hive/hiveUDFs.scala
---
@@ -107,7 +107,9 @@ private[hive] class HiveFunctionRegistry(
// If there is any other error, we throw an AnalysisException.
val errorMessage = s"No handler for Hive udf
${functionInfo.getFunctionClass} " +
s"because: ${throwable.getMessage}."
- throw new AnalysisException(errorMessage)
+ val analysisException = new AnalysisException(errorMessage)
+ analysisException.setStackTrace(throwable.getStackTrace)
+ throw analysisException
--- End diff --
This change is not directly related to this PR, but it preserving the
original exception stack trace helps debugging Hive function lookup here.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]