Skip to content

feat: configure Iceberg Arrow reader options per query - #142

Open
alexanderbianchi wants to merge 3 commits into
apache:mainfrom
alexanderbianchi:codex/query-reader-options
Open

alexanderbianchi wants to merge 3 commits into
apache:mainfrom
alexanderbianchi:codex/query-reader-options

Conversation

@alexanderbianchi

@alexanderbianchi alexanderbianchi commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Depends on #141 for the upstream reader options API. This carries forward the concurrency and pruning settings from #126.

Rust callers can pass the upstream iceberg::arrow::ArrowReaderOptions directly when building a config for a query:

let reader = ArrowReaderOptions::builder().with_batch_size(2048).build();
let query_config = session_config.clone().with_extension(Arc::new(reader));

Both Iceberg table providers use that complete value when planning the scan. Fields the caller leaves unset take Iceberg defaults, including host parallelism for unset file concurrency. An explicit IcebergDataSourceBuilder::with_reader still takes precedence.

Without a typed override, the reader uses the session settings below. SQL users can register IcebergDataFusionConfig and run, for example, SET iceberg.execution.data_file_concurrency_limit = 4 before planning a scan.

Config prefix Reader settings
datafusion.execution batch_size
datafusion.execution.parquet pruning, enable_page_index, bloom_filter_on_read, metadata_size_hint
iceberg.execution data_file_concurrency_limit (default one per output partition)
iceberg.execution.parquet range_coalesce_bytes, range_fetch_concurrency, preload_column_index, preload_offset_index, preload_page_index

This enables Bloom-filter reads by default in the session-settings path, following DataFusion. Iceberg accepts the stored preload_page_index flag but derives its effective value per file from predicates and deletes.

Two scan tests cover the integration. A typed batch size of 137 overrides the session setting of 2,000. Enabling row-group pruning returns the same rows with fewer reads.

Verified locally with cargo fmt --all -- --check, cargo clippy --workspace --locked --all-targets -- -D warnings, and cargo test --workspace --locked.

@alexanderbianchi
alexanderbianchi marked this pull request as draft November 24, 2026 14:04
@alexanderbianchi
alexanderbianchi marked this pull request as ready for review November 24, 2026 14:16
@alexanderbianchi
alexanderbianchi force-pushed the codex/query-reader-options branch from 59d67ca to d4a11e8 Compare November 24, 2026 16:19
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