Skip to content

introduce StatisticsConverter::from_column_index#9540

Open
friendlymatthew wants to merge 1 commit intoapache:mainfrom
pydantic:friendlymatthew/statistics-converter-from-col-index
Open

introduce StatisticsConverter::from_column_index#9540
friendlymatthew wants to merge 1 commit intoapache:mainfrom
pydantic:friendlymatthew/statistics-converter-from-col-index

Conversation

@friendlymatthew
Copy link
Contributor

Which issue does this PR close?

Rationale for this change

This PR adds a constructor StatisticsConverter::from_column_index that bypasses schema resolution and accepts a pre-resolved leaf column index directly

Datafusion's pruning predicate system needs stats for struct fields to support predicate pushdown on expressions like WHERE my_struct.field > 67. Datafusion already resolves struct fields to Parquet leaf indices elsewhere, but has no way to pass that index to StatisticsConverter

@github-actions github-actions bot added the parquet Changes to the parquet crate label Mar 11, 2026
@friendlymatthew
Copy link
Contributor Author

Related to apache/datafusion#20871

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

Labels

parquet Changes to the parquet crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

StatisticsConverter does not support nested fields (e.g. struct fields)

1 participant