[
https://issues.apache.org/jira/browse/SPARK-4735?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Armbrust resolved SPARK-4735.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.3.0
Assignee: Cheng Hao
> 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
> Assignee: Cheng Hao
> Priority: Minor
> Fix For: 1.3.0
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]