[ 
https://issues.apache.org/jira/browse/SPARK-18832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15762182#comment-15762182
 ] 

Dongjoon Hyun commented on SPARK-18832:
---------------------------------------

Thank you for confirming.
Actually, Spark already has the UDTF test cases 
[here|https://github.com/apache/spark/blob/master/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLQuerySuite.scala#L102-L140].
So far, I didn't understand the difference in your case. Could you give us some 
reproducible examples?


> Spark SQL: Incorrect error message on calling registered UDF.
> -------------------------------------------------------------
>
>                 Key: SPARK-18832
>                 URL: https://issues.apache.org/jira/browse/SPARK-18832
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.0.0, 2.0.1, 2.0.2
>            Reporter: Lokesh Yadav
>
> On calling a registered UDF in metastore from spark-sql CLI, it gives a 
> generic error:
> Error in query: Undefined function: 'Sample_UDF'. This function is neither a 
> registered temporary function nor a permanent function registered in the 
> database 'default'.
> The functions is registered and it shoes up in the list output by 'show 
> functions'.
> I am using a Hive UDTF, registering it using the statement: create function 
> Sample_UDF as 'com.udf.Sample_UDF' using JAR 
> '/local/jar/path/containing/the/class';
> and I am calling the functions from spark-sql CLI as: SELECT 
> Sample_UDF("input_1", "input_2" )



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to