[jira] [Assigned] (SPARK-17996) catalog.getFunction(name) returns wrong result for a permanent function
[ https://issues.apache.org/jira/browse/SPARK-17996?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Apache Spark reassigned SPARK-17996: Assignee: Apache Spark (was: Herman van Hovell) > 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: Apache Spark >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
[jira] [Assigned] (SPARK-17996) catalog.getFunction(name) returns wrong result for a permanent function
[ https://issues.apache.org/jira/browse/SPARK-17996?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Apache Spark reassigned SPARK-17996: Assignee: Herman van Hovell (was: Apache Spark) > 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