[ 
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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to