Skip to content

feat: expression-keyed statistics pruning (struct fields, pluggable resolvers) - #27736

Draft
adriangb wants to merge 15 commits into
apache:mainfrom
adriangb:expr-stats-pruning
Draft

adriangb wants to merge 15 commits into
apache:mainfrom
adriangb:expr-stats-pruning

Conversation

@adriangb

@adriangb adriangb commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

Parquet stores min/max, null counts, page indexes and bloom filters for every struct field leaf. DataFusion ignores all of them for s['a'], because PruningPredicate only knows top-level columns.

Example

A file with 4 row groups of 3 rows each, s: {a: int, b: int}:

Row group s['a']
0 1..3
1 10..12
2 NULL struct, 20, NULL field
3 30..32
EXPLAIN ANALYZE SELECT * FROM t WHERE s['a'] > 15;
- pruning_predicate=<none>
- row_groups_pruned_statistics=4 total → 4 matched
+ pruning_predicate=get_field(s@0, a)_null_count@1 != row_count@2 AND get_field(s@0, a)_max@0 > 15
+ row_groups_pruned_statistics=4 total → 2 matched

The same thing, for other access paths:

Query main This PR
s['a'] > 15 (row groups) 4 → 4 4 → 2
s['a'] < 10 over 2 files 2 → 2 row groups 2 → 1, and that 1 is fully matched (filter skipped)
ORDER BY s['a'] DESC LIMIT 3 (TopK dynamic filter) 0 pruned 4 of 5 pruned, same as a plain column
s['a'] = 50 with bloom filters 2 → 2 0 row groups read
hash join on s['a'], build keys 0, 5000, 9999 10 → 10 10 → 3, same as a plain column
fake_variant_get(v, 'a') > 5 with a custom resolver (test) nothing pruned shredded row groups pruned

What changes are included in this PR?

API overview

Three layers. Each one knows only what it needs:

Layer Crate Knows Does not know
PruningPredicate datafusion-pruning which sub-expressions are statistics keys files, Parquet, leaves
PruningStatistics datafusion-physical-expr-common how to return min/max/nulls for a key how the predicate was rewritten
ParquetStatisticsResolver datafusion-datasource-parquet which Parquet leaf (or leaves) hold the stats for an expression the predicate

How they fit together, for one file:

sequenceDiagram
    participant O as Parquet opener
    participant F as FileStatisticsResolvers
    participant R as resolver (get_field, variant_get, ...)
    participant P as PruningPredicate
    participant S as RowGroupPruningStatistics
    O->>F: per-file setup (resolvers, file schemas)
    O->>P: build(predicate, matcher = F)
    P->>F: bind(s['a'])
    F->>R: bind(s['a'], schemas)
    R-->>F: Some(bound), leaf 3
    F-->>P: Some(binding) → s['a'] is a key
    Note over P: key = StatsExpr(s['a'], binding)<br/>rewrite: s['a'] > 15 → s['a']_max > 15
    O->>P: prune(S)
    P->>S: max_values_for_expr(key)
    S->>R: key.binding().statistics(Max, leaf stats)
    R-->>P: [3, 12, 20, 32] (one per row group)
Loading

The binding is the only link between a key and its statistics. Nothing looks the expression up again, so there is no cache, and a key cannot be read with another file's statistics. The same per-file F drives page, bloom filter, full-match, TopK and hash join pruning.

datafusion-pruning

// Some(binding) = "the source answers for `expr`"; None = look inside `expr`.
// Called for many nodes, so rejecting must be cheap (one downcast).
pub trait StatisticsExprMatcher {
    fn bind(&self, expr: &Arc<dyn PhysicalExpr>) -> Option<Arc<dyn Any + Send + Sync>>;
}

// The key the predicate passes back to the source.
pub struct StatsExpr { expr: Arc<dyn PhysicalExpr>, binding: Arc<dyn Any + Send + Sync> }
impl StatsExpr { fn expr(&self); fn binding<T: Any>(&self) -> Option<&T>; }

PruningPredicateBuilder::new()
    .with_statistics_expr_matcher(Some(matcher))
    .try_build(predicate)?;

The rewrite walks each side of a comparison top down. The first matched sub-expression becomes the key, the same as a column:

CAST(s['a'] AS BIGINT) > 5
└─ CAST          not bound, keep going
   └─ s['a']     bound → key; stats read for s['a'], cast applied to min/max

A key must read exactly one column and have a non-nested type. Every rewrite that handles a column handles a key: comparisons, IS [NOT] NULL, CAST/TRY_CAST/NOT/negation, booleans, compact IN, literal guarantees (bloom filters) and the hash join bitmap.

PruningStatistics (moved to datafusion-physical-expr-common)

fn min_values_for_expr(&self, expr: &StatsExpr) -> Option<ArrayRef> { None }
fn max_values_for_expr(..)  -> Option<ArrayRef> { None }
fn null_counts_for_expr(..) -> Option<ArrayRef> { None }
fn contained_for_expr(.., values: &HashSet<ScalarValue>) -> Option<BooleanArray> { None }

All default to None, so existing implementations keep compiling. A null entry means "unknown", never a guess. A source finds its own binding by type, so it must bind a private type. The Parquet implementations only forward to the binding:

impl PruningStatistics for RowGroupPruningStatistics<'_> {
    fn max_values_for_expr(&self, expr: &StatsExpr) -> Option<ArrayRef> {
        bound_statistics(expr)?.statistics(ExprStatisticsKind::Max, self)
    }
    // min, null counts: same
}

datafusion-datasource-parquet

pub trait ParquetStatisticsResolver {
    // Once per file. None = "no stats for `expr` in this file", so the
    // rewrite keeps looking inside `expr` (fallback to an inner key).
    fn bind(&self, expr, arrow_schema: &Schema, parquet_schema: &SchemaDescriptor)
        -> Option<Arc<dyn BoundExprStatistics>>;
}

pub trait BoundExprStatistics {
    fn statistics(&self, kind: ExprStatisticsKind, stats: &dyn ParquetLeafStatistics)
        -> Option<ArrayRef>;
    fn page_index_leaf(&self) -> Option<usize> { None }   // opt in to page pruning
    fn bloom_filter_leaf(&self) -> Option<usize> { None } // opt in to bloom filters
}

// What a bound resolver can read, per row group or per page.
pub trait ParquetLeafStatistics {
    fn leaf_mins(&self, leaf: usize, field: &Field) -> Option<ArrayRef>;
    fn leaf_maxes(..) -> Option<ArrayRef>;
    fn leaf_null_counts(..) -> Option<ArrayRef>;
    fn row_counts(&self) -> Option<ArrayRef>;
}

ParquetSource::with_statistics_resolver(Arc::new(MyVariantResolver))

Built in: get_field. One leaf, so every kind of pruning works:

fn bind(&self, expr, arrow, parquet) -> Option<Arc<dyn BoundExprStatistics>> {
    // get_field(s, 'a') → path [s, a] → leaf index, if every step is a struct
    let (leaf, field) = Self::leaf(expr, arrow, parquet)?;
    Some(Arc::new(StructFieldStatistics { leaf, field }))
}

impl BoundExprStatistics for StructFieldStatistics {
    fn statistics(&self, kind, s) -> Option<ArrayRef> {
        match kind {
            Min => s.leaf_mins(self.leaf, &self.field),
            Max => s.leaf_maxes(self.leaf, &self.field),
            NullCount => s.leaf_null_counts(self.leaf, &self.field),
        }
    }
    fn page_index_leaf(&self) -> Option<usize> { Some(self.leaf) }
    fn bloom_filter_leaf(&self) -> Option<usize> { Some(self.leaf) }
}

Outside DataFusion: shredded variant_get(v, 'a') (sketch of the test resolver). The value lives in two leaves, so bounds are only valid where no row fell back to the binary column:

v
└─ typed_value
   └─ a
      ├─ typed_value   (Int64)   ← min/max
      └─ value         (Binary)  ← rows that did not shred

