You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "ocean (JIRA)" <ji...@apache.org> on 2016/01/18 12:27:39 UTC
[jira] [Commented] (SPARK-11948) Permanent UDF not work
[ https://issues.apache.org/jira/browse/SPARK-11948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15105170#comment-15105170 ]
ocean commented on SPARK-11948:
-------------------------------
Does sparksql support temporary udf function which extends udf now?
Now I found that udf temporary function which extends GenericUDF run ok,
but udf temporary function which extends UDF can not work.
my spark version is 1.5.2
> Permanent UDF not work
> ----------------------
>
> Key: SPARK-11948
> URL: https://issues.apache.org/jira/browse/SPARK-11948
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 1.5.1
> Reporter: Weizhong
> Priority: Minor
>
> We create a function,
> {noformat}
> add jar /home/test/smartcare-udf-0.0.1-SNAPSHOT.jar;
> create function arr_greater_equal as 'smartcare.dac.hive.udf.UDFArrayGreaterEqual';
> {noformat}
> but "show functions" don't display, and when we create the same function again, it throw exception as below:
> {noformat}
> Error: org.apache.spark.sql.execution.QueryExecutionException: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.FunctionTask. AlreadyExistsException(message:Function arr_greater_equal already exists) (state=,code=0)
> {noformat}
> But if we use this function, it throw exception as below:
> {noformat}
> Error: org.apache.spark.sql.AnalysisException: undefined function arr_greater_equal; line 1 pos 119 (state=,code=0)
> {noformat}
--
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