[GH-3257] GeoPandas: Implement distributed hilbert_distance - #3258
Merged
jiayuasu merged 2 commits intoAug 14, 2026
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Did you read the Contributor Guide?
Is this PR related to a ticket?
[GH-XXX] my subject.Closes #3257.
Part of #2230.
What changes were proposed in this PR?
ST_HilbertDistance(geometry, xmin, ymin, xmax, ymax, level)implementation that maps a geometry-envelope midpoint onto a Hilbert curve over a supplied extent.Long, including the level-16 maximum value4294967295.ST_HilbertDistancethrough Spark SQL and DataFrame APIs, Flink SQL, Snowflake WKB and GeoJSON UDF paths, and the Python Spark SQL API.GeoSeries.hilbert_distanceandGeoDataFrame.hilbert_distancethrough the active geometry column.total_boundsis omitted, derive the extent of all envelope midpoints. Only the single aggregate row reaches the driver; geometry rows and returned keys remain distributed.hilbert_distanceresult name, explicit-bound behavior, empty-series behavior, and GeoPandas parity without Python UDF execution.How was this patch tested?
ST_HilbertDistancesuite: 4 tests passed.git diff --checkpassed.Did this PR include necessary documentation updates?
v2.0.0.