jiayuasu opened a new pull request, #2642: URL: https://github.com/apache/sedona/pull/2642
## Did you read the Contributor Guide? - Yes, I have read the [Contributor Rules](https://sedona.apache.org/latest/community/rule/) and [Contributor Development 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, all ~329 ST functions are re-registered. Spark's `FunctionRegistry` detects that each function already exists with a different builder closure and emits a WARN log for each one, producing hundreds of noisy "replaced a previously registered function" warning lines. This PR adds `functionExists()` guards in `AbstractCatalog.registerAll()` before registering both expression functions and aggThis PR adds `functionExists()` guards in `AbstractCatalog.registerAll()` before registering both nThis PR adds `functionExists()` guards in `AbstractCatalog.ratch tested? Existing uExisting uExisting uExisting uExisting uExistinge Existing uExisting uExisting uExisting uExisting uExistinge Existing uExisting uExisting uExisting uExisting uExistinge Existing uExisting uExisting uExisting uExisting uExistinge anyExisting uExisting uExisting uEe 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]
