Skip to content

[parquet] Fix that parquet filter pushdown wrong for decimal#8623

Open
yuzelin wants to merge 2 commits into
apache:masterfrom
yuzelin:fix-parquet
Open

[parquet] Fix that parquet filter pushdown wrong for decimal#8623
yuzelin wants to merge 2 commits into
apache:masterfrom
yuzelin:fix-parquet

Conversation

@yuzelin

@yuzelin yuzelin commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Purpose

Fix problem of #7175.

Fix incorrect Parquet dictionary filtering for high-precision decimals.
Decimal literals for FIXED_LEN_BYTE_ARRAY columns are now sign-extended to the physical Parquet width, matching the writer encoding. This prevents valid row groups from being incorrectly pruned when the literal and dictionary value represent the same number with different byte lengths.

Added regression tests for positive, negative, IN, and dictionary-filter cases.

Tests

@JingsongLi JingsongLi marked this pull request as draft July 14, 2026 14:12
@yuzelin yuzelin marked this pull request as ready for review July 15, 2026 03:03
@yuzelin yuzelin changed the title [WIP][parquet] Fix that parquet filter pushdown wrong for decimal [parquet] Fix that parquet filter pushdown wrong for decimal Jul 15, 2026
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.

1 participant