Kontinuation commented on PR #1520: URL: https://github.com/apache/sedona/pull/1520#issuecomment-2222616242
> @Kontinuation The result of this function is non-deterministic. Will this create a problem to the catalyst optimizer? The correct way to implement non-deterministic functions is to extend the `Nondeterministic` trait and implement the `initializeInternal` method to calculate the seed for each partition. The function evaluates using the initialized seed, so the results are identical when partitions are recomputed. Unfortunately, `RandomPointsBuilder` does not allow constructing the builder with a given seed. We have to inherit this class and override the `createRandomCoord` function to generate coordinates using the specified seed. -- 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]
