Parquet row-group pruning explorer
Compare the same range predicate against ordered, mixed or unknown column bounds. Trace every keep-or-skip decision.
Pruning decision
1 retained · 2 skipped
Predicate: value ≥ 9 and value < 12. Rows in retained groups: 4. Matching-row count is unknown.
| Group | Rows | Min / max | Nulls | Decision | Reason |
|---|---|---|---|---|---|
| group-0 | 4 | 0 / 3 | Unknown | Skip | Group maximum is below the inclusive lower bound. |
| group-1 | 4 | 4 / 7 | Unknown | Skip | Group maximum is below the inclusive lower bound. |
| group-2 | 4 | 8 / 11 | Unknown | Retain | Bounds overlap: read and filter individual rows. |
What does this model assume?
One nullable integer column, reliable inclusive min/max bounds for non-null values, and a predicate value ≥ lower AND value < upper. Values and endpoints must fit JavaScript safe integers. It does not model floating point, NaN, strings, decimals, timestamps, Bloom filters, pages or engine-specific optimizations. It assumes your metadata is accurate.
Why keep an overlapping or unknown group?
An overlapping min/max range does not tell you which rows match. Missing bounds cannot prove the absence of a match. The explorer retains those groups conservatively. A known all-null group is skipped because ordinary range comparisons do not match null. Equal query endpoints define an empty range.
Does the retained-row total estimate the result size?
It counts all rows in retained groups, including possible nulls and nonmatching rows. It is not a matching-row count, byte estimate or benchmark. Actual readers may perform metadata requests, prefetch or additional filtering.
How does partition pruning differ?
Partition pruning can rule out whole files using known partition values. This explorer starts after that decision and models only row-group range eligibility. Use the Parquet partition and row-group pruning guide for a runnable PyArrow comparison that inspects files, groups and returned rows separately.
See the Apache Arrow fragment and row-group APIs and Parquet file structure for the underlying concepts.