Skip to content

Comments

perf: Add Comet config for native Iceberg reader's data file concurrency [iceberg]#3584

Merged
mbutrovich merged 1 commit intoapache:mainfrom
mbutrovich:iceberg-data-file-concurrency-limit
Feb 25, 2026
Merged

perf: Add Comet config for native Iceberg reader's data file concurrency [iceberg]#3584
mbutrovich merged 1 commit intoapache:mainfrom
mbutrovich:iceberg-data-file-concurrency-limit

Conversation

@mbutrovich
Copy link
Contributor

@mbutrovich mbutrovich commented Feb 24, 2026

Which issue does this PR close?

N/A.

Rationale for this change

The native Iceberg scan currently hardcodes data_file_concurrency_limit to DataFusion's target_partitions(), which doesn't give users control over per-task file read parallelism. For tables with many scan tasks, increasing concurrency overlaps I/O latency and improves throughput.

We tested this in #3551 and saw good speedup with a value of 4 in an object store setting.

What changes are included in this PR?

Adds spark.comet.scan.icebergNative.dataFileConcurrencyLimit config that controls iceberg-rust's ArrowReaderBuilder::with_data_file_concurrency_limit. The value is serialized through protobuf from the JVM to native. Defaults to 1 to preserve deterministic output ordering in tests that lack an explicit ORDER BY.

How are these changes tested?

Existing tests.

Copy link
Member

@andygrove andygrove left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @mbutrovich

@mbutrovich mbutrovich merged commit d0aa1ff into apache:main Feb 25, 2026
213 of 215 checks passed
@mbutrovich mbutrovich deleted the iceberg-data-file-concurrency-limit branch February 25, 2026 00:44
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.

2 participants