Skip to content

Keep the CRS of WKB geometry literals (breaking) - #11865

Open
HarukiMoriarty wants to merge 2 commits into
developfrom
nemo/spatial-wkb-literal-crs
Open

HarukiMoriarty wants to merge 2 commits into
developfrom
nemo/spatial-wkb-literal-crs

Conversation

@HarukiMoriarty

Copy link
Copy Markdown
Contributor

native_geometry_scalar_from_wkb took raw WKB bytes, so every caller had to unpack the literal first and its CRS was lost: a DuckDB GEOMETRY('EPSG:…') constant pushed into a scan became a native scalar with no CRS. It now takes the WellKnownBinary scalar 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], …) becomes native_geometry_scalar_from_wkb(wkb: &Scalar, …), and a null literal now returns None. The JNI geometry literal still has no CRS, because the Java API passes WKB bytes only.

🤖 Generated with Claude Code

@codspeed

codspeed Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

1 warning

⚠️ Walltime results may be unreliable

Some benchmarks used the Walltime instrument outside CodSpeed Macro Runners, which can make the results inconsistent.

Learn more about Macro Runners

See affected benchmarks

✅ 2058 untouched benchmarks
⏩ 150 skipped benchmarks1


Comparing nemo/spatial-wkb-literal-crs (58a0870) with develop (5147787)

Open in CodSpeed

Footnotes

  1. 150 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

Signed-off-by: Nemo Yu <zyu379@wisc.edu>
Signed-off-by: Nemo Yu <zyu379@wisc.edu>
@HarukiMoriarty
HarukiMoriarty force-pushed the nemo/spatial-wkb-literal-crs branch from 695dc31 to 58a0870 Compare November 24, 2026 06:17
@HarukiMoriarty
HarukiMoriarty enabled stacked auto-merge (squash) November 24, 2026 06:18

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/break A breaking API change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant