Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-22945

add java UDF APIs in the functions object

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.0
    • 2.3.0
    • SQL
    • None

    Description

      Currently Scala users can use UDF like

      val foo = udf((i: Int) => Math.random() + i).asNondeterministic
      df.select(foo('a))
      

      Python users can also do it with similar APIs. However Java users can't do it, we should add Java UDF APIs in the functions object.

      Attachments

        Activity

          People

            cloud_fan Wenchen Fan
            cloud_fan Wenchen Fan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: