-
Notifications
You must be signed in to change notification settings - Fork 773
[GH-3156][GH-3157][GH-3158] Implement distributed GeoSeries methods #3159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jiayuasu
merged 11 commits into
apache:master
from
jiayuasu:feature/geopandas-functions-batch
Jul 24, 2026
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
4d7448c
[GH-3157] Implement distributed GeoSeries explode
jiayuasu 22e13f5
[GH-3156] Implement distributed GeoSeries get_coordinates
jiayuasu 16cb2a3
[GH-3156][GH-3157] Share distributed geometry expansion
jiayuasu fa11d29
[GH-3157] Preserve CRS for empty explode results
jiayuasu 71a5793
[GH-3158] Implement GeoSeries geom_equals_exact
jiayuasu 6d99155
[GH-3156][GH-3157] Address GeoSeries review feedback
jiayuasu 12a524f
[FLINK] Add ST_EqualsExact predicate
jiayuasu 6abdd53
[GH-3158] Add ST_EqualsExact to Snowflake
jiayuasu 611fc35
[GH-3156] Use valid polygon in explode parity test
jiayuasu 15cc146
[GH-3158] Address ST_EqualsExact documentation review
jiayuasu 2c7b82d
[GH-3156] Handle invalid geometry in explode parity test
jiayuasu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| <!-- | ||
| Licensed to the Apache Software Foundation (ASF) under one | ||
| or more contributor license agreements. See the NOTICE file | ||
| distributed with this work for additional information | ||
| regarding copyright ownership. The ASF licenses this file | ||
| to you under the Apache License, Version 2.0 (the | ||
| "License"); you may not use this file except in compliance | ||
| with the License. You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, | ||
| software distributed under the License is distributed on an | ||
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| KIND, either express or implied. See the License for the | ||
| specific language governing permissions and limitations | ||
| under the License. | ||
| --> | ||
|
|
||
| # ST_EqualsExact | ||
|
|
||
| Introduction: Return true if A and B have the same structure and their corresponding coordinates are equal within a tolerance. | ||
|
|
||
| Unlike `ST_Equals`, this predicate requires geometry types, component order, ring order, and vertex order to match. The tolerance is the maximum distance allowed between each pair of corresponding coordinates. The comparison uses x and y coordinates and ignores z and m coordinates. | ||
|
|
||
| Format: `ST_EqualsExact (A: Geometry, B: Geometry, tolerance: Double)` | ||
|
|
||
| Return type: `Boolean` | ||
|
|
||
| Since: `v1.9.1` | ||
|
|
||
| Example: | ||
|
|
||
| ```sql | ||
| SELECT ST_EqualsExact( | ||
| ST_GeomFromWKT('POINT (0 0)'), | ||
| ST_GeomFromWKT('POINT (0.03 0.04)'), | ||
| 0.05 | ||
| ) | ||
| ``` | ||
|
|
||
| Output: | ||
|
|
||
| ``` | ||
| true | ||
| ``` | ||
|
|
||
| The order of coordinates must match: | ||
|
|
||
| ```sql | ||
| SELECT ST_EqualsExact( | ||
| ST_GeomFromWKT('LINESTRING (0 0, 1 1)'), | ||
| ST_GeomFromWKT('LINESTRING (1 1, 0 0)'), | ||
| 0.0 | ||
| ) | ||
| ``` | ||
|
|
||
| Output: | ||
|
|
||
| ``` | ||
| false | ||
| ``` | ||
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
60 changes: 60 additions & 0 deletions
60
docs/api/snowflake/vector-data/Predicates/ST_EqualsExact.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| <!-- | ||
| Licensed to the Apache Software Foundation (ASF) under one | ||
| or more contributor license agreements. See the NOTICE file | ||
| distributed with this work for additional information | ||
| regarding copyright ownership. The ASF licenses this file | ||
| to you under the Apache License, Version 2.0 (the | ||
| "License"); you may not use this file except in compliance | ||
| with the License. You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, | ||
| software distributed under the License is distributed on an | ||
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| KIND, either express or implied. See the License for the | ||
| specific language governing permissions and limitations | ||
| under the License. | ||
| --> | ||
|
|
||
| # ST_EqualsExact | ||
|
|
||
| Introduction: Return true if A and B have the same structure and their corresponding coordinates are equal within a tolerance. | ||
|
|
||
| Unlike `ST_Equals`, this predicate requires geometry types, component order, ring order, and vertex order to match. The tolerance is the maximum distance allowed between each pair of corresponding coordinates. The comparison uses x and y coordinates and ignores z and m coordinates. | ||
|
jiayuasu marked this conversation as resolved.
|
||
|
|
||
| Format: `ST_EqualsExact (A: Geometry, B: Geometry, tolerance: Double)` | ||
|
|
||
| Return type: `Boolean` | ||
|
|
||
| SQL Example: | ||
|
|
||
| ```sql | ||
| SELECT ST_EqualsExact( | ||
| ST_GeomFromWKT('POINT (0 0)'), | ||
| ST_GeomFromWKT('POINT (0.03 0.04)'), | ||
| 0.05 | ||
| ) | ||
| ``` | ||
|
|
||
| Output: | ||
|
|
||
| ``` | ||
| true | ||
| ``` | ||
|
|
||
| The order of coordinates must match: | ||
|
|
||
| ```sql | ||
| SELECT ST_EqualsExact( | ||
| ST_GeomFromWKT('LINESTRING (0 0, 1 1)'), | ||
| ST_GeomFromWKT('LINESTRING (1 1, 0 0)'), | ||
| 0.0 | ||
| ) | ||
| ``` | ||
|
|
||
| Output: | ||
|
|
||
| ``` | ||
| false | ||
| ``` | ||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| <!-- | ||
| Licensed to the Apache Software Foundation (ASF) under one | ||
| or more contributor license agreements. See the NOTICE file | ||
| distributed with this work for additional information | ||
| regarding copyright ownership. The ASF licenses this file | ||
| to you under the Apache License, Version 2.0 (the | ||
| "License"); you may not use this file except in compliance | ||
| with the License. You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, | ||
| software distributed under the License is distributed on an | ||
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| KIND, either express or implied. See the License for the | ||
| specific language governing permissions and limitations | ||
| under the License. | ||
| --> | ||
|
|
||
| # ST_EqualsExact | ||
|
|
||
| Introduction: Returns true if A and B have the same structure and their corresponding coordinates are equal within a tolerance. | ||
|
|
||
| Unlike `ST_Equals`, this predicate requires geometry types, component order, ring order, and vertex order to match. The tolerance is the maximum distance allowed between each pair of corresponding coordinates. The comparison uses x and y coordinates and ignores Z and M coordinates. | ||
|
|
||
| Format: `ST_EqualsExact (A: Geometry, B: Geometry, tolerance: Double)` | ||
|
|
||
| Return type: `Boolean` | ||
|
|
||
| Since: `v1.9.1` | ||
|
|
||
| SQL Example | ||
|
|
||
| ```sql | ||
| SELECT ST_EqualsExact( | ||
| ST_GeomFromWKT('POINT (0 0)'), | ||
| ST_GeomFromWKT('POINT (0.03 0.04)'), | ||
| 0.05 | ||
| ) | ||
| ``` | ||
|
|
||
| Output: | ||
|
|
||
| ``` | ||
| true | ||
| ``` | ||
|
|
||
| The order of coordinates must match: | ||
|
|
||
| ```sql | ||
| SELECT ST_EqualsExact( | ||
| ST_GeomFromWKT('LINESTRING (0 0, 1 1)'), | ||
| ST_GeomFromWKT('LINESTRING (1 1, 0 0)'), | ||
| 0.0 | ||
| ) | ||
| ``` | ||
|
|
||
| Output: | ||
|
|
||
| ``` | ||
| false | ||
| ``` |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.