Repository navigation
Conversation
|
run benchmarks |
|
run benchmarks |
|
run benchmarks |
|
run benchmarks |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing claude/datafusion-rowgroup-buffering-ec9abc (5ff7af6) to 39d5064 (merge-base) diff Run configurationrun benchmark clickbench_partitioned
env:
DF_FETCH_BUDGET: "104857600"
DF_FETCH_POLICY: "streaming"Results will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing claude/datafusion-rowgroup-buffering-ec9abc (5ff7af6) to 39d5064 (merge-base) diff Run configurationrun benchmark tpch
env:
DF_FETCH_BUDGET: "104857600"
DF_FETCH_POLICY: "streaming"Results will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing claude/datafusion-rowgroup-buffering-ec9abc (5ff7af6) to 39d5064 (merge-base) diff Run configurationrun benchmark tpcds
env:
DF_FETCH_BUDGET: "104857600"
DF_FETCH_POLICY: "streaming"
SIMULATE_LATENCY: "true"Results will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing claude/datafusion-rowgroup-buffering-ec9abc (5ff7af6) to 39d5064 (merge-base) diff Run configurationrun benchmark tpcds
env:
DF_FETCH_BUDGET: "104857600"
DF_FETCH_POLICY: "streaming"Results will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing claude/datafusion-rowgroup-buffering-ec9abc (5ff7af6) to 39d5064 (merge-base) diff Run configurationrun benchmark clickbench_partitioned
env:
DF_FETCH_BUDGET: "104857600"
DF_FETCH_POLICY: "streaming"
SIMULATE_LATENCY: "true"Results will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing claude/datafusion-rowgroup-buffering-ec9abc (5ff7af6) to 39d5064 (merge-base) diff Run configurationrun benchmark tpch
env:
DF_FETCH_BUDGET: "104857600"
DF_FETCH_POLICY: "streaming"CPU Details (lscpu)Details
Resource Usagetpch — base (merge-base)
tpch — branch
File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing claude/datafusion-rowgroup-buffering-ec9abc (5ff7af6) to 39d5064 (merge-base) diff Run configurationrun benchmark tpch
env:
DF_FETCH_BUDGET: "104857600"
DF_FETCH_POLICY: "streaming"
SIMULATE_LATENCY: "true"Results will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing claude/datafusion-rowgroup-buffering-ec9abc (5ff7af6) to 39d5064 (merge-base) diff Run configurationrun benchmark tpcds
env:
DF_FETCH_BUDGET: "104857600"
DF_FETCH_POLICY: "streaming"CPU Details (lscpu)Details
Resource Usagetpcds — base (merge-base)
tpcds — branch
File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing claude/datafusion-rowgroup-buffering-ec9abc (5ff7af6) to 39d5064 (merge-base) diff Run configurationrun benchmark clickbench_partitioned
env:
DF_FETCH_BUDGET: "104857600"
DF_FETCH_POLICY: "pipelined"
SIMULATE_LATENCY: "true"Results will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing claude/datafusion-rowgroup-buffering-ec9abc (5ff7af6) to 39d5064 (merge-base) diff Run configurationrun benchmark clickbench_partitioned
env:
DATAFUSION_RUNTIME_MEMORY_LIMIT: "4G"
DF_FETCH_BUDGET: "104857600"
DF_FETCH_POLICY: "streaming"
SIMULATE_LATENCY: "true"Results will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing claude/datafusion-rowgroup-buffering-ec9abc (5ff7af6) to 39d5064 (merge-base) diff Run configurationrun benchmark tpcds
env:
DATAFUSION_RUNTIME_MEMORY_LIMIT: "4G"
DF_FETCH_BUDGET: "104857600"
DF_FETCH_POLICY: "streaming"
SIMULATE_LATENCY: "true"Results will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing claude/datafusion-rowgroup-buffering-ec9abc (5ff7af6) to 39d5064 (merge-base) diff Run configurationrun benchmark tpch
env:
DATAFUSION_RUNTIME_MEMORY_LIMIT: "4G"
DF_FETCH_BUDGET: "104857600"
DF_FETCH_POLICY: "streaming"
SIMULATE_LATENCY: "true"Results will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing claude/datafusion-rowgroup-buffering-ec9abc (5ff7af6) to 39d5064 (merge-base) diff Run configurationrun benchmark clickbench_partitioned
env:
DF_FETCH_BUDGET: "104857600"
DF_FETCH_POLICY: "streaming"CPU Details (lscpu)Details
Resource Usageclickbench_partitioned — base (merge-base)
clickbench_partitioned — branch
File an issue against this benchmark runner |
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing claude/datafusion-rowgroup-buffering-ec9abc (5ff7af6) to 39d5064 (merge-base) diff Run configurationrun benchmark tpcds
env:
DF_FETCH_BUDGET: "104857600"
DF_FETCH_POLICY: "streaming"
SIMULATE_LATENCY: "true"CPU Details (lscpu)Details
Resource Usagetpcds — base (merge-base)
tpcds — branch
File an issue against this benchmark runner |
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing claude/datafusion-rowgroup-buffering-ec9abc (5ff7af6) to 39d5064 (merge-base) diff Run configurationrun benchmark tpch
env:
DF_FETCH_BUDGET: "104857600"
DF_FETCH_POLICY: "streaming"
SIMULATE_LATENCY: "true"CPU Details (lscpu)Details
Resource Usagetpch — base (merge-base)
tpch — branch
File an issue against this benchmark runner |
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing claude/datafusion-rowgroup-buffering-ec9abc (5ff7af6) to 39d5064 (merge-base) diff Run configurationrun benchmark tpch
env:
DATAFUSION_RUNTIME_MEMORY_LIMIT: "4G"
DF_FETCH_BUDGET: "104857600"
DF_FETCH_POLICY: "streaming"
SIMULATE_LATENCY: "true"CPU Details (lscpu)Details
Memory Pool PeaksPeak Base:
Pool accounting vs. process RSS Max pool peak is the largest reservation any single query in the run reached; peak RSS covers the whole invocation, including data loading and allocator retention, and the two high-water marks need not coincide in time. The gap is therefore an upper bound on what the pool did not account for, not a measurement of it.
Resource Usagetpch — base (merge-base)
tpch — branch
File an issue against this benchmark runner |
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing claude/datafusion-rowgroup-buffering-ec9abc (5ff7af6) to 39d5064 (merge-base) diff Run configurationrun benchmark clickbench_partitioned
env:
DF_FETCH_BUDGET: "104857600"
DF_FETCH_POLICY: "streaming"
SIMULATE_LATENCY: "true"CPU Details (lscpu)Details
Resource Usageclickbench_partitioned — base (merge-base)
clickbench_partitioned — branch
File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing claude/datafusion-rowgroup-buffering-ec9abc (5ff7af6) to 39d5064 (merge-base) diff Run configurationrun benchmark tpch
env:
DF_FETCH_BUDGET: "104857600"
DF_FETCH_POLICY: "pipelined"
SIMULATE_LATENCY: "true"Results will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing claude/datafusion-rowgroup-buffering-ec9abc (5ff7af6) to 39d5064 (merge-base) diff Run configurationrun benchmark tpcds
env:
DF_FETCH_BUDGET: "104857600"
DF_FETCH_POLICY: "pipelined"
SIMULATE_LATENCY: "true"Results will be posted here when complete File an issue against this benchmark runner |
|
run benchmarks |
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing claude/datafusion-rowgroup-buffering-ec9abc (5ff7af6) to 39d5064 (merge-base) diff Run configurationrun benchmark clickbench_partitioned
env:
DF_FETCH_BUDGET: "104857600"
DF_FETCH_POLICY: "pipelined"
SIMULATE_LATENCY: "true"CPU Details (lscpu)Details
Resource Usageclickbench_partitioned — base (merge-base)
clickbench_partitioned — branch
File an issue against this benchmark runner |
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing claude/datafusion-rowgroup-buffering-ec9abc (5ff7af6) to 39d5064 (merge-base) diff Run configurationrun benchmark tpcds
env:
DATAFUSION_RUNTIME_MEMORY_LIMIT: "4G"
DF_FETCH_BUDGET: "104857600"
DF_FETCH_POLICY: "streaming"
SIMULATE_LATENCY: "true"CPU Details (lscpu)Details
Memory Pool PeaksPeak Base:
Pool accounting vs. process RSS Max pool peak is the largest reservation any single query in the run reached; peak RSS covers the whole invocation, including data loading and allocator retention, and the two high-water marks need not coincide in time. The gap is therefore an upper bound on what the pool did not account for, not a measurement of it.
Resource Usagetpcds — base (merge-base)
tpcds — branch
File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing claude/datafusion-rowgroup-buffering-ec9abc (bcbbda1) to 39d5064 (merge-base) diff Run configurationrun benchmark clickbench_partitioned
env:
DF_FETCH_BUDGET: "104857600"
DF_FETCH_POLICY: "streaming"
SIMULATE_LATENCY: "true"Results will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing claude/datafusion-rowgroup-buffering-ec9abc (bcbbda1) to 39d5064 (merge-base) diff Run configurationrun benchmark tpcds
env:
DF_FETCH_BUDGET: "104857600"
DF_FETCH_POLICY: "streaming"
SIMULATE_LATENCY: "true"Results will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing claude/datafusion-rowgroup-buffering-ec9abc (672d6fc) to ad20f7b (merge-base) diff Run configurationrun benchmark tpch10
env:
DF_FETCH_BUDGET: "104857"
DF_FETCH_POLICY: "streaming"
SIMULATE_LATENCY: "true"Trigger commentResults will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing claude/datafusion-rowgroup-buffering-ec9abc (672d6fc) to ad20f7b (merge-base) diff Run configurationrun benchmark tpch10
env:
DF_FETCH_BUDGET: "104857"
DF_FETCH_POLICY: "streaming"
SIMULATE_LATENCY: "true"Trigger commentCPU Details (lscpu)Details
Resource Usagetpch10 — base (merge-base)
tpch10 — branch
File an issue against this benchmark runner |
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing claude/datafusion-rowgroup-buffering-ec9abc (672d6fc) to ad20f7b (merge-base) diff Run configurationrun benchmark tpch10
env:
DF_FETCH_BUDGET: "104857600"
DF_FETCH_POLICY: "streaming"
SIMULATE_LATENCY: "true"Trigger commentCPU Details (lscpu)Details
Resource Usagetpch10 — base (merge-base)
tpch10 — branch
File an issue against this benchmark runner |
|
run benchmark tpch10 env:
SIMULATE_LATENCY: "true"
changed:
env:
DATAFUSION_EXECUTION_PARQUET_READ_AHEAD_BYTES: "1073741824" |
|
run benchmark tpch10 env:
SIMULATE_LATENCY: "true"
changed:
env:
DATAFUSION_EXECUTION_PARQUET_READ_AHEAD_BYTES: "1048576" |
|
run benchmark tpch10 env:
SIMULATE_LATENCY: "true"
DATAFUSION_RUNTIME_MEMORY_LIMIT: "1G"
changed:
env:
DATAFUSION_EXECUTION_PARQUET_READ_AHEAD_BYTES: "1048576" |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing claude/datafusion-rowgroup-buffering-ec9abc (672d6fc) to ad20f7b (merge-base) diff Run configurationrun benchmark tpch10
env:
DATAFUSION_RUNTIME_MEMORY_LIMIT: "1G"
SIMULATE_LATENCY: "true"
changed:
env:
DATAFUSION_EXECUTION_PARQUET_READ_AHEAD_BYTES: "1048576"Trigger commentResults will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing claude/datafusion-rowgroup-buffering-ec9abc (672d6fc) to ad20f7b (merge-base) diff Run configurationrun benchmark tpch10
env:
SIMULATE_LATENCY: "true"
changed:
env:
DATAFUSION_EXECUTION_PARQUET_READ_AHEAD_BYTES: "1048576"Trigger commentResults will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing claude/datafusion-rowgroup-buffering-ec9abc (672d6fc) to ad20f7b (merge-base) diff Run configurationrun benchmark tpch10
env:
SIMULATE_LATENCY: "true"
changed:
env:
DATAFUSION_EXECUTION_PARQUET_READ_AHEAD_BYTES: "1073741824"Trigger commentResults will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing claude/datafusion-rowgroup-buffering-ec9abc (672d6fc) to ad20f7b (merge-base) diff Run configurationrun benchmark tpch10
env:
SIMULATE_LATENCY: "true"
changed:
env:
DATAFUSION_EXECUTION_PARQUET_READ_AHEAD_BYTES: "1073741824"Trigger commentCPU Details (lscpu)Details
Resource Usagetpch10 — base (merge-base)
tpch10 — branch
File an issue against this benchmark runner |
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing claude/datafusion-rowgroup-buffering-ec9abc (672d6fc) to ad20f7b (merge-base) diff Run configurationrun benchmark tpch10
env:
DATAFUSION_RUNTIME_MEMORY_LIMIT: "1G"
SIMULATE_LATENCY: "true"
changed:
env:
DATAFUSION_EXECUTION_PARQUET_READ_AHEAD_BYTES: "1048576"Trigger commentCPU Details (lscpu)Details
Memory Pool PeaksPeak Base:
Pool accounting vs. process RSS Max pool peak is the largest reservation any single query in the run reached; peak RSS covers the whole invocation, including data loading and allocator retention, and the two high-water marks need not coincide in time. The gap is therefore an upper bound on what the pool did not account for, not a measurement of it.
Resource Usagetpch10 — base (merge-base)
tpch10 — branch
File an issue against this benchmark runner |
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing claude/datafusion-rowgroup-buffering-ec9abc (672d6fc) to ad20f7b (merge-base) diff Run configurationrun benchmark tpch10
env:
SIMULATE_LATENCY: "true"
changed:
env:
DATAFUSION_EXECUTION_PARQUET_READ_AHEAD_BYTES: "1048576"Trigger commentCPU Details (lscpu)Details
Resource Usagetpch10 — base (merge-base)
tpch10 — branch
File an issue against this benchmark runner |
672d6fc to
bfeb4fd
Compare
|
run benchmark tpch10 env:
SIMULATE_LATENCY: "true"
changed:
env:
DATAFUSION_EXECUTION_PARQUET_READ_AHEAD_BYTES: "1073741824" |
|
run benchmark tpch10 env:
SIMULATE_LATENCY: "true"
changed:
env:
DATAFUSION_EXECUTION_PARQUET_READ_AHEAD_BYTES: "16777216" |
|
run benchmark tpch10 env:
SIMULATE_LATENCY: "true"
changed:
env:
DATAFUSION_EXECUTION_PARQUET_READ_AHEAD_BYTES: "4194304" |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing claude/datafusion-rowgroup-buffering-ec9abc (7609e61) to fc0a4ed (merge-base) diff Run configurationrun benchmark tpch10
env:
SIMULATE_LATENCY: "true"
changed:
env:
DATAFUSION_EXECUTION_PARQUET_READ_AHEAD_BYTES: "1073741824"Trigger commentResults will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing claude/datafusion-rowgroup-buffering-ec9abc (7609e61) to fc0a4ed (merge-base) diff Run configurationrun benchmark tpch10
env:
SIMULATE_LATENCY: "true"
changed:
env:
DATAFUSION_EXECUTION_PARQUET_READ_AHEAD_BYTES: "4194304"Trigger commentResults will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing claude/datafusion-rowgroup-buffering-ec9abc (7609e61) to fc0a4ed (merge-base) diff Run configurationrun benchmark tpch10
env:
SIMULATE_LATENCY: "true"
changed:
env:
DATAFUSION_EXECUTION_PARQUET_READ_AHEAD_BYTES: "16777216"Trigger commentResults will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing claude/datafusion-rowgroup-buffering-ec9abc (7609e61) to fc0a4ed (merge-base) diff Run configurationrun benchmark tpch10
env:
SIMULATE_LATENCY: "true"
changed:
env:
DATAFUSION_EXECUTION_PARQUET_READ_AHEAD_BYTES: "1073741824"Trigger commentMode: sequential (all base iterations, then all branch iterations) CPU Details (lscpu)Details
Resource Usagetpch10 — base (merge-base)
tpch10 — branch
File an issue against this benchmark runner |
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing claude/datafusion-rowgroup-buffering-ec9abc (7609e61) to fc0a4ed (merge-base) diff Run configurationrun benchmark tpch10
env:
SIMULATE_LATENCY: "true"
changed:
env:
DATAFUSION_EXECUTION_PARQUET_READ_AHEAD_BYTES: "16777216"Trigger commentMode: sequential (all base iterations, then all branch iterations) CPU Details (lscpu)Details
Resource Usagetpch10 — base (merge-base)
tpch10 — branch
File an issue against this benchmark runner |
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing claude/datafusion-rowgroup-buffering-ec9abc (7609e61) to fc0a4ed (merge-base) diff Run configurationrun benchmark tpch10
env:
SIMULATE_LATENCY: "true"
changed:
env:
DATAFUSION_EXECUTION_PARQUET_READ_AHEAD_BYTES: "4194304"Trigger commentMode: sequential (all base iterations, then all branch iterations) CPU Details (lscpu)Details
Resource Usagetpch10 — base (merge-base)
tpch10 — branch
File an issue against this benchmark runner |
…s (mechanical) EXPERIMENT. The Parquet scan in the next commits needs three push decoder changes that no arrow-rs release has: - `RequestGranularity::Batch` (apache/arrow-rs#11238) - `ParquetPushDecoder::retain_row_groups` and `active_row_group` (apache/arrow-rs#12456) - `active_row_group` under batch-granular `try_decode`, which needs both Patch every arrow crate to pydantic/arrow-rs at f37f753637572dde5602e5b28ac0544aed893259 (branch `claude/push-decoder-batch-granularity-60.2.0-v3`). That commit is the 60.2.0 release plus these three changes, so the pin adds no other unreleased arrow-rs change. `Cargo.lock` follows the new source. Mechanical: no DataFusion code changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…etain_row_groups The stream kept `rg_plan` in lock-step with the decoder by hand. At each row-group boundary it called `peek_next_row_group` to pop the row groups that the decoder skipped without a reader, and it popped the started row group itself. Runtime row-group pruning rebuilt the decoder with `into_builder` and `with_row_group_selections`. The decoder does not expose the selections of the row groups it has not started, so each `RgPlanEntry` kept a copy of its selection for that rebuild. A plan that trailed the decoder read a delivered row group again (apache#24352). The pinned arrow-rs has two methods that make the decoder the owner of this state (apache/arrow-rs#12456): - `ParquetPushDecoder::active_row_group` names the row group that the decoder reads. After each decoder call, `follow_decoder` credits and pops `rg_plan` up to and including that row group. `rg_plan` thus holds only row groups that the decoder has not started. - `ParquetPushDecoder::retain_row_groups` drops queued row groups in place. It keeps the selection of each kept row group and the offset and limit budget, and it releases the buffered bytes of the dropped row groups. `prune_row_groups` calls it with the pruner and credits the dropped entries. Only the `RowFilter` toggle for fully matched row groups still rebuilds the decoder. It finds the entry of the next row group with `peek_next_row_group`, so only scans with a row filter pay for the peek. No behavior change. Removes `sync_rg_plan_to_decoder_frontier`, `advance_rg_plan_to` and its tests, `rebuild_decoder_at_boundary`, `RgPlanEntry::selection`, and the copies that the opener made for it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Parquet read-ahead needs a user-facing switch and a window size. The option must exist in `ParquetOptions` and its protobuf form before the scan can read it. Add `ParquetOptions::read_ahead_bytes` (`Option<usize>`, default unset) with its documentation, and carry it through the protobuf conversions. The option has no effect in this commit. The next commit reads it. `ParquetOptions` has public fields, so an exhaustive struct literal must add the new one. The upgrade guide gets an entry for that. Mechanical parts: `datafusion_common.proto` field 44, the generated `prost.rs` and `pbjson.rs` files, `configs.md`, and the `information_schema.slt` listing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A Parquet scan buffers a full row group before it decodes a row: the push decoder does not return a batch until every byte that the row group reads has arrived. On object storage, I/O and decoding then alternate, and resident bytes and time to first batch depend on how the file was written (apache#18470). With `datafusion.execution.parquet.read_ahead_bytes` set, the scan builds the same `ParquetPushDecoder` with `RequestGranularity::Batch` and drives it with `try_decode` (`transition_streaming`). `ReadAhead` does all fetches of the scan: - Plan: it reads `ParquetPushDecoder::scan_plan` in decode order, as far as the window reaches. After the decoder drops row groups or is rebuilt, it takes a new plan. - Runs: it merges planned ranges into one contiguous range per fetch when the gap is at most `clamp(window / 16, 64 KiB, 1 MiB)`. A run never crosses a row group. Each run is one `AsyncFileReader::get_bytes` call and one buffer in the decoder. - Readers: each fetch in flight has its own reader, created with the opener's `ParquetFileReaderFactory::create_reader` call. Custom factories and `bytes_scanned` keep working. - Scheduling: a fetch starts when the window has room for `min(target_part, rest of the next row group)` bytes, with `target_part = clamp(window / 2, 64 KiB, 8 MiB)`. Small row groups are fetched whole and large ones in parts. At most 8 fetches are in flight. - `NeedsData`: a range inside a run in flight waits for that run. Other ranges are fetched at once, concurrently with read-ahead. - Memory: a `ParquetReadAhead[partition]` consumer is charged for every run at its full length, gaps included, while the run is in flight and until `Bytes::is_unique` shows that the decoder released it. Bytes that the decoder asks for use `grow`. Read-ahead uses `try_grow`, so it takes only what the pool grants. - Pruning: read-ahead skips the row groups that the dynamic pruner already prunes, and drops fetched runs of row groups that the decoder does not read. A `reverse_rows` scan buffers a full row group before it returns a row. It keeps the `try_next_reader` driver and `RequestGranularity::RowGroup`, and `ReadAhead` fetches the next row groups while it decodes. The scan loads the page index when a row group is larger than the window, because the decoder then fetches pages. Two metrics are registered only for a file that is read with read-ahead: `read_ahead_bytes_fetched` (bytes fetched before the decoder asked for them, gaps included) and `read_ahead_wait_time` (time the scan waited for fetches of ranges that the decoder asked for). Without the option, the scan is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
7609e61 to
753ebfc
Compare
The decoder holds each column chunk's dictionary page until the row group ends. A run that merged the dictionary page with data pages stayed allocated, and charged in the read-ahead window, as long as the decoder held any slice of it. On large row groups this filled the window: read-ahead stopped and the decoder fell back to small per-batch fetches. TPC-H Q6 on 128 MB row groups with a 4 MiB window took 11.9 s with 3,057 GETs under 64 KiB, and 2.9 s with 304 such GETs when dictionary pages are fetched alone. `merge_runs` now never merges a dictionary-page unit with a neighbour. `ReadAhead` records the dictionary pages of the plan per file, and a requested range that is a dictionary page is a run of its own too. The units of whole-chunk columns are unchanged: the decoder requests their dictionary page with the column chunk. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A read-ahead take was capped at `target_part = min(8 MiB, window / 2)`, so a row group larger than that was split even when the window had room for all of it. Each part costs one GET per column chunk it reads. With a 1 MiB window, `target_part` is 512 KiB while a TPC-H row group projection is about 868 KiB, and TPC-H Q6 on small row groups made 3,161 GETs where `main` makes 525. A take now includes the rest of the next row group when it fits in the free window, whatever `target_part` is. Row groups larger than the free window are still read in parts of `target_part`. The start condition is unchanged: `free >= min(target_part, rest of the next row group)`. The rest of the plan is never smaller than the rest of that row group, so it does not lower the bound. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Which issue does this PR close?
ParquetPushDecoder(feat(parquet): let ParquetPushDecoder decode a batch as soon as its pages are pushed arrow-rs#11238). That PR now includes row filters, page release and the row selection policy.ParquetPushDecoder::scan_plan(feat(parquet): add ParquetPushDecoder::scan_plan for read-ahead planning arrow-rs#10555) is in arrow-rs 60.1.0.Rationale for this change
Today a Parquet scan buffers a whole row group before it decodes anything: the push decoder's
NeedsDatadoes not resolve until every projected byte of the row group has arrived. Under object-store latency this has two effects:This PR schedules I/O at batch granularity. It uses the normal push-decoder path and adds only a read-ahead layer on top.
What changes are included in this PR?
One new Parquet read option:
datafusion.execution.parquet.read_ahead_bytesNonemain.The intended use: leave it unset for local disks (no speculative reads), set it for object storage.
ParquetPushDecoderas the default path, withRequestGranularity::Batch, and drives it withtry_decode.NeedsDataasks only for the pages of the next batch, and the decoder returns the batch as soon as they are pushed. The decoder releases pages when their rows are emitted.ReadAheadfetches ahead from the decoder's plan. It readsscan_plan()in decode order and fetches in the background while decoder-held bytes plus in-flight bytes stay within the window.NeedsDatais always fetched. A blocking fetch is filled with read-ahead up to the window, except the first fetch of a file whose plan is larger than the window, so the first batch comes early.pushdown_filters, the decoder evaluates predicates one window ofbatch_sizerows at a time. Read-ahead also fetches the ranges that a predicate can make unnecessary, in plan order. Without this, each window waits for one round trip per predicate plus one: with simulated latency this made TPC-H 0.50x and TPC-DS 0.14x. With it, TPC-H is 3.79x and TPC-DS 1.74x, with no slower queries (measured on an earlier revision). The worst case reads about the bytes thatmainreads without pushdown. This matches what DuckDB, ClickHouse (remote) and Arrow C++pre_bufferdo by default.ParquetReadAhead[partition]reservation that equals the bytes the decoder holds plus the bytes in flight. Bytes thatNeedsDatarequests usegrow: they can exceed the pool limit, so the scan never blocks or fails on them. Read-ahead usestry_grow: it fetches only what the pool can give, and tries again at the next decode step. With the default unbounded pool, behavior does not change. The pool comes fromFileSource::with_memory_pool, whichmainalready has.main. Read-ahead skips row groups that the dynamic pruner has already pruned. Fetched bytes of row groups that are pruned later are dropped.reverse_rowsscan does not use this path. It buffers a full row group before it returns a row.Changes in this revision
ParquetRecordBatchReaderover a customChunkReader(SharedBuffers)RequestGranularity::Batchmaintry_decode.DF_FETCH_POLICY,DF_FETCH_BUDGET,DF_FETCH_CONDITIONALenvironment variablesread_ahead_bytesconfig option (also in proto)MemoryPoolreservation: required bytesgrow, read-aheadtry_growtarget_partitions × windowscan_planis released. The arrow-rs work is one PR now.The pin is
pydantic/arrow-rsatd3dc9a193(branchclaude/push-decoder-batch-granularity-60.2.0): the 60.2.0 release plus one commit, the squashed diff of apache/arrow-rs#11238. Benchmarks againstmaintherefore measure only that change. This pin is why the PR cannot merge as-is.This PR is four commits on
main:71c66f37cb664bfd1cread_ahead_bytesoptionad7dea8f0MemoryPool672d6fca1read_ahead_bytes_fetchedandread_ahead_wait_timeThe earlier revisions (sync reader,
pipelinedandbatchedpolicies) are in branchclaude/datafusion-rowgroup-buffering-history.What this does not do
GreedyMemoryPoolbefore another operator asks for them. A headroom rule (for example, stop read-ahead above X% of the pool) is a follow-up that needs measurements.get_byte_ranges.Are these changes tested?
This revision (rebased on
mainatad20f7b54, new arrow-rs pin):datafusion-datasource-parquetunit tests pass (320), includingopener::test::read_ahead.ParquetOptionspass.information_schemaandparquetsqllogictest files pass.Earlier revision (before the rebase):
read_ahead_bytesforced to 65536 for the whole suite (a local default change, not committed), 522 of 523 pass. The one difference isinformation_schema.slt, which prints the changed default. The small window forces many read-ahead waves and releases.pushdown_filters=true(forced on with a local patch, not committed) for 18 filter-heavy files: the default and streaming policies fail on the same statements, allEXPLAINdifferences caused by pushdown itself. The--completeoutput is byte-identical between the two policies.datafusion-datasource-parquetunit tests: all pass with read-ahead off and with it forced on. The proto round-trip tests forParquetOptionspass.opener::test::read_ahead): a scan with a 64 KiB pool is correct and returns all reserved bytes; the reservation stays within the window plus one fetch and returns to 0; a filtered scan reads conditional ranges ahead with a large pool and reads exactly the baseline bytes with a 1-byte pool. A unit test covers the accounting helper.NeedsDatarequests.main.Earlier results
Previous revision (
16c5ba3, sync reader), adriangbot GKE vs merge-base, 100 MB window. Full tables are in the benchmark summary.SIMULATE_LATENCYNew runs for this revision are requested below.
Are there any user-facing changes?
Yes: one new configuration option, off by default. With the defaults, behavior is the same as
main. The[patch.crates-io]pin means this PR cannot merge in its current form.🤖 Generated with Claude Code