Skip to content

fix(parquet): accept Decimal32 and Decimal64 during schema projection - #992

Merged
wgtmac merged 2 commits into
apache:mainfrom
YinZheng-Sun:codex/parquet-decimal32-64
Oct 10, 2026
Merged

wgtmac merged 2 commits into
apache:mainfrom
YinZheng-Sun:codex/parquet-decimal32-64

Conversation

@YinZheng-Sun

@YinZheng-Sun YinZheng-Sun commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Parquet schema projection rejects Arrow Decimal32/64, which can come from smallest_decimal_enabled or stored ARROW:schema metadata (apache/arrow#47427).

Accept both types through Arrow's common DecimalType interface, preserving the existing precision and scale checks. Add regression tests for schema projection and reading files with stored Decimal32/64 schemas.

Validation (Arrow 25.0.1): 112 Parquet tests passed, 1 skipped; pre-commit and the targeted designated-initializer clang-tidy check passed.

AI assistance: Codex helped implement and test this change.

@wgtmac wgtmac 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.

Thanks for fixing this, @YinZheng-Sun!

@wgtmac
wgtmac merged commit b409051 into apache:main Oct 10, 2026
15 checks passed
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