You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Herman van Hovell (JIRA)" <ji...@apache.org> on 2016/10/19 01:47:59 UTC
[jira] [Created] (SPARK-17996) catalog.getFunction(name) returns
wrong result for a permanent function
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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org