Repository navigation
feat: configure Iceberg Arrow reader options per query - #142
Open
alexanderbianchi wants to merge 3 commits into
Open
alexanderbianchi wants to merge 3 commits into
alexanderbianchi wants to merge 3 commits into
Conversation
alexanderbianchi
marked this pull request as draft
November 24, 2026 14:04
alexanderbianchi
marked this pull request as ready for review
November 24, 2026 14:16
alexanderbianchi
force-pushed
the
codex/query-reader-options
branch
from
November 24, 2026 16:19
59d67ca to
d4a11e8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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::ArrowReaderOptionsdirectly when building a config for a query: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_readerstill takes precedence.Without a typed override, the reader uses the session settings below. SQL users can register
IcebergDataFusionConfigand run, for example,SET iceberg.execution.data_file_concurrency_limit = 4before planning a scan.datafusion.executionbatch_sizedatafusion.execution.parquetpruning,enable_page_index,bloom_filter_on_read,metadata_size_hinticeberg.executiondata_file_concurrency_limit(default one per output partition)iceberg.execution.parquetrange_coalesce_bytes,range_fetch_concurrency,preload_column_index,preload_offset_index,preload_page_indexThis enables Bloom-filter reads by default in the session-settings path, following DataFusion. Iceberg accepts the stored
preload_page_indexflag 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, andcargo test --workspace --locked.