[GH-3369] Use isolated JTS IO fixes - #3373
Merged
Merged
Conversation
jiayuasu
marked this pull request as draft
September 15, 2026 05:50
jiayuasu
marked this pull request as ready for review
September 15, 2026 06:55
1 task
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?
Yes.
Is this PR related to a ticket?
Related to #3369. This supplies the WKB reader fix needed by #3374.
What changes were proposed in this PR?
Keep
org.locationtech.jts:jts-core:1.20.0and addorg.datasyslab:jts-io-patch:1.21.0-datasyslab-1. The small artifact generates the fork's patchedWKBReader,WKTWriter, and helper underorg.datasyslab.jts.io, preserving the standard JTS geometry and supporting API types.Route Sedona's WKB reads and WKT output through those classes. The writer now handles dimension markers before nested
EMPTYdirectly, removing the string postprocessing workaround. Spark's bundled JTS jar stays in place; no classpath-priority settings are needed. Geometry algorithms and publicGeometry,WKBWriter, andParseExceptiontypes stay on JTS 1.20.The IO artifact is published on Maven Central from the merged source in jiayuasu/jts#8. See the release notes. A fresh Maven consumer passed 35 WKB/WKT checks against the downloaded release, and its three IO classes match those used in the Sedona validation below.
How was this patch tested?
local-cluster[2,1,1024]). Both executors loaded public geometry and original IO classes from the untouched PySpark JTS 1.20 jar, and patched IO classes from Sedona's jar.Did this PR include necessary documentation updates?
The previous jar-replacement instructions are removed. Existing Spark setup remains valid. The new artifact's source, packaging, and release procedure are documented in its repository.