Skip to content

GH-50849: [Python] Return correct ParquetLogicalType.type for geometry/geography - #50850

Open
jorisvandenbossche wants to merge 2 commits into
apache:mainfrom
jorisvandenbossche:gh-50849-parquet-geometry-type
Open

GH-50849: [Python] Return correct ParquetLogicalType.type for geometry/geography#50850
jorisvandenbossche wants to merge 2 commits into
apache:mainfrom
jorisvandenbossche:gh-50849-parquet-geometry-type

Conversation

@jorisvandenbossche

@jorisvandenbossche jorisvandenbossche commented Aug 11, 2026

Copy link
Copy Markdown
Member

Rationale for this change

Fix the return value of ParquetLogicalType.type for geometry/geography types

Are these changes tested?

Yes

Are there any user-facing changes?

Not apart from the bug fix

Copilot AI lite review requested due to automatic review settings August 11, 2026 13:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Fixes the Python Parquet metadata binding so ParquetLogicalType.type returns the correct string for the GEOMETRY/GEOGRAPHY logical types, matching the underlying Parquet logical type enum.

Changes:

  • Extend the logical type enum-to-name mapping to include GEOMETRY and GEOGRAPHY.
  • Add a regression test that reads geospatial Parquet fixtures and asserts the logical type name and geo statistics accessors.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
python/pyarrow/_parquet.pyx Adds GEOMETRY/GEOGRAPHY to the enum name mapping used by ParquetLogicalType.type.
python/pyarrow/tests/parquet/test_metadata.py Adds regression coverage for geometry/geography logical types and geo statistics.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread python/pyarrow/_parquet.pyx Outdated
Copilot AI review requested due to automatic review settings August 11, 2026 13:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

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