You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
parquet: PageIndex cannot be constructed outside the crate #10824
PageIndex::new is pub(crate), and PageIndex has no other constructor or mutators.
However, since external code cannot create (or modify) a PageIndex, the only thing a user outside the parquet crate can do with that method is remove or move an existing index.
Before #10719, external code could build ParquetMetaData values containing page indexes, e.g.:
ColumnIndexBuilder and OffsetIndexBuilder are still public, so the individual ColumnIndexMetaData / OffsetIndexMetaData values can still be built — they just cannot be assembled into a PageIndex / attached to a ParquetMetaData anymore.
Expected behavior
External code can construct a ParquetMetaData with synthetic page indexes (DataFusion does this in tests that exercise page-level statistics handling, e.g. datafusion/datasource-parquet/src/statistics_order_tests.rs).
Actual behavior
There is no public way to construct or modify a PageIndex, so such code no longer compiles against main.
Additional context
Found while testing DataFusion against arrow-rs main ahead of the arrow 60 release (#9880, apache/datafusion#24366).
Activity
Update to latest arrow-rs pin (e1e71ea8) and adapt to upstream API ch…
alamb commentedon Aug 24, 2026
@etseidl has a PR with a builder that is probably a better idea:
PageIndexBuilderand prototype selective population #10784Add `PageIndexBuilder` and `PageIndexProvider` for Parquet page index…
Add `PageIndexBuilder` and `PageIndexProvider` for Parquet page index…
Add `PageIndexBuilder` and `PageIndexProvider` for Parquet page index…