Cheng Hao created SPARK-4735:
--------------------------------
Summary: 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: [email protected]
For additional commands, e-mail: [email protected]