Herman van Hovell created SPARK-17996:
-----------------------------------------

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