Skip to content

Parquet: Guard ordered predicates on variant/nested types in metrics row group filter - #17431

Open
vishnuprakaz wants to merge 1 commit into
apache:mainfrom
vishnuprakaz:parquet-variant-rowgroup-filter
Open

Parquet: Guard ordered predicates on variant/nested types in metrics row group filter#17431
vishnuprakaz wants to merge 1 commit into
apache:mainfrom
vishnuprakaz:parquet-variant-rowgroup-filter

Conversation

@vishnuprakaz

@vishnuprakaz vishnuprakaz commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

ParquetMetricsRowGroupFilter already skips variant and nested types in eq, in, and notNull, leaving them to post-scan evaluation (#14081, #14279), since those columns have no primitive row-group stats keyed by field id. The ordered predicates lt, ltEq, gt, and gtEq were missed: a variant/nested reference falls through to valueCount == null, returns ROWS_CANNOT_MATCH, and the row group is skipped, dropping matching rows. This applies the same guard to the four ordered comparisons, following #14279.

Tested by testVariantFieldLt/LtEq/Gt/GtEq, which mirror the existing variant eq/in tests and fail without the change.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant