AngersZhuuuu commented on a change in pull request #29054:
URL: https://github.com/apache/spark/pull/29054#discussion_r475094954



##########
File path: 
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveSessionCatalog.scala
##########
@@ -105,12 +109,18 @@ private[sql] class HiveSessionCatalog(
               } else {
                 noHandlerMsg
               }
-            val analysisException = new AnalysisException(errorMsg)
+            val analysisException = new AnalysisException(
+              s"Spark UDAF Error: ${exception.getMessage}\n" +

Review comment:
       > What if we load a Hive UDF and it fail? Is it still going to show the 
the method is missing in Spark?
   
   Yea, since in hive mode use HiveSessionCatalog,  user can use Spark's and 
Hive's,  we don't know user want to use which way(in other word, if we want to 
know user's intention, it's hard and we need to add a lot code to judge). when 
all failed show both error message, let user to know why make function failed 
is enough




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to