You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2014/12/04 12:57:12 UTC
[jira] [Commented] (SPARK-4735) Spark SQL UDF doesn't support 0
arguments.
[ https://issues.apache.org/jira/browse/SPARK-4735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14234153#comment-14234153 ]
Apache Spark commented on SPARK-4735:
-------------------------------------
User 'potix2' has created a pull request for this issue:
https://github.com/apache/spark/pull/3604
> Spark SQL UDF doesn't support 0 arguments.
> ------------------------------------------
>
> Key: SPARK-4735
> URL: https://issues.apache.org/jira/browse/SPARK-4735
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Reporter: Cheng Hao
> Priority: Minor
>
> To reproduce that with:
> val udf = () => {Seq(1,2,3)}
> sqlCtx.registerFunction("myudf", udf)
> sqlCtx.sql("select myudf() from tbl limit 1").collect.foreach(println)
--
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