Repository navigation
[GH-2800] Fix Snowflake tester failures for empty geometries - #3272
Merged
jiayuasu merged 1 commit intoAug 19, 2026
Merged
Conversation
The ST_SharedPaths change fixed the WKT writer to emit 'Z EMPTY' instead of JTS's malformed 'ZEMPTY', but test_ST_Translate still expected the old output. Also, the V2 ST_SharedPaths test produced a collection containing MULTILINESTRING EMPTY, which Snowflake's GEOMETRY type rejects because GeoJSON coordinates must not be empty; use inputs that share paths in both directions so no collection element is empty.
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. Follow-up to [GH-2800] Add ST_SharedPaths across engines and GeoPandas #3250 (Add ST_SharedPaths function #2800).What changes were proposed in this PR?
Running the Snowflake tester against a real Snowflake environment surfaced two failures introduced by #3250:
TestFunctions.test_ST_Translate: [GH-2800] Add ST_SharedPaths across engines and GeoPandas #3250 fixed the WKT writer to emitLINESTRING Z EMPTYinstead of JTS's malformedLINESTRING ZEMPTY, but this test still expected the old output. Updated the expectation.TestFunctionsV2.test_ST_SharedPaths: the result containedMULTILINESTRING EMPTY, and V2 UDFs return Snowflake-native GEOMETRY via GeoJSON, which Snowflake rejects ("Invalid GeoJSON. 'coordinates' must not be empty."). Switched to inputs that share paths in both directions so no collection element is empty; the V1 test keeps the empty-element coverage since it round-trips through Sedona's own serialization.How was this patch tested?
Verified against a real Snowflake environment: the full
snowflake-testersuite passes with this change (wherobots/sedona-cloud-vendor-tester#73, run https://github.com/wherobots/sedona-cloud-vendor-tester/actions/runs/32258418019).Did this PR include necessary documentation updates?