bind:        both leaves exist in this file? else None
min / max:   typed_value bounds, NULL (unknown) where value has any non-null row
null count:  None (a NULL typed_value may still hold a value)
page/bloom:  not opted in

The key can differ by file, because bind runs per file:

predicate: TRY_CAST(s['a'] AS BIGINT) > 3000000000
resolver:  binds TRY_CAST(s['a'] AS BIGINT) to a sidecar leaf s_a_int64

file 1 (has s_a_int64)  bind(outer) → Some  → key = outer expr
file 2 (no s_a_int64)   bind(outer) → None  → key = s['a'] (built in), cast applied to its stats

EXPLAIN binds against a Parquet schema built from the Arrow file schema, so keys whose leaves exist only in real files (shredded variant) do not show in the EXPLAIN pruning_predicate. The scan still uses them.

How to review

Review commit by commit. Refactors come first and change no behavior. Each test: slt commit records the output before the change, and each feat: commit's slt diff shows its effect.

# Commit
1 refactor: move PruningStatistics to datafusion-physical-expr-common (mechanical, plus upgrade guide entry)
2 refactor: pass read-only predicate settings as PredicateBuildContext
3 feat: *_for_expr methods on PruningStatistics
4 refactor: key statistics by a column or an expression (StatsKey), no behavior change
5 feat: StatisticsExprMatcher: keys in comparisons, IS [NOT] NULL, casts, NOT, booleans, compact IN, hash lookup
6 test: slt for struct field pruning (output on main)
7 feat: Parquet row groups with resolvers (bind, BoundExprStatistics, TopK, full match)
8 feat: show statistics keys in the EXPLAIN pruning_predicate
9 feat: Parquet pages with resolvers
10 test: resolver from outside DataFusion (fake variant_get)
11 test: slt for bloom filters on struct fields (output before the change)
12 feat: literal guarantees for statistics keys
13 feat: bloom filters on struct fields
14 perf: carry the resolver binding in the statistics key (replaces a per-file cache, see the timings below)

What is the testing strategy for this PR?

  • parquet_struct_field_pruning.slt: EXPLAIN ANALYZE metrics for every case in the table above, plus null structs vs null fields, type drift (INT file, DOUBLE table) and != on Int8/Date/Decimal.

  • expr_statistics_resolver.rs: a fake variant_get with its own resolver, static and dynamic filters, a file with no null counts, and per-file binding with fallback to an inner key.

  • Unit tests in pruning_predicate.rs for key rewrites and literal guarantees.

  • Fuzzing (random struct data, target_partitions, pushdown_filters) and mutation testing against the slt and Rust tests.

  • Building one file's pruning predicate for a left-deep OR of s['a'] = i terms (release build, local timing test, mean of 3 runs):

    Terms Per-file cache (commit 13) Binding in the key (commit 14)
    250 199 ms 50 ms
    500 1.02 s 95 ms
    1,000 7.26 s 191 ms
    2,000 54.3 s 382 ms

    The cache hashed the whole subtree of each node on every lookup, so its cost grew faster than quadratic. With the binding the cost is linear.

Not in this PR

Are there any user-facing changes?

Yes, and one is breaking:

Change Breaking?
PruningStatistics moves from datafusion-common to datafusion-physical-expr-common Yes: an import path changes, no re-export (it would be a dependency cycle). See the upgrade guide.
New *_for_expr methods with default None No
RequiredColumns::single_column() returns None for an expression key Behavior change
EXPLAIN shows a pruning_predicate for get_field filters Plan output
New StatisticsExprMatcher, StatsExpr, ParquetStatisticsResolver, BoundExprStatistics, ParquetLeafStatistics, ExprStatisticsKind, leaf_index_by_path, ParquetSource::with_statistics_resolver No
A ParquetSource with a custom resolver does not serialize to proto New limitation

🤖 Generated with Claude Code

