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

Reply via email to