Skip to content

feat(results): add geospatial string representation - #360

Merged
cathleeny merged 1 commit into
feat/geospatial-arrow-binaryfrom
feat/geospatial-config
Sep 29, 2026
Merged

cathleeny merged 1 commit into
feat/geospatial-arrow-binaryfrom
feat/geospatial-config

Conversation

@cathleeny

@cathleeny cathleeny commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • add a typed client-side String / Binary representation choice for GEOMETRY and GEOGRAPHY Arrow results, defaulting to strings
  • render Reyden SRID plus OGC WKB values locally as EWKT in string mode, including nested values and nulls
  • retain the canonical tagged Arrow struct from feat(results): support native geospatial Arrow values #365 in binary mode
  • use the same manifest-driven post-processing for inline, CloudFetch, and empty results
  • never synthesize or forward a representation setting to SEA

A raw geospatial_as_string entry in session_conf is not a kernel option. It remains ordinary server-bound configuration and is forwarded unchanged; SEA/Reyden does not define that configuration. Callers must use the typed kernel or binding option.

Stack

Testing

  • cargo fmt --all -- --check
  • denied-warning Clippy with both native TLS and rustls
  • cargo test --workspace --locked on this layer and every stack layer
  • string/binary/null/fixed-SRID/ANY-SRID/empty-result WireMock tests using real Arrow IPC
  • nested ARRAY/MAP/STRUCT conversion and malformed-tag/invalid-WKB unit coverage
  • WKB-to-WKT renderer checked against the JDBC reference corpus
  • live E2E on the complete stack: inline string/binary; 1M-row CloudFetch string/binary; geometry and geography; fixed and ANY SRID; nulls; empty geometry; and nested arrays

Live empty geospatial result-set queries currently fail in Reyden with XXR06 Partition 0 already finished. Non-geospatial empty results pass live, and geospatial empty-result schema handling is covered hermetically.

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No issues identified by the review bot.

@cathleeny
cathleeny added this pull request to stack #362 September 23, 2026 22:12
@cathleeny
cathleeny force-pushed the feat/geospatial-config branch from 7ccf066 to f7d55e8 Compare September 23, 2026 23:18
@cathleeny
cathleeny requested a review from a team as a code owner September 23, 2026 23:18

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: 1 Low

Solid, well-tested feature — client-side geo representation is cleanly kept out of the SEA wire, the empty-result path reconstructs the canonical tagged struct before the shared post-processing step, the native→EWKT rewrite recurses correctly through ARRAY/MAP/STRUCT, and binary mode is a verified zero-copy pass-through. No correctness or contract issues found; one Low note about untested fractional-coordinate WKT formatting parity.

Comment thread src/reader/post_processor/geospatial.rs Resolved

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: 1 Low

Looks good — a clean, well-tested feature adding a typed client-side String/Binary geospatial result representation. EWKT rendering, nested-geo-before-JSON ordering, zero-copy binary pass-through, empty-result schemas, and the client-side-only guarantee (never forwarded to SEA) are all correct and covered by unit + wiremock tests; new dependency licenses are already permitted by deny.toml. One low-severity note: the public databricks_type_to_arrow[_with_interval] helpers now default geo to Utf8 rather than the prior tagged struct (intentional, but an unannounced public-API default change).

Comment thread src/metadata/type_mapping.rs Resolved

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: 1 Low

Looks good — solid, well-tested implementation (string/binary/null/nested/empty paths, malformed-WKB and SRID handling all covered). New deps use already-allowed licenses, so no deny.toml change is required. One Low note: the legacy-text pass-through was narrowed from Utf8/LargeUtf8 to Utf8-only, turning a former pass-through into a hard error for LargeUtf8 geo text even in string mode.

Comment thread src/reader/post_processor/geospatial.rs Resolved

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No issues identified by the review bot.

Signed-off-by: cat23123 <58714163+cat23123@users.noreply.github.com>

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No issues identified by the review bot.

This branch was previously deployed

1 inactive deployment
azure-prod — 547dc96a Deployed Sep 29, 2026 by cathleeny via PyO3 build + test (Python 3.11) #481
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.

2 participants