jiayuasu opened a new pull request, #2698: URL: https://github.com/apache/sedona/pull/2698
## Did you read the Contributor Guide? - Yes, I have read the [Contributor Rules](https://sedona.apache.org/latest/community/rule/) and [Contributor Developer Guide](https://sedona.apache.org/latest/community/develop/) ## Is this PR related to a ticket? - Yes, and the PR name follows the format `[GH-XXX] my subject`. Closes #2640 ## What changes were proposed in this PR? When `SedonaContext.create()` is called a second time, it prints warning messages about functions/UDTs being already registered. This was partially fixed for ST functions but RS functions and UDT registrations still produced warnings. This PR adds existence checks before registering: - **RS aggregate functions** (`RS_Union_Aggr`): Check `functionRegistry.functionExists()` before calling `sparkSession.udf.register()` in `RasterRegistrator` - **UDT types** (`Geometry`, `Geogra- **UDT types** (`Geometry`, `Geogra- **UDT types** (`egistr- **UDT types** (`Geometry`, `Geogra- **UDT types** (`Geometry`, `Geis- **UDT types** (`Geometry`, `Geogra- **Uapper\- **UDT types** (`Geometry`, `Geogra- **UDT types** (`Geometry`, `Geogra- **UDT types** (`egistr- **UDT types** (`Geometry`, `Geogra- **UDT types** (`Geometry`, `Geiate()` twice and verifying no warning messages are produced. Also ran all 166 raster algebra tests to ensure RS functio- **UDT types** (`Geometry`, `GePR include necessary documentation updates? - No, this PR does not affect any public API so no need to change the documentation. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
