Skip to content

[GH-2800] Fix Snowflake tester failures for empty geometries - #3272

Merged
jiayuasu merged 1 commit into
apache:masterfrom
jiayuasu:fix/snowflake-empty-geometry-tests
Aug 19, 2026
Merged

jiayuasu merged 1 commit into
apache:masterfrom
jiayuasu:fix/snowflake-empty-geometry-tests

Conversation

@jiayuasu

Copy link
Copy Markdown
Member

Did you read the Contributor Guide?

Is this PR related to a ticket?

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 emit LINESTRING Z EMPTY instead of JTS's malformed LINESTRING ZEMPTY, but this test still expected the old output. Updated the expectation.
  • TestFunctionsV2.test_ST_SharedPaths: the result contained MULTILINESTRING 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-tester suite 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?

  • No, this PR does not affect any public API so no need to change the documentation.

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.
@jiayuasu
jiayuasu merged commit 6636431 into apache:master Aug 19, 2026
10 of 11 checks passed
@jiayuasu
jiayuasu deleted the fix/snowflake-empty-geometry-tests branch August 19, 2026 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant