Skip to content

Parquet: Preserve geometry CRS in writer metrics - #18072

Merged
szehon-ho merged 1 commit into
apache:mainfrom
huan233usc:geo-parquet-bbox
Sep 14, 2026
Merged

szehon-ho merged 1 commit into
apache:mainfrom
huan233usc:geo-parquet-bbox

Conversation

@huan233usc

@huan233usc huan233usc commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Description

Pass the CRS from Parquet's geometry logical type annotation to the generic
GeometryWriter instead of assigning OGC:CRS84 unconditionally. This keeps the
writer-side FieldMetrics.originalType aligned with the geometry type encoded in
the Parquet schema and removes reliance on ParquetMetrics replacing the type
later.

Tests

  • Added TestParquetValueWriters.geometryWriterUsesParquetCRS to verify that a
    non-default CRS is preserved in writer-side metrics.

AI Disclosure

  • Model: Grok
  • Platform/Tool: Cursor
  • Human Oversight: partially reviewed
  • Prompt Summary: Preserve the geometry CRS from the Parquet logical type in writer-side metrics and add regression coverage.

Use the CRS from the Parquet geometry annotation instead of assigning the default CRS to writer-side field metrics.

Generated-by: Cursor
@huan233usc huan233usc changed the title Parquet: Compute geometry bounding box metrics Parquet: Preserve geometry CRS in writer metrics Sep 11, 2026

@szehon-ho szehon-ho left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm, as it is not hooked up yet and fixes the issue

@szehon-ho
szehon-ho merged commit 6a0dfdc into apache:main Sep 14, 2026
44 checks passed
@szehon-ho

Copy link
Copy Markdown
Member

Thanks @huan233usc !

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants