Uploaded image for project: 'Apache Sedona'
  1. Apache Sedona
  2. SEDONA-458

The docs should have examples for UDF

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.5.1

    Description

      We should add Scala/Java/Python UDF examples for Sedona. The example should show how users implement a UDF to access the geometry type object in Apache Sedona DataFrame.

       

      The UDF examples should include examples as follows. Each example should have Scala, Java, and Python snippet.

       

      1.

      Input: geometry

      Output: geometry

       

      2.

      Input: geometry

      Output: other primitive type

       

      3. 

      Input: geometry, other primitive type

      Output: geometry

       

      4.

      Input: geometry, other primitive type

      Output: geometry, other primitive type (this can be done via struct type)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jiayu Jia Yu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m