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

Apache Spark commented on SPARK-17996:
--------------------------------------

User 'hvanhovell' has created a pull request for this issue:
https://github.com/apache/spark/pull/15542

> catalog.getFunction(name) returns wrong result for a permanent function
> -----------------------------------------------------------------------
>
>                 Key: SPARK-17996
>                 URL: https://issues.apache.org/jira/browse/SPARK-17996
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Herman van Hovell
>            Assignee: Herman van Hovell
>            Priority: Minor
>
> The catalog returns a wrong result, if we lookup a permanent function without 
> specifying the database. For example:
> {noformat}
> scala> sql("create function fn1 as 
> 'org.apache.hadoop.hive.ql.udf.generic.GenericUDFAbs'")
> res0: org.apache.spark.sql.DataFrame = []
> scala> spark.catalog.getFunction("fn1")
> res1: org.apache.spark.sql.catalog.Function = Function[name='fn1', 
> className='org.apache.hadoop.hive.ql.udf.generic.GenericUDFAbs', 
> isTemporary='true']
> {noformat}
> It should not return that this function is temporary and define a database.



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