Paul Wu created SPARK-23617:

             Summary: Register a Function without params with Spark SQL Java API
                 Key: SPARK-23617
             Project: Spark
          Issue Type: Improvement
          Components: Java API, SQL
    Affects Versions: 2.2.1
            Reporter: Paul Wu

One can register a function using Scala:

{{spark.udf.register("uuid", ()=>java.util.UUID.randomUUID.toString) }}

Now, if I use Java API:

{{ spark.udf().register("uuid", ()=>java.util.UUID.randomUUID().toString()); }}

The code does not compile. Define UDF0 for Java API?

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to