Skip to content

fix(scan): prune IN predicates using file stats#382

Draft
hhhizzz wants to merge 1 commit into
apache:mainfrom
hhhizzz:in-stats-pruning
Draft

fix(scan): prune IN predicates using file stats#382
hhhizzz wants to merge 1 commit into
apache:mainfrom
hhhizzz:in-stats-pruning

Conversation

@hhhizzz

@hhhizzz hhhizzz commented Jun 13, 2026

Copy link
Copy Markdown

What changed

Uses file min/max stats to prune IN predicates when every literal is outside the file value range.

NOT IN, missing stats, corrupt stats, and unsupported comparisons continue to fail open.

Why

Before this change, non-partition IN predicates always skipped stats pruning and could keep files that min/max metadata can prove cannot match.

Validation

  • cargo test -p paimon test_data_file_matches_in --lib -- --nocapture
  • git diff --check

@hhhizzz hhhizzz changed the title Prune IN predicates with file stats fix(scan): prune IN predicates using file stats Jun 13, 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