[
https://issues.apache.org/jira/browse/SPARK-18832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15765511#comment-15765511
]
Dongjoon Hyun commented on SPARK-18832:
---------------------------------------
Sorry, it turns out that the case I met yesterday only occurs in `spark-shell`
due to class loader.
It's totally different from this issue.
So far, when I tried `spark-sql`, there seems to be no problem.
I mean I cannot reproduce yours so far in `spark-sql` unfortunately.
Could you provide more reproducible example?
> 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: [email protected]
For additional commands, e-mail: [email protected]