You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sedona.apache.org by "Jia Yu (Jira)" <ji...@apache.org> on 2023/12/28 21:53:00 UTC
[jira] [Created] (SEDONA-458) The docs should have examples for UDF
Jia Yu created SEDONA-458:
-----------------------------
Summary: The docs should have examples for UDF
Key: SEDONA-458
URL: https://issues.apache.org/jira/browse/SEDONA-458
Project: Apache Sedona
Issue Type: Task
Reporter: Jia Yu
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)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)