Repository navigation
feat(results): support native geospatial Arrow values - #365
Conversation
There was a problem hiding this comment.
Verdict: 1 Low
Looks good — solid, well-tested implementation with one minor Low note. The manifest-as-authority design correctly avoids misidentifying coincidental struct<srid,wkb> user structs (manifest reconstructs a plain STRUCT with nullable children, so the tagged non-null shape only arises for genuine GEOMETRY/GEOGRAPHY columns), buffers are reused rather than copied, and geo-before-JSON ordering with is_top_level_geo gating is correct. The only observation is a silent SRID-parse fallback (F1).
e187f07 to
6d8da90
Compare
There was a problem hiding this comment.
Verdict: 1 Medium
Solid, well-tested change — logical/physical schema split, the recursive geo reconciliation (buffers shared, tags attached from the authoritative manifest), and the post-processor overlap handling (geo-before-JSON) all look correct, and coverage (unit + wiremock across inline/CloudFetch/empty/legacy/nested) is thorough. One medium concern: the empty-result paths now fatally propagate manifest.arrow_schema decode/column-count failures where the streaming path tolerates the same failure, a behavior change from the previously-robust logical-schema fallback.
Signed-off-by: cat23123 <58714163+cat23123@users.noreply.github.com>
6d8da90 to
1c1f77a
Compare
There was a problem hiding this comment.
Verdict: 1 Low
Looks good — solid, well-tested implementation of native geospatial Arrow reconciliation. The logical-vs-physical schema split (extract_logical_schema_from_manifest / extract_physical_schema_from_manifest), buffer-preserving rewrite, geo-before-JSON ordering, and the new manifest.arrow_schema field are all coherent and covered by unit + wiremock tests (inline, CloudFetch, empty, legacy-text, nested, malformed). One low-severity note on native_geo_tag over-eagerly erroring on ambiguous tags. Nit: extract_logical_schema_from_manifest is now reconstructed once per manifest-bearing statement in ResultPostProcessor::new even for non-geo queries — negligible (per-statement, not per-batch) but avoidable if you gate it on the schema actually containing a GEOMETRY/GEOGRAPHY column.
Summary
GEOMETRYandGEOGRAPHYleaves from the structured SEA manifest as canonical Arrowstruct<srid,wkb>valuessrid/wkbchild fields, then normalize the public schema to Reyder's canonical non-null tagged fieldsStack
This is the binary Arrow foundation. #360 adds optional local EWKT rendering and the typed representation choice; #361 exposes that choice through Python, Node.js, and the C ABI.
Testing
cargo fmt --all -- --checkcargo test --workspace --lockedon this layer and every later stack layerLive 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.