@github-actions github-actions Bot added physical-expr Changes to the physical-expr crates core Core DataFusion crate sqllogictest SQL Logic Tests (.slt) catalog Related to the catalog crate common Related to common crate datasource Changes to the datasource crate labels Nov 25, 2026
@adriangb
adriangb force-pushed the expr-stats-pruning branch 3 times, most recently from 4793006 to 68509e0 Compare November 26, 2026 19:44
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Nov 26, 2026
adriangb and others added 13 commits November 26, 2026 12:14
`PruningStatistics` lives in `datafusion-common`, which cannot name
`PhysicalExpr`. Asking a statistics source for the statistics of an
expression (such as `get_field(s, 'a')` or `variant_get(v, 'a')`)
needs the trait to live next to `PhysicalExpr`.

This is a mechanical move of `datafusion_common::pruning` to
`datafusion_physical_expr_common::pruning` and an update of the
imports. `datafusion_common` cannot re-export it, because
`physical-expr-common` depends on it, so the old path is removed.
`datafusion_pruning::PruningStatistics` keeps working. The 57.0.0
upgrade guide describes the new import path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`build_predicate_expression` takes the schema, the unhandled-predicate
hook and the IN-list limit as separate arguments and passes all three
to each recursive call. Struct field pruning adds one more read-only
setting (which expressions have their own statistics).

Bundle them in `PredicateBuildContext`. No behavior change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`PruningStatistics` only returns statistics for whole columns. Add
`min_values_for_expr`, `max_values_for_expr`, `null_counts_for_expr`
and `contained_for_expr`, so a source can answer for an expression such
as `get_field(s, 'a')` or `variant_get(v, 'a')`.

The defaults return `None`, so existing implementations keep working
and prune nothing for such expressions. `CompositePruningStatistics`
forwards the new methods to its members.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`RequiredColumns` and `PruningExpressionBuilder` identify the statistics
they read by a bare column. Pruning on `get_field(s, 'a')` or
`variant_get(v, 'a')` needs statistics for an expression that is not a
column.

Add an optional expression next to each required column, and a
`StatsKey` that `ColumnReferenceCount` returns. Every helper that reads
statistics takes a `StatsKey`, and `RequiredColumns::stat_key_expr`
replaces the per-statistic `*_column_expr` wrappers. The statistics
record batch reads expression statistics through `*_for_expr`. Every key
is still a plain column, so behavior does not change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`PruningPredicate` only reads statistics for columns, so a predicate on
`get_field(s, 'a')` or `variant_get(v, 'a')` cannot be pruned. The
pruning crate cannot know which such expressions a statistics source
can answer: Parquet knows struct fields, and a variant extension knows
shredded variant paths.

Add `StatisticsExprMatcher`, set with
`PruningPredicateBuilder::with_statistics_expr_matcher`. A matched
expression that reads one column and has a non-nested type becomes one
statistics key. The predicate replaces it with its statistics columns
and reads them through `PruningStatistics::*_for_expr`. A key works in
every place a column does:

- comparisons, `IS [NOT] NULL`, and a bare or negated boolean key
- `CAST`, `TRY_CAST` and `NOT` over a key
- the compact form of a long `IN` list
- the key range bitmap of a hash join lookup

The helpers take the `PredicateBuildContext`, which holds the matcher.
`RequiredColumns::single_column` returns `None` when a key is an
expression. The new `single_key` returns the column or expression, and
`PruningPredicate::stats_key_exprs` lists the expression keys of the
predicate.

No caller sets a matcher yet, so plans do not change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Parquet stores statistics for each struct field, but a predicate on a
struct field such as `s['a'] > 15` cannot prune row groups or pages yet.

Add `parquet_struct_field_pruning.slt` with the current output, so the
next commits show what changes. It covers row groups, two files, the page
index, a dynamic TopK filter, struct type drift, a long `IN` list, a hash
join dynamic filter, and a struct field that is NULL in a non-nullable
struct.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Parquet stores statistics for each struct field, but the scan only
gives column statistics to the row group pruning predicate. A predicate
such as `s['a'] > 15` therefore reads every row group.

Add the `statistics_resolver` module:

- `ParquetStatisticsResolver::bind` binds an expression to the leaves of
  one file and returns a `BoundExprStatistics`, or `None` when the file
  has no statistics for it.
- `GetFieldStatisticsResolver` binds `get_field` paths through structs.
- `FileStatisticsResolvers` binds the scan's resolvers to one file and
  caches each binding. It is the `StatisticsExprMatcher` of the file's
  pruning predicates, so an expression is a key only when it binds. An
  expression that does not bind is not a key, and the predicate uses
  keys in its children.
- `ParquetSource::with_statistics_resolver` adds a resolver from outside
  DataFusion. A source with a custom resolver does not serialize without
  a custom codec.

`RowGroupPruningStatistics` reads expression statistics from the
binding. The dynamic `RowGroupPruner` uses the same resolvers, so a TopK
or hash join filter on a struct field prunes row groups too.

A full match must also prove that the expression has no nulls. A struct
field can be NULL when its struct column is not nullable, so the
inverted predicate adds `IS NULL` for each expression key.

The slt shows the row groups that are now pruned. `EXPLAIN` does not
bind resolvers yet, so its pruning predicate is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The `EXPLAIN` output of a Parquet scan shows a pruning predicate that is
built without a file, so it has no statistics resolvers. Its predicate
for `s['a'] > 15` does not show the struct field statistics that the
scan uses.

Bind the resolvers for the display to the Parquet schema that a file
written with the logical file schema would have. The display then
builds the predicate with `TableSchema::file_schema` instead of
`TableSchema::table_schema`, because the Parquet schema has no partition
columns.
The `EXPLAIN` plans of `parquet_struct_field_pruning.slt` and
`projection_pushdown.slt` now show the struct field keys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The page index only accepts predicates whose statistics come from one
column, so `s['a'] >= 85` reads every page of a row group.

A binding can now name the one Parquet leaf whose pages hold an
expression, through `BoundExprStatistics::page_index_leaf`. The page
filter builds its predicates with the file's resolvers as the matcher
and prunes the pages of that leaf. `PagesPruningStatistics` answers the
resolvers through `ParquetLeafStatistics`, for that leaf only, because
the pages of other leaves do not line up. The page index load check
uses the same leaf.

The default returns `None`, so a binding that needs several leaves
(such as a shredded variant) prunes row groups only. The slt shows the
pages that are now pruned.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`ParquetSource::with_statistics_resolver` lets another crate prune on
its own expressions, such as a variant extension with shredded
columns. Only the built-in struct field resolver has tests so far.

Add integration tests with resolvers defined outside DataFusion:

- a fake shredded variant resolver prunes row groups, with a static and
  with a dynamic filter, and nothing is pruned without it
- a missing struct field null count keeps the row group
- an outer expression that does not bind falls back to the statistics of
  its inner struct field, one that binds uses its own statistics, and
  each of two files binds on its own

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Parquet writes a bloom filter for each struct field leaf, but the scan
only reads the bloom filters of top-level columns. Row groups that span
a wide range of `s['a']` cannot be pruned by `s['a'] = 50`.

Add cases with the current output, so the next commits show what
changes. They cover struct fields of several types, `!=`, values that
are present, and a real column whose name looks like the placeholder
that the literal guarantee analysis uses for statistics keys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A predicate such as `s['a'] = 5` or `s['a'] IN (1, 2)` gives a literal
guarantee that a bloom filter can check, but `LiteralGuarantee` only
describes columns, so struct fields get none.

Before `LiteralGuarantee::analyze` runs, each distinct expression key is
replaced with a placeholder column of a reserved name. The guarantees on
placeholders are mapped back to their expressions, and `prune` checks
them with `PruningStatistics::contained_for_expr`. `LiteralGuarantee` and
the existing column guarantees do not change. A real column whose name
starts with the placeholder prefix would be mistaken for a key, so a
predicate with such a column gets no expression guarantees.

`always_true` counts expression guarantees, so a predicate whose only
pruning power is such a guarantee is kept. `literal_exprs` lists the
expressions, so a source can load only the bloom filters it needs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Parquet writes a bloom filter per leaf column, so struct fields have
their own. DataFusion only loads bloom filters for top-level columns,
so `s['a'] = 50` cannot use them.

A binding can now name the leaf whose bloom filter holds the values of
an expression, through `BoundExprStatistics::bloom_filter_leaf`. The
struct field binding names its leaf. The opener loads those filters for
the predicate's `literal_exprs` in the same loop as the column filters,
and `BloomFilterStatistics` answers `contained_for_expr` from them, with
the same rules as for a column: it never reports that a value is
present.

The default returns `None`. A shredded variant cannot use it, because
some of its values may live in the binary `value` column. The slt shows
the two row groups that the bloom filters now prune.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-stats-pruning

# Conflicts:
#	docs/source/library-user-guide/upgrading/57.0.0.md
/// Only struct paths are supported. A path through a map is a runtime key
/// lookup, and a field below a list has statistics per element, not per row.
#[derive(Debug, Default)]
pub(crate) struct GetFieldStatisticsResolver;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fake Variant resolver has to match its function by name and restate which leaves it reads. With #26282, a single built-in resolver could cover any function with the NestedInputAccess capability: bind gets the leaves from required_fields (which is called with each file's physical schema, so per-file shredding works), and statistics calls output_statistics. get_field would go through the same path with no GetFieldFunc downcast, and a function author would get pruning and narrowed reads from one implementation. The resolver trait would stay for the format-specific cases, like binding a cast to a sidecar leaf. It feels like this PR and #26282 fit together well: this one gives output_statistics a general place to be called from, and that one would no longer need its placeholder-column rewrite.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not convinced there can be an implementaiton that is shared by struct field access and variant. Variant has all of the quirks of needing stats to determine if the shredded field can be trusted, etc. But if there can be then I agree something like #26282 could be used to implement it with this PR as the API that backs it.

/// The built-in resolver for struct fields is always present.
///
/// [`ParquetStatisticsResolver`]: crate::statistics_resolver::ParquetStatisticsResolver
pub fn with_statistics_resolver(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only reaches scans where the caller builds the ParquetSource by hand. Is there a route for ListingTable or CREATE EXTERNAL TABLE, where the user registers a UDF but never sees the source?

@adriangb adriangb Nov 27, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can add that API later and wire it just like the other similar options.

&self,
expr: &Arc<dyn PhysicalExpr>,
) -> Option<Arc<dyn BoundExprStatistics>> {
if let Some(bound) = self.lock_bindings().get(expr) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

matches is called for every non-column node the rewrite visits, and bind starts with a HashMap lookup keyed by the expression, which hashes that node's whole subtree under the mutex. Once one key is bound the map is non-empty, so a long OR chain or a large dynamic filter hashes quadratically, per file, and again each time a dynamic filter updates. Could the resolvers get a cheap reject before the lookup?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed the quadratic behavior is not ideal. I will look into what we can do.

The matcher answered `matches(expr) -> bool`, and the statistics later
looked the same expression up again. Parquet joined the two with a
per-file `HashMap` keyed by expression. Every lookup hashed the whole
subtree of the node, so building a predicate cost the sum of all subtree
sizes per file and per dynamic filter update: O(n^2) for a left-deep
`OR` chain, and a large `IN` list was hashed again at every ancestor.

`StatisticsExprMatcher::bind` now returns an opaque binding. The
predicate keeps it in a new `StatsExpr` key and passes that key to the
`*_for_expr` methods of `PruningStatistics`. Parquet reads the
statistics, page index leaf and bloom filter leaf from the binding. The
cache, its mutex and the resolver plumbing in the row group and page
statistics are gone. Bloom filters of expressions are keyed by leaf, and
two keys on the same leaf load its bloom filter once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

catalog Related to the catalog crate common Related to common crate core Core DataFusion crate datasource Changes to the datasource crate documentation Improvements or additions to documentation physical-expr Changes to the physical-expr crates sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support row group pruning for struct field predicates

2 participants