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

add java UDF APIs in the functions object

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          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:

              Slack

                Issue deployment