Repository navigation
Keep the CRS of WKB geometry literals (breaking) - #11865
Open
HarukiMoriarty wants to merge 2 commits into
Open
HarukiMoriarty wants to merge 2 commits into
HarukiMoriarty wants to merge 2 commits into
Conversation
Merging this PR will not alter performance1 warning
Comparing Footnotes
|
Signed-off-by: Nemo Yu <zyu379@wisc.edu>
Signed-off-by: Nemo Yu <zyu379@wisc.edu>
HarukiMoriarty
force-pushed
the
nemo/spatial-wkb-literal-crs
branch
from
November 24, 2026 06:17
695dc31 to
58a0870
Compare
HarukiMoriarty
enabled stacked auto-merge (squash)
November 24, 2026 06:18
This branch has not been deployed
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.
native_geometry_scalar_from_wkbtook raw WKB bytes, so every caller had to unpack the literal first and its CRS was lost: a DuckDBGEOMETRY('EPSG:…')constant pushed into a scan became a native scalar with no CRS. It now takes theWellKnownBinaryscalar itself and gives the native scalar the literal's CRS, so callers cannot drop it. This is needed before #11859 compares operand CRSs exactly.Breaking:
native_geometry_scalar_from_wkb(bytes: &[u8], …)becomesnative_geometry_scalar_from_wkb(wkb: &Scalar, …), and a null literal now returnsNone. The JNI geometry literal still has no CRS, because the Java API passes WKB bytes only.🤖 Generated with Claude Code