You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "zhuqi-lucas (via GitHub)" <gi...@apache.org> on 2026/04/13 06:40:14 UTC
[PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
zhuqi-lucas opened a new pull request, #21580:
URL: https://github.com/apache/datafusion/pull/21580
## Which issue does this PR close?
Closes #21317
## Rationale for this change
When sort pushdown is active for Inexact paths (e.g., reverse scan or statistics-based reordering that can't be elevated to Exact), row groups within a file are currently read in their original order. This means TopK queries may read suboptimal row groups first, delaying threshold tightening.
By reordering row groups by their min/max statistics to match the requested sort order, TopK finds optimal values first. This gives two levels of benefit:
1. **Row-level filtering (immediate):** TopK sets a tight dynamic filter threshold after reading the first (best) row group. For subsequent row groups, the dynamic filter acts as a row-level filter โ the parquet reader uses page index to skip non-matching pages and avoids decoding non-sort columns for filtered rows. Significant I/O reduction for wide tables.
2. **Row-group-level skipping (follow-up with morsel API):** Once morsel-driven scanning lands, the dynamic filter can be re-evaluated between row groups, skipping entire row groups when their min statistics exceed the TopK threshold.
## What changes are included in this PR?
- Add `reorder_by_statistics` to `PreparedAccessPlan` that sorts `row_group_indexes` by the first sort column's min values (ASC or DESC based on sort options)
- Add `sort_order_for_reorder: Option<LexOrdering>` field to `ParquetMorselizer` and `ParquetSource`
- Pass sort order from `ParquetSource::try_pushdown_sort` (Inexact path) through to the opener
- Reorder is applied after pruning but before reverse โ the two optimizations compose
- Graceful fallback (returns plan unchanged) when:
- `row_selection` is present (remapping is complex)
- 0 or 1 row groups (nothing to reorder)
- Sort expression is not a simple column reference
- Statistics converter cannot be built (column missing, type mismatch, etc.)
- Min values cannot be extracted from statistics
## Are these changes tested?
Yes. Added 8 unit tests in `access_plan.rs` covering:
- ASC reorder with unordered row groups
- DESC reorder
- Single row group (no reorder needed)
- Reorder with some row groups skipped (pruning applied first)
- Skip with `row_selection` present
- Already-sorted row groups preserved
- Skip when sort expr is not a simple column (e.g., `col + 1`)
- Skip when column is missing from schema
All existing tests continue to pass.
## Are there any user-facing changes?
No API changes. Users benefit from improved TopK performance on queries like `SELECT * FROM t ORDER BY col LIMIT N` when:
- Files have multiple row groups
- Row groups are not in sort order (e.g., append-heavy workloads)
- Statistics are available on the sort column
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4241943544
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4241879290)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark sort_pushdown.json
--------------------
โโโโโโโโโณโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Q1 โ FAIL โ FAIL โ incomparable โ
โ Q2 โ FAIL โ FAIL โ incomparable โ
โ Q3 โ FAIL โ FAIL โ incomparable โ
โ Q4 โ FAIL โ FAIL โ incomparable โ
โโโโโโโโโดโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 0.00ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 0.00ms โ
โ Average Time (HEAD) โ 0.00ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 0.00ms โ
โ Queries Faster โ 0 โ
โ Queries Slower โ 0 โ
โ Queries with No Change โ 0 โ
โ Queries with Failure โ 4 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**sort_pushdown โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 0.2s |
| Peak memory | 3.1 GiB |
| Avg memory | 3.1 GiB |
| CPU user | 0.1s |
| CPU sys | 0.1s |
| Peak spill | 0 B |
**sort_pushdown โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 0.2s |
| Peak memory | 3.1 GiB |
| Avg memory | 3.1 GiB |
| CPU user | 0.1s |
| CPU sys | 0.1s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4282452179
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4282410384)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4282410384-1610-tbxjl 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (c94bdcccad3916a72f2644b4cac5386f009c94a1) to 466c3ea (merge-base) [diff](https://github.com/apache/datafusion/compare/466c3eaecfd9cf2b80b365e869383daf1f30b663..c94bdcccad3916a72f2644b4cac5386f009c94a1) using: clickbench_partitioned
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4275890504
Benchmark for [this request](https://github.com/apache/datafusion/pull/21580#issuecomment-4275886595) failed.
Last 20 lines of output:
<details><summary>Click to expand</summary>
```
struct_query_sql
substr
substr_index
substring
sum
to_char
to_hex
to_local_time
to_time
to_timestamp
topk_aggregate
topk_repartition
translate
trim
trunc
unhex
upper
uuid
window_query_sql
with_hashes
```
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4282162124
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4282133777)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4282133777-1603-cwfnx 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (39961788746d0ade8fce9c4b43cabca82a9d8397) to 466c3ea (merge-base) [diff](https://github.com/apache/datafusion/compare/466c3eaecfd9cf2b80b365e869383daf1f30b663..39961788746d0ade8fce9c4b43cabca82a9d8397) using: tpch
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4282334356
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4282216441)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4282216441-1608-nsdjt 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (e4e11b2486e598d092f89e65e7504df91906aea2) to 466c3ea (merge-base) [diff](https://github.com/apache/datafusion/compare/466c3eaecfd9cf2b80b365e869383daf1f30b663..e4e11b2486e598d092f89e65e7504df91906aea2) using: tpcds
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4234376541
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4234363943)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4234363943-1135-k9dwc 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (a013bf6b9c27269f56d55cdfbb5ddd24ef1992b6) to 29c5dd5 (merge-base) [diff](https://github.com/apache/datafusion/compare/29c5dd5b8f7c60663ada64f34e15ecf22a7dc9a1..a013bf6b9c27269f56d55cdfbb5ddd24ef1992b6) using: tpcds
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4234434917
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4234422910)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4234422910-1139-wpv6n 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (5018882309b669e31771223f0b266179b98d9764) to 29c5dd5 (merge-base) [diff](https://github.com/apache/datafusion/compare/29c5dd5b8f7c60663ada64f34e15ecf22a7dc9a1..5018882309b669e31771223f0b266179b98d9764) using: tpch
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on code in PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#discussion_r3071325657
##########
datafusion/datasource-parquet/src/access_plan.rs:
##########
@@ -377,6 +382,106 @@ impl PreparedAccessPlan {
})
}
+ /// Reorder row groups by their min statistics for the given sort order.
+ ///
+ /// This helps TopK queries find optimal values first. For ASC sort,
+ /// row groups with the smallest min values come first. For DESC sort,
+ /// row groups with the largest min values come first.
+ ///
+ /// Gracefully skips reordering when:
+ /// - There is a row_selection (too complex to remap)
+ /// - 0 or 1 row groups (nothing to reorder)
+ /// - Sort expression is not a simple column reference
+ /// - Statistics are unavailable
+ pub(crate) fn reorder_by_statistics(
Review Comment:
Thanks @Dandandan for review! That's a great extension. The reorder_by_statistics method is generic enough to take any LexOrdering โ it doesn't need to be tied to TopK specifically. So extending this for GROUP BY should be a matter of:
1. Computing a preferred RG ordering from grouping keys in the aggregate planner
2. Passing it through to ParquetSource::sort_order_for_reorder
Happy to track this as a follow-up issue. Will open one after this PR lands.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4234461634
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4234363943)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark tpcds_sf1.json
--------------------
โโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ QQuery 1 โ 6.76 / 7.21 ยฑ0.73 / 8.66 ms โ 6.66 / 7.05 ยฑ0.75 / 8.56 ms โ no change โ
โ QQuery 2 โ 145.75 / 146.85 ยฑ1.06 / 148.46 ms โ 144.70 / 146.59 ยฑ1.26 / 148.61 ms โ no change โ
โ QQuery 3 โ 114.48 / 115.73 ยฑ0.96 / 117.37 ms โ 113.70 / 114.51 ยฑ0.53 / 115.15 ms โ no change โ
โ QQuery 4 โ 1336.62 / 1383.93 ยฑ28.36 / 1413.36 ms โ 1341.10 / 1369.70 ยฑ25.80 / 1400.67 ms โ no change โ
โ QQuery 5 โ 172.96 / 173.76 ยฑ0.93 / 175.52 ms โ 172.87 / 173.71 ยฑ1.06 / 175.76 ms โ no change โ
โ QQuery 6 โ 831.80 / 869.64 ยฑ22.94 / 893.03 ms โ 817.74 / 885.67 ยฑ36.62 / 924.77 ms โ no change โ
โ QQuery 7 โ 343.27 / 346.44 ยฑ2.73 / 351.44 ms โ 343.10 / 347.19 ยฑ4.26 / 354.07 ms โ no change โ
โ QQuery 8 โ 115.88 / 117.19 ยฑ0.88 / 118.45 ms โ 115.12 / 116.82 ยฑ1.09 / 118.14 ms โ no change โ
โ QQuery 9 โ 101.81 / 105.19 ยฑ5.49 / 116.11 ms โ 100.38 / 109.94 ยฑ10.62 / 129.61 ms โ no change โ
โ QQuery 10 โ 105.57 / 107.18 ยฑ0.90 / 108.19 ms โ 106.58 / 108.12 ยฑ1.52 / 110.94 ms โ no change โ
โ QQuery 11 โ 951.72 / 963.82 ยฑ6.42 / 968.96 ms โ 964.70 / 976.63 ยฑ7.17 / 986.01 ms โ no change โ
โ QQuery 12 โ 44.04 / 47.17 ยฑ1.95 / 49.81 ms โ 46.18 / 47.24 ยฑ0.73 / 48.28 ms โ no change โ
โ QQuery 13 โ 403.35 / 405.32 ยฑ1.43 / 407.21 ms โ 403.48 / 405.90 ยฑ1.57 / 407.89 ms โ no change โ
โ QQuery 14 โ 1009.53 / 1015.83 ยฑ5.78 / 1026.74 ms โ 1002.02 / 1020.87 ยฑ15.11 / 1047.87 ms โ no change โ
โ QQuery 15 โ 16.12 / 17.91 ยฑ1.76 / 20.55 ms โ 17.16 / 19.05 ยฑ1.98 / 22.65 ms โ 1.06x slower โ
โ QQuery 16 โ 7.31 / 7.59 ยฑ0.20 / 7.91 ms โ 7.88 / 8.59 ยฑ0.73 / 9.70 ms โ 1.13x slower โ
โ QQuery 17 โ 229.47 / 231.19 ยฑ1.44 / 233.08 ms โ 240.36 / 243.29 ยฑ2.25 / 246.13 ms โ 1.05x slower โ
โ QQuery 18 โ 126.61 / 128.79 ยฑ1.68 / 131.55 ms โ 134.44 / 135.44 ยฑ0.69 / 136.56 ms โ 1.05x slower โ
โ QQuery 19 โ 156.40 / 157.51 ยฑ0.85 / 159.00 ms โ 162.88 / 164.97 ยฑ1.38 / 166.21 ms โ no change โ
โ QQuery 20 โ 13.75 / 14.66 ยฑ0.67 / 15.79 ms โ 15.45 / 15.77 ยฑ0.24 / 15.99 ms โ 1.08x slower โ
โ QQuery 21 โ 19.51 / 20.16 ยฑ0.51 / 20.76 ms โ 21.05 / 21.45 ยฑ0.35 / 22.06 ms โ 1.06x slower โ
โ QQuery 22 โ 481.56 / 489.10 ยฑ4.25 / 493.73 ms โ 491.92 / 498.86 ยฑ8.92 / 516.06 ms โ no change โ
โ QQuery 23 โ 873.33 / 884.81 ยฑ6.37 / 892.89 ms โ 887.79 / 896.87 ยฑ10.62 / 916.66 ms โ no change โ
โ QQuery 24 โ 381.97 / 385.40 ยฑ3.50 / 391.57 ms โ 382.98 / 387.53 ยฑ2.66 / 390.54 ms โ no change โ
โ QQuery 25 โ 340.86 / 344.45 ยฑ2.19 / 346.83 ms โ 340.45 / 343.50 ยฑ1.73 / 345.12 ms โ no change โ
โ QQuery 26 โ 80.84 / 81.79 ยฑ0.82 / 83.32 ms โ 81.27 / 82.66 ยฑ0.83 / 83.86 ms โ no change โ
โ QQuery 27 โ 6.88 / 7.52 ยฑ0.74 / 8.95 ms โ 6.87 / 7.23 ยฑ0.48 / 8.16 ms โ no change โ
โ QQuery 28 โ 148.59 / 150.91 ยฑ1.93 / 153.50 ms โ 148.77 / 150.19 ยฑ1.12 / 152.08 ms โ no change โ
โ QQuery 29 โ 282.92 / 285.15 ยฑ1.50 / 287.45 ms โ 283.28 / 284.50 ยฑ1.29 / 286.63 ms โ no change โ
โ QQuery 30 โ 43.82 / 45.47 ยฑ1.49 / 48.04 ms โ 42.04 / 44.32 ยฑ1.23 / 45.71 ms โ no change โ
โ QQuery 31 โ 169.84 / 172.47 ยฑ2.27 / 176.48 ms โ 169.29 / 171.30 ยฑ1.68 / 173.99 ms โ no change โ
โ QQuery 32 โ 57.32 / 58.30 ยฑ0.57 / 59.04 ms โ 57.74 / 58.68 ยฑ0.98 / 60.05 ms โ no change โ
โ QQuery 33 โ 140.09 / 143.20 ยฑ1.85 / 145.61 ms โ 141.03 / 142.63 ยฑ0.92 / 143.86 ms โ no change โ
โ QQuery 34 โ 6.96 / 7.30 ยฑ0.30 / 7.84 ms โ 7.00 / 7.23 ยฑ0.26 / 7.61 ms โ no change โ
โ QQuery 35 โ 107.83 / 109.50 ยฑ1.10 / 110.70 ms โ 106.64 / 109.99 ยฑ2.04 / 112.55 ms โ no change โ
โ QQuery 36 โ 6.51 / 6.99 ยฑ0.48 / 7.88 ms โ 6.53 / 6.71 ยฑ0.20 / 7.07 ms โ no change โ
โ QQuery 37 โ 8.73 / 9.25 ยฑ0.67 / 10.56 ms โ 8.21 / 8.81 ยฑ0.46 / 9.57 ms โ no change โ
โ QQuery 38 โ 85.23 / 88.80 ยฑ4.94 / 98.57 ms โ 84.88 / 87.11 ยฑ3.72 / 94.52 ms โ no change โ
โ QQuery 39 โ 125.77 / 129.50 ยฑ4.44 / 137.69 ms โ 127.22 / 128.59 ยฑ1.12 / 130.62 ms โ no change โ
โ QQuery 40 โ 111.88 / 117.77 ยฑ5.93 / 128.78 ms โ 110.11 / 117.40 ยฑ8.84 / 134.20 ms โ no change โ
โ QQuery 41 โ 15.66 / 16.18 ยฑ0.59 / 17.31 ms โ 14.86 / 16.06 ยฑ1.18 / 18.18 ms โ no change โ
โ QQuery 42 โ 108.25 / 110.15 ยฑ1.58 / 112.51 ms โ 107.58 / 109.71 ยฑ1.45 / 111.73 ms โ no change โ
โ QQuery 43 โ 5.98 / 6.31 ยฑ0.27 / 6.73 ms โ 6.03 / 6.53 ยฑ0.80 / 8.12 ms โ no change โ
โ QQuery 44 โ 11.71 / 12.19 ยฑ0.68 / 13.53 ms โ 11.79 / 12.14 ยฑ0.20 / 12.35 ms โ no change โ
โ QQuery 45 โ 51.06 / 52.40 ยฑ0.78 / 53.28 ms โ 50.16 / 52.05 ยฑ1.38 / 54.23 ms โ no change โ
โ QQuery 46 โ 8.65 / 8.89 ยฑ0.17 / 9.16 ms โ 8.63 / 8.88 ยฑ0.20 / 9.11 ms โ no change โ
โ QQuery 47 โ 710.73 / 722.40 ยฑ6.30 / 729.86 ms โ 733.32 / 745.39 ยฑ6.92 / 754.00 ms โ no change โ
โ QQuery 48 โ 289.87 / 294.72 ยฑ4.74 / 300.92 ms โ 288.52 / 294.73 ยฑ6.45 / 306.78 ms โ no change โ
โ QQuery 49 โ 251.64 / 252.97 ยฑ1.41 / 255.48 ms โ 255.34 / 255.97 ยฑ0.56 / 256.78 ms โ no change โ
โ QQuery 50 โ 222.58 / 228.41 ยฑ4.03 / 235.01 ms โ 226.54 / 233.03 ยฑ5.00 / 240.31 ms โ no change โ
โ QQuery 51 โ 180.59 / 184.08 ยฑ2.83 / 187.39 ms โ 183.67 / 186.36 ยฑ1.96 / 188.77 ms โ no change โ
โ QQuery 52 โ 107.91 / 109.06 ยฑ0.89 / 110.34 ms โ 110.03 / 111.42 ยฑ0.81 / 112.47 ms โ no change โ
โ QQuery 53 โ 104.18 / 105.27 ยฑ1.15 / 107.27 ms โ 105.42 / 106.80 ยฑ1.39 / 109.23 ms โ no change โ
โ QQuery 54 โ 147.22 / 148.77 ยฑ1.46 / 151.25 ms โ 149.43 / 151.07 ยฑ0.93 / 152.31 ms โ no change โ
โ QQuery 55 โ 108.14 / 109.84 ยฑ1.73 / 112.49 ms โ 108.46 / 110.09 ยฑ1.84 / 113.65 ms โ no change โ
โ QQuery 56 โ 141.89 / 144.13 ยฑ1.81 / 146.71 ms โ 142.50 / 144.45 ยฑ1.14 / 145.70 ms โ no change โ
โ QQuery 57 โ 172.45 / 174.79 ยฑ1.90 / 177.95 ms โ 176.55 / 178.66 ยฑ1.32 / 180.38 ms โ no change โ
โ QQuery 58 โ 292.06 / 297.55 ยฑ2.86 / 299.80 ms โ 290.26 / 298.13 ยฑ6.17 / 309.20 ms โ no change โ
โ QQuery 59 โ 199.68 / 202.81 ยฑ4.20 / 210.76 ms โ 196.18 / 201.51 ยฑ2.94 / 205.01 ms โ no change โ
โ QQuery 60 โ 145.63 / 146.61 ยฑ1.30 / 149.18 ms โ 144.93 / 145.97 ยฑ0.58 / 146.66 ms โ no change โ
โ QQuery 61 โ 13.09 / 13.42 ยฑ0.22 / 13.74 ms โ 13.26 / 13.48 ยฑ0.20 / 13.79 ms โ no change โ
โ QQuery 62 โ 903.17 / 972.36 ยฑ73.07 / 1110.97 ms โ 893.58 / 940.09 ยฑ28.77 / 975.15 ms โ no change โ
โ QQuery 63 โ 104.29 / 106.12 ยฑ1.11 / 107.45 ms โ 106.05 / 107.70 ยฑ1.58 / 110.72 ms โ no change โ
โ QQuery 64 โ 684.26 / 697.36 ยฑ8.94 / 709.76 ms โ 684.46 / 694.14 ยฑ8.98 / 708.42 ms โ no change โ
โ QQuery 65 โ 251.36 / 257.09 ยฑ3.42 / 260.31 ms โ 254.62 / 257.41 ยฑ1.68 / 259.77 ms โ no change โ
โ QQuery 66 โ 239.53 / 250.02 ยฑ7.11 / 258.78 ms โ 242.28 / 255.27 ยฑ8.91 / 265.85 ms โ no change โ
โ QQuery 67 โ 312.00 / 314.58 ยฑ2.53 / 317.92 ms โ 315.48 / 320.21 ยฑ4.64 / 327.33 ms โ no change โ
โ QQuery 68 โ 8.86 / 9.83 ยฑ1.00 / 11.23 ms โ 8.85 / 10.18 ยฑ0.80 / 10.96 ms โ no change โ
โ QQuery 69 โ 101.72 / 103.97 ยฑ1.51 / 106.48 ms โ 102.05 / 104.18 ยฑ2.49 / 108.67 ms โ no change โ
โ QQuery 70 โ 349.78 / 359.97 ยฑ8.05 / 369.60 ms โ 341.41 / 352.18 ยฑ7.53 / 362.53 ms โ no change โ
โ QQuery 71 โ 135.76 / 139.31 ยฑ3.34 / 145.38 ms โ 136.47 / 138.33 ยฑ2.01 / 141.85 ms โ no change โ
โ QQuery 72 โ 610.09 / 628.55 ยฑ11.61 / 639.76 ms โ 618.47 / 625.85 ยฑ7.96 / 638.13 ms โ no change โ
โ QQuery 73 โ 7.84 / 8.48 ยฑ0.63 / 9.55 ms โ 6.99 / 9.50 ยฑ2.08 / 13.02 ms โ 1.12x slower โ
โ QQuery 74 โ 578.61 / 594.14 ยฑ8.66 / 602.76 ms โ 598.69 / 607.55 ยฑ7.77 / 620.04 ms โ no change โ
โ QQuery 75 โ 276.80 / 279.31 ยฑ2.06 / 282.54 ms โ 280.18 / 283.49 ยฑ2.96 / 288.22 ms โ no change โ
โ QQuery 76 โ 133.52 / 135.27 ยฑ1.41 / 137.64 ms โ 134.75 / 136.00 ยฑ1.23 / 138.35 ms โ no change โ
โ QQuery 77 โ 187.89 / 190.27 ยฑ1.66 / 192.45 ms โ 188.51 / 190.82 ยฑ2.30 / 194.65 ms โ no change โ
โ QQuery 78 โ 339.14 / 344.57 ยฑ3.86 / 351.08 ms โ 335.65 / 342.70 ยฑ4.54 / 349.86 ms โ no change โ
โ QQuery 79 โ 235.13 / 237.76 ยฑ1.41 / 239.31 ms โ 235.50 / 239.71 ยฑ2.39 / 242.04 ms โ no change โ
โ QQuery 80 โ 321.80 / 323.60 ยฑ1.62 / 326.10 ms โ 318.67 / 323.18 ยฑ2.71 / 327.21 ms โ no change โ
โ QQuery 81 โ 26.78 / 27.93 ยฑ1.53 / 30.94 ms โ 26.92 / 27.55 ยฑ0.60 / 28.44 ms โ no change โ
โ QQuery 82 โ 200.18 / 203.94 ยฑ2.03 / 205.90 ms โ 198.56 / 201.76 ยฑ2.24 / 204.67 ms โ no change โ
โ QQuery 83 โ 38.87 / 40.48 ยฑ1.80 / 43.37 ms โ 38.94 / 40.31 ยฑ0.99 / 41.65 ms โ no change โ
โ QQuery 84 โ 49.28 / 50.21 ยฑ0.71 / 51.04 ms โ 48.23 / 49.02 ยฑ0.65 / 49.90 ms โ no change โ
โ QQuery 85 โ 146.57 / 149.44 ยฑ1.63 / 151.12 ms โ 149.68 / 151.20 ยฑ0.91 / 152.20 ms โ no change โ
โ QQuery 86 โ 39.01 / 40.64 ยฑ0.95 / 41.99 ms โ 38.73 / 41.24 ยฑ1.97 / 44.03 ms โ no change โ
โ QQuery 87 โ 88.77 / 90.74 ยฑ2.50 / 95.56 ms โ 87.04 / 89.26 ยฑ2.80 / 94.74 ms โ no change โ
โ QQuery 88 โ 100.76 / 101.56 ยฑ0.68 / 102.61 ms โ 101.35 / 102.49 ยฑ0.61 / 103.04 ms โ no change โ
โ QQuery 89 โ 118.94 / 121.61 ยฑ1.96 / 124.28 ms โ 120.01 / 120.84 ยฑ0.76 / 121.77 ms โ no change โ
โ QQuery 90 โ 24.31 / 25.44 ยฑ1.09 / 27.13 ms โ 24.29 / 24.83 ยฑ0.42 / 25.47 ms โ no change โ
โ QQuery 91 โ 60.69 / 63.74 ยฑ1.69 / 65.64 ms โ 62.38 / 65.54 ยฑ1.79 / 67.28 ms โ no change โ
โ QQuery 92 โ 57.86 / 58.66 ยฑ0.63 / 59.28 ms โ 58.08 / 59.35 ยฑ1.21 / 61.29 ms โ no change โ
โ QQuery 93 โ 187.91 / 189.87 ยฑ2.11 / 193.21 ms โ 187.01 / 189.06 ยฑ1.65 / 192.02 ms โ no change โ
โ QQuery 94 โ 60.96 / 62.29 ยฑ1.12 / 63.81 ms โ 61.39 / 62.58 ยฑ0.65 / 63.32 ms โ no change โ
โ QQuery 95 โ 129.33 / 129.84 ยฑ0.28 / 130.12 ms โ 129.13 / 130.31 ยฑ1.16 / 132.24 ms โ no change โ
โ QQuery 96 โ 73.64 / 75.06 ยฑ0.88 / 76.02 ms โ 72.31 / 74.37 ยฑ1.26 / 76.19 ms โ no change โ
โ QQuery 97 โ 124.76 / 127.56 ยฑ2.34 / 131.18 ms โ 124.99 / 127.31 ยฑ1.47 / 128.75 ms โ no change โ
โ QQuery 98 โ 152.55 / 155.51 ยฑ2.30 / 158.79 ms โ 152.39 / 155.81 ยฑ2.16 / 159.14 ms โ no change โ
โ QQuery 99 โ 10799.15 / 10864.77 ยฑ35.59 / 10898.37 ms โ 10810.76 / 10852.07 ยฑ29.64 / 10887.35 ms โ no change โ
โโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 31773.55ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 31858.42ms โ
โ Average Time (HEAD) โ 320.94ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 321.80ms โ
โ Queries Faster โ 0 โ
โ Queries Slower โ 7 โ
โ Queries with No Change โ 92 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpcds โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 159.2s |
| Peak memory | 5.5 GiB |
| Avg memory | 4.5 GiB |
| CPU user | 262.4s |
| CPU sys | 17.8s |
| Peak spill | 0 B |
**tpcds โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 159.6s |
| Peak memory | 5.6 GiB |
| Avg memory | 4.5 GiB |
| CPU user | 263.9s |
| CPU sys | 17.1s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4234554162
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4234477729)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark clickbench_partitioned.json
--------------------
โโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ QQuery 0 โ 1.34 / 4.79 ยฑ6.61 / 18.02 ms โ 1.22 / 4.58 ยฑ6.53 / 17.64 ms โ no change โ
โ QQuery 1 โ 15.01 / 15.50 ยฑ0.43 / 16.28 ms โ 14.27 / 14.85 ยฑ0.31 / 15.10 ms โ no change โ
โ QQuery 2 โ 45.69 / 46.01 ยฑ0.28 / 46.38 ms โ 44.25 / 44.67 ยฑ0.33 / 45.07 ms โ no change โ
โ QQuery 3 โ 45.23 / 49.08 ยฑ3.08 / 53.24 ms โ 44.46 / 47.22 ยฑ1.51 / 48.61 ms โ no change โ
โ QQuery 4 โ 307.65 / 329.18 ยฑ15.17 / 353.16 ms โ 333.50 / 349.92 ยฑ10.12 / 363.58 ms โ 1.06x slower โ
โ QQuery 5 โ 383.18 / 390.58 ยฑ5.85 / 398.30 ms โ 375.25 / 389.29 ยฑ13.55 / 414.94 ms โ no change โ
โ QQuery 6 โ 5.21 / 7.51 ยฑ2.87 / 13.10 ms โ 5.67 / 7.06 ยฑ1.14 / 8.47 ms โ +1.06x faster โ
โ QQuery 7 โ 17.58 / 18.20 ยฑ0.57 / 19.20 ms โ 17.81 / 21.41 ยฑ6.39 / 34.18 ms โ 1.18x slower โ
โ QQuery 8 โ 467.34 / 477.25 ยฑ9.77 / 495.30 ms โ 473.21 / 490.70 ยฑ19.41 / 524.50 ms โ no change โ
โ QQuery 9 โ 699.39 / 729.91 ยฑ22.29 / 765.71 ms โ 745.55 / 764.99 ยฑ14.67 / 789.00 ms โ no change โ
โ QQuery 10 โ 99.31 / 102.80 ยฑ4.68 / 111.76 ms โ 95.14 / 99.07 ยฑ3.46 / 104.88 ms โ no change โ
โ QQuery 11 โ 107.63 / 109.49 ยฑ1.08 / 110.50 ms โ 110.95 / 113.80 ยฑ2.44 / 117.91 ms โ no change โ
โ QQuery 12 โ 389.20 / 393.99 ยฑ3.59 / 399.55 ms โ 378.13 / 397.72 ยฑ15.36 / 416.18 ms โ no change โ
โ QQuery 13 โ 497.82 / 519.79 ยฑ18.11 / 553.00 ms โ 507.72 / 534.68 ยฑ18.52 / 564.44 ms โ no change โ
โ QQuery 14 โ 356.26 / 382.90 ยฑ14.21 / 394.37 ms โ 378.78 / 390.21 ยฑ8.26 / 404.19 ms โ no change โ
โ QQuery 15 โ 397.89 / 421.76 ยฑ20.69 / 455.22 ms โ 406.54 / 430.62 ยฑ31.51 / 491.99 ms โ no change โ
โ QQuery 16 โ 817.79 / 843.15 ยฑ20.23 / 870.39 ms โ 795.58 / 834.18 ยฑ21.31 / 858.28 ms โ no change โ
โ QQuery 17 โ 769.11 / 793.23 ยฑ12.93 / 806.04 ms โ 790.19 / 823.71 ยฑ33.40 / 886.71 ms โ no change โ
โ QQuery 18 โ 1592.82 / 1638.07 ยฑ31.84 / 1675.50 ms โ 1536.04 / 1625.95 ยฑ49.00 / 1673.65 ms โ no change โ
โ QQuery 19 โ 36.17 / 38.43 ยฑ2.73 / 41.97 ms โ 39.25 / 52.79 ยฑ14.25 / 76.08 ms โ 1.37x slower โ
โ QQuery 20 โ 742.56 / 763.72 ยฑ21.08 / 796.51 ms โ 747.36 / 771.03 ยฑ35.37 / 841.37 ms โ no change โ
โ QQuery 21 โ 787.42 / 799.07 ยฑ8.52 / 810.66 ms โ 794.97 / 798.60 ยฑ2.97 / 803.45 ms โ no change โ
โ QQuery 22 โ 1173.63 / 1184.40 ยฑ7.48 / 1192.57 ms โ 1187.50 / 1195.28 ยฑ6.21 / 1202.63 ms โ no change โ
โ QQuery 23 โ 3281.57 / 3306.51 ยฑ21.44 / 3343.54 ms โ 3275.73 / 3301.49 ยฑ20.45 / 3332.33 ms โ no change โ
โ QQuery 24 โ 108.95 / 111.32 ยฑ1.91 / 114.39 ms โ 107.23 / 110.08 ยฑ3.29 / 116.30 ms โ no change โ
โ QQuery 25 โ 144.33 / 146.42 ยฑ1.45 / 148.05 ms โ 143.15 / 145.40 ยฑ1.34 / 146.55 ms โ no change โ
โ QQuery 26 โ 107.01 / 108.68 ยฑ1.66 / 111.45 ms โ 105.69 / 108.26 ยฑ1.82 / 110.40 ms โ no change โ
โ QQuery 27 โ 883.03 / 891.30 ยฑ4.95 / 898.28 ms โ 874.98 / 887.56 ยฑ12.77 / 911.22 ms โ no change โ
โ QQuery 28 โ 3386.14 / 3425.51 ยฑ28.74 / 3464.68 ms โ 3398.98 / 3422.81 ยฑ12.65 / 3436.83 ms โ no change โ
โ QQuery 29 โ 53.27 / 58.56 ยฑ6.00 / 69.01 ms โ 52.73 / 57.20 ยฑ4.79 / 64.77 ms โ no change โ
โ QQuery 30 โ 405.31 / 409.26 ยฑ4.00 / 416.32 ms โ 393.87 / 407.38 ยฑ7.40 / 414.80 ms โ no change โ
โ QQuery 31 โ 383.84 / 403.31 ยฑ16.85 / 432.32 ms โ 397.47 / 427.43 ยฑ17.62 / 452.58 ms โ 1.06x slower โ
โ QQuery 32 โ 1072.71 / 1165.40 ยฑ47.01 / 1203.37 ms โ 1232.95 / 1400.42 ยฑ92.57 / 1512.21 ms โ 1.20x slower โ
โ QQuery 33 โ 1640.38 / 1658.01 ยฑ11.14 / 1675.05 ms โ 1633.63 / 1658.56 ยฑ17.62 / 1686.57 ms โ no change โ
โ QQuery 34 โ 1681.98 / 1711.27 ยฑ17.86 / 1732.02 ms โ 1664.80 / 1679.12 ยฑ11.31 / 1694.41 ms โ no change โ
โ QQuery 35 โ 454.45 / 479.47 ยฑ16.71 / 500.66 ms โ 462.20 / 481.40 ยฑ13.83 / 502.10 ms โ no change โ
โ QQuery 36 โ 122.21 / 128.91 ยฑ3.68 / 132.42 ms โ 124.76 / 133.75 ยฑ5.72 / 142.63 ms โ no change โ
โ QQuery 37 โ 52.60 / 56.72 ยฑ3.07 / 61.58 ms โ 52.08 / 54.36 ยฑ1.53 / 56.64 ms โ no change โ
โ QQuery 38 โ 77.39 / 80.30 ยฑ1.75 / 82.02 ms โ 79.32 / 81.94 ยฑ2.16 / 84.78 ms โ no change โ
โ QQuery 39 โ 242.23 / 248.31 ยฑ4.99 / 255.10 ms โ 246.21 / 254.21 ยฑ7.55 / 264.73 ms โ no change โ
โ QQuery 40 โ 28.18 / 30.63 ยฑ1.34 / 32.00 ms โ 24.84 / 27.65 ยฑ1.91 / 29.46 ms โ +1.11x faster โ
โ QQuery 41 โ 22.58 / 23.91 ยฑ0.89 / 25.28 ms โ 22.53 / 23.86 ยฑ1.25 / 26.03 ms โ no change โ
โ QQuery 42 โ 21.19 / 22.21 ยฑ1.14 / 24.33 ms โ 21.33 / 22.81 ยฑ1.23 / 24.84 ms โ no change โ
โโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 24524.79ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 24888.03ms โ
โ Average Time (HEAD) โ 570.34ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 578.79ms โ
โ Queries Faster โ 2 โ
โ Queries Slower โ 5 โ
โ Queries with No Change โ 36 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**clickbench_partitioned โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 123.9s |
| Peak memory | 42.3 GiB |
| Avg memory | 31.0 GiB |
| CPU user | 1165.0s |
| CPU sys | 98.5s |
| Peak spill | 0 B |
**clickbench_partitioned โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 125.7s |
| Peak memory | 40.7 GiB |
| Avg memory | 29.1 GiB |
| CPU user | 1166.3s |
| CPU sys | 111.6s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4272795809
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4272790065)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4272790065-1443-xncr7 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (10e6be9ce97d33bc5aa6070a40c4e74cce99b319) to afc0784 (merge-base) [diff](https://github.com/apache/datafusion/compare/afc07843a2f7a95f02420b95233c55b97f365dd0..10e6be9ce97d33bc5aa6070a40c4e74cce99b319) using: sort_pushdown_inexact_overlap
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4268967872
run benchmark sort_pushdown_inexact
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4282338785
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4282215644)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark clickbench_partitioned.json
--------------------
โโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ QQuery 0 โ 1.20 / 4.44 ยฑ6.34 / 17.13 ms โ 1.17 / 4.47 ยฑ6.45 / 17.38 ms โ no change โ
โ QQuery 1 โ 12.10 / 12.60 ยฑ0.26 / 12.79 ms โ 12.19 / 12.72 ยฑ0.31 / 13.01 ms โ no change โ
โ QQuery 2 โ 35.90 / 36.05 ยฑ0.13 / 36.29 ms โ 37.94 / 38.04 ยฑ0.10 / 38.18 ms โ 1.06x slower โ
โ QQuery 3 โ 31.17 / 31.97 ยฑ0.95 / 33.83 ms โ 31.30 / 31.67 ยฑ0.28 / 32.05 ms โ no change โ
โ QQuery 4 โ 254.79 / 257.53 ยฑ2.98 / 263.03 ms โ 250.78 / 255.49 ยฑ2.69 / 258.02 ms โ no change โ
โ QQuery 5 โ 296.69 / 301.28 ยฑ3.58 / 307.15 ms โ 294.80 / 298.04 ยฑ2.21 / 301.75 ms โ no change โ
โ QQuery 6 โ 5.80 / 6.18 ยฑ0.29 / 6.67 ms โ 5.93 / 6.24 ยฑ0.31 / 6.73 ms โ no change โ
โ QQuery 7 โ 16.02 / 16.12 ยฑ0.07 / 16.23 ms โ 16.05 / 16.21 ยฑ0.11 / 16.34 ms โ no change โ
โ QQuery 8 โ 358.36 / 363.81 ยฑ3.38 / 367.76 ms โ 369.26 / 377.62 ยฑ9.72 / 394.40 ms โ no change โ
โ QQuery 9 โ 503.42 / 519.53 ยฑ8.88 / 529.31 ms โ 528.36 / 542.43 ยฑ9.21 / 551.71 ms โ no change โ
โ QQuery 10 โ 96.99 / 99.64 ยฑ3.16 / 105.81 ms โ 99.62 / 101.63 ยฑ2.63 / 106.74 ms โ no change โ
โ QQuery 11 โ 108.56 / 109.77 ยฑ1.11 / 111.53 ms โ 109.60 / 110.39 ยฑ0.66 / 111.55 ms โ no change โ
โ QQuery 12 โ 325.07 / 334.23 ยฑ9.99 / 351.32 ms โ 336.90 / 352.03 ยฑ11.90 / 365.51 ms โ 1.05x slower โ
โ QQuery 13 โ 479.02 / 495.76 ยฑ17.19 / 527.77 ms โ 475.55 / 502.82 ยฑ19.18 / 528.26 ms โ no change โ
โ QQuery 14 โ 343.94 / 350.64 ยฑ7.51 / 364.79 ms โ 351.42 / 354.95 ยฑ3.11 / 360.03 ms โ no change โ
โ QQuery 15 โ 321.75 / 340.72 ยฑ17.05 / 369.77 ms โ 341.51 / 361.59 ยฑ21.85 / 402.79 ms โ 1.06x slower โ
โ QQuery 16 โ 683.55 / 687.07 ยฑ1.93 / 689.47 ms โ 706.69 / 716.45 ยฑ10.71 / 736.26 ms โ no change โ
โ QQuery 17 โ 680.21 / 685.85 ยฑ3.20 / 688.74 ms โ 680.58 / 691.00 ยฑ8.47 / 705.95 ms โ no change โ
โ QQuery 18 โ 1330.24 / 1357.82 ยฑ17.15 / 1384.29 ms โ 1415.41 / 1499.60 ยฑ44.58 / 1548.70 ms โ 1.10x slower โ
โ QQuery 19 โ 36.56 / 51.57 ยฑ16.86 / 80.93 ms โ 31.16 / 32.81 ยฑ2.44 / 37.68 ms โ +1.57x faster โ
โ QQuery 20 โ 516.79 / 531.24 ยฑ13.85 / 553.73 ms โ 513.97 / 520.69 ยฑ7.45 / 534.63 ms โ no change โ
โ QQuery 21 โ 572.30 / 579.28 ยฑ6.49 / 588.28 ms โ 573.52 / 588.40 ยฑ13.17 / 612.03 ms โ no change โ
โ QQuery 22 โ 943.76 / 959.50 ยฑ8.26 / 966.68 ms โ 952.12 / 961.03 ยฑ6.84 / 971.03 ms โ no change โ
โ QQuery 23 โ 123.31 / 131.14 ยฑ6.33 / 140.63 ms โ 263.77 / 270.55 ยฑ4.43 / 277.19 ms โ 2.06x slower โ
โ QQuery 24 โ 41.64 / 44.41 ยฑ1.86 / 46.89 ms โ 54.65 / 57.21 ยฑ3.13 / 63.37 ms โ 1.29x slower โ
โ QQuery 25 โ 144.87 / 146.27 ยฑ1.23 / 148.45 ms โ 163.35 / 167.61 ยฑ3.08 / 172.13 ms โ 1.15x slower โ
โ QQuery 26 โ 61.86 / 63.07 ยฑ0.85 / 64.39 ms โ 60.99 / 63.50 ยฑ1.89 / 66.03 ms โ no change โ
โ QQuery 27 โ 722.40 / 729.60 ยฑ5.68 / 737.13 ms โ 718.83 / 730.82 ยฑ11.67 / 753.19 ms โ no change โ
โ QQuery 28 โ 3074.26 / 3148.72 ยฑ39.32 / 3179.59 ms โ 3123.65 / 3154.93 ยฑ18.96 / 3182.84 ms โ no change โ
โ QQuery 29 โ 43.29 / 47.69 ยฑ4.44 / 55.68 ms โ 45.05 / 49.52 ยฑ4.71 / 58.65 ms โ no change โ
โ QQuery 30 โ 331.10 / 336.28 ยฑ4.71 / 344.49 ms โ 336.49 / 342.03 ยฑ7.20 / 356.07 ms โ no change โ
โ QQuery 31 โ 329.43 / 336.83 ยฑ6.74 / 348.18 ms โ 327.92 / 340.43 ยฑ9.37 / 353.44 ms โ no change โ
โ QQuery 32 โ 1199.02 / 1248.12 ยฑ41.41 / 1324.10 ms โ 1178.07 / 1247.89 ยฑ70.93 / 1384.65 ms โ no change โ
โ QQuery 33 โ 1493.07 / 1573.36 ยฑ60.70 / 1643.93 ms โ 1560.50 / 1574.08 ยฑ9.20 / 1587.36 ms โ no change โ
โ QQuery 34 โ 1485.90 / 1505.92 ยฑ11.42 / 1521.30 ms โ 1686.35 / 1763.34 ยฑ51.12 / 1823.17 ms โ 1.17x slower โ
โ QQuery 35 โ 318.09 / 320.95 ยฑ2.45 / 324.28 ms โ 326.95 / 361.59 ยฑ20.66 / 384.27 ms โ 1.13x slower โ
โ QQuery 36 โ 69.86 / 71.70 ยฑ1.63 / 74.49 ms โ 62.19 / 66.35 ยฑ2.96 / 70.98 ms โ +1.08x faster โ
โ QQuery 37 โ 38.72 / 42.76 ยฑ2.46 / 45.69 ms โ 42.39 / 44.25 ยฑ1.43 / 45.95 ms โ no change โ
โ QQuery 38 โ 36.13 / 37.63 ยฑ2.05 / 41.52 ms โ 36.24 / 39.33 ยฑ2.74 / 43.69 ms โ no change โ
โ QQuery 39 โ 120.74 / 124.01 ยฑ2.31 / 127.87 ms โ 119.18 / 125.35 ยฑ4.86 / 133.90 ms โ no change โ
โ QQuery 40 โ 21.31 / 23.24 ยฑ1.57 / 25.19 ms โ 22.38 / 22.83 ยฑ0.44 / 23.63 ms โ no change โ
โ QQuery 41 โ 19.14 / 20.13 ยฑ1.04 / 21.79 ms โ 19.13 / 20.15 ยฑ0.67 / 21.10 ms โ no change โ
โ QQuery 42 โ 14.93 / 16.14 ยฑ0.91 / 17.73 ms โ 16.03 / 24.96 ยฑ11.53 / 44.60 ms โ 1.55x slower โ
โโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 18100.58ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 18843.05ms โ
โ Average Time (HEAD) โ 420.94ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 438.21ms โ
โ Queries Faster โ 2 โ
โ Queries Slower โ 10 โ
โ Queries with No Change โ 31 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**clickbench_partitioned โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 95.0s |
| Peak memory | 35.3 GiB |
| Avg memory | 26.5 GiB |
| CPU user | 923.6s |
| CPU sys | 92.0s |
| Peak spill | 0 B |
**clickbench_partitioned โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 95.0s |
| Peak memory | 33.3 GiB |
| Avg memory | 25.3 GiB |
| CPU user | 938.3s |
| CPU sys | 109.8s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4285925631
Benchmark for [this request](https://github.com/apache/datafusion/pull/21580#issuecomment-4285550908) hit the 7200s job deadline before finishing.
Benchmarks requested: `tpch`
<details><summary>Kubernetes message</summary>
```
Job was active longer than specified deadline
```
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4287029555
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4286923827)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark sort_pushdown_inexact.json
--------------------
โโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Q1 โ 7.02 / 7.75 ยฑ1.05 / 9.81 ms โ 4.63 / 5.21 ยฑ0.98 / 7.16 ms โ +1.49x faster โ
โ Q2 โ 6.78 / 6.83 ยฑ0.04 / 6.88 ms โ 4.93 / 4.99 ยฑ0.07 / 5.12 ms โ +1.37x faster โ
โ Q3 โ 22.09 / 22.72 ยฑ0.44 / 23.40 ms โ 11.61 / 11.81 ยฑ0.19 / 12.18 ms โ +1.92x faster โ
โ Q4 โ 21.62 / 21.95 ยฑ0.31 / 22.35 ms โ 11.94 / 12.03 ยฑ0.08 / 12.17 ms โ +1.82x faster โ
โโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 59.26ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 34.04ms โ
โ Average Time (HEAD) โ 14.81ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 8.51ms โ
โ Queries Faster โ 4 โ
โ Queries Slower โ 0 โ
โ Queries with No Change โ 0 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**sort_pushdown_inexact โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 4.4 GiB |
| Avg memory | 4.4 GiB |
| CPU user | 2.5s |
| CPU sys | 0.3s |
| Peak spill | 0 B |
**sort_pushdown_inexact โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 4.4 GiB |
| Avg memory | 4.4 GiB |
| CPU user | 1.2s |
| CPU sys | 0.2s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4288426401
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4288405532)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4288405532-1673-7cljh 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (ec941ff24aad14bc50b4e4af2976614e8904ef69) to 466c3ea (merge-base) [diff](https://github.com/apache/datafusion/compare/466c3eaecfd9cf2b80b365e869383daf1f30b663..ec941ff24aad14bc50b4e4af2976614e8904ef69) using: sort_pushdown_inexact
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4288658091
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4288570205)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark sort_pushdown_inexact.json
--------------------
โโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Q1 โ 7.03 / 8.24 ยฑ0.88 / 9.60 ms โ 6.50 / 7.22 ยฑ0.75 / 8.60 ms โ +1.14x faster โ
โ Q2 โ 6.80 / 7.03 ยฑ0.36 / 7.75 ms โ 6.68 / 7.23 ยฑ0.77 / 8.74 ms โ no change โ
โ Q3 โ 22.18 / 22.45 ยฑ0.27 / 22.82 ms โ 21.85 / 22.38 ยฑ0.40 / 23.04 ms โ no change โ
โ Q4 โ 20.18 / 21.01 ยฑ0.82 / 22.33 ms โ 20.13 / 21.15 ยฑ0.70 / 21.74 ms โ no change โ
โโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 58.74ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 57.98ms โ
โ Average Time (HEAD) โ 14.68ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 14.49ms โ
โ Queries Faster โ 1 โ
โ Queries Slower โ 0 โ
โ Queries with No Change โ 3 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**sort_pushdown_inexact โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 4.4 GiB |
| Avg memory | 4.4 GiB |
| CPU user | 2.5s |
| CPU sys | 0.4s |
| Peak spill | 0 B |
**sort_pushdown_inexact โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 4.4 GiB |
| Avg memory | 4.4 GiB |
| CPU user | 2.5s |
| CPU sys | 0.3s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4293753351
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4293745755)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4293745755-1737-k7jcp 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (2081071d36d9a1cb4dfce7632fffaf026b6a13cb) to 64619a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/64619a6a35980a929a890bf3384bd3b3a24b0a67..2081071d36d9a1cb4dfce7632fffaf026b6a13cb) using: clickbench_1
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4293886547
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4293875595)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4293875595-1738-krt7d 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (2081071d36d9a1cb4dfce7632fffaf026b6a13cb) to 64619a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/64619a6a35980a929a890bf3384bd3b3a24b0a67..2081071d36d9a1cb4dfce7632fffaf026b6a13cb) using: sort_pushdown_inexact
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4296238432
Re: https://github.com/apache/datafusion/pull/21580#discussion_r3123894244 (@xudong963)
Good point. Currently `create_filter` and `fetch` are set in the same method (`with_fetch`), and we fixed the ordering so `fetch` is set before `create_filter` is called. There's no separate code path that updates `fetch` without recreating the filter.
But you're right that this coupling is fragile โ if a future optimizer calls `with_fetch` independently, the filter's `fetch` would go stale. Tracked in #21780 as a follow-up to make `fetch` on `DynamicFilterPhysicalExpr` read directly from `SortExec.fetch` via a shared reference instead of copying at creation time.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4282237056
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4282215644)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4282215644-1606-4lgr8 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (bccc42bc3bcbc3b179b267feff2f219317df2328) to 466c3ea (merge-base) [diff](https://github.com/apache/datafusion/compare/466c3eaecfd9cf2b80b365e869383daf1f30b663..bccc42bc3bcbc3b179b267feff2f219317df2328) using: tpch
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4282291418
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4282133777)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark clickbench_partitioned.json
--------------------
โโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ QQuery 0 โ 1.15 / 4.33 ยฑ6.26 / 16.84 ms โ 1.16 / 4.52 ยฑ6.49 / 17.50 ms โ no change โ
โ QQuery 1 โ 11.94 / 12.66 ยฑ0.44 / 13.31 ms โ 12.16 / 12.73 ยฑ0.30 / 13.03 ms โ no change โ
โ QQuery 2 โ 36.07 / 36.20 ยฑ0.15 / 36.49 ms โ 37.04 / 37.19 ยฑ0.12 / 37.31 ms โ no change โ
โ QQuery 3 โ 31.20 / 31.89 ยฑ1.12 / 34.11 ms โ 31.52 / 31.95 ยฑ0.39 / 32.57 ms โ no change โ
โ QQuery 4 โ 251.99 / 257.20 ยฑ2.88 / 260.76 ms โ 250.87 / 257.92 ยฑ4.52 / 263.44 ms โ no change โ
โ QQuery 5 โ 292.48 / 297.59 ยฑ4.63 / 306.06 ms โ 294.20 / 297.00 ยฑ3.59 / 303.78 ms โ no change โ
โ QQuery 6 โ 5.82 / 6.04 ยฑ0.17 / 6.34 ms โ 5.66 / 5.94 ยฑ0.32 / 6.54 ms โ no change โ
โ QQuery 7 โ 15.91 / 21.22 ยฑ9.30 / 39.71 ms โ 15.88 / 23.62 ยฑ12.84 / 49.03 ms โ 1.11x slower โ
โ QQuery 8 โ 355.46 / 359.25 ยฑ3.65 / 366.06 ms โ 363.53 / 369.93 ยฑ6.77 / 382.43 ms โ no change โ
โ QQuery 9 โ 516.58 / 547.42 ยฑ16.78 / 562.22 ms โ 499.70 / 534.03 ยฑ17.54 / 546.24 ms โ no change โ
โ QQuery 10 โ 102.81 / 105.84 ยฑ2.38 / 109.89 ms โ 102.76 / 105.46 ยฑ1.93 / 108.57 ms โ no change โ
โ QQuery 11 โ 113.27 / 114.66 ยฑ0.94 / 115.88 ms โ 111.84 / 113.18 ยฑ1.17 / 115.20 ms โ no change โ
โ QQuery 12 โ 345.73 / 353.37 ยฑ4.52 / 358.82 ms โ 359.27 / 366.37 ยฑ8.83 / 381.89 ms โ no change โ
โ QQuery 13 โ 499.97 / 511.91 ยฑ7.94 / 521.68 ms โ 517.68 / 531.54 ยฑ18.99 / 568.41 ms โ no change โ
โ QQuery 14 โ 353.04 / 357.23 ยฑ2.77 / 360.96 ms โ 346.36 / 367.34 ยฑ15.75 / 383.38 ms โ no change โ
โ QQuery 15 โ 331.19 / 354.01 ยฑ27.16 / 398.34 ms โ 330.58 / 346.26 ยฑ16.18 / 375.95 ms โ no change โ
โ QQuery 16 โ 672.26 / 683.04 ยฑ6.78 / 692.33 ms โ 679.94 / 684.52 ยฑ4.78 / 692.73 ms โ no change โ
โ QQuery 17 โ 693.96 / 725.94 ยฑ16.45 / 739.42 ms โ 680.22 / 688.42 ยฑ6.34 / 696.76 ms โ +1.05x faster โ
โ QQuery 18 โ 1452.18 / 1542.23 ยฑ51.19 / 1593.50 ms โ 1364.13 / 1485.65 ยฑ77.77 / 1602.79 ms โ no change โ
โ QQuery 19 โ 31.75 / 32.98 ยฑ1.39 / 35.57 ms โ 33.00 / 40.31 ยฑ13.72 / 67.74 ms โ 1.22x slower โ
โ QQuery 20 โ 522.18 / 535.84 ยฑ12.54 / 553.61 ms โ 529.06 / 539.05 ยฑ10.86 / 559.57 ms โ no change โ
โ QQuery 21 โ 589.20 / 609.49 ยฑ16.55 / 631.39 ms โ 586.41 / 612.69 ยฑ13.84 / 623.08 ms โ no change โ
โ QQuery 22 โ 971.73 / 983.04 ยฑ7.65 / 995.82 ms โ 951.11 / 972.95 ยฑ15.59 / 990.49 ms โ no change โ
โ QQuery 23 โ 122.63 / 131.50 ยฑ5.40 / 138.51 ms โ 127.69 / 132.36 ยฑ4.02 / 138.60 ms โ no change โ
โ QQuery 24 โ 45.07 / 46.61 ยฑ1.45 / 49.13 ms โ 41.49 / 44.30 ยฑ2.29 / 47.99 ms โ no change โ
โ QQuery 25 โ 147.90 / 150.19 ยฑ2.41 / 154.37 ms โ 144.10 / 145.24 ยฑ0.97 / 146.86 ms โ no change โ
โ QQuery 26 โ 64.18 / 64.92 ยฑ0.62 / 65.57 ms โ 61.98 / 62.62 ยฑ0.48 / 63.43 ms โ no change โ
โ QQuery 27 โ 744.66 / 748.66 ยฑ2.77 / 752.09 ms โ 725.56 / 734.09 ยฑ5.33 / 741.12 ms โ no change โ
โ QQuery 28 โ 3131.93 / 3148.00 ยฑ14.04 / 3168.01 ms โ 3179.26 / 3215.09 ยฑ28.60 / 3267.21 ms โ no change โ
โ QQuery 29 โ 44.49 / 48.71 ยฑ3.68 / 54.58 ms โ 46.86 / 96.52 ยฑ81.01 / 257.14 ms โ 1.98x slower โ
โ QQuery 30 โ 346.08 / 353.73 ยฑ4.85 / 358.36 ms โ 336.46 / 348.89 ยฑ9.50 / 361.18 ms โ no change โ
โ QQuery 31 โ 349.11 / 360.01 ยฑ9.22 / 375.76 ms โ 356.98 / 373.91 ยฑ13.40 / 395.77 ms โ no change โ
โ QQuery 32 โ 1247.50 / 1310.61 ยฑ60.38 / 1424.20 ms โ 1111.83 / 1160.71 ยฑ66.46 / 1288.87 ms โ +1.13x faster โ
โ QQuery 33 โ 1566.38 / 1618.90 ยฑ42.48 / 1672.71 ms โ 1442.60 / 1495.98 ยฑ59.50 / 1603.46 ms โ +1.08x faster โ
โ QQuery 34 โ 1465.54 / 1538.06 ยฑ75.67 / 1664.32 ms โ 1447.34 / 1473.89 ยฑ19.93 / 1503.51 ms โ no change โ
โ QQuery 35 โ 358.39 / 365.11 ยฑ5.62 / 375.33 ms โ 357.00 / 363.58 ยฑ7.25 / 376.78 ms โ no change โ
โ QQuery 36 โ 71.55 / 75.14 ยฑ3.40 / 80.80 ms โ 75.07 / 75.88 ยฑ1.20 / 78.26 ms โ no change โ
โ QQuery 37 โ 41.85 / 45.79 ยฑ3.15 / 49.88 ms โ 45.85 / 48.00 ยฑ1.91 / 50.75 ms โ no change โ
โ QQuery 38 โ 37.16 / 40.65 ยฑ2.27 / 43.41 ms โ 39.90 / 42.51 ยฑ1.42 / 43.82 ms โ no change โ
โ QQuery 39 โ 122.92 / 132.64 ยฑ6.75 / 140.16 ms โ 127.95 / 136.32 ยฑ4.95 / 143.21 ms โ no change โ
โ QQuery 40 โ 22.23 / 23.70 ยฑ1.15 / 25.75 ms โ 21.03 / 23.47 ยฑ1.87 / 26.01 ms โ no change โ
โ QQuery 41 โ 20.53 / 22.28 ยฑ2.20 / 26.24 ms โ 20.26 / 21.21 ยฑ0.65 / 22.06 ms โ no change โ
โ QQuery 42 โ 16.49 / 17.13 ยฑ0.40 / 17.63 ms โ 16.23 / 17.01 ยฑ0.50 / 17.57 ms โ no change โ
โโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 18725.71ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 18440.15ms โ
โ Average Time (HEAD) โ 435.48ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 428.84ms โ
โ Queries Faster โ 3 โ
โ Queries Slower โ 3 โ
โ Queries with No Change โ 37 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**clickbench_partitioned โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 95.0s |
| Peak memory | 37.2 GiB |
| Avg memory | 26.6 GiB |
| CPU user | 950.5s |
| CPU sys | 101.0s |
| Peak spill | 0 B |
**clickbench_partitioned โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 95.0s |
| Peak memory | 36.6 GiB |
| Avg memory | 26.1 GiB |
| CPU user | 941.0s |
| CPU sys | 94.7s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4289940169
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4289923585)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4289923585-1686-zszkb 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (a269ffd81d91fe0d69fe37017cda2124a1162373) to 466c3ea (merge-base) [diff](https://github.com/apache/datafusion/compare/466c3eaecfd9cf2b80b365e869383daf1f30b663..a269ffd81d91fe0d69fe37017cda2124a1162373) using: sort_pushdown_inexact
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on code in PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#discussion_r3123957768
##########
datafusion/datasource-parquet/src/opener.rs:
##########
@@ -1123,13 +1166,157 @@ impl RowGroupsPrunedParquetOpen {
);
}
- // Prepare the access plan (extract row groups and row selection)
+ // Row group ordering optimization (two composable steps):
+ //
+ // 1. reorder_by_statistics: sort RGs by min values (ASC) to align
+ // with the file's declared output ordering. This fixes out-of-order
+ // RGs (e.g., from append-heavy workloads) without changing direction.
+ // Skipped gracefully when statistics are unavailable.
+ //
+ // 2. reverse: flip the order for DESC queries. Applied AFTER reorder
+ // so the reversed order is correct whether or not reorder changed
+ // anything. Also handles row_selection remapping.
+ //
+ // For sorted data: reorder is a no-op, reverse gives perfect DESC.
+ // For unsorted data: reorder fixes the order, reverse flips for DESC.
+ // Build reorder optimizer from sort_order_for_reorder (Inexact path)
+ // or from DynamicFilterPhysicalExpr sort_options (any TopK query).
+ // Fuzz test uses tiebreaker columns so reorder is safe for all TopK.
+ let reorder_optimizer: Option<
+ Box<dyn crate::access_plan_optimizer::AccessPlanOptimizer>,
+ > = if let Some(sort_order) = &prepared.sort_order_for_reorder {
+ Some(
+ Box::new(crate::access_plan_optimizer::ReorderByStatistics::new(
+ sort_order.clone(),
+ ))
+ as Box<dyn crate::access_plan_optimizer::AccessPlanOptimizer>,
+ )
+ } else if let Some(predicate) = &prepared.predicate
+ && let Some(df) = find_dynamic_filter(predicate)
+ && let Some(sort_options) = df.sort_options()
+ && sort_options.len() == 1
+ {
+ // Build a sort order from DynamicFilter for non-sort-pushdown TopK.
+ // Quick bail: check if the sort column exists in file schema.
+ // For GROUP BY + ORDER BY, the sort column is an aggregate output
+ // (not in parquet) โ skip to avoid wasted StatisticsConverter work.
+ let children = df.children();
+ if !children.is_empty() {
+ let col = find_column_in_expr(children[0]);
+ if let Some(ref c) = col
+ && prepared
+ .physical_file_schema
+ .field_with_name(c.name())
+ .is_ok()
+ {
+ let sort_expr =
+ datafusion_physical_expr_common::sort_expr::PhysicalSortExpr {
+ expr: Arc::clone(children[0]),
+ options: arrow::compute::SortOptions {
+ descending: false,
+ nulls_first: sort_options[0].nulls_first,
+ },
+ };
+ LexOrdering::new(vec![sort_expr]).map(|order| {
+ Box::new(crate::access_plan_optimizer::ReorderByStatistics::new(
+ order,
+ ))
+ as Box<dyn crate::access_plan_optimizer::AccessPlanOptimizer>
+ })
+ } else {
+ None
+ }
+ } else {
+ None
+ }
+ } else {
+ None
+ };
+
+ // Reverse for DESC queries. Only when reorder is active (the sort
+ // column exists in parquet stats). Without reorder, reversing RGs
+ // randomly changes I/O patterns with no benefit.
+ let is_descending = prepared.reverse_row_groups
+ || (reorder_optimizer.is_some()
+ && prepared
+ .predicate
+ .as_ref()
+ .and_then(find_dynamic_filter)
+ .and_then(|df| df.sort_options().map(|opts| opts[0].descending))
+ .unwrap_or(false));
+ let reverse_optimizer: Option<
+ Box<dyn crate::access_plan_optimizer::AccessPlanOptimizer>,
+ > = if is_descending {
+ Some(Box::new(crate::access_plan_optimizer::ReverseRowGroups))
+ } else {
+ None
+ };
+
+ // Prepare the access plan and apply optimizers in order:
+ // 1. reorder (fix out-of-order RGs to match declared ordering)
+ // 2. reverse (flip for DESC queries)
let mut prepared_plan = access_plan.prepare(rg_metadata)?;
+ if let Some(opt) = &reorder_optimizer {
+ prepared_plan = opt.optimize(
+ prepared_plan,
+ file_metadata.as_ref(),
+ &prepared.physical_file_schema,
+ )?;
+ }
+ if let Some(opt) = &reverse_optimizer {
+ prepared_plan = opt.optimize(
+ prepared_plan,
+ file_metadata.as_ref(),
+ &prepared.physical_file_schema,
+ )?;
+ }
- // Potentially reverse the access plan for performance.
- // See `ParquetSource::try_pushdown_sort` for the rationale.
- if prepared.reverse_row_groups {
- prepared_plan = prepared_plan.reverse(file_metadata.as_ref())?;
+ // TopK cumulative pruning: after reorder + reverse, the RGs are in
+ // optimal order. Accumulate rows from the front until >= K, prune rest.
+ //
+ // Only safe when predicate is DynamicFilter-only (no WHERE clause).
+ // With WHERE, raw num_rows overestimates qualifying rows โ cumulative
+ // prune may keep too few RGs, returning fewer than K results.
+ //
+ // Additionally requires either sort pushdown (guaranteed non-overlapping)
+ // or verified non-overlap from statistics.
+ let is_pure_dynamic_filter = prepared.predicate.as_ref().is_some_and(|p| {
+ let any_ref: &dyn std::any::Any = p.as_ref();
+ any_ref
+ .downcast_ref::<DynamicFilterPhysicalExpr>()
+ .is_some()
+ });
+ let has_sort_pushdown = prepared.sort_order_for_reorder.is_some();
+ if is_pure_dynamic_filter
+ && let Some(predicate) = &prepared.predicate
+ && let Some(df) = find_dynamic_filter(predicate)
+ && let Some(fetch) = df.fetch()
+ && (has_sort_pushdown
+ || rgs_are_non_overlapping(
+ &prepared_plan,
+ file_metadata.as_ref(),
+ &prepared.physical_file_schema,
+ &df,
+ ))
+ {
+ let rg_indexes = prepared_plan.row_group_indexes();
+ let mut cumulative = 0usize;
+ let mut keep_count = 0;
+ for &idx in rg_indexes {
+ cumulative += file_metadata.row_group(idx).num_rows() as usize;
Review Comment:
Created the follow-up issue:
https://github.com/apache/datafusion/issues/21780
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4282341227
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4282216441)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4282216441-1607-rjg9x 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (e4e11b2486e598d092f89e65e7504df91906aea2) to 466c3ea (merge-base) [diff](https://github.com/apache/datafusion/compare/466c3eaecfd9cf2b80b365e869383daf1f30b663..e4e11b2486e598d092f89e65e7504df91906aea2) using: clickbench_partitioned
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4282448939
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4282216441)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark clickbench_partitioned.json
--------------------
โโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ QQuery 0 โ 1.17 / 4.45 ยฑ6.41 / 17.27 ms โ 1.16 / 4.44 ยฑ6.40 / 17.23 ms โ no change โ
โ QQuery 1 โ 11.96 / 12.38 ยฑ0.21 / 12.55 ms โ 11.95 / 12.52 ยฑ0.30 / 12.81 ms โ no change โ
โ QQuery 2 โ 36.00 / 36.23 ยฑ0.17 / 36.51 ms โ 36.27 / 36.48 ยฑ0.15 / 36.71 ms โ no change โ
โ QQuery 3 โ 30.43 / 31.41 ยฑ1.34 / 34.07 ms โ 31.29 / 31.41 ยฑ0.09 / 31.54 ms โ no change โ
โ QQuery 4 โ 251.02 / 255.55 ยฑ2.68 / 258.71 ms โ 257.82 / 260.78 ยฑ3.39 / 267.38 ms โ no change โ
โ QQuery 5 โ 296.84 / 301.39 ยฑ3.03 / 306.10 ms โ 299.53 / 302.68 ยฑ2.11 / 305.06 ms โ no change โ
โ QQuery 6 โ 5.82 / 6.82 ยฑ0.85 / 7.86 ms โ 5.33 / 7.16 ยฑ1.07 / 8.52 ms โ 1.05x slower โ
โ QQuery 7 โ 13.77 / 13.89 ยฑ0.11 / 14.08 ms โ 13.61 / 13.72 ยฑ0.10 / 13.86 ms โ no change โ
โ QQuery 8 โ 365.27 / 368.90 ยฑ4.00 / 376.39 ms โ 362.00 / 370.78 ยฑ4.88 / 375.62 ms โ no change โ
โ QQuery 9 โ 514.58 / 525.57 ยฑ10.92 / 542.41 ms โ 500.55 / 527.90 ยฑ13.95 / 537.45 ms โ no change โ
โ QQuery 10 โ 75.13 / 76.61 ยฑ1.67 / 79.84 ms โ 75.30 / 77.07 ยฑ2.20 / 81.20 ms โ no change โ
โ QQuery 11 โ 84.87 / 86.23 ยฑ0.89 / 87.19 ms โ 84.21 / 85.41 ยฑ0.98 / 86.65 ms โ no change โ
โ QQuery 12 โ 292.39 / 301.22 ยฑ9.83 / 319.92 ms โ 296.14 / 306.56 ยฑ8.95 / 321.83 ms โ no change โ
โ QQuery 13 โ 419.88 / 434.63 ยฑ15.38 / 460.38 ms โ 440.86 / 453.92 ยฑ8.79 / 464.70 ms โ no change โ
โ QQuery 14 โ 310.51 / 312.16 ยฑ1.04 / 313.72 ms โ 310.17 / 313.82 ยฑ2.29 / 316.58 ms โ no change โ
โ QQuery 15 โ 327.35 / 346.76 ยฑ15.58 / 374.84 ms โ 332.50 / 349.64 ยฑ19.66 / 385.65 ms โ no change โ
โ QQuery 16 โ 687.34 / 689.08 ยฑ1.73 / 691.96 ms โ 686.11 / 693.39 ยฑ5.33 / 701.75 ms โ no change โ
โ QQuery 17 โ 684.51 / 689.11 ยฑ3.81 / 694.97 ms โ 688.57 / 690.41 ยฑ1.68 / 693.58 ms โ no change โ
โ QQuery 18 โ 1372.37 / 1453.01 ยฑ46.75 / 1517.78 ms โ 1353.09 / 1369.87 ยฑ23.75 / 1416.84 ms โ +1.06x faster โ
โ QQuery 19 โ 30.87 / 56.29 ยฑ47.90 / 152.03 ms โ 33.85 / 63.65 ยฑ33.93 / 127.13 ms โ 1.13x slower โ
โ QQuery 20 โ 513.26 / 526.38 ยฑ12.56 / 541.77 ms โ 517.00 / 526.48 ยฑ12.52 / 549.28 ms โ no change โ
โ QQuery 21 โ 592.45 / 601.02 ยฑ7.54 / 611.77 ms โ 591.50 / 596.20 ยฑ4.92 / 605.46 ms โ no change โ
โ QQuery 22 โ 1045.85 / 1051.65 ยฑ4.54 / 1058.65 ms โ 1046.60 / 1053.45 ยฑ4.28 / 1058.81 ms โ no change โ
โ QQuery 23 โ 3302.93 / 3326.63 ยฑ23.78 / 3367.65 ms โ 3331.86 / 3336.99 ยฑ4.51 / 3343.08 ms โ no change โ
โ QQuery 24 โ 43.36 / 45.94 ยฑ2.15 / 49.55 ms โ 51.96 / 54.39 ยฑ2.24 / 57.56 ms โ 1.18x slower โ
โ QQuery 25 โ 114.74 / 115.11 ยฑ0.41 / 115.86 ms โ 129.74 / 132.16 ยฑ1.89 / 135.12 ms โ 1.15x slower โ
โ QQuery 26 โ 42.22 / 44.01 ยฑ1.84 / 47.56 ms โ 42.68 / 43.98 ยฑ1.12 / 45.99 ms โ no change โ
โ QQuery 27 โ 660.13 / 666.50 ยฑ3.84 / 671.50 ms โ 661.74 / 667.52 ยฑ5.31 / 675.51 ms โ no change โ
โ QQuery 28 โ 3008.27 / 3026.76 ยฑ10.32 / 3036.99 ms โ 3003.14 / 3038.30 ยฑ18.79 / 3057.42 ms โ no change โ
โ QQuery 29 โ 43.87 / 48.69 ยฑ4.68 / 54.69 ms โ 45.69 / 48.17 ยฑ3.70 / 55.52 ms โ no change โ
โ QQuery 30 โ 327.62 / 333.85 ยฑ7.07 / 347.51 ms โ 328.09 / 334.20 ยฑ6.10 / 344.67 ms โ no change โ
โ QQuery 31 โ 322.80 / 334.82 ยฑ7.35 / 343.96 ms โ 322.64 / 330.05 ยฑ5.12 / 335.67 ms โ no change โ
โ QQuery 32 โ 1202.37 / 1251.95 ยฑ36.51 / 1307.13 ms โ 1031.20 / 1154.71 ยฑ128.98 / 1372.94 ms โ +1.08x faster โ
โ QQuery 33 โ 1640.96 / 1681.54 ยฑ44.88 / 1763.87 ms โ 1461.56 / 1475.01 ยฑ12.03 / 1492.15 ms โ +1.14x faster โ
โ QQuery 34 โ 1562.69 / 1571.44 ยฑ7.01 / 1580.08 ms โ 1470.38 / 1500.13 ยฑ28.50 / 1546.64 ms โ no change โ
โ QQuery 35 โ 329.35 / 335.68 ยฑ5.41 / 343.79 ms โ 323.37 / 328.70 ยฑ4.96 / 336.77 ms โ no change โ
โ QQuery 36 โ 65.06 / 67.81 ยฑ2.30 / 70.41 ms โ 64.60 / 69.13 ยฑ2.56 / 72.40 ms โ no change โ
โ QQuery 37 โ 36.61 / 38.24 ยฑ1.18 / 40.17 ms โ 37.75 / 38.10 ยฑ0.41 / 38.85 ms โ no change โ
โ QQuery 38 โ 42.06 / 42.90 ยฑ0.59 / 43.78 ms โ 40.80 / 43.21 ยฑ1.41 / 44.94 ms โ no change โ
โ QQuery 39 โ 128.66 / 135.24 ยฑ4.44 / 141.93 ms โ 124.45 / 131.76 ยฑ4.82 / 137.15 ms โ no change โ
โ QQuery 40 โ 17.37 / 19.01 ยฑ1.30 / 21.03 ms โ 15.38 / 18.13 ยฑ1.65 / 19.85 ms โ no change โ
โ QQuery 41 โ 14.55 / 16.04 ยฑ1.45 / 18.73 ms โ 14.79 / 16.86 ยฑ1.16 / 18.05 ms โ 1.05x slower โ
โ QQuery 42 โ 14.22 / 14.47 ยฑ0.26 / 14.98 ms โ 14.37 / 14.76 ยฑ0.40 / 15.46 ms โ no change โ
โโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 21297.37ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 20923.99ms โ
โ Average Time (HEAD) โ 495.29ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 486.60ms โ
โ Queries Faster โ 3 โ
โ Queries Slower โ 5 โ
โ Queries with No Change โ 35 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**clickbench_partitioned โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 110.0s |
| Peak memory | 34.8 GiB |
| Avg memory | 24.8 GiB |
| CPU user | 1093.0s |
| CPU sys | 100.6s |
| Peak spill | 0 B |
**clickbench_partitioned โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 110.0s |
| Peak memory | 37.4 GiB |
| Avg memory | 27.5 GiB |
| CPU user | 1088.4s |
| CPU sys | 84.9s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4282161353
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4282133777)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4282133777-1602-m8s8r 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (39961788746d0ade8fce9c4b43cabca82a9d8397) to 466c3ea (merge-base) [diff](https://github.com/apache/datafusion/compare/466c3eaecfd9cf2b80b365e869383daf1f30b663..39961788746d0ade8fce9c4b43cabca82a9d8397) using: tpcds
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4282550408
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4282410384)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark clickbench_partitioned.json
--------------------
โโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ QQuery 0 โ 1.15 / 4.39 ยฑ6.34 / 17.07 ms โ 1.16 / 4.35 ยฑ6.28 / 16.90 ms โ no change โ
โ QQuery 1 โ 11.96 / 12.55 ยฑ0.32 / 12.81 ms โ 12.04 / 12.49 ยฑ0.26 / 12.75 ms โ no change โ
โ QQuery 2 โ 35.87 / 36.19 ยฑ0.20 / 36.50 ms โ 35.98 / 36.03 ยฑ0.06 / 36.14 ms โ no change โ
โ QQuery 3 โ 31.08 / 31.80 ยฑ0.82 / 33.34 ms โ 30.77 / 31.60 ยฑ0.59 / 32.47 ms โ no change โ
โ QQuery 4 โ 255.66 / 258.13 ยฑ2.02 / 260.66 ms โ 249.54 / 252.95 ยฑ2.24 / 256.06 ms โ no change โ
โ QQuery 5 โ 293.66 / 297.49 ยฑ4.07 / 305.12 ms โ 292.98 / 298.36 ยฑ2.85 / 300.69 ms โ no change โ
โ QQuery 6 โ 5.98 / 6.05 ยฑ0.06 / 6.16 ms โ 5.13 / 6.27 ยฑ0.74 / 7.44 ms โ no change โ
โ QQuery 7 โ 15.87 / 16.68 ยฑ0.85 / 18.13 ms โ 16.11 / 16.33 ยฑ0.24 / 16.79 ms โ no change โ
โ QQuery 8 โ 357.88 / 360.73 ยฑ4.92 / 370.56 ms โ 357.17 / 359.89 ยฑ2.53 / 363.98 ms โ no change โ
โ QQuery 9 โ 489.32 / 513.13 ยฑ16.22 / 538.06 ms โ 499.49 / 525.27 ยฑ13.87 / 537.96 ms โ no change โ
โ QQuery 10 โ 97.57 / 99.84 ยฑ3.19 / 106.12 ms โ 98.93 / 100.45 ยฑ2.24 / 104.87 ms โ no change โ
โ QQuery 11 โ 107.85 / 109.25 ยฑ1.32 / 111.19 ms โ 110.25 / 111.57 ยฑ1.10 / 112.91 ms โ no change โ
โ QQuery 12 โ 323.20 / 332.74 ยฑ9.01 / 345.13 ms โ 323.35 / 331.49 ยฑ8.84 / 348.17 ms โ no change โ
โ QQuery 13 โ 455.33 / 466.15 ยฑ11.44 / 482.66 ms โ 453.28 / 467.36 ยฑ9.05 / 480.36 ms โ no change โ
โ QQuery 14 โ 335.39 / 339.93 ยฑ2.69 / 343.24 ms โ 337.47 / 342.60 ยฑ2.87 / 346.26 ms โ no change โ
โ QQuery 15 โ 321.13 / 333.45 ยฑ11.02 / 351.86 ms โ 329.44 / 344.15 ยฑ17.47 / 375.59 ms โ no change โ
โ QQuery 16 โ 673.73 / 676.84 ยฑ2.35 / 680.94 ms โ 683.71 / 692.38 ยฑ6.86 / 704.78 ms โ no change โ
โ QQuery 17 โ 670.90 / 676.52 ยฑ4.86 / 682.44 ms โ 674.51 / 678.16 ยฑ3.42 / 682.15 ms โ no change โ
โ QQuery 18 โ 1384.80 / 1456.31 ยฑ42.24 / 1509.72 ms โ 1337.00 / 1351.04 ยฑ11.26 / 1370.85 ms โ +1.08x faster โ
โ QQuery 19 โ 29.98 / 31.90 ยฑ1.55 / 34.36 ms โ 30.69 / 31.81 ยฑ1.04 / 33.77 ms โ no change โ
โ QQuery 20 โ 510.76 / 521.65 ยฑ10.43 / 537.72 ms โ 509.04 / 512.16 ยฑ4.25 / 520.46 ms โ no change โ
โ QQuery 21 โ 566.34 / 572.16 ยฑ4.18 / 577.13 ms โ 568.41 / 576.44 ยฑ6.23 / 585.18 ms โ no change โ
โ QQuery 22 โ 944.81 / 954.68 ยฑ5.53 / 961.01 ms โ 950.91 / 961.91 ยฑ12.04 / 984.63 ms โ no change โ
โ QQuery 23 โ 122.02 / 126.88 ยฑ3.36 / 130.38 ms โ 200.94 / 212.80 ยฑ12.55 / 236.87 ms โ 1.68x slower โ
โ QQuery 24 โ 42.28 / 43.90 ยฑ1.06 / 45.03 ms โ 49.60 / 53.48 ยฑ2.57 / 56.65 ms โ 1.22x slower โ
โ QQuery 25 โ 144.58 / 145.72 ยฑ0.90 / 147.20 ms โ 161.32 / 164.22 ยฑ2.75 / 167.67 ms โ 1.13x slower โ
โ QQuery 26 โ 58.58 / 62.00 ยฑ1.92 / 64.41 ms โ 61.34 / 62.88 ยฑ1.61 / 65.22 ms โ no change โ
โ QQuery 27 โ 724.96 / 729.75 ยฑ4.56 / 738.07 ms โ 718.19 / 722.90 ยฑ3.79 / 729.10 ms โ no change โ
โ QQuery 28 โ 3074.77 / 3130.15 ยฑ27.74 / 3147.17 ms โ 3072.15 / 3127.47 ยฑ33.86 / 3174.45 ms โ no change โ
โ QQuery 29 โ 43.36 / 46.44 ยฑ3.95 / 53.98 ms โ 44.99 / 49.26 ยฑ4.37 / 57.27 ms โ 1.06x slower โ
โ QQuery 30 โ 331.86 / 345.73 ยฑ21.87 / 389.26 ms โ 337.57 / 341.01 ยฑ5.74 / 352.43 ms โ no change โ
โ QQuery 31 โ 326.93 / 344.43 ยฑ14.44 / 368.34 ms โ 324.21 / 338.12 ยฑ10.12 / 354.56 ms โ no change โ
โ QQuery 32 โ 1013.45 / 1028.17 ยฑ24.52 / 1076.84 ms โ 1083.53 / 1141.42 ยฑ29.78 / 1169.19 ms โ 1.11x slower โ
โ QQuery 33 โ 1448.48 / 1454.91 ยฑ3.73 / 1459.76 ms โ 1453.58 / 1466.01 ยฑ7.98 / 1473.51 ms โ no change โ
โ QQuery 34 โ 1420.39 / 1463.67 ยฑ26.65 / 1501.60 ms โ 1460.25 / 1491.95 ยฑ24.97 / 1515.49 ms โ no change โ
โ QQuery 35 โ 316.57 / 321.60 ยฑ7.46 / 336.43 ms โ 315.32 / 319.76 ยฑ5.02 / 329.50 ms โ no change โ
โ QQuery 36 โ 63.30 / 71.47 ยฑ4.87 / 77.22 ms โ 68.02 / 72.84 ยฑ4.59 / 80.13 ms โ no change โ
โ QQuery 37 โ 37.96 / 41.01 ยฑ2.08 / 43.97 ms โ 40.12 / 42.43 ยฑ2.61 / 47.12 ms โ no change โ
โ QQuery 38 โ 35.18 / 40.85 ยฑ4.12 / 48.02 ms โ 36.04 / 38.14 ยฑ2.23 / 41.09 ms โ +1.07x faster โ
โ QQuery 39 โ 122.64 / 127.70 ยฑ3.34 / 133.14 ms โ 121.10 / 123.43 ยฑ1.46 / 125.14 ms โ no change โ
โ QQuery 40 โ 21.11 / 23.04 ยฑ1.35 / 24.43 ms โ 21.83 / 23.29 ยฑ0.93 / 24.34 ms โ no change โ
โ QQuery 41 โ 19.21 / 20.86 ยฑ0.99 / 22.30 ms โ 19.29 / 19.82 ยฑ0.30 / 20.18 ms โ +1.05x faster โ
โ QQuery 42 โ 15.35 / 16.08 ยฑ0.47 / 16.74 ms โ 15.69 / 16.12 ยฑ0.40 / 16.73 ms โ no change โ
โโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 17692.91ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 17872.40ms โ
โ Average Time (HEAD) โ 411.46ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 415.64ms โ
โ Queries Faster โ 3 โ
โ Queries Slower โ 5 โ
โ Queries with No Change โ 35 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**clickbench_partitioned โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 90.0s |
| Peak memory | 37.1 GiB |
| Avg memory | 27.2 GiB |
| CPU user | 914.7s |
| CPU sys | 81.2s |
| Peak spill | 0 B |
**clickbench_partitioned โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 95.0s |
| Peak memory | 37.1 GiB |
| Avg memory | 30.6 GiB |
| CPU user | 927.7s |
| CPU sys | 80.7s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangb (via GitHub)" <gi...@apache.org>.
adriangb commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4241879290
run benchmark sort_pushdown
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on code in PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#discussion_r3092598292
##########
benchmarks/queries/sort_pushdown_inexact/q1.sql:
##########
@@ -0,0 +1,8 @@
+-- Inexact path: TopK + DESC LIMIT on ASC-declared file.
Review Comment:
Yes, i agree, will make a separate PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangb (via GitHub)" <gi...@apache.org>.
adriangb commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4269723087
run benchmark sort_pushdown_exact
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4269813055
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4269752141)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark sort_pushdown_inexact_overlap.json
--------------------
โโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Q1 โ 5.13 / 5.92 ยฑ0.94 / 7.67 ms โ 7.98 / 8.42 ยฑ0.58 / 9.56 ms โ 1.42x slower โ
โ Q2 โ 5.18 / 5.66 ยฑ0.51 / 6.33 ms โ 13.13 / 13.24 ยฑ0.09 / 13.38 ms โ 2.34x slower โ
โ Q3 โ 14.66 / 14.98 ยฑ0.32 / 15.43 ms โ 17.51 / 17.66 ยฑ0.17 / 17.99 ms โ 1.18x slower โ
โ Q4 โ 14.13 / 15.33 ยฑ1.23 / 17.69 ms โ 22.39 / 22.52 ยฑ0.11 / 22.68 ms โ 1.47x slower โ
โโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 41.89ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 61.85ms โ
โ Average Time (HEAD) โ 10.47ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 15.46ms โ
โ Queries Faster โ 0 โ
โ Queries Slower โ 4 โ
โ Queries with No Change โ 0 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**sort_pushdown_inexact_overlap โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 0.5s |
| Peak memory | 3.4 GiB |
| Avg memory | 3.4 GiB |
| CPU user | 1.9s |
| CPU sys | 0.3s |
| Peak spill | 0 B |
**sort_pushdown_inexact_overlap โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 0.5s |
| Peak memory | 3.4 GiB |
| Avg memory | 3.4 GiB |
| CPU user | 2.4s |
| CPU sys | 0.3s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on code in PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#discussion_r3071295010
##########
datafusion/datasource-parquet/src/access_plan.rs:
##########
@@ -377,6 +382,106 @@ impl PreparedAccessPlan {
})
}
+ /// Reorder row groups by their min statistics for the given sort order.
+ ///
+ /// This helps TopK queries find optimal values first. For ASC sort,
+ /// row groups with the smallest min values come first. For DESC sort,
+ /// row groups with the largest min values come first.
+ ///
+ /// Gracefully skips reordering when:
+ /// - There is a row_selection (too complex to remap)
+ /// - 0 or 1 row groups (nothing to reorder)
+ /// - Sort expression is not a simple column reference
+ /// - Statistics are unavailable
+ pub(crate) fn reorder_by_statistics(
Review Comment:
I think @adriangb had the great idea to also order by grouping keys which can
* reduce cardinality within partitions (partition state can be smaller)
* allow for better cache locality (row groups with more equal keys are grouped together)
Doesn't have to be in this PR but perhaps we can think about how it fits in.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4269660671
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4269511093)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark sort_pushdown_inexact.json
--------------------
โโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Q1 โ 6.66 / 7.79 ยฑ1.17 / 10.01 ms โ 6.67 / 7.05 ยฑ0.69 / 8.43 ms โ +1.10x faster โ
โ Q2 โ 6.83 / 6.91 ยฑ0.09 / 7.08 ms โ 6.83 / 6.91 ยฑ0.07 / 6.99 ms โ no change โ
โ Q3 โ 21.69 / 22.36 ยฑ0.50 / 23.24 ms โ 18.10 / 18.70 ยฑ0.59 / 19.83 ms โ +1.20x faster โ
โ Q4 โ 21.70 / 22.07 ยฑ0.27 / 22.30 ms โ 17.30 / 18.28 ยฑ0.65 / 18.94 ms โ +1.21x faster โ
โโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 59.13ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 50.95ms โ
โ Average Time (HEAD) โ 14.78ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 12.74ms โ
โ Queries Faster โ 3 โ
โ Queries Slower โ 0 โ
โ Queries with No Change โ 1 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**sort_pushdown_inexact โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 0.5s |
| Peak memory | 4.8 GiB |
| Avg memory | 4.8 GiB |
| CPU user | 2.6s |
| CPU sys | 0.3s |
| Peak spill | 0 B |
**sort_pushdown_inexact โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 0.5s |
| Peak memory | 4.8 GiB |
| Avg memory | 4.8 GiB |
| CPU user | 2.1s |
| CPU sys | 0.3s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangb (via GitHub)" <gi...@apache.org>.
adriangb commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4268423915
> Another idea (maybe even more impactful/generally applicable than the pure - stats):
>
> Currently many queries go like Scan -> Filter -> Aggregate(Partial) -> Aggregate(Final) -> TopK
>
> Needs to first go through the the full aggregation before it reaches Topk (so it's not useful to push down to scan as we usually scan the entire dataset before emitting the partial aggregate)
>
> We can update bounds from aggregate, once we detect at least K distinct rows in a Partial aggregate.
>
> In practice it would mean after the first batch / batches arrive we already have e.g. 10 rows, so can already prune / filter with the much tighter bound.
I wonder if we could do `Scan -> Filter -> Aggregate(Partial) -> TopK (partition) -> Aggregate(Final) -> TopK (final)`?
The point is that if the partial agg starts emitting partial groups the partition topk can start pushing down bounds based on those groups.
I looked into connecting the partial agg to topk and it was messy, they kind of need to know about each other, it feels like it's basically a fused operator.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4282133777
run benchmarks
```
env:
DATAFUSION_EXECUTION_PARQUET_PUSHDOWN_FILTERS: true
DATAFUSION_EXECUTION_PARQUET_REORDER_FILTERS: true
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4282236021
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4282215644)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4282215644-1605-kjcjr 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (bccc42bc3bcbc3b179b267feff2f219317df2328) to 466c3ea (merge-base) [diff](https://github.com/apache/datafusion/compare/466c3eaecfd9cf2b80b365e869383daf1f30b663..bccc42bc3bcbc3b179b267feff2f219317df2328) using: tpcds
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4275890372
๐ค Criterion benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4275886595)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4275886595-1522-5dtcp 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (10e6be9ce97d33bc5aa6070a40c4e74cce99b319) to afc0784 (merge-base) [diff](https://github.com/apache/datafusion/compare/afc07843a2f7a95f02420b95233c55b97f365dd0..10e6be9ce97d33bc5aa6070a40c4e74cce99b319)
BENCH_NAME=topk_tpch
BENCH_COMMAND=cargo bench --features=parquet --bench topk_tpch
BENCH_FILTER=
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4282380133
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4282215644)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark tpcds_sf1.json
--------------------
โโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ QQuery 1 โ 6.25 / 6.65 ยฑ0.70 / 8.05 ms โ 6.10 / 6.47 ยฑ0.70 / 7.88 ms โ no change โ
โ QQuery 2 โ 111.43 / 112.56 ยฑ0.86 / 114.05 ms โ 112.69 / 113.41 ยฑ0.61 / 114.51 ms โ no change โ
โ QQuery 3 โ 109.04 / 110.26 ยฑ0.89 / 111.32 ms โ 109.90 / 111.31 ยฑ0.85 / 112.16 ms โ no change โ
โ QQuery 4 โ 1054.31 / 1068.19 ยฑ12.08 / 1087.51 ms โ 1044.94 / 1065.53 ยฑ11.08 / 1077.28 ms โ no change โ
โ QQuery 5 โ 194.43 / 197.75 ยฑ3.27 / 201.76 ms โ 193.14 / 195.99 ยฑ1.67 / 197.68 ms โ no change โ
โ QQuery 6 โ 259.13 / 265.09 ยฑ4.81 / 273.85 ms โ 248.57 / 256.30 ยฑ4.44 / 260.82 ms โ no change โ
โ QQuery 7 โ 328.67 / 334.04 ยฑ4.25 / 338.30 ms โ 333.10 / 338.42 ยฑ5.88 / 349.34 ms โ no change โ
โ QQuery 8 โ 152.24 / 159.87 ยฑ4.16 / 163.73 ms โ 161.04 / 163.82 ยฑ3.62 / 170.42 ms โ no change โ
โ QQuery 9 โ 223.44 / 235.72 ยฑ10.61 / 251.88 ms โ 216.17 / 237.59 ยฑ12.89 / 253.24 ms โ no change โ
โ QQuery 10 โ 165.44 / 167.99 ยฑ2.01 / 171.04 ms โ 179.11 / 182.65 ยฑ4.57 / 191.67 ms โ 1.09x slower โ
โ QQuery 11 โ 707.14 / 709.55 ยฑ2.05 / 712.69 ms โ 696.27 / 709.67 ยฑ8.12 / 721.87 ms โ no change โ
โ QQuery 12 โ 36.30 / 38.82 ยฑ2.74 / 44.12 ms โ 38.36 / 39.56 ยฑ1.40 / 42.13 ms โ no change โ
โ QQuery 13 โ 560.70 / 571.49 ยฑ6.79 / 578.23 ms โ 548.96 / 569.52 ยฑ12.40 / 586.52 ms โ no change โ
โ QQuery 14 โ 901.34 / 925.92 ยฑ20.12 / 958.64 ms โ 894.90 / 901.69 ยฑ7.50 / 915.60 ms โ no change โ
โ QQuery 15 โ 19.92 / 22.20 ยฑ2.59 / 26.97 ms โ 19.79 / 21.07 ยฑ1.43 / 23.63 ms โ +1.05x faster โ
โ QQuery 16 โ 7.22 / 7.98 ยฑ0.69 / 8.99 ms โ 6.78 / 7.10 ยฑ0.27 / 7.51 ms โ +1.12x faster โ
โ QQuery 17 โ 209.71 / 216.21 ยฑ4.90 / 221.93 ms โ 202.53 / 206.54 ยฑ3.61 / 213.03 ms โ no change โ
โ QQuery 18 โ 411.47 / 472.56 ยฑ40.00 / 508.34 ms โ 424.88 / 480.15 ยฑ28.86 / 508.82 ms โ no change โ
โ QQuery 19 โ 139.39 / 146.96 ยฑ4.11 / 150.86 ms โ 142.24 / 145.49 ยฑ2.26 / 149.14 ms โ no change โ
โ QQuery 20 โ 15.69 / 16.62 ยฑ0.92 / 18.27 ms โ 15.45 / 16.11 ยฑ0.53 / 17.01 ms โ no change โ
โ QQuery 21 โ 26.69 / 27.65 ยฑ0.65 / 28.30 ms โ 26.34 / 27.53 ยฑ0.78 / 28.56 ms โ no change โ
โ QQuery 22 โ 503.86 / 510.18 ยฑ5.14 / 518.37 ms โ 506.92 / 511.36 ยฑ3.13 / 516.25 ms โ no change โ
โ QQuery 23 โ 1207.64 / 1219.77 ยฑ7.92 / 1230.67 ms โ 1207.59 / 1248.52 ยฑ60.87 / 1369.32 ms โ no change โ
โ QQuery 24 โ 120.71 / 122.32 ยฑ1.14 / 124.20 ms โ 114.87 / 121.83 ยฑ4.11 / 126.74 ms โ no change โ
โ QQuery 25 โ 295.63 / 303.53 ยฑ4.85 / 310.51 ms โ 302.91 / 310.74 ยฑ4.33 / 316.29 ms โ no change โ
โ QQuery 26 โ 140.57 / 146.90 ยฑ5.00 / 154.51 ms โ 148.88 / 157.40 ยฑ8.14 / 171.58 ms โ 1.07x slower โ
โ QQuery 27 โ 6.42 / 6.87 ยฑ0.67 / 8.19 ms โ 6.78 / 7.26 ยฑ0.72 / 8.68 ms โ 1.06x slower โ
โ QQuery 28 โ 222.87 / 231.82 ยฑ5.94 / 239.14 ms โ 232.33 / 243.98 ยฑ6.47 / 250.99 ms โ 1.05x slower โ
โ QQuery 29 โ 242.55 / 250.54 ยฑ5.11 / 257.51 ms โ 255.08 / 257.99 ยฑ2.17 / 260.75 ms โ no change โ
โ QQuery 30 โ 55.27 / 59.05 ยฑ3.31 / 64.38 ms โ 58.37 / 61.45 ยฑ2.70 / 65.93 ms โ no change โ
โ QQuery 31 โ 173.63 / 176.59 ยฑ1.89 / 178.69 ms โ 177.56 / 181.71 ยฑ3.72 / 187.85 ms โ no change โ
โ QQuery 32 โ 13.42 / 13.95 ยฑ0.46 / 14.69 ms โ 13.79 / 14.42 ยฑ0.49 / 15.28 ms โ no change โ
โ QQuery 33 โ 132.94 / 134.09 ยฑ0.83 / 135.39 ms โ 131.98 / 134.48 ยฑ2.27 / 137.24 ms โ no change โ
โ QQuery 34 โ 6.87 / 7.48 ยฑ0.73 / 8.43 ms โ 6.90 / 7.59 ยฑ0.68 / 8.47 ms โ no change โ
โ QQuery 35 โ 149.53 / 151.51 ยฑ1.83 / 154.54 ms โ 147.17 / 149.77 ยฑ2.65 / 153.12 ms โ no change โ
โ QQuery 36 โ 6.27 / 6.47 ยฑ0.15 / 6.74 ms โ 6.20 / 6.54 ยฑ0.58 / 7.71 ms โ no change โ
โ QQuery 37 โ 5.24 / 5.34 ยฑ0.08 / 5.45 ms โ 5.20 / 5.85 ยฑ0.58 / 6.68 ms โ 1.10x slower โ
โ QQuery 38 โ 101.10 / 107.83 ยฑ3.56 / 111.39 ms โ 99.02 / 107.25 ยฑ5.24 / 112.81 ms โ no change โ
โ QQuery 39 โ 132.64 / 135.29 ยฑ1.93 / 138.18 ms โ 132.37 / 139.06 ยฑ5.39 / 148.29 ms โ no change โ
โ QQuery 40 โ 132.60 / 138.84 ยฑ6.06 / 150.46 ms โ 135.06 / 140.03 ยฑ5.71 / 150.93 ms โ no change โ
โ QQuery 41 โ 14.57 / 15.27 ยฑ0.62 / 16.22 ms โ 14.59 / 15.59 ยฑ0.62 / 16.51 ms โ no change โ
โ QQuery 42 โ 111.02 / 115.63 ยฑ2.71 / 118.99 ms โ 112.50 / 116.74 ยฑ2.31 / 118.97 ms โ no change โ
โ QQuery 43 โ 5.34 / 5.51 ยฑ0.18 / 5.83 ms โ 5.23 / 5.67 ยฑ0.46 / 6.53 ms โ no change โ
โ QQuery 44 โ 11.02 / 12.10 ยฑ0.91 / 13.59 ms โ 11.25 / 12.08 ยฑ0.49 / 12.57 ms โ no change โ
โ QQuery 45 โ 46.18 / 47.55 ยฑ1.57 / 50.50 ms โ 44.74 / 45.69 ยฑ0.81 / 47.11 ms โ no change โ
โ QQuery 46 โ 8.18 / 8.82 ยฑ0.61 / 9.79 ms โ 8.04 / 8.81 ยฑ0.73 / 10.15 ms โ no change โ
โ QQuery 47 โ 778.41 / 788.61 ยฑ8.31 / 798.48 ms โ 780.78 / 792.58 ยฑ7.61 / 800.73 ms โ no change โ
โ QQuery 48 โ 487.94 / 496.89 ยฑ9.68 / 515.06 ms โ 487.32 / 497.83 ยฑ9.11 / 512.35 ms โ no change โ
โ QQuery 49 โ 276.59 / 288.78 ยฑ6.36 / 295.25 ms โ 281.57 / 283.88 ยฑ2.33 / 287.50 ms โ no change โ
โ QQuery 50 โ 528.09 / 539.70 ยฑ5.83 / 543.50 ms โ 522.18 / 539.32 ยฑ9.25 / 547.08 ms โ no change โ
โ QQuery 51 โ 219.36 / 222.42 ยฑ1.87 / 224.69 ms โ 214.82 / 221.71 ยฑ4.07 / 226.67 ms โ no change โ
โ QQuery 52 โ 112.52 / 116.26 ยฑ2.91 / 119.65 ms โ 109.67 / 113.95 ยฑ2.17 / 115.48 ms โ no change โ
โ QQuery 53 โ 137.97 / 143.67 ยฑ5.10 / 152.01 ms โ 146.24 / 148.92 ยฑ2.64 / 153.85 ms โ no change โ
โ QQuery 54 โ 125.65 / 129.32 ยฑ1.98 / 131.40 ms โ 123.72 / 130.65 ยฑ3.58 / 133.61 ms โ no change โ
โ QQuery 55 โ 110.58 / 114.15 ยฑ3.38 / 120.51 ms โ 115.76 / 116.96 ยฑ0.71 / 117.53 ms โ no change โ
โ QQuery 56 โ 131.03 / 133.55 ยฑ1.71 / 135.18 ms โ 133.93 / 137.71 ยฑ2.63 / 141.60 ms โ no change โ
โ QQuery 57 โ 184.70 / 189.24 ยฑ2.91 / 192.62 ms โ 188.44 / 191.89 ยฑ2.07 / 194.93 ms โ no change โ
โ QQuery 58 โ 224.54 / 226.61 ยฑ1.73 / 229.43 ms โ 226.18 / 229.38 ยฑ2.00 / 232.01 ms โ no change โ
โ QQuery 59 โ 277.71 / 281.61 ยฑ2.30 / 284.51 ms โ 286.10 / 288.20 ยฑ1.74 / 290.67 ms โ no change โ
โ QQuery 60 โ 136.48 / 139.43 ยฑ1.95 / 142.16 ms โ 140.78 / 142.93 ยฑ2.35 / 147.37 ms โ no change โ
โ QQuery 61 โ 12.05 / 12.24 ยฑ0.18 / 12.55 ms โ 12.40 / 12.77 ยฑ0.38 / 13.46 ms โ no change โ
โ QQuery 62 โ 902.12 / 914.70 ยฑ11.15 / 931.09 ms โ 936.07 / 1023.46 ยฑ53.61 / 1105.09 ms โ 1.12x slower โ
โ QQuery 63 โ 138.69 / 145.07 ยฑ5.74 / 155.48 ms โ 146.87 / 150.86 ยฑ2.42 / 154.21 ms โ no change โ
โ QQuery 64 โ 28479.45 / 29589.19 ยฑ860.85 / 30711.89 ms โ 27921.50 / 29726.24 ยฑ1250.94 / 31123.64 ms โ no change โ
โ QQuery 65 โ 365.31 / 370.78 ยฑ4.46 / 378.90 ms โ 362.12 / 367.27 ยฑ3.96 / 373.82 ms โ no change โ
โ QQuery 66 โ 189.10 / 198.63 ยฑ7.17 / 209.21 ms โ 195.26 / 200.95 ยฑ4.50 / 208.66 ms โ no change โ
โ QQuery 67 โ 496.11 / 508.80 ยฑ8.34 / 518.08 ms โ 508.83 / 513.91 ยฑ3.67 / 518.47 ms โ no change โ
โ QQuery 68 โ 9.11 / 10.76 ยฑ1.14 / 12.39 ms โ 8.19 / 9.41 ยฑ0.84 / 10.39 ms โ +1.14x faster โ
โ QQuery 69 โ 154.54 / 169.19 ยฑ8.16 / 178.42 ms โ 164.42 / 176.81 ยฑ6.65 / 182.99 ms โ no change โ
โ QQuery 70 โ 429.24 / 436.66 ยฑ8.48 / 450.37 ms โ 425.12 / 439.87 ยฑ8.86 / 449.33 ms โ no change โ
โ QQuery 71 โ 124.30 / 131.40 ยฑ5.22 / 140.31 ms โ 126.22 / 131.84 ยฑ3.29 / 135.22 ms โ no change โ
โ QQuery 72 โ 1193.16 / 1205.89 ยฑ9.64 / 1220.37 ms โ 1193.32 / 1205.72 ยฑ7.90 / 1218.01 ms โ no change โ
โ QQuery 73 โ 6.39 / 7.05 ยฑ0.56 / 8.05 ms โ 6.41 / 6.95 ยฑ0.30 / 7.33 ms โ no change โ
โ QQuery 74 โ 503.12 / 506.81 ยฑ2.33 / 509.38 ms โ 500.68 / 507.79 ยฑ4.35 / 512.38 ms โ no change โ
โ QQuery 75 โ 282.58 / 288.01 ยฑ2.98 / 290.72 ms โ 277.61 / 285.95 ยฑ4.71 / 290.08 ms โ no change โ
โ QQuery 76 โ 273.80 / 280.15 ยฑ3.92 / 283.85 ms โ 278.70 / 283.88 ยฑ3.62 / 287.72 ms โ no change โ
โ QQuery 77 โ 225.00 / 230.95 ยฑ5.67 / 240.14 ms โ 223.53 / 229.18 ยฑ3.70 / 233.50 ms โ no change โ
โ QQuery 78 โ 303.48 / 359.18 ยฑ79.77 / 510.39 ms โ 306.34 / 309.54 ยฑ2.94 / 314.50 ms โ +1.16x faster โ
โ QQuery 79 โ 259.61 / 263.68 ยฑ2.95 / 267.70 ms โ 252.74 / 264.16 ยฑ5.86 / 268.44 ms โ no change โ
โ QQuery 80 โ 280.17 / 284.12 ยฑ2.94 / 288.17 ms โ 279.90 / 286.03 ยฑ5.28 / 293.28 ms โ no change โ
โ QQuery 81 โ 30.73 / 32.60 ยฑ1.84 / 35.94 ms โ 29.87 / 31.57 ยฑ1.42 / 33.75 ms โ no change โ
โ QQuery 82 โ 46.83 / 49.33 ยฑ1.81 / 51.78 ms โ 48.51 / 49.65 ยฑ0.88 / 50.76 ms โ no change โ
โ QQuery 83 โ 44.59 / 46.22 ยฑ1.51 / 48.83 ms โ 45.18 / 45.81 ยฑ0.32 / 46.04 ms โ no change โ
โ QQuery 84 โ 65.26 / 66.02 ยฑ0.44 / 66.52 ms โ 66.07 / 66.48 ยฑ0.32 / 67.05 ms โ no change โ
โ QQuery 85 โ 280.66 / 286.73 ยฑ4.67 / 292.59 ms โ 284.84 / 288.43 ยฑ2.54 / 292.05 ms โ no change โ
โ QQuery 86 โ 47.05 / 49.01 ยฑ1.22 / 50.70 ms โ 48.96 / 49.56 ยฑ0.36 / 50.06 ms โ no change โ
โ QQuery 87 โ 98.33 / 107.76 ยฑ6.26 / 116.32 ms โ 106.51 / 110.54 ยฑ2.38 / 113.28 ms โ no change โ
โ QQuery 88 โ 126.77 / 132.86 ยฑ3.70 / 136.77 ms โ 127.70 / 133.81 ยฑ5.27 / 142.50 ms โ no change โ
โ QQuery 89 โ 148.50 / 159.49 ยฑ8.80 / 170.84 ms โ 150.57 / 155.04 ยฑ4.18 / 162.40 ms โ no change โ
โ QQuery 90 โ 25.30 / 26.89 ยฑ1.14 / 28.71 ms โ 26.08 / 27.13 ยฑ0.68 / 28.07 ms โ no change โ
โ QQuery 91 โ 97.39 / 105.11 ยฑ5.31 / 113.96 ms โ 103.48 / 106.86 ยฑ2.45 / 109.80 ms โ no change โ
โ QQuery 92 โ 51.73 / 53.86 ยฑ1.41 / 56.10 ms โ 51.80 / 56.09 ยฑ3.13 / 61.53 ms โ no change โ
โ QQuery 93 โ 187.60 / 188.47 ยฑ0.82 / 189.80 ms โ 185.89 / 188.65 ยฑ1.75 / 191.37 ms โ no change โ
โ QQuery 94 โ 67.62 / 69.87 ยฑ1.38 / 71.29 ms โ 68.20 / 69.23 ยฑ0.83 / 70.29 ms โ no change โ
โ QQuery 95 โ 147.26 / 150.52 ยฑ1.92 / 152.98 ms โ 148.36 / 150.31 ยฑ1.51 / 152.90 ms โ no change โ
โ QQuery 96 โ 72.95 / 84.80 ยฑ6.22 / 89.62 ms โ 74.54 / 83.90 ยฑ6.29 / 91.28 ms โ no change โ
โ QQuery 97 โ 155.22 / 156.50 ยฑ1.00 / 158.04 ms โ 151.43 / 153.48 ยฑ1.91 / 156.60 ms โ no change โ
โ QQuery 98 โ 119.68 / 123.45 ยฑ1.99 / 125.26 ms โ 123.34 / 125.09 ยฑ1.82 / 128.08 ms โ no change โ
โ QQuery 99 โ 10719.85 / 10751.64 ยฑ24.04 / 10783.67 ms โ 10722.92 / 10765.15 ยฑ26.56 / 10799.07 ms โ no change โ
โโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 62111.96ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 62432.98ms โ
โ Average Time (HEAD) โ 627.39ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 630.64ms โ
โ Queries Faster โ 4 โ
โ Queries Slower โ 6 โ
โ Queries with No Change โ 89 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpcds โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 315.1s |
| Peak memory | 37.8 GiB |
| Avg memory | 27.4 GiB |
| CPU user | 615.9s |
| CPU sys | 26.6s |
| Peak spill | 0 B |
**tpcds โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 315.1s |
| Peak memory | 37.1 GiB |
| Avg memory | 26.2 GiB |
| CPU user | 624.9s |
| CPU sys | 27.8s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4282444167
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4282216441)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark tpcds_sf1.json
--------------------
โโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ QQuery 1 โ 6.46 / 6.87 ยฑ0.73 / 8.32 ms โ 6.47 / 6.93 ยฑ0.70 / 8.31 ms โ no change โ
โ QQuery 2 โ 147.30 / 147.98 ยฑ0.58 / 148.72 ms โ 145.69 / 146.89 ยฑ0.99 / 148.29 ms โ no change โ
โ QQuery 3 โ 114.12 / 115.17 ยฑ0.75 / 116.34 ms โ 113.98 / 114.64 ยฑ0.66 / 115.92 ms โ no change โ
โ QQuery 4 โ 1314.32 / 1344.53 ยฑ30.19 / 1380.79 ms โ 1315.50 / 1336.33 ยฑ14.38 / 1354.65 ms โ no change โ
โ QQuery 5 โ 173.65 / 175.38 ยฑ1.92 / 178.05 ms โ 173.36 / 174.09 ยฑ0.42 / 174.64 ms โ no change โ
โ QQuery 6 โ 850.68 / 883.68 ยฑ18.24 / 906.79 ms โ 853.52 / 861.90 ยฑ8.62 / 875.75 ms โ no change โ
โ QQuery 7 โ 343.96 / 347.70 ยฑ2.91 / 352.54 ms โ 342.64 / 345.25 ยฑ2.39 / 348.60 ms โ no change โ
โ QQuery 8 โ 116.71 / 118.40 ยฑ1.30 / 120.31 ms โ 115.66 / 117.96 ยฑ1.31 / 119.66 ms โ no change โ
โ QQuery 9 โ 100.63 / 109.86 ยฑ9.38 / 127.92 ms โ 100.84 / 103.26 ยฑ2.35 / 106.42 ms โ +1.06x faster โ
โ QQuery 10 โ 105.55 / 107.09 ยฑ1.20 / 108.56 ms โ 105.52 / 106.03 ยฑ0.48 / 106.68 ms โ no change โ
โ QQuery 11 โ 947.70 / 959.97 ยฑ8.25 / 969.93 ms โ 939.03 / 950.33 ยฑ7.31 / 960.55 ms โ no change โ
โ QQuery 12 โ 45.80 / 48.19 ยฑ1.86 / 50.71 ms โ 43.69 / 45.44 ยฑ1.25 / 46.67 ms โ +1.06x faster โ
โ QQuery 13 โ 403.23 / 407.05 ยฑ2.93 / 412.21 ms โ 399.80 / 404.47 ยฑ3.77 / 408.93 ms โ no change โ
โ QQuery 14 โ 1001.91 / 1012.36 ยฑ8.71 / 1025.32 ms โ 999.61 / 1006.65 ยฑ4.90 / 1014.37 ms โ no change โ
โ QQuery 15 โ 15.77 / 17.13 ยฑ1.07 / 18.63 ms โ 16.39 / 17.80 ยฑ1.50 / 20.28 ms โ no change โ
โ QQuery 16 โ 7.17 / 7.74 ยฑ0.74 / 9.11 ms โ 7.16 / 7.71 ยฑ0.34 / 8.22 ms โ no change โ
โ QQuery 17 โ 228.67 / 231.39 ยฑ1.41 / 232.42 ms โ 228.48 / 229.41 ยฑ0.80 / 230.72 ms โ no change โ
โ QQuery 18 โ 127.82 / 128.98 ยฑ0.83 / 130.07 ms โ 129.61 / 130.35 ยฑ0.67 / 131.48 ms โ no change โ
โ QQuery 19 โ 154.60 / 156.37 ยฑ1.46 / 158.58 ms โ 155.67 / 157.18 ยฑ1.25 / 158.62 ms โ no change โ
โ QQuery 20 โ 13.36 / 14.03 ยฑ0.41 / 14.48 ms โ 13.38 / 13.85 ยฑ0.27 / 14.20 ms โ no change โ
โ QQuery 21 โ 18.83 / 19.61 ยฑ0.54 / 20.49 ms โ 19.31 / 19.69 ยฑ0.24 / 20.07 ms โ no change โ
โ QQuery 22 โ 479.98 / 483.97 ยฑ4.50 / 490.54 ms โ 486.89 / 490.90 ยฑ2.69 / 493.30 ms โ no change โ
โ QQuery 23 โ 879.69 / 888.70 ยฑ6.32 / 895.11 ms โ 861.04 / 876.58 ยฑ8.89 / 886.26 ms โ no change โ
โ QQuery 24 โ 385.00 / 388.86 ยฑ3.01 / 392.26 ms โ 380.78 / 383.35 ยฑ1.91 / 386.43 ms โ no change โ
โ QQuery 25 โ 342.76 / 345.20 ยฑ1.71 / 347.56 ms โ 340.49 / 342.50 ยฑ1.22 / 343.81 ms โ no change โ
โ QQuery 26 โ 82.11 / 83.99 ยฑ2.05 / 87.79 ms โ 80.66 / 81.91 ยฑ1.06 / 83.25 ms โ no change โ
โ QQuery 27 โ 6.63 / 6.78 ยฑ0.17 / 7.11 ms โ 6.90 / 7.93 ยฑ0.89 / 9.33 ms โ 1.17x slower โ
โ QQuery 28 โ 148.98 / 150.51 ยฑ1.74 / 153.75 ms โ 149.20 / 150.72 ยฑ1.27 / 152.69 ms โ no change โ
โ QQuery 29 โ 279.27 / 282.33 ยฑ2.51 / 286.35 ms โ 281.41 / 284.98 ยฑ2.85 / 289.26 ms โ no change โ
โ QQuery 30 โ 42.60 / 45.11 ยฑ2.07 / 47.67 ms โ 44.57 / 45.67 ยฑ0.68 / 46.66 ms โ no change โ
โ QQuery 31 โ 172.35 / 175.06 ยฑ2.06 / 178.40 ms โ 171.17 / 172.35 ยฑ0.84 / 173.40 ms โ no change โ
โ QQuery 32 โ 13.37 / 13.93 ยฑ0.62 / 14.92 ms โ 13.03 / 13.48 ยฑ0.29 / 13.88 ms โ no change โ
โ QQuery 33 โ 140.05 / 141.60 ยฑ1.22 / 143.52 ms โ 140.97 / 141.87 ยฑ0.64 / 142.90 ms โ no change โ
โ QQuery 34 โ 7.03 / 7.25 ยฑ0.16 / 7.45 ms โ 7.08 / 7.60 ยฑ0.43 / 8.37 ms โ no change โ
โ QQuery 35 โ 105.24 / 108.33 ยฑ2.20 / 111.34 ms โ 106.49 / 108.44 ยฑ1.11 / 109.40 ms โ no change โ
โ QQuery 36 โ 6.38 / 6.65 ยฑ0.17 / 6.88 ms โ 6.25 / 6.51 ยฑ0.20 / 6.78 ms โ no change โ
โ QQuery 37 โ 8.06 / 8.92 ยฑ1.05 / 10.94 ms โ 8.33 / 8.96 ยฑ0.48 / 9.80 ms โ no change โ
โ QQuery 38 โ 83.98 / 87.12 ยฑ2.97 / 92.44 ms โ 85.28 / 87.75 ยฑ1.75 / 90.45 ms โ no change โ
โ QQuery 39 โ 125.61 / 128.62 ยฑ2.37 / 132.02 ms โ 126.36 / 127.51 ยฑ1.04 / 129.17 ms โ no change โ
โ QQuery 40 โ 108.68 / 117.16 ยฑ8.21 / 131.34 ms โ 106.75 / 115.10 ยฑ7.72 / 129.63 ms โ no change โ
โ QQuery 41 โ 14.55 / 15.32 ยฑ0.54 / 16.21 ms โ 14.25 / 15.33 ยฑ0.99 / 16.77 ms โ no change โ
โ QQuery 42 โ 107.94 / 109.65 ยฑ1.58 / 111.81 ms โ 107.71 / 109.23 ยฑ1.29 / 110.93 ms โ no change โ
โ QQuery 43 โ 5.53 / 5.72 ยฑ0.26 / 6.21 ms โ 5.57 / 5.76 ยฑ0.22 / 6.19 ms โ no change โ
โ QQuery 44 โ 11.30 / 11.64 ยฑ0.31 / 12.17 ms โ 11.76 / 11.76 ยฑ0.01 / 11.77 ms โ no change โ
โ QQuery 45 โ 51.59 / 52.53 ยฑ0.71 / 53.38 ms โ 51.22 / 52.67 ยฑ1.10 / 54.33 ms โ no change โ
โ QQuery 46 โ 7.96 / 8.37 ยฑ0.28 / 8.69 ms โ 8.24 / 8.50 ยฑ0.19 / 8.79 ms โ no change โ
โ QQuery 47 โ 712.78 / 719.32 ยฑ5.16 / 726.87 ms โ 701.98 / 709.68 ยฑ6.54 / 719.87 ms โ no change โ
โ QQuery 48 โ 295.32 / 296.81 ยฑ0.94 / 298.21 ms โ 283.82 / 290.27 ยฑ3.33 / 292.71 ms โ no change โ
โ QQuery 49 โ 249.52 / 253.84 ยฑ2.80 / 257.13 ms โ 252.88 / 255.46 ยฑ2.38 / 258.56 ms โ no change โ
โ QQuery 50 โ 221.71 / 226.05 ยฑ3.15 / 229.75 ms โ 226.56 / 229.08 ยฑ2.67 / 233.73 ms โ no change โ
โ QQuery 51 โ 177.70 / 184.05 ยฑ3.37 / 187.49 ms โ 181.16 / 183.54 ยฑ2.14 / 186.77 ms โ no change โ
โ QQuery 52 โ 107.81 / 109.88 ยฑ2.43 / 114.48 ms โ 108.63 / 110.04 ยฑ1.07 / 111.82 ms โ no change โ
โ QQuery 53 โ 102.27 / 103.83 ยฑ1.45 / 106.56 ms โ 102.32 / 102.67 ยฑ0.30 / 103.05 ms โ no change โ
โ QQuery 54 โ 144.57 / 146.15 ยฑ0.88 / 146.96 ms โ 144.40 / 146.27 ยฑ1.29 / 148.10 ms โ no change โ
โ QQuery 55 โ 107.34 / 108.54 ยฑ1.71 / 111.88 ms โ 106.22 / 107.37 ยฑ0.99 / 108.53 ms โ no change โ
โ QQuery 56 โ 140.36 / 141.97 ยฑ1.24 / 143.81 ms โ 140.12 / 144.33 ยฑ2.66 / 147.67 ms โ no change โ
โ QQuery 57 โ 174.18 / 176.31 ยฑ1.49 / 177.85 ms โ 173.22 / 174.77 ยฑ0.96 / 175.81 ms โ no change โ
โ QQuery 58 โ 273.57 / 275.33 ยฑ1.76 / 278.42 ms โ 270.90 / 272.14 ยฑ1.40 / 274.09 ms โ no change โ
โ QQuery 59 โ 195.74 / 198.74 ยฑ2.62 / 203.50 ms โ 195.90 / 198.04 ยฑ1.91 / 201.62 ms โ no change โ
โ QQuery 60 โ 141.57 / 144.21 ยฑ1.81 / 146.38 ms โ 142.83 / 144.37 ยฑ1.16 / 145.36 ms โ no change โ
โ QQuery 61 โ 12.86 / 13.10 ยฑ0.19 / 13.39 ms โ 12.69 / 13.14 ยฑ0.44 / 13.77 ms โ no change โ
โ QQuery 62 โ 882.75 / 931.16 ยฑ35.92 / 981.58 ms โ 889.72 / 930.14 ยฑ30.57 / 973.19 ms โ no change โ
โ QQuery 63 โ 106.39 / 107.01 ยฑ0.75 / 108.45 ms โ 104.69 / 107.34 ยฑ2.28 / 110.20 ms โ no change โ
โ QQuery 64 โ 688.19 / 692.06 ยฑ4.39 / 700.51 ms โ 695.83 / 700.18 ยฑ4.94 / 709.74 ms โ no change โ
โ QQuery 65 โ 253.46 / 255.36 ยฑ1.21 / 257.11 ms โ 251.48 / 256.97 ยฑ4.35 / 262.61 ms โ no change โ
โ QQuery 66 โ 255.98 / 290.96 ยฑ19.31 / 313.86 ms โ 237.66 / 250.41 ยฑ11.32 / 267.88 ms โ +1.16x faster โ
โ QQuery 67 โ 307.70 / 314.71 ยฑ5.88 / 322.53 ms โ 307.90 / 321.14 ยฑ11.35 / 339.45 ms โ no change โ
โ QQuery 68 โ 8.49 / 10.83 ยฑ1.42 / 12.67 ms โ 9.12 / 11.02 ยฑ1.62 / 13.02 ms โ no change โ
โ QQuery 69 โ 100.72 / 102.91 ยฑ1.72 / 105.96 ms โ 102.01 / 103.92 ยฑ1.05 / 105.07 ms โ no change โ
โ QQuery 70 โ 340.82 / 360.10 ยฑ12.89 / 376.15 ms โ 343.32 / 349.41 ยฑ5.63 / 359.50 ms โ no change โ
โ QQuery 71 โ 135.92 / 143.17 ยฑ9.48 / 161.80 ms โ 136.93 / 139.71 ยฑ2.85 / 144.41 ms โ no change โ
โ QQuery 72 โ 613.96 / 631.13 ยฑ12.49 / 647.65 ms โ 613.20 / 620.27 ยฑ5.74 / 627.79 ms โ no change โ
โ QQuery 73 โ 6.48 / 7.73 ยฑ1.48 / 10.54 ms โ 6.39 / 7.16 ยฑ0.48 / 7.79 ms โ +1.08x faster โ
โ QQuery 74 โ 585.99 / 599.90 ยฑ11.09 / 615.88 ms โ 593.84 / 601.87 ยฑ6.54 / 613.20 ms โ no change โ
โ QQuery 75 โ 277.18 / 278.16 ยฑ0.98 / 279.80 ms โ 274.90 / 279.00 ยฑ3.36 / 284.03 ms โ no change โ
โ QQuery 76 โ 131.20 / 132.20 ยฑ0.82 / 133.19 ms โ 128.58 / 131.71 ยฑ2.52 / 135.92 ms โ no change โ
โ QQuery 77 โ 189.50 / 193.46 ยฑ3.09 / 197.73 ms โ 188.21 / 190.49 ยฑ2.02 / 194.15 ms โ no change โ
โ QQuery 78 โ 342.00 / 345.99 ยฑ2.12 / 347.89 ms โ 337.69 / 343.39 ยฑ3.81 / 347.14 ms โ no change โ
โ QQuery 79 โ 236.34 / 238.33 ยฑ1.00 / 239.02 ms โ 231.92 / 236.58 ยฑ2.71 / 240.13 ms โ no change โ
โ QQuery 80 โ 325.37 / 326.61 ยฑ0.73 / 327.38 ms โ 326.27 / 329.05 ยฑ3.10 / 333.56 ms โ no change โ
โ QQuery 81 โ 25.95 / 26.54 ยฑ0.38 / 27.15 ms โ 26.16 / 27.36 ยฑ0.88 / 28.80 ms โ no change โ
โ QQuery 82 โ 40.02 / 40.60 ยฑ0.53 / 41.43 ms โ 41.02 / 42.38 ยฑ0.81 / 43.32 ms โ no change โ
โ QQuery 83 โ 38.15 / 39.56 ยฑ1.11 / 40.89 ms โ 38.39 / 39.15 ยฑ0.50 / 39.66 ms โ no change โ
โ QQuery 84 โ 48.73 / 49.89 ยฑ1.22 / 51.95 ms โ 49.15 / 49.57 ยฑ0.30 / 50.01 ms โ no change โ
โ QQuery 85 โ 149.39 / 150.96 ยฑ1.64 / 153.50 ms โ 148.33 / 149.30 ยฑ0.67 / 150.22 ms โ no change โ
โ QQuery 86 โ 39.12 / 40.21 ยฑ0.76 / 41.25 ms โ 39.03 / 40.50 ยฑ1.14 / 42.00 ms โ no change โ
โ QQuery 87 โ 82.33 / 87.74 ยฑ4.93 / 95.80 ms โ 84.74 / 87.67 ยฑ3.06 / 92.56 ms โ no change โ
โ QQuery 88 โ 99.81 / 100.41 ยฑ0.99 / 102.39 ms โ 99.52 / 99.83 ยฑ0.27 / 100.26 ms โ no change โ
โ QQuery 89 โ 118.97 / 119.98 ยฑ0.77 / 120.91 ms โ 120.01 / 120.81 ยฑ0.64 / 121.67 ms โ no change โ
โ QQuery 90 โ 23.70 / 24.24 ยฑ0.30 / 24.54 ms โ 23.88 / 24.74 ยฑ0.71 / 25.68 ms โ no change โ
โ QQuery 91 โ 61.35 / 65.00 ยฑ2.17 / 67.78 ms โ 62.04 / 64.71 ยฑ1.92 / 67.85 ms โ no change โ
โ QQuery 92 โ 58.18 / 58.86 ยฑ0.53 / 59.67 ms โ 57.80 / 59.30 ยฑ0.98 / 60.76 ms โ no change โ
โ QQuery 93 โ 187.96 / 188.99 ยฑ1.08 / 191.06 ms โ 187.56 / 188.68 ยฑ0.99 / 190.23 ms โ no change โ
โ QQuery 94 โ 62.33 / 64.28 ยฑ1.61 / 67.08 ms โ 61.25 / 62.41 ยฑ0.96 / 63.35 ms โ no change โ
โ QQuery 95 โ 129.09 / 130.93 ยฑ1.39 / 132.90 ms โ 130.33 / 132.76 ยฑ2.34 / 136.36 ms โ no change โ
โ QQuery 96 โ 73.24 / 75.06 ยฑ1.52 / 77.78 ms โ 73.93 / 75.80 ยฑ0.96 / 76.59 ms โ no change โ
โ QQuery 97 โ 125.91 / 127.61 ยฑ1.59 / 129.87 ms โ 130.51 / 131.65 ยฑ1.00 / 133.26 ms โ no change โ
โ QQuery 98 โ 153.91 / 155.45 ยฑ1.03 / 156.99 ms โ 160.13 / 163.86 ยฑ1.96 / 165.43 ms โ 1.05x slower โ
โ QQuery 99 โ 10750.02 / 10931.41 ยฑ244.37 / 11413.63 ms โ 10728.38 / 10890.71 ยฑ192.39 / 11266.49 ms โ no change โ
โโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 31570.41ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 31395.63ms โ
โ Average Time (HEAD) โ 318.89ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 317.13ms โ
โ Queries Faster โ 4 โ
โ Queries Slower โ 2 โ
โ Queries with No Change โ 93 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpcds โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 160.0s |
| Peak memory | 5.3 GiB |
| Avg memory | 4.0 GiB |
| CPU user | 260.7s |
| CPU sys | 17.8s |
| Peak spill | 0 B |
**tpcds โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 160.0s |
| Peak memory | 5.1 GiB |
| Avg memory | 4.0 GiB |
| CPU user | 260.0s |
| CPU sys | 17.1s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on code in PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#discussion_r3123894244
##########
datafusion/datasource-parquet/src/opener.rs:
##########
@@ -1123,13 +1166,157 @@ impl RowGroupsPrunedParquetOpen {
);
}
- // Prepare the access plan (extract row groups and row selection)
+ // Row group ordering optimization (two composable steps):
+ //
+ // 1. reorder_by_statistics: sort RGs by min values (ASC) to align
+ // with the file's declared output ordering. This fixes out-of-order
+ // RGs (e.g., from append-heavy workloads) without changing direction.
+ // Skipped gracefully when statistics are unavailable.
+ //
+ // 2. reverse: flip the order for DESC queries. Applied AFTER reorder
+ // so the reversed order is correct whether or not reorder changed
+ // anything. Also handles row_selection remapping.
+ //
+ // For sorted data: reorder is a no-op, reverse gives perfect DESC.
+ // For unsorted data: reorder fixes the order, reverse flips for DESC.
+ // Build reorder optimizer from sort_order_for_reorder (Inexact path)
+ // or from DynamicFilterPhysicalExpr sort_options (any TopK query).
+ // Fuzz test uses tiebreaker columns so reorder is safe for all TopK.
+ let reorder_optimizer: Option<
+ Box<dyn crate::access_plan_optimizer::AccessPlanOptimizer>,
+ > = if let Some(sort_order) = &prepared.sort_order_for_reorder {
+ Some(
+ Box::new(crate::access_plan_optimizer::ReorderByStatistics::new(
+ sort_order.clone(),
+ ))
+ as Box<dyn crate::access_plan_optimizer::AccessPlanOptimizer>,
+ )
+ } else if let Some(predicate) = &prepared.predicate
+ && let Some(df) = find_dynamic_filter(predicate)
+ && let Some(sort_options) = df.sort_options()
+ && sort_options.len() == 1
+ {
+ // Build a sort order from DynamicFilter for non-sort-pushdown TopK.
+ // Quick bail: check if the sort column exists in file schema.
+ // For GROUP BY + ORDER BY, the sort column is an aggregate output
+ // (not in parquet) โ skip to avoid wasted StatisticsConverter work.
+ let children = df.children();
+ if !children.is_empty() {
+ let col = find_column_in_expr(children[0]);
+ if let Some(ref c) = col
+ && prepared
+ .physical_file_schema
+ .field_with_name(c.name())
+ .is_ok()
+ {
+ let sort_expr =
+ datafusion_physical_expr_common::sort_expr::PhysicalSortExpr {
+ expr: Arc::clone(children[0]),
+ options: arrow::compute::SortOptions {
+ descending: false,
+ nulls_first: sort_options[0].nulls_first,
+ },
+ };
+ LexOrdering::new(vec![sort_expr]).map(|order| {
+ Box::new(crate::access_plan_optimizer::ReorderByStatistics::new(
+ order,
+ ))
+ as Box<dyn crate::access_plan_optimizer::AccessPlanOptimizer>
+ })
+ } else {
+ None
+ }
+ } else {
+ None
+ }
+ } else {
+ None
+ };
+
+ // Reverse for DESC queries. Only when reorder is active (the sort
+ // column exists in parquet stats). Without reorder, reversing RGs
+ // randomly changes I/O patterns with no benefit.
+ let is_descending = prepared.reverse_row_groups
+ || (reorder_optimizer.is_some()
+ && prepared
+ .predicate
+ .as_ref()
+ .and_then(find_dynamic_filter)
+ .and_then(|df| df.sort_options().map(|opts| opts[0].descending))
+ .unwrap_or(false));
+ let reverse_optimizer: Option<
+ Box<dyn crate::access_plan_optimizer::AccessPlanOptimizer>,
+ > = if is_descending {
+ Some(Box::new(crate::access_plan_optimizer::ReverseRowGroups))
+ } else {
+ None
+ };
+
+ // Prepare the access plan and apply optimizers in order:
+ // 1. reorder (fix out-of-order RGs to match declared ordering)
+ // 2. reverse (flip for DESC queries)
let mut prepared_plan = access_plan.prepare(rg_metadata)?;
+ if let Some(opt) = &reorder_optimizer {
+ prepared_plan = opt.optimize(
+ prepared_plan,
+ file_metadata.as_ref(),
+ &prepared.physical_file_schema,
+ )?;
+ }
+ if let Some(opt) = &reverse_optimizer {
+ prepared_plan = opt.optimize(
+ prepared_plan,
+ file_metadata.as_ref(),
+ &prepared.physical_file_schema,
+ )?;
+ }
- // Potentially reverse the access plan for performance.
- // See `ParquetSource::try_pushdown_sort` for the rationale.
- if prepared.reverse_row_groups {
- prepared_plan = prepared_plan.reverse(file_metadata.as_ref())?;
+ // TopK cumulative pruning: after reorder + reverse, the RGs are in
+ // optimal order. Accumulate rows from the front until >= K, prune rest.
+ //
+ // Only safe when predicate is DynamicFilter-only (no WHERE clause).
+ // With WHERE, raw num_rows overestimates qualifying rows โ cumulative
+ // prune may keep too few RGs, returning fewer than K results.
+ //
+ // Additionally requires either sort pushdown (guaranteed non-overlapping)
+ // or verified non-overlap from statistics.
+ let is_pure_dynamic_filter = prepared.predicate.as_ref().is_some_and(|p| {
+ let any_ref: &dyn std::any::Any = p.as_ref();
+ any_ref
+ .downcast_ref::<DynamicFilterPhysicalExpr>()
+ .is_some()
+ });
+ let has_sort_pushdown = prepared.sort_order_for_reorder.is_some();
+ if is_pure_dynamic_filter
+ && let Some(predicate) = &prepared.predicate
+ && let Some(df) = find_dynamic_filter(predicate)
+ && let Some(fetch) = df.fetch()
+ && (has_sort_pushdown
+ || rgs_are_non_overlapping(
+ &prepared_plan,
+ file_metadata.as_ref(),
+ &prepared.physical_file_schema,
+ &df,
+ ))
+ {
+ let rg_indexes = prepared_plan.row_group_indexes();
+ let mut cumulative = 0usize;
+ let mut keep_count = 0;
+ for &idx in rg_indexes {
+ cumulative += file_metadata.row_group(idx).num_rows() as usize;
Review Comment:
Good point. Currently create_filter and fetch are set in the same method (with_fetch), and we fixed the ordering so fetch is set before create_filter is called. There's no separate code path that updates fetch
without recreating the filter.
But you're right that this coupling is fragile, if a future optimizer calls with_fetch independently, the filter's fetch would go stale. I'll optimize it as follow-up to consider making fetch on DynamicFilterPhysicalExpr read directly from SortExec.fetch (via shared reference) instead of copying the value at creation time.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4286940498
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4286923827)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4286923827-1669-wj25q 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (706ba1c97f725b622473bc15d25a7f96af8e435b) to a737c27 (merge-base) [diff](https://github.com/apache/datafusion/compare/a737c27b775f02e88cf8183dc257f9bb3d6a9024..706ba1c97f725b622473bc15d25a7f96af8e435b) using: sort_pushdown_inexact
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4234479024
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4234477729)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4234477729-1140-pwvsf 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (5018882309b669e31771223f0b266179b98d9764) to 29c5dd5 (merge-base) [diff](https://github.com/apache/datafusion/compare/29c5dd5b8f7c60663ada64f34e15ecf22a7dc9a1..5018882309b669e31771223f0b266179b98d9764) using: clickbench_partitioned
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4241854881
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4241761214)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark tpcds_sf1.json
--------------------
โโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ QQuery 1 โ 6.88 / 7.37 ยฑ0.76 / 8.88 ms โ 6.72 / 7.17 ยฑ0.81 / 8.79 ms โ no change โ
โ QQuery 2 โ 146.27 / 147.09 ยฑ0.88 / 148.72 ms โ 143.81 / 144.48 ยฑ0.51 / 145.08 ms โ no change โ
โ QQuery 3 โ 114.97 / 115.82 ยฑ0.71 / 116.96 ms โ 113.22 / 113.93 ยฑ0.49 / 114.72 ms โ no change โ
โ QQuery 4 โ 1331.41 / 1355.66 ยฑ19.94 / 1381.44 ms โ 1313.41 / 1390.46 ยฑ55.72 / 1460.80 ms โ no change โ
โ QQuery 5 โ 172.52 / 175.22 ยฑ1.98 / 178.44 ms โ 172.42 / 174.98 ยฑ1.64 / 176.95 ms โ no change โ
โ QQuery 6 โ 827.68 / 855.67 ยฑ19.06 / 885.73 ms โ 827.65 / 866.66 ยฑ31.39 / 903.63 ms โ no change โ
โ QQuery 7 โ 343.29 / 348.39 ยฑ2.63 / 350.31 ms โ 346.34 / 349.01 ยฑ2.66 / 353.15 ms โ no change โ
โ QQuery 8 โ 117.48 / 119.06 ยฑ1.34 / 121.16 ms โ 114.74 / 116.46 ยฑ1.05 / 117.99 ms โ no change โ
โ QQuery 9 โ 101.85 / 108.64 ยฑ4.30 / 115.31 ms โ 100.35 / 103.27 ยฑ2.59 / 106.84 ms โ no change โ
โ QQuery 10 โ 106.14 / 107.30 ยฑ0.61 / 107.91 ms โ 106.84 / 107.80 ยฑ0.58 / 108.36 ms โ no change โ
โ QQuery 11 โ 923.68 / 948.50 ยฑ20.59 / 975.05 ms โ 909.71 / 958.94 ยฑ45.05 / 1030.32 ms โ no change โ
โ QQuery 12 โ 44.92 / 46.48 ยฑ1.23 / 48.32 ms โ 47.14 / 47.88 ยฑ0.64 / 49.02 ms โ no change โ
โ QQuery 13 โ 399.86 / 402.70 ยฑ1.72 / 404.55 ms โ 404.28 / 408.27 ยฑ2.85 / 411.44 ms โ no change โ
โ QQuery 14 โ 999.57 / 1012.10 ยฑ9.16 / 1021.79 ms โ 1003.89 / 1016.41 ยฑ7.40 / 1024.69 ms โ no change โ
โ QQuery 15 โ 15.55 / 17.14 ยฑ1.10 / 18.45 ms โ 15.42 / 17.19 ยฑ1.39 / 19.62 ms โ no change โ
โ QQuery 16 โ 7.20 / 7.71 ยฑ0.67 / 9.01 ms โ 7.25 / 7.49 ยฑ0.21 / 7.80 ms โ no change โ
โ QQuery 17 โ 227.36 / 230.39 ยฑ1.93 / 232.27 ms โ 227.73 / 228.72 ยฑ0.78 / 229.70 ms โ no change โ
โ QQuery 18 โ 126.83 / 128.23 ยฑ0.87 / 129.16 ms โ 128.84 / 129.31 ยฑ0.41 / 130.02 ms โ no change โ
โ QQuery 19 โ 156.31 / 159.32 ยฑ1.66 / 161.37 ms โ 154.98 / 155.87 ยฑ1.00 / 157.22 ms โ no change โ
โ QQuery 20 โ 14.99 / 15.28 ยฑ0.20 / 15.60 ms โ 13.94 / 14.65 ยฑ0.62 / 15.79 ms โ no change โ
โ QQuery 21 โ 19.98 / 20.66 ยฑ0.55 / 21.55 ms โ 19.43 / 20.02 ยฑ0.41 / 20.43 ms โ no change โ
โ QQuery 22 โ 495.63 / 502.60 ยฑ3.78 / 506.68 ms โ 491.21 / 495.24 ยฑ3.29 / 498.74 ms โ no change โ
โ QQuery 23 โ 874.57 / 883.89 ยฑ5.06 / 889.87 ms โ 894.97 / 901.57 ยฑ4.30 / 908.22 ms โ no change โ
โ QQuery 24 โ 382.82 / 385.99 ยฑ2.42 / 389.16 ms โ 381.22 / 383.85 ยฑ2.05 / 387.10 ms โ no change โ
โ QQuery 25 โ 339.27 / 342.77 ยฑ2.09 / 345.64 ms โ 338.04 / 342.52 ยฑ2.66 / 346.16 ms โ no change โ
โ QQuery 26 โ 81.06 / 82.21 ยฑ1.03 / 84.08 ms โ 82.34 / 83.85 ยฑ1.17 / 85.67 ms โ no change โ
โ QQuery 27 โ 6.94 / 7.29 ยฑ0.36 / 7.91 ms โ 7.15 / 7.74 ยฑ0.91 / 9.55 ms โ 1.06x slower โ
โ QQuery 28 โ 147.81 / 149.57 ยฑ1.64 / 151.58 ms โ 148.10 / 149.38 ยฑ1.39 / 151.65 ms โ no change โ
โ QQuery 29 โ 282.66 / 285.46 ยฑ2.24 / 288.65 ms โ 279.45 / 281.68 ยฑ1.25 / 283.12 ms โ no change โ
โ QQuery 30 โ 43.06 / 44.82 ยฑ1.55 / 47.11 ms โ 42.97 / 45.19 ยฑ1.19 / 46.31 ms โ no change โ
โ QQuery 31 โ 172.75 / 174.99 ยฑ1.58 / 176.95 ms โ 168.56 / 170.87 ยฑ1.81 / 173.94 ms โ no change โ
โ QQuery 32 โ 57.93 / 67.22 ยฑ15.85 / 98.83 ms โ 56.36 / 57.45 ยฑ0.97 / 58.98 ms โ +1.17x faster โ
โ QQuery 33 โ 141.97 / 144.82 ยฑ2.02 / 147.36 ms โ 140.24 / 142.90 ยฑ1.85 / 145.64 ms โ no change โ
โ QQuery 34 โ 7.17 / 7.45 ยฑ0.22 / 7.79 ms โ 7.09 / 7.29 ยฑ0.24 / 7.61 ms โ no change โ
โ QQuery 35 โ 107.87 / 109.76 ยฑ1.36 / 111.29 ms โ 107.67 / 108.57 ยฑ0.86 / 110.11 ms โ no change โ
โ QQuery 36 โ 6.87 / 7.03 ยฑ0.11 / 7.18 ms โ 6.70 / 7.35 ยฑ0.54 / 8.31 ms โ no change โ
โ QQuery 37 โ 8.33 / 9.27 ยฑ0.96 / 11.08 ms โ 8.34 / 9.10 ยฑ0.63 / 10.17 ms โ no change โ
โ QQuery 38 โ 83.52 / 87.63 ยฑ4.07 / 94.84 ms โ 84.26 / 87.10 ยฑ3.27 / 93.42 ms โ no change โ
โ QQuery 39 โ 129.75 / 131.36 ยฑ1.27 / 133.40 ms โ 125.16 / 126.91 ยฑ1.36 / 128.77 ms โ no change โ
โ QQuery 40 โ 110.14 / 117.11 ยฑ6.69 / 128.81 ms โ 108.13 / 113.44 ยฑ7.78 / 128.80 ms โ no change โ
โ QQuery 41 โ 14.22 / 15.96 ยฑ1.08 / 17.28 ms โ 13.98 / 14.98 ยฑ1.06 / 16.90 ms โ +1.06x faster โ
โ QQuery 42 โ 108.52 / 109.81 ยฑ1.36 / 112.45 ms โ 108.50 / 110.13 ยฑ0.99 / 111.05 ms โ no change โ
โ QQuery 43 โ 6.08 / 6.32 ยฑ0.18 / 6.62 ms โ 6.00 / 6.12 ยฑ0.18 / 6.48 ms โ no change โ
โ QQuery 44 โ 11.96 / 12.24 ยฑ0.22 / 12.60 ms โ 11.71 / 11.96 ยฑ0.21 / 12.30 ms โ no change โ
โ QQuery 45 โ 50.55 / 51.81 ยฑ0.97 / 53.43 ms โ 49.97 / 51.41 ยฑ1.03 / 52.93 ms โ no change โ
โ QQuery 46 โ 8.29 / 8.54 ยฑ0.16 / 8.71 ms โ 8.61 / 8.95 ยฑ0.25 / 9.32 ms โ no change โ
โ QQuery 47 โ 694.29 / 701.84 ยฑ5.85 / 710.62 ms โ 726.15 / 758.64 ยฑ22.30 / 784.38 ms โ 1.08x slower โ
โ QQuery 48 โ 286.20 / 293.70 ยฑ4.09 / 297.77 ms โ 294.87 / 298.86 ยฑ3.91 / 305.64 ms โ no change โ
โ QQuery 49 โ 251.85 / 253.54 ยฑ1.63 / 256.19 ms โ 252.34 / 255.21 ยฑ2.41 / 257.93 ms โ no change โ
โ QQuery 50 โ 217.04 / 225.16 ยฑ4.86 / 231.67 ms โ 219.07 / 223.66 ยฑ3.52 / 229.11 ms โ no change โ
โ QQuery 51 โ 181.14 / 185.07 ยฑ2.02 / 186.87 ms โ 179.92 / 183.52 ยฑ3.24 / 188.41 ms โ no change โ
โ QQuery 52 โ 109.09 / 111.57 ยฑ2.20 / 115.16 ms โ 107.36 / 108.44 ยฑ1.02 / 110.29 ms โ no change โ
โ QQuery 53 โ 103.48 / 105.49 ยฑ1.66 / 107.94 ms โ 102.96 / 103.61 ยฑ0.43 / 104.17 ms โ no change โ
โ QQuery 54 โ 149.13 / 150.35 ยฑ1.16 / 152.32 ms โ 145.68 / 147.71 ยฑ1.47 / 149.74 ms โ no change โ
โ QQuery 55 โ 107.63 / 109.30 ยฑ1.41 / 111.08 ms โ 106.83 / 108.20 ยฑ1.44 / 110.76 ms โ no change โ
โ QQuery 56 โ 142.15 / 143.14 ยฑ0.98 / 144.91 ms โ 140.27 / 142.05 ยฑ1.42 / 143.76 ms โ no change โ
โ QQuery 57 โ 174.34 / 175.89 ยฑ1.22 / 177.36 ms โ 171.80 / 176.55 ยฑ2.40 / 178.29 ms โ no change โ
โ QQuery 58 โ 289.22 / 297.05 ยฑ6.38 / 305.86 ms โ 292.40 / 309.48 ยฑ12.37 / 330.87 ms โ no change โ
โ QQuery 59 โ 201.11 / 203.37 ยฑ1.82 / 205.78 ms โ 200.32 / 201.69 ยฑ1.44 / 204.00 ms โ no change โ
โ QQuery 60 โ 144.74 / 145.37 ยฑ0.71 / 146.61 ms โ 144.68 / 146.09 ยฑ0.94 / 147.39 ms โ no change โ
โ QQuery 61 โ 13.07 / 13.38 ยฑ0.24 / 13.69 ms โ 13.72 / 14.03 ยฑ0.23 / 14.25 ms โ no change โ
โ QQuery 62 โ 880.50 / 935.20 ยฑ32.62 / 981.83 ms โ 909.21 / 928.84 ยฑ19.42 / 961.08 ms โ no change โ
โ QQuery 63 โ 105.65 / 107.46 ยฑ1.17 / 109.26 ms โ 103.64 / 104.43 ยฑ0.66 / 105.54 ms โ no change โ
โ QQuery 64 โ 682.37 / 699.63 ยฑ13.66 / 714.74 ms โ 690.30 / 691.99 ยฑ1.61 / 694.30 ms โ no change โ
โ QQuery 65 โ 258.07 / 261.86 ยฑ2.62 / 264.63 ms โ 252.80 / 256.29 ยฑ2.39 / 260.12 ms โ no change โ
โ QQuery 66 โ 248.26 / 265.58 ยฑ12.57 / 284.89 ms โ 256.14 / 267.98 ยฑ10.66 / 284.99 ms โ no change โ
โ QQuery 67 โ 309.77 / 317.97 ยฑ8.59 / 334.37 ms โ 312.47 / 318.48 ยฑ5.32 / 325.60 ms โ no change โ
โ QQuery 68 โ 8.60 / 10.17 ยฑ1.58 / 12.92 ms โ 8.87 / 9.03 ยฑ0.24 / 9.49 ms โ +1.13x faster โ
โ QQuery 69 โ 101.73 / 104.63 ยฑ2.61 / 107.85 ms โ 101.09 / 104.32 ยฑ2.32 / 106.29 ms โ no change โ
โ QQuery 70 โ 349.41 / 355.66 ยฑ8.48 / 372.20 ms โ 338.64 / 357.32 ยฑ17.19 / 379.54 ms โ no change โ
โ QQuery 71 โ 136.39 / 139.61 ยฑ2.48 / 143.82 ms โ 137.24 / 144.65 ยฑ9.41 / 163.06 ms โ no change โ
โ QQuery 72 โ 617.58 / 626.68 ยฑ8.30 / 638.48 ms โ 613.32 / 618.76 ยฑ3.83 / 624.47 ms โ no change โ
โ QQuery 73 โ 6.89 / 8.06 ยฑ0.94 / 9.38 ms โ 6.75 / 7.89 ยฑ0.76 / 9.04 ms โ no change โ
โ QQuery 74 โ 604.66 / 611.71 ยฑ5.23 / 619.59 ms โ 559.50 / 567.49 ยฑ7.05 / 580.35 ms โ +1.08x faster โ
โ QQuery 75 โ 276.83 / 277.85 ยฑ0.59 / 278.52 ms โ 276.94 / 280.05 ยฑ1.58 / 281.16 ms โ no change โ
โ QQuery 76 โ 134.62 / 136.06 ยฑ1.22 / 138.32 ms โ 131.41 / 133.30 ยฑ2.58 / 138.40 ms โ no change โ
โ QQuery 77 โ 191.31 / 192.49 ยฑ0.91 / 193.59 ms โ 187.61 / 188.93 ยฑ1.75 / 192.32 ms โ no change โ
โ QQuery 78 โ 345.05 / 352.87 ยฑ5.70 / 358.67 ms โ 336.04 / 341.72 ยฑ3.10 / 344.62 ms โ no change โ
โ QQuery 79 โ 235.21 / 239.85 ยฑ3.24 / 244.77 ms โ 228.29 / 234.34 ยฑ3.33 / 237.27 ms โ no change โ
โ QQuery 80 โ 324.26 / 326.41 ยฑ2.02 / 329.10 ms โ 323.41 / 326.12 ยฑ2.50 / 329.57 ms โ no change โ
โ QQuery 81 โ 26.87 / 27.86 ยฑ1.01 / 29.71 ms โ 26.81 / 27.48 ยฑ0.48 / 28.13 ms โ no change โ
โ QQuery 82 โ 199.13 / 201.24 ยฑ1.49 / 203.29 ms โ 197.94 / 199.29 ยฑ0.92 / 200.60 ms โ no change โ
โ QQuery 83 โ 39.18 / 39.89 ยฑ0.58 / 40.67 ms โ 39.16 / 40.44 ยฑ1.47 / 43.28 ms โ no change โ
โ QQuery 84 โ 47.27 / 49.32 ยฑ1.50 / 51.08 ms โ 48.13 / 50.25 ยฑ1.23 / 51.72 ms โ no change โ
โ QQuery 85 โ 148.22 / 149.30 ยฑ0.71 / 150.25 ms โ 149.68 / 150.95 ยฑ0.66 / 151.51 ms โ no change โ
โ QQuery 86 โ 39.97 / 41.01 ยฑ0.64 / 41.92 ms โ 38.71 / 39.74 ยฑ0.88 / 41.00 ms โ no change โ
โ QQuery 87 โ 84.98 / 87.84 ยฑ3.32 / 93.44 ms โ 86.42 / 88.65 ยฑ2.02 / 92.04 ms โ no change โ
โ QQuery 88 โ 100.30 / 101.52 ยฑ1.30 / 104.04 ms โ 99.85 / 101.88 ยฑ1.11 / 102.94 ms โ no change โ
โ QQuery 89 โ 117.79 / 120.24 ยฑ1.24 / 121.11 ms โ 117.26 / 119.42 ยฑ1.99 / 122.38 ms โ no change โ
โ QQuery 90 โ 24.17 / 25.05 ยฑ0.99 / 26.98 ms โ 23.03 / 24.00 ยฑ0.64 / 24.95 ms โ no change โ
โ QQuery 91 โ 59.84 / 63.34 ยฑ1.88 / 65.29 ms โ 61.80 / 63.29 ยฑ1.08 / 64.83 ms โ no change โ
โ QQuery 92 โ 57.03 / 57.80 ยฑ0.56 / 58.62 ms โ 56.89 / 57.69 ยฑ0.66 / 58.72 ms โ no change โ
โ QQuery 93 โ 188.34 / 190.04 ยฑ1.15 / 191.31 ms โ 187.12 / 187.90 ยฑ1.10 / 190.06 ms โ no change โ
โ QQuery 94 โ 61.29 / 62.55 ยฑ0.90 / 64.09 ms โ 61.94 / 62.55 ยฑ0.48 / 63.24 ms โ no change โ
โ QQuery 95 โ 129.61 / 130.86 ยฑ0.80 / 131.68 ms โ 126.05 / 127.25 ยฑ0.90 / 128.79 ms โ no change โ
โ QQuery 96 โ 72.69 / 74.60 ยฑ1.35 / 76.79 ms โ 71.90 / 73.42 ยฑ1.18 / 75.01 ms โ no change โ
โ QQuery 97 โ 126.00 / 128.21 ยฑ1.84 / 131.12 ms โ 123.72 / 125.59 ยฑ0.99 / 126.36 ms โ no change โ
โ QQuery 98 โ 156.29 / 159.58 ยฑ2.69 / 162.88 ms โ 152.68 / 155.57 ยฑ1.49 / 156.73 ms โ no change โ
โ QQuery 99 โ 10758.11 / 10835.24 ยฑ53.92 / 10912.46 ms โ 10795.77 / 10835.82 ยฑ32.44 / 10873.73 ms โ no change โ
โโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 31704.13ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 31695.34ms โ
โ Average Time (HEAD) โ 320.24ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 320.15ms โ
โ Queries Faster โ 4 โ
โ Queries Slower โ 2 โ
โ Queries with No Change โ 93 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpcds โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 158.9s |
| Peak memory | 5.4 GiB |
| Avg memory | 4.5 GiB |
| CPU user | 261.9s |
| CPU sys | 17.3s |
| Peak spill | 0 B |
**tpcds โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 158.8s |
| Peak memory | 5.5 GiB |
| Avg memory | 4.4 GiB |
| CPU user | 262.1s |
| CPU sys | 17.6s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangb (via GitHub)" <gi...@apache.org>.
adriangb commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4248900527
(maybe the conflicts are an indication that we should focus on https://github.com/apache/datafusion/pull/21351 and then loop back to here?)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4241772493
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4241761214)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4241761214-1198-87llz 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (802840a3bdc4156cfa2762957a1926c4d86a5182) to e0fd16e (merge-base) [diff](https://github.com/apache/datafusion/compare/e0fd16ee3fc88e58f8c3e2f63a43ccf3d4ab2f9e..802840a3bdc4156cfa2762957a1926c4d86a5182) using: tpcds
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4266745107
But let's focus first on getting the ordering in ๐
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on code in PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#discussion_r3088558848
##########
benchmarks/queries/sort_pushdown_inexact/q1.sql:
##########
@@ -0,0 +1,8 @@
+-- Inexact path: TopK + DESC LIMIT on ASC-declared file.
Review Comment:
Perhaps we can add the benchmark queries as a separate PR to make it easier to run automated benchmarks against this code
##########
datafusion/datasource-parquet/src/opener.rs:
##########
@@ -1223,9 +1230,20 @@ impl RowGroupsPrunedParquetOpen {
// Prepare the access plan (extract row groups and row selection)
let mut prepared_plan = access_plan.prepare(rg_metadata)?;
- // Potentially reverse the access plan for performance.
- // See `ParquetSource::try_pushdown_sort` for the rationale.
- if prepared.reverse_row_groups {
+ // Reorder row groups by statistics if sort order is known.
Review Comment:
I wonder if this would be easier to understand if it were part of "preparing" an access plan rather than something that was applied as a post pass
##########
datafusion/datasource-parquet/src/opener.rs:
##########
@@ -154,6 +155,10 @@ pub(super) struct ParquetMorselizer {
pub max_predicate_cache_size: Option<usize>,
/// Whether to read row groups in reverse order
pub reverse_row_groups: bool,
+ /// Optional sort order used to reorder row groups by their min/max statistics.
Review Comment:
This would also avoid having to plumb the option through so much (aka only pass down an AccessPlanOptimizer rather than a bunch of different flags)
##########
datafusion/datasource-parquet/src/opener.rs:
##########
@@ -154,6 +155,10 @@ pub(super) struct ParquetMorselizer {
pub max_predicate_cache_size: Option<usize>,
/// Whether to read row groups in reverse order
pub reverse_row_groups: bool,
+ /// Optional sort order used to reorder row groups by their min/max statistics.
Review Comment:
Given we already have `reverse_row_groups` and there may be other per-row group optimizations, I wonder if we should make some sort of more general purpose API
Maybe something like
```rust
trait AccessPlanOptimizer {
fn optimize(&self, plan: AccessPlan) -> AccessPlan;
}
```
And then we could test the various optimization passes together without having to actually run a query plan ๐ค
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4234584146
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4234477729)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark clickbench_extended.json
--------------------
โโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ QQuery 0 โ 806.64 / 824.04 ยฑ15.06 / 844.04 ms โ 818.76 / 831.86 ยฑ9.65 / 847.07 ms โ no change โ
โ QQuery 1 โ 207.91 / 208.37 ยฑ0.34 / 208.85 ms โ 208.05 / 209.42 ยฑ1.18 / 211.29 ms โ no change โ
โ QQuery 2 โ 493.00 / 495.57 ยฑ2.04 / 499.15 ms โ 501.52 / 504.02 ยฑ1.65 / 505.95 ms โ no change โ
โ QQuery 3 โ 313.03 / 314.64 ยฑ0.96 / 315.57 ms โ 313.38 / 315.81 ยฑ1.51 / 317.65 ms โ no change โ
โ QQuery 4 โ 656.64 / 674.45 ยฑ10.93 / 686.40 ms โ 663.78 / 674.03 ยฑ8.68 / 688.82 ms โ no change โ
โ QQuery 5 โ 9437.73 / 9707.73 ยฑ166.88 / 9887.44 ms โ 9679.36 / 9939.30 ยฑ174.56 / 10160.05 ms โ no change โ
โ QQuery 6 โ 1002.26 / 1011.57 ยฑ14.99 / 1041.49 ms โ 997.60 / 1006.50 ยฑ9.67 / 1023.43 ms โ no change โ
โ QQuery 7 โ 773.67 / 806.98 ยฑ35.77 / 873.62 ms โ 778.19 / 786.06 ยฑ5.20 / 792.91 ms โ no change โ
โ QQuery 8 โ 397.92 / 404.38 ยฑ5.08 / 412.20 ms โ 398.58 / 404.24 ยฑ5.67 / 415.04 ms โ no change โ
โ QQuery 9 โ 2807.44 / 2826.33 ยฑ16.14 / 2853.16 ms โ 2754.46 / 2797.70 ยฑ24.98 / 2824.10 ms โ no change โ
โ QQuery 10 โ 633.75 / 639.16 ยฑ5.96 / 648.49 ms โ 631.36 / 642.65 ยฑ13.99 / 670.06 ms โ no change โ
โ QQuery 11 โ 2047.27 / 2070.44 ยฑ19.89 / 2101.14 ms โ 2049.92 / 2079.78 ยฑ21.09 / 2115.19 ms โ no change โ
โ QQuery 12 โ 200.39 / 202.67 ยฑ2.01 / 205.97 ms โ 194.24 / 202.01 ยฑ6.44 / 213.63 ms โ no change โ
โโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 20186.32ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 20393.39ms โ
โ Average Time (HEAD) โ 1552.79ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 1568.72ms โ
โ Queries Faster โ 0 โ
โ Queries Slower โ 0 โ
โ Queries with No Change โ 13 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**clickbench_extended โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 101.8s |
| Peak memory | 32.6 GiB |
| Avg memory | 27.4 GiB |
| CPU user | 981.3s |
| CPU sys | 48.2s |
| Peak spill | 0 B |
**clickbench_extended โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 102.8s |
| Peak memory | 34.1 GiB |
| Avg memory | 29.7 GiB |
| CPU user | 986.9s |
| CPU sys | 46.1s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4234498977
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4234422910)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark clickbench_partitioned.json
--------------------
โโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ QQuery 0 โ 1.19 / 4.47 ยฑ6.41 / 17.29 ms โ 1.18 / 4.49 ยฑ6.46 / 17.40 ms โ no change โ
โ QQuery 1 โ 14.15 / 14.60 ยฑ0.26 / 14.84 ms โ 14.15 / 14.56 ยฑ0.22 / 14.82 ms โ no change โ
โ QQuery 2 โ 44.34 / 44.86 ยฑ0.43 / 45.63 ms โ 43.30 / 43.63 ยฑ0.25 / 44.03 ms โ no change โ
โ QQuery 3 โ 44.54 / 45.82 ยฑ1.10 / 47.71 ms โ 43.32 / 44.20 ยฑ1.01 / 46.01 ms โ no change โ
โ QQuery 4 โ 292.18 / 299.58 ยฑ6.01 / 307.53 ms โ 286.50 / 297.56 ยฑ6.69 / 305.63 ms โ no change โ
โ QQuery 5 โ 347.46 / 350.76 ยฑ2.10 / 353.17 ms โ 346.62 / 348.87 ยฑ1.91 / 351.08 ms โ no change โ
โ QQuery 6 โ 5.72 / 7.22 ยฑ1.67 / 10.45 ms โ 5.59 / 10.51 ยฑ5.76 / 21.61 ms โ 1.46x slower โ
โ QQuery 7 โ 16.96 / 17.07 ยฑ0.12 / 17.27 ms โ 16.65 / 16.92 ยฑ0.19 / 17.22 ms โ no change โ
โ QQuery 8 โ 417.45 / 427.68 ยฑ7.65 / 440.48 ms โ 426.14 / 431.89 ยฑ5.38 / 441.00 ms โ no change โ
โ QQuery 9 โ 677.82 / 684.73 ยฑ7.88 / 698.33 ms โ 648.52 / 655.74 ยฑ10.01 / 675.29 ms โ no change โ
โ QQuery 10 โ 94.83 / 95.71 ยฑ0.80 / 97.09 ms โ 90.54 / 93.26 ยฑ2.43 / 97.71 ms โ no change โ
โ QQuery 11 โ 107.39 / 107.95 ยฑ0.67 / 108.92 ms โ 104.16 / 105.15 ยฑ0.72 / 106.34 ms โ no change โ
โ QQuery 12 โ 349.32 / 356.12 ยฑ4.19 / 361.45 ms โ 338.19 / 342.31 ยฑ2.21 / 344.83 ms โ no change โ
โ QQuery 13 โ 452.34 / 466.84 ยฑ13.61 / 486.92 ms โ 441.75 / 464.03 ยฑ17.71 / 491.08 ms โ no change โ
โ QQuery 14 โ 348.39 / 351.36 ยฑ3.27 / 356.18 ms โ 348.22 / 351.57 ยฑ1.94 / 353.55 ms โ no change โ
โ QQuery 15 โ 357.19 / 373.85 ยฑ17.96 / 408.62 ms โ 362.86 / 368.16 ยฑ5.64 / 376.07 ms โ no change โ
โ QQuery 16 โ 714.87 / 726.32 ยฑ6.98 / 736.12 ms โ 741.65 / 757.99 ยฑ13.25 / 781.76 ms โ no change โ
โ QQuery 17 โ 716.44 / 748.86 ยฑ25.39 / 773.58 ms โ 721.88 / 729.91 ยฑ6.46 / 738.41 ms โ no change โ
โ QQuery 18 โ 1373.87 / 1427.78 ยฑ45.55 / 1482.21 ms โ 1434.15 / 1503.93 ยฑ35.02 / 1525.61 ms โ 1.05x slower โ
โ QQuery 19 โ 35.59 / 36.41 ยฑ0.62 / 37.03 ms โ 36.31 / 38.22 ยฑ1.99 / 41.73 ms โ no change โ
โ QQuery 20 โ 713.38 / 725.99 ยฑ13.06 / 742.01 ms โ 716.03 / 731.70 ยฑ15.57 / 761.50 ms โ no change โ
โ QQuery 21 โ 765.34 / 768.87 ยฑ3.09 / 772.97 ms โ 762.06 / 764.19 ยฑ1.70 / 767.11 ms โ no change โ
โ QQuery 22 โ 1134.09 / 1142.01 ยฑ5.27 / 1147.72 ms โ 1132.10 / 1137.95 ยฑ4.16 / 1143.66 ms โ no change โ
โ QQuery 23 โ 3094.85 / 3120.29 ยฑ14.36 / 3137.68 ms โ 3077.09 / 3115.46 ยฑ20.88 / 3134.31 ms โ no change โ
โ QQuery 24 โ 100.75 / 103.14 ยฑ1.95 / 106.05 ms โ 100.97 / 103.96 ยฑ2.97 / 108.54 ms โ no change โ
โ QQuery 25 โ 139.98 / 141.47 ยฑ1.44 / 144.06 ms โ 138.30 / 140.65 ยฑ1.57 / 142.80 ms โ no change โ
โ QQuery 26 โ 101.23 / 102.52 ยฑ0.77 / 103.55 ms โ 102.40 / 104.22 ยฑ1.40 / 105.89 ms โ no change โ
โ QQuery 27 โ 855.42 / 859.58 ยฑ5.27 / 869.85 ms โ 855.77 / 861.08 ยฑ5.43 / 869.79 ms โ no change โ
โ QQuery 28 โ 3284.27 / 3308.55 ยฑ14.18 / 3325.76 ms โ 3289.54 / 3316.91 ยฑ14.83 / 3330.08 ms โ no change โ
โ QQuery 29 โ 50.39 / 55.78 ยฑ5.11 / 62.80 ms โ 51.97 / 56.29 ยฑ4.39 / 63.23 ms โ no change โ
โ QQuery 30 โ 357.77 / 370.56 ยฑ7.03 / 377.46 ms โ 362.16 / 368.32 ยฑ5.55 / 378.64 ms โ no change โ
โ QQuery 31 โ 363.55 / 385.00 ยฑ12.49 / 398.04 ms โ 398.54 / 401.59 ยฑ2.74 / 405.02 ms โ no change โ
โ QQuery 32 โ 1034.15 / 1059.31 ยฑ22.35 / 1100.09 ms โ 1173.83 / 1288.89 ยฑ81.25 / 1419.40 ms โ 1.22x slower โ
โ QQuery 33 โ 1472.92 / 1487.84 ยฑ11.01 / 1499.14 ms โ 1466.40 / 1513.38 ยฑ43.97 / 1593.67 ms โ no change โ
โ QQuery 34 โ 1464.67 / 1499.90 ยฑ31.40 / 1548.80 ms โ 1475.45 / 1491.40 ยฑ14.74 / 1517.30 ms โ no change โ
โ QQuery 35 โ 390.93 / 396.99 ยฑ5.12 / 404.97 ms โ 392.12 / 396.84 ยฑ3.54 / 401.88 ms โ no change โ
โ QQuery 36 โ 120.42 / 122.98 ยฑ1.62 / 125.38 ms โ 119.20 / 123.01 ยฑ3.25 / 127.60 ms โ no change โ
โ QQuery 37 โ 49.66 / 50.72 ยฑ1.27 / 53.16 ms โ 47.35 / 50.08 ยฑ1.55 / 51.79 ms โ no change โ
โ QQuery 38 โ 76.35 / 78.01 ยฑ1.50 / 80.66 ms โ 76.64 / 77.90 ยฑ0.90 / 78.73 ms โ no change โ
โ QQuery 39 โ 208.12 / 219.98 ยฑ6.84 / 229.12 ms โ 220.84 / 223.45 ยฑ1.88 / 225.94 ms โ no change โ
โ QQuery 40 โ 24.82 / 25.18 ยฑ0.37 / 25.85 ms โ 24.34 / 26.23 ยฑ2.29 / 30.09 ms โ no change โ
โ QQuery 41 โ 20.47 / 21.79 ยฑ1.17 / 23.54 ms โ 20.58 / 21.45 ยฑ0.94 / 23.06 ms โ no change โ
โ QQuery 42 โ 19.76 / 20.16 ยฑ0.31 / 20.63 ms โ 19.68 / 20.30 ยฑ0.47 / 21.02 ms โ no change โ
โโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 22654.62ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 22958.16ms โ
โ Average Time (HEAD) โ 526.85ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 533.91ms โ
โ Queries Faster โ 0 โ
โ Queries Slower โ 3 โ
โ Queries with No Change โ 40 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**clickbench_partitioned โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 114.5s |
| Peak memory | 42.0 GiB |
| Avg memory | 32.4 GiB |
| CPU user | 1080.8s |
| CPU sys | 84.9s |
| Peak spill | 0 B |
**clickbench_partitioned โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 115.9s |
| Peak memory | 37.7 GiB |
| Avg memory | 28.3 GiB |
| CPU user | 1081.1s |
| CPU sys | 96.2s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4293690828
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4293595834)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark sort_pushdown_inexact.json
--------------------
โโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Q1 โ 6.71 / 8.17 ยฑ1.20 / 10.30 ms โ 3.18 / 3.79 ยฑ0.80 / 5.29 ms โ +2.15x faster โ
โ Q2 โ 6.92 / 7.24 ยฑ0.39 / 7.98 ms โ 3.16 / 3.39 ยฑ0.39 / 4.17 ms โ +2.13x faster โ
โ Q3 โ 22.09 / 22.87 ยฑ0.67 / 23.75 ms โ 7.01 / 7.20 ยฑ0.26 / 7.71 ms โ +3.17x faster โ
โ Q4 โ 20.72 / 21.83 ยฑ0.80 / 22.77 ms โ 7.17 / 7.21 ยฑ0.03 / 7.24 ms โ +3.03x faster โ
โโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 60.11ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 21.59ms โ
โ Average Time (HEAD) โ 15.03ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 5.40ms โ
โ Queries Faster โ 4 โ
โ Queries Slower โ 0 โ
โ Queries with No Change โ 0 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**sort_pushdown_inexact โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 4.4 GiB |
| Avg memory | 4.4 GiB |
| CPU user | 2.6s |
| CPU sys | 0.3s |
| Peak spill | 0 B |
**sort_pushdown_inexact โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 4.4 GiB |
| Avg memory | 4.4 GiB |
| CPU user | 0.9s |
| CPU sys | 0.2s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4293861717
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4293745755)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark clickbench_1.json
--------------------
โโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ QQuery 0 โ 0.71 / 1.06 ยฑ0.62 / 2.29 ms โ 0.72 / 1.06 ยฑ0.64 / 2.34 ms โ no change โ
โ QQuery 1 โ 14.01 / 14.32 ยฑ0.38 / 15.06 ms โ 13.92 / 14.29 ยฑ0.41 / 15.07 ms โ no change โ
โ QQuery 2 โ 41.81 / 42.19 ยฑ0.32 / 42.74 ms โ 42.04 / 42.16 ยฑ0.09 / 42.31 ms โ no change โ
โ QQuery 3 โ 38.16 / 39.03 ยฑ0.92 / 40.23 ms โ 38.09 / 38.29 ยฑ0.13 / 38.47 ms โ no change โ
โ QQuery 4 โ 254.08 / 258.22 ยฑ3.78 / 264.69 ms โ 251.30 / 254.54 ยฑ1.76 / 256.25 ms โ no change โ
โ QQuery 5 โ 420.94 / 428.30 ยฑ6.34 / 439.75 ms โ 422.07 / 424.77 ยฑ2.18 / 428.75 ms โ no change โ
โ QQuery 6 โ 6.26 / 6.58 ยฑ0.30 / 7.04 ms โ 6.22 / 6.53 ยฑ0.33 / 7.04 ms โ no change โ
โ QQuery 7 โ 15.98 / 16.07 ยฑ0.08 / 16.16 ms โ 16.15 / 16.35 ยฑ0.16 / 16.64 ms โ no change โ
โ QQuery 8 โ 352.57 / 359.77 ยฑ4.57 / 366.75 ms โ 357.49 / 363.37 ยฑ5.07 / 372.55 ms โ no change โ
โ QQuery 9 โ 526.54 / 528.54 ยฑ1.63 / 530.86 ms โ 521.91 / 533.38 ยฑ10.46 / 548.04 ms โ no change โ
โ QQuery 10 โ 87.84 / 90.57 ยฑ4.13 / 98.77 ms โ 88.36 / 91.46 ยฑ4.75 / 100.91 ms โ no change โ
โ QQuery 11 โ 101.01 / 101.58 ยฑ0.49 / 102.39 ms โ 102.57 / 104.09 ยฑ1.60 / 106.86 ms โ no change โ
โ QQuery 12 โ 429.19 / 445.98 ยฑ15.37 / 474.36 ms โ 427.82 / 441.76 ยฑ10.28 / 459.23 ms โ no change โ
โ QQuery 13 โ 498.66 / 506.89 ยฑ11.66 / 530.02 ms โ 478.98 / 494.18 ยฑ12.72 / 514.17 ms โ no change โ
โ QQuery 14 โ 434.91 / 439.48 ยฑ3.41 / 443.94 ms โ 431.07 / 434.42 ยฑ2.74 / 438.70 ms โ no change โ
โ QQuery 15 โ 294.99 / 302.55 ยฑ6.70 / 314.09 ms โ 301.08 / 304.46 ยฑ3.17 / 310.42 ms โ no change โ
โ QQuery 16 โ 631.99 / 645.31 ยฑ7.92 / 652.37 ms โ 642.57 / 650.64 ยฑ4.97 / 657.25 ms โ no change โ
โ QQuery 17 โ 642.32 / 644.89 ยฑ2.35 / 649.31 ms โ 645.75 / 654.34 ยฑ8.71 / 668.26 ms โ no change โ
โ QQuery 18 โ 1272.13 / 1288.08 ยฑ13.56 / 1303.09 ms โ 1272.54 / 1284.75 ยฑ15.54 / 1313.68 ms โ no change โ
โ QQuery 19 โ 35.15 / 36.51 ยฑ2.35 / 41.21 ms โ 35.04 / 35.22 ยฑ0.14 / 35.47 ms โ no change โ
โ QQuery 20 โ 622.40 / 639.57 ยฑ11.75 / 653.31 ms โ 623.51 / 646.35 ยฑ20.78 / 681.03 ms โ no change โ
โ QQuery 21 โ 709.07 / 719.07 ยฑ10.40 / 737.61 ms โ 708.72 / 725.80 ยฑ11.27 / 738.38 ms โ no change โ
โ QQuery 22 โ 1380.42 / 1392.99 ยฑ13.47 / 1418.77 ms โ 1389.23 / 1395.73 ยฑ7.34 / 1407.26 ms โ no change โ
โ QQuery 23 โ 3794.98 / 3808.40 ยฑ13.62 / 3834.12 ms โ 3762.24 / 3794.71 ยฑ20.43 / 3824.48 ms โ no change โ
โ QQuery 24 โ 214.71 / 221.35 ยฑ7.70 / 234.91 ms โ 214.71 / 219.78 ยฑ6.48 / 232.33 ms โ no change โ
โ QQuery 25 โ 184.80 / 187.12 ยฑ2.01 / 190.52 ms โ 182.92 / 187.87 ยฑ5.63 / 198.71 ms โ no change โ
โ QQuery 26 โ 214.55 / 216.73 ยฑ1.71 / 219.71 ms โ 214.26 / 217.59 ยฑ3.03 / 222.64 ms โ no change โ
โ QQuery 27 โ 750.65 / 766.51 ยฑ13.58 / 783.15 ms โ 752.21 / 762.04 ยฑ8.56 / 775.46 ms โ no change โ
โ QQuery 28 โ 3467.77 / 3489.47 ยฑ21.57 / 3519.84 ms โ 3453.68 / 3470.58 ยฑ12.28 / 3483.38 ms โ no change โ
โ QQuery 29 โ 46.44 / 54.72 ยฑ10.81 / 73.28 ms โ 46.28 / 46.74 ยฑ0.30 / 47.22 ms โ +1.17x faster โ
โ QQuery 30 โ 411.70 / 425.53 ยฑ13.42 / 448.77 ms โ 416.34 / 430.10 ยฑ13.01 / 452.11 ms โ no change โ
โ QQuery 31 โ 388.41 / 402.03 ยฑ13.07 / 425.76 ms โ 389.94 / 396.69 ยฑ5.70 / 406.16 ms โ no change โ
โ QQuery 32 โ 1015.39 / 1030.76 ยฑ18.04 / 1065.01 ms โ 1025.02 / 1050.65 ยฑ22.54 / 1087.76 ms โ no change โ
โ QQuery 33 โ 1457.03 / 1477.87 ยฑ12.07 / 1490.70 ms โ 1465.08 / 1483.09 ยฑ23.57 / 1528.64 ms โ no change โ
โ QQuery 34 โ 1476.66 / 1491.32 ยฑ11.26 / 1508.97 ms โ 1477.56 / 1510.65 ยฑ40.61 / 1589.72 ms โ no change โ
โ QQuery 35 โ 324.15 / 353.47 ยฑ40.51 / 432.19 ms โ 320.39 / 332.61 ยฑ9.84 / 347.03 ms โ +1.06x faster โ
โ QQuery 36 โ 119.12 / 126.53 ยฑ5.93 / 136.26 ms โ 130.31 / 141.15 ยฑ11.60 / 156.11 ms โ 1.12x slower โ
โ QQuery 37 โ 54.08 / 63.48 ยฑ10.61 / 81.14 ms โ 52.48 / 56.63 ยฑ5.69 / 67.90 ms โ +1.12x faster โ
โ QQuery 38 โ 84.47 / 86.47 ยฑ1.15 / 87.93 ms โ 84.86 / 86.49 ยฑ1.59 / 88.94 ms โ no change โ
โ QQuery 39 โ 239.98 / 244.46 ยฑ4.33 / 252.55 ms โ 234.40 / 245.65 ยฑ6.93 / 252.64 ms โ no change โ
โ QQuery 40 โ 22.27 / 22.67 ยฑ0.34 / 23.14 ms โ 22.88 / 25.58 ยฑ3.64 / 32.58 ms โ 1.13x slower โ
โ QQuery 41 โ 20.14 / 20.72 ยฑ0.69 / 22.02 ms โ 19.81 / 20.27 ยฑ0.49 / 21.19 ms โ no change โ
โ QQuery 42 โ 19.89 / 26.41 ยฑ12.17 / 50.73 ms โ 19.62 / 19.85 ยฑ0.15 / 20.09 ms โ +1.33x faster โ
โโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 23463.59ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 23456.64ms โ
โ Average Time (HEAD) โ 545.66ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 545.50ms โ
โ Queries Faster โ 4 โ
โ Queries Slower โ 2 โ
โ Queries with No Change โ 37 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**clickbench_1 โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 120.0s |
| Peak memory | 30.0 GiB |
| Avg memory | 21.9 GiB |
| CPU user | 1118.2s |
| CPU sys | 67.2s |
| Peak spill | 0 B |
**clickbench_1 โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 120.0s |
| Peak memory | 28.7 GiB |
| Avg memory | 21.9 GiB |
| CPU user | 1118.6s |
| CPU sys | 67.3s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4294016766
cc @adriangb @Dandandan @alamb
The latest CI benchmark results show **1.5-1.9x faster** on sort_pushdown_inexact with no regression on ClickBench:
```
sort_pushdown_inexact:
Q1: +1.49x faster
Q2: +1.37x faster
Q3: +1.92x faster
Q4: +1.82x faster
```
Local benchmark on sorted single-file (61 RGs, narrow ranges) shows **17-60x faster** โ the full optimization chain (stats init + cumulative RG prune) skips 60 of 61 RGs with zero I/O.
Would appreciate a review when you get a chance! The PR is ready โ all CI tests pass.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4282216441
run benchmarks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4282455539
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4282410384)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4282410384-1611-vlxqc 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (c94bdcccad3916a72f2644b4cac5386f009c94a1) to 466c3ea (merge-base) [diff](https://github.com/apache/datafusion/compare/466c3eaecfd9cf2b80b365e869383daf1f30b663..c94bdcccad3916a72f2644b4cac5386f009c94a1) using: tpcds
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4282235685
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4282215644)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4282215644-1604-s544w 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (bccc42bc3bcbc3b179b267feff2f219317df2328) to 466c3ea (merge-base) [diff](https://github.com/apache/datafusion/compare/466c3eaecfd9cf2b80b365e869383daf1f30b663..bccc42bc3bcbc3b179b267feff2f219317df2328) using: clickbench_partitioned
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init) [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4285550908
run benchmarks
```
env:
DATAFUSION_EXECUTION_PARQUET_PUSHDOWN_FILTERS: true
DATAFUSION_EXECUTION_PARQUET_REORDER_FILTERS: true
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4286742236
run benchmarks
```
env:
DATAFUSION_EXECUTION_PARQUET_PUSHDOWN_FILTERS: true
DATAFUSION_EXECUTION_PARQUET_REORDER_FILTERS: true
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4288405532
run benchmark sort_pushdown_inexact
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4269021102
> [adriangb/datafusion-benchmarking#4](https://github.com/adriangb/datafusion-benchmarking/pull/4) broke benchmarks - please hold off for a bit while I fix (might just revert)
Thanks @adriangb for the info, got it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4272831399
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4272829893)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4272829893-1444-v6nkt 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (10e6be9ce97d33bc5aa6070a40c4e74cce99b319) to afc0784 (merge-base) [diff](https://github.com/apache/datafusion/compare/afc07843a2f7a95f02420b95233c55b97f365dd0..10e6be9ce97d33bc5aa6070a40c4e74cce99b319) using: sort_pushdown_inexact
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4266618248
> Based on this PR and morsel improvements, I am also thinking we could initialize the TopK statistics from column stats (at least for single columns) and make the initial threshold much tighter based on min/max statistics (at file / rowgroup/page level):
>
> * We have a file/rowgroup with more than K (from TopK) amount of rows
> * We have a single sort column (directly after scan)
> * We can initialize/update the TopK using max (or min) statistics
> * Also, if the new bound is smaller / bigger than the current TopK, we could update it to the tighter bound
>
> This I think might help making initial threshold much tighter instead of having to read all the first row groups using not-initialized TopK.
Great idea @Dandandan , this eliminates the cold start problem completely! With stats-based initialization, the threshold is tight before reading any data, so combined with RG reorder and page index, a LIMIT 10 on a 6M row file could read just a single page.
I see you already created #21691 to track this. This composes nicely with the existing optimization chain (#21580 โ #21399 โ #21691). Would love to help with the implementation!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4289923585
run benchmark sort_pushdown_inexact
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4291304401
run benchmark clickbench_1
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4285560150
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4285550908)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4285550908-1640-vfsjm 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (12ae1e474ac9d77ab7a241dc2f3b1d8d1f107ad5) to c470bb1 (merge-base) [diff](https://github.com/apache/datafusion/compare/c470bb19340f4f3fa00751c2ba6313425bc5edd7..12ae1e474ac9d77ab7a241dc2f3b1d8d1f107ad5) using: clickbench_partitioned
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4234472031
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4234363943)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark clickbench_partitioned.json
--------------------
โโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ QQuery 0 โ 1.23 / 4.55 ยฑ6.48 / 17.51 ms โ 1.19 / 4.44 ยฑ6.37 / 17.18 ms โ no change โ
โ QQuery 1 โ 14.40 / 14.69 ยฑ0.23 / 14.92 ms โ 14.23 / 14.59 ยฑ0.20 / 14.82 ms โ no change โ
โ QQuery 2 โ 44.12 / 44.31 ยฑ0.17 / 44.54 ms โ 44.11 / 44.28 ยฑ0.11 / 44.47 ms โ no change โ
โ QQuery 3 โ 41.87 / 44.88 ยฑ2.83 / 48.21 ms โ 45.19 / 46.05 ยฑ0.92 / 47.82 ms โ no change โ
โ QQuery 4 โ 301.57 / 305.93 ยฑ4.33 / 312.84 ms โ 283.62 / 292.46 ยฑ7.51 / 301.96 ms โ no change โ
โ QQuery 5 โ 343.76 / 349.26 ยฑ2.90 / 351.52 ms โ 340.90 / 346.09 ยฑ3.65 / 350.98 ms โ no change โ
โ QQuery 6 โ 5.00 / 7.74 ยฑ2.08 / 10.58 ms โ 5.80 / 8.85 ยฑ4.45 / 17.63 ms โ 1.14x slower โ
โ QQuery 7 โ 16.79 / 17.42 ยฑ0.40 / 17.97 ms โ 16.80 / 16.96 ยฑ0.18 / 17.30 ms โ no change โ
โ QQuery 8 โ 417.96 / 426.38 ยฑ7.76 / 436.12 ms โ 421.02 / 426.12 ยฑ4.84 / 434.24 ms โ no change โ
โ QQuery 9 โ 666.36 / 676.75 ยฑ8.41 / 686.88 ms โ 655.03 / 663.43 ยฑ10.04 / 682.29 ms โ no change โ
โ QQuery 10 โ 92.21 / 93.67 ยฑ2.08 / 97.80 ms โ 93.16 / 96.01 ยฑ4.39 / 104.70 ms โ no change โ
โ QQuery 11 โ 104.40 / 105.92 ยฑ1.09 / 107.50 ms โ 103.33 / 108.14 ยฑ4.01 / 115.55 ms โ no change โ
โ QQuery 12 โ 345.12 / 351.62 ยฑ5.08 / 358.61 ms โ 338.51 / 349.23 ยฑ6.79 / 358.13 ms โ no change โ
โ QQuery 13 โ 454.95 / 466.86 ยฑ13.39 / 492.97 ms โ 459.79 / 482.10 ยฑ32.75 / 546.44 ms โ no change โ
โ QQuery 14 โ 344.61 / 348.93 ยฑ4.09 / 356.53 ms โ 343.57 / 349.57 ยฑ3.91 / 354.96 ms โ no change โ
โ QQuery 15 โ 354.08 / 376.26 ยฑ20.59 / 412.84 ms โ 353.05 / 376.01 ยฑ22.93 / 414.75 ms โ no change โ
โ QQuery 16 โ 717.04 / 731.91 ยฑ17.98 / 766.45 ms โ 714.64 / 749.96 ยฑ28.15 / 784.01 ms โ no change โ
โ QQuery 17 โ 711.73 / 718.92 ยฑ4.04 / 723.31 ms โ 713.17 / 717.82 ยฑ5.10 / 727.41 ms โ no change โ
โ QQuery 18 โ 1419.90 / 1476.97 ยฑ45.70 / 1523.25 ms โ 1361.04 / 1376.04 ยฑ9.64 / 1390.97 ms โ +1.07x faster โ
โ QQuery 19 โ 35.97 / 46.26 ยฑ19.56 / 85.37 ms โ 35.78 / 38.31 ยฑ1.93 / 41.70 ms โ +1.21x faster โ
โ QQuery 20 โ 712.30 / 733.16 ยฑ16.60 / 755.99 ms โ 707.03 / 714.65 ยฑ8.59 / 731.42 ms โ no change โ
โ QQuery 21 โ 767.93 / 773.25 ยฑ4.38 / 778.46 ms โ 757.44 / 762.39 ยฑ4.21 / 769.10 ms โ no change โ
โ QQuery 22 โ 1137.01 / 1149.77 ยฑ8.70 / 1162.30 ms โ 1134.94 / 1140.41 ยฑ5.69 / 1150.59 ms โ no change โ
โ QQuery 23 โ 3090.99 / 3109.19 ยฑ13.77 / 3131.70 ms โ 3079.16 / 3106.21 ยฑ14.77 / 3123.90 ms โ no change โ
โ QQuery 24 โ 100.24 / 103.67 ยฑ2.55 / 106.89 ms โ 100.11 / 102.94 ยฑ1.70 / 105.16 ms โ no change โ
โ QQuery 25 โ 139.49 / 141.35 ยฑ1.43 / 143.90 ms โ 137.95 / 141.81 ยฑ2.79 / 146.51 ms โ no change โ
โ QQuery 26 โ 98.88 / 101.65 ยฑ1.99 / 104.34 ms โ 98.97 / 103.22 ยฑ2.21 / 104.74 ms โ no change โ
โ QQuery 27 โ 852.53 / 858.70 ยฑ9.74 / 878.11 ms โ 846.79 / 851.11 ยฑ4.26 / 857.73 ms โ no change โ
โ QQuery 28 โ 3273.16 / 3306.19 ยฑ16.95 / 3319.21 ms โ 3289.86 / 3315.39 ยฑ20.65 / 3344.13 ms โ no change โ
โ QQuery 29 โ 50.27 / 54.97 ยฑ4.49 / 62.93 ms โ 50.24 / 56.60 ยฑ5.57 / 65.85 ms โ no change โ
โ QQuery 30 โ 361.99 / 367.45 ยฑ5.71 / 374.86 ms โ 354.82 / 363.42 ยฑ7.55 / 376.71 ms โ no change โ
โ QQuery 31 โ 354.41 / 371.28 ยฑ9.10 / 378.15 ms โ 361.59 / 378.76 ยฑ12.41 / 394.38 ms โ no change โ
โ QQuery 32 โ 1214.59 / 1260.10 ยฑ34.96 / 1305.41 ms โ 1041.72 / 1056.56 ยฑ15.17 / 1084.81 ms โ +1.19x faster โ
โ QQuery 33 โ 1515.52 / 1570.85 ยฑ38.41 / 1634.04 ms โ 1469.34 / 1474.38 ยฑ7.24 / 1488.32 ms โ +1.07x faster โ
โ QQuery 34 โ 1485.86 / 1532.37 ยฑ26.82 / 1565.04 ms โ 1477.09 / 1487.24 ยฑ7.28 / 1496.50 ms โ no change โ
โ QQuery 35 โ 393.36 / 426.17 ยฑ54.55 / 534.85 ms โ 391.43 / 401.95 ยฑ7.89 / 411.93 ms โ +1.06x faster โ
โ QQuery 36 โ 115.02 / 120.80 ยฑ3.82 / 125.19 ms โ 118.07 / 122.65 ยฑ3.64 / 128.83 ms โ no change โ
โ QQuery 37 โ 49.52 / 51.49 ยฑ1.92 / 55.07 ms โ 47.48 / 50.62 ยฑ1.83 / 52.79 ms โ no change โ
โ QQuery 38 โ 74.07 / 76.49 ยฑ1.25 / 77.52 ms โ 75.14 / 77.58 ยฑ1.56 / 79.76 ms โ no change โ
โ QQuery 39 โ 209.85 / 215.78 ยฑ4.18 / 220.73 ms โ 203.18 / 218.92 ยฑ8.79 / 228.06 ms โ no change โ
โ QQuery 40 โ 24.46 / 25.99 ยฑ1.19 / 27.44 ms โ 21.42 / 23.66 ยฑ1.70 / 26.54 ms โ +1.10x faster โ
โ QQuery 41 โ 20.66 / 22.64 ยฑ2.61 / 27.69 ms โ 19.87 / 21.02 ยฑ1.09 / 22.36 ms โ +1.08x faster โ
โ QQuery 42 โ 19.06 / 19.93 ยฑ0.46 / 20.34 ms โ 19.08 / 20.03 ยฑ0.64 / 21.10 ms โ no change โ
โโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 23002.46ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 22498.00ms โ
โ Average Time (HEAD) โ 534.94ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 523.21ms โ
โ Queries Faster โ 7 โ
โ Queries Slower โ 1 โ
โ Queries with No Change โ 35 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**clickbench_partitioned โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 115.8s |
| Peak memory | 36.4 GiB |
| Avg memory | 27.0 GiB |
| CPU user | 1079.4s |
| CPU sys | 98.2s |
| Peak spill | 0 B |
**clickbench_partitioned โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 113.5s |
| Peak memory | 40.1 GiB |
| Avg memory | 33.2 GiB |
| CPU user | 1075.7s |
| CPU sys | 81.0s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4293595834
run benchmark sort_pushdown_inexact
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on code in PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#discussion_r3128528081
##########
datafusion/datasource-parquet/src/access_plan.rs:
##########
@@ -377,6 +381,124 @@ impl PreparedAccessPlan {
})
}
+ /// Return a reference to the row group indexes.
+ pub(crate) fn row_group_indexes(&self) -> &[usize] {
+ &self.row_group_indexes
+ }
+
+ /// Keep only the first `count` row groups, dropping the rest.
+ /// Used for TopK cumulative pruning after reorder + reverse.
+ pub(crate) fn truncate_row_groups(mut self, count: usize) -> Self {
Review Comment:
Addressed it in latest PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4285618523
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4285550908)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark clickbench_partitioned.json
--------------------
โโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ QQuery 0 โ 1.19 / 4.52 ยฑ6.62 / 17.76 ms โ 1.18 / 4.57 ยฑ6.70 / 17.97 ms โ no change โ
โ QQuery 1 โ 12.76 / 12.85 ยฑ0.05 / 12.90 ms โ 12.86 / 12.97 ยฑ0.09 / 13.07 ms โ no change โ
โ QQuery 2 โ 36.44 / 36.61 ยฑ0.09 / 36.73 ms โ 38.30 / 38.66 ยฑ0.20 / 38.91 ms โ 1.06x slower โ
โ QQuery 3 โ 31.83 / 32.39 ยฑ0.65 / 33.66 ms โ 31.68 / 32.17 ยฑ0.56 / 33.22 ms โ no change โ
โ QQuery 4 โ 242.06 / 245.71 ยฑ3.61 / 252.48 ms โ 242.12 / 246.13 ยฑ2.99 / 250.75 ms โ no change โ
โ QQuery 5 โ 283.95 / 286.15 ยฑ1.86 / 289.07 ms โ 282.19 / 284.40 ยฑ1.85 / 287.61 ms โ no change โ
โ QQuery 6 โ 5.76 / 6.14 ยฑ0.23 / 6.47 ms โ 5.47 / 5.92 ยฑ0.30 / 6.18 ms โ no change โ
โ QQuery 7 โ 16.02 / 18.22 ยฑ3.58 / 25.36 ms โ 16.24 / 17.76 ยฑ2.67 / 23.09 ms โ no change โ
โ QQuery 8 โ 328.46 / 333.67 ยฑ3.81 / 339.11 ms โ 328.65 / 336.22 ยฑ5.38 / 344.94 ms โ no change โ
โ QQuery 9 โ 488.97 / 497.68 ยฑ8.42 / 513.20 ms โ 501.40 / 514.31 ยฑ7.03 / 522.65 ms โ no change โ
โ QQuery 10 โ 97.78 / 98.51 ยฑ0.68 / 99.66 ms โ 97.75 / 98.42 ยฑ0.67 / 99.45 ms โ no change โ
โ QQuery 11 โ 108.57 / 108.78 ยฑ0.13 / 108.91 ms โ 108.86 / 109.48 ยฑ0.62 / 110.44 ms โ no change โ
โ QQuery 12 โ 312.26 / 314.79 ยฑ2.92 / 320.01 ms โ 310.19 / 314.98 ยฑ4.02 / 320.09 ms โ no change โ
โ QQuery 13 โ 431.17 / 445.29 ยฑ8.73 / 453.87 ms โ 434.77 / 449.02 ยฑ7.94 / 456.38 ms โ no change โ
โ QQuery 14 โ 327.06 / 328.66 ยฑ1.74 / 330.96 ms โ 325.24 / 335.00 ยฑ10.64 / 352.05 ms โ no change โ
โ QQuery 15 โ 291.01 / 293.90 ยฑ2.15 / 297.14 ms โ 289.77 / 294.71 ยฑ5.24 / 304.05 ms โ no change โ
โ QQuery 16 โ 621.50 / 632.41 ยฑ9.03 / 649.05 ms โ 624.26 / 629.83 ยฑ5.14 / 637.63 ms โ no change โ
โ QQuery 17 โ 630.63 / 633.47 ยฑ2.68 / 637.98 ms โ 631.89 / 639.60 ยฑ8.61 / 654.84 ms โ no change โ
โ QQuery 18 โ 1259.45 / 1281.53 ยฑ12.74 / 1296.29 ms โ 1257.72 / 1273.72 ยฑ11.46 / 1288.82 ms โ no change โ
โ QQuery 19 โ 30.26 / 36.49 ยฑ12.25 / 60.98 ms โ 30.45 / 30.80 ยฑ0.53 / 31.84 ms โ +1.18x faster โ
โ QQuery 20 โ 520.13 / 526.08 ยฑ7.09 / 539.47 ms โ 516.35 / 521.28 ยฑ7.34 / 535.89 ms โ no change โ
โ QQuery 21 โ 563.24 / 572.00 ยฑ7.48 / 583.98 ms โ 567.04 / 577.62 ยฑ5.90 / 584.59 ms โ no change โ
โ QQuery 22 โ 926.40 / 935.24 ยฑ7.97 / 948.18 ms โ 918.59 / 925.22 ยฑ4.71 / 931.00 ms โ no change โ
โ QQuery 23 โ 114.13 / 123.42 ยฑ6.90 / 134.72 ms โ 195.32 / 207.42 ยฑ9.05 / 216.34 ms โ 1.68x slower โ
โ QQuery 24 โ 42.65 / 43.81 ยฑ1.40 / 46.56 ms โ 50.32 / 53.42 ยฑ5.02 / 63.36 ms โ 1.22x slower โ
โ QQuery 25 โ 146.11 / 148.21 ยฑ1.14 / 149.43 ms โ 164.72 / 166.00 ยฑ0.99 / 167.73 ms โ 1.12x slower โ
โ QQuery 26 โ 61.73 / 62.56 ยฑ0.62 / 63.52 ms โ 61.94 / 65.70 ยฑ3.39 / 71.75 ms โ 1.05x slower โ
โ QQuery 27 โ 715.50 / 722.72 ยฑ5.17 / 728.87 ms โ 711.15 / 734.07 ยฑ17.24 / 763.04 ms โ no change โ
โ QQuery 28 โ 3044.39 / 3051.13 ยฑ9.08 / 3067.78 ms โ 3028.08 / 3038.63 ยฑ11.70 / 3059.63 ms โ no change โ
โ QQuery 29 โ 42.66 / 45.16 ยฑ4.16 / 53.44 ms โ 43.14 / 51.68 ยฑ11.16 / 70.93 ms โ 1.14x slower โ
โ QQuery 30 โ 318.64 / 323.41 ยฑ4.43 / 329.17 ms โ 317.82 / 323.09 ยฑ4.61 / 331.38 ms โ no change โ
โ QQuery 31 โ 309.56 / 321.77 ยฑ9.76 / 337.88 ms โ 318.20 / 322.66 ยฑ6.89 / 336.37 ms โ no change โ
โ QQuery 32 โ 1018.55 / 1031.23 ยฑ18.26 / 1066.74 ms โ 1008.08 / 1014.15 ยฑ4.28 / 1020.32 ms โ no change โ
โ QQuery 33 โ 1432.26 / 1452.45 ยฑ10.49 / 1461.08 ms โ 1408.18 / 1439.91 ยฑ22.84 / 1473.50 ms โ no change โ
โ QQuery 34 โ 1444.59 / 1460.90 ยฑ11.86 / 1474.22 ms โ 1454.97 / 1471.02 ยฑ14.83 / 1493.24 ms โ no change โ
โ QQuery 35 โ 283.55 / 308.13 ยฑ36.22 / 380.17 ms โ 292.93 / 311.67 ยฑ20.11 / 350.66 ms โ no change โ
โ QQuery 36 โ 62.54 / 69.38 ยฑ8.18 / 85.39 ms โ 62.17 / 67.54 ยฑ6.12 / 79.50 ms โ no change โ
โ QQuery 37 โ 37.59 / 44.75 ยฑ11.42 / 67.41 ms โ 37.06 / 41.04 ยฑ3.24 / 46.15 ms โ +1.09x faster โ
โ QQuery 38 โ 34.97 / 37.41 ยฑ1.86 / 39.49 ms โ 35.45 / 40.51 ยฑ4.34 / 47.34 ms โ 1.08x slower โ
โ QQuery 39 โ 116.41 / 130.02 ยฑ9.65 / 146.42 ms โ 117.76 / 126.94 ยฑ4.86 / 131.29 ms โ no change โ
โ QQuery 40 โ 18.11 / 19.87 ยฑ2.68 / 25.15 ms โ 18.52 / 20.26 ยฑ1.76 / 22.92 ms โ no change โ
โ QQuery 41 โ 16.76 / 17.24 ยฑ0.36 / 17.74 ms โ 16.82 / 19.97 ยฑ3.23 / 23.99 ms โ 1.16x slower โ
โ QQuery 42 โ 14.30 / 14.47 ยฑ0.13 / 14.68 ms โ 14.61 / 17.23 ยฑ3.31 / 22.61 ms โ 1.19x slower โ
โโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 17109.16ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 17225.66ms โ
โ Average Time (HEAD) โ 397.89ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 400.60ms โ
โ Queries Faster โ 2 โ
โ Queries Slower โ 9 โ
โ Queries with No Change โ 32 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**clickbench_partitioned โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 90.0s |
| Peak memory | 29.6 GiB |
| Avg memory | 22.9 GiB |
| CPU user | 908.2s |
| CPU sys | 55.0s |
| Peak spill | 0 B |
**clickbench_partitioned โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 90.0s |
| Peak memory | 29.8 GiB |
| Avg memory | 23.4 GiB |
| CPU user | 912.3s |
| CPU sys | 55.3s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4325379189
> I am trying to dig out of my review backlog -- is this PR ready to review? Is it possible to split it into smaller individual PRs to ease review?
Yes @alamb , it's ready for review, i will split it into smaller individual PRs to make it's easier to review, thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4234363943
run benchmarks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4241762927
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4241761214)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4241761214-1197-l64xc 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (802840a3bdc4156cfa2762957a1926c4d86a5182) to e0fd16e (merge-base) [diff](https://github.com/apache/datafusion/compare/e0fd16ee3fc88e58f8c3e2f63a43ccf3d4ab2f9e..802840a3bdc4156cfa2762957a1926c4d86a5182) using: clickbench_partitioned
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4248950994
> (maybe the conflicts are an indication that we should focus on #21351 and then loop back to here?)
I agree @adriangb , i will wait https://github.com/apache/datafusion/pull/21351 done!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #21580: feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune)
URL: https://github.com/apache/datafusion/pull/21580
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4282215644
run benchmarks
```
env:
DATAFUSION_EXECUTION_PARQUET_PUSHDOWN_FILTERS: true
DATAFUSION_EXECUTION_PARQUET_REORDER_FILTERS: true
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4272829893
run benchmark sort_pushdown_inexact
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4282591539
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4282410384)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark tpcds_sf1.json
--------------------
โโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ QQuery 1 โ 6.25 / 6.65 ยฑ0.69 / 8.03 ms โ 6.48 / 6.90 ยฑ0.69 / 8.28 ms โ no change โ
โ QQuery 2 โ 112.06 / 123.05 ยฑ20.29 / 163.59 ms โ 112.68 / 132.93 ยฑ24.58 / 163.20 ms โ 1.08x slower โ
โ QQuery 3 โ 109.62 / 110.78 ยฑ0.78 / 111.68 ms โ 109.02 / 110.49 ยฑ1.32 / 112.91 ms โ no change โ
โ QQuery 4 โ 1070.88 / 1092.34 ยฑ16.94 / 1115.84 ms โ 1088.96 / 1099.99 ยฑ10.73 / 1119.39 ms โ no change โ
โ QQuery 5 โ 186.82 / 194.30 ยฑ4.60 / 201.21 ms โ 197.25 / 199.03 ยฑ1.88 / 201.44 ms โ no change โ
โ QQuery 6 โ 257.06 / 268.14 ยฑ6.87 / 278.32 ms โ 268.79 / 279.11 ยฑ6.29 / 286.44 ms โ no change โ
โ QQuery 7 โ 328.02 / 339.75 ยฑ6.56 / 346.90 ms โ 339.26 / 341.43 ยฑ2.60 / 346.51 ms โ no change โ
โ QQuery 8 โ 157.67 / 162.38 ยฑ3.16 / 165.21 ms โ 164.95 / 167.85 ยฑ2.28 / 171.39 ms โ no change โ
โ QQuery 9 โ 208.56 / 237.56 ยฑ20.90 / 271.44 ms โ 251.29 / 265.95 ยฑ9.25 / 278.70 ms โ 1.12x slower โ
โ QQuery 10 โ 173.53 / 179.38 ยฑ3.66 / 183.44 ms โ 167.79 / 177.70 ยฑ7.78 / 190.37 ms โ no change โ
โ QQuery 11 โ 709.79 / 722.51 ยฑ8.36 / 730.55 ms โ 702.28 / 716.67 ยฑ8.18 / 727.53 ms โ no change โ
โ QQuery 12 โ 38.25 / 40.24 ยฑ1.91 / 43.88 ms โ 38.87 / 39.81 ยฑ1.57 / 42.93 ms โ no change โ
โ QQuery 13 โ 563.98 / 575.18 ยฑ8.50 / 590.26 ms โ 559.44 / 572.92 ยฑ7.02 / 579.60 ms โ no change โ
โ QQuery 14 โ 890.95 / 909.41 ยฑ15.44 / 928.51 ms โ 913.34 / 919.77 ยฑ4.46 / 926.32 ms โ no change โ
โ QQuery 15 โ 19.18 / 22.17 ยฑ3.26 / 28.43 ms โ 19.87 / 21.86 ยฑ2.05 / 25.27 ms โ no change โ
โ QQuery 16 โ 6.81 / 6.99 ยฑ0.22 / 7.40 ms โ 6.96 / 7.22 ยฑ0.28 / 7.76 ms โ no change โ
โ QQuery 17 โ 199.25 / 203.98 ยฑ2.54 / 206.74 ms โ 191.00 / 202.33 ยฑ5.92 / 207.97 ms โ no change โ
โ QQuery 18 โ 358.71 / 429.87 ยฑ56.47 / 509.99 ms โ 461.51 / 476.99 ยฑ9.06 / 488.55 ms โ 1.11x slower โ
โ QQuery 19 โ 143.36 / 145.34 ยฑ1.08 / 146.44 ms โ 137.15 / 143.55 ยฑ3.98 / 147.55 ms โ no change โ
โ QQuery 20 โ 15.84 / 17.01 ยฑ1.56 / 20.09 ms โ 15.81 / 16.52 ยฑ0.72 / 17.74 ms โ no change โ
โ QQuery 21 โ 27.87 / 28.71 ยฑ0.68 / 29.55 ms โ 27.73 / 28.45 ยฑ0.52 / 29.06 ms โ no change โ
โ QQuery 22 โ 508.89 / 514.76 ยฑ5.06 / 523.89 ms โ 510.70 / 519.49 ยฑ5.22 / 525.54 ms โ no change โ
โ QQuery 23 โ 1260.42 / 1273.05 ยฑ13.69 / 1295.81 ms โ 1224.26 / 1251.00 ยฑ22.19 / 1291.70 ms โ no change โ
โ QQuery 24 โ 125.23 / 127.29 ยฑ2.58 / 131.85 ms โ 121.63 / 124.83 ยฑ2.25 / 127.18 ms โ no change โ
โ QQuery 25 โ 306.23 / 310.56 ยฑ3.16 / 314.29 ms โ 302.54 / 309.19 ยฑ4.49 / 314.48 ms โ no change โ
โ QQuery 26 โ 146.27 / 151.01 ยฑ4.30 / 156.62 ms โ 147.88 / 151.34 ยฑ2.37 / 154.62 ms โ no change โ
โ QQuery 27 โ 6.62 / 7.04 ยฑ0.39 / 7.79 ms โ 6.58 / 6.95 ยฑ0.40 / 7.71 ms โ no change โ
โ QQuery 28 โ 231.97 / 238.75 ยฑ4.21 / 244.90 ms โ 226.25 / 233.57 ยฑ4.45 / 238.59 ms โ no change โ
โ QQuery 29 โ 252.83 / 254.55 ยฑ1.95 / 257.88 ms โ 246.11 / 249.72 ยฑ3.74 / 256.65 ms โ no change โ
โ QQuery 30 โ 53.61 / 57.46 ยฑ2.28 / 60.60 ms โ 57.71 / 59.12 ยฑ1.06 / 60.83 ms โ no change โ
โ QQuery 31 โ 177.82 / 183.16 ยฑ3.48 / 188.20 ms โ 176.65 / 180.41 ยฑ1.90 / 181.73 ms โ no change โ
โ QQuery 32 โ 14.78 / 15.46 ยฑ0.78 / 16.74 ms โ 14.30 / 15.14 ยฑ0.86 / 16.25 ms โ no change โ
โ QQuery 33 โ 133.38 / 135.48 ยฑ1.34 / 137.58 ms โ 132.86 / 135.04 ยฑ1.88 / 138.05 ms โ no change โ
โ QQuery 34 โ 7.02 / 7.70 ยฑ0.65 / 8.77 ms โ 6.95 / 7.23 ยฑ0.21 / 7.58 ms โ +1.06x faster โ
โ QQuery 35 โ 153.43 / 157.41 ยฑ2.53 / 160.78 ms โ 149.99 / 152.88 ยฑ1.87 / 155.50 ms โ no change โ
โ QQuery 36 โ 6.47 / 6.57 ยฑ0.09 / 6.72 ms โ 6.47 / 6.68 ยฑ0.12 / 6.80 ms โ no change โ
โ QQuery 37 โ 5.48 / 5.67 ยฑ0.19 / 6.02 ms โ 5.25 / 6.19 ยฑ1.06 / 8.05 ms โ 1.09x slower โ
โ QQuery 38 โ 101.15 / 109.53 ยฑ6.23 / 120.56 ms โ 106.38 / 109.45 ยฑ4.19 / 117.53 ms โ no change โ
โ QQuery 39 โ 137.96 / 141.77 ยฑ2.12 / 144.02 ms โ 137.15 / 140.42 ยฑ3.40 / 145.27 ms โ no change โ
โ QQuery 40 โ 138.39 / 143.14 ยฑ6.31 / 155.35 ms โ 138.50 / 143.17 ยฑ7.03 / 157.05 ms โ no change โ
โ QQuery 41 โ 14.89 / 15.47 ยฑ0.86 / 17.16 ms โ 14.96 / 15.57 ยฑ0.68 / 16.42 ms โ no change โ
โ QQuery 42 โ 110.41 / 117.23 ยฑ3.58 / 120.21 ms โ 111.81 / 116.39 ยฑ2.37 / 118.50 ms โ no change โ
โ QQuery 43 โ 5.61 / 5.87 ยฑ0.27 / 6.38 ms โ 5.57 / 5.76 ยฑ0.17 / 6.02 ms โ no change โ
โ QQuery 44 โ 11.67 / 12.54 ยฑ0.66 / 13.30 ms โ 11.15 / 12.22 ยฑ1.75 / 15.71 ms โ no change โ
โ QQuery 45 โ 45.97 / 47.46 ยฑ1.20 / 49.53 ms โ 46.40 / 47.89 ยฑ1.17 / 49.60 ms โ no change โ
โ QQuery 46 โ 8.57 / 9.24 ยฑ0.51 / 9.73 ms โ 8.11 / 8.50 ยฑ0.21 / 8.76 ms โ +1.09x faster โ
โ QQuery 47 โ 804.92 / 816.75 ยฑ7.86 / 828.59 ms โ 808.89 / 818.56 ยฑ6.16 / 825.62 ms โ no change โ
โ QQuery 48 โ 488.97 / 498.32 ยฑ8.20 / 510.80 ms โ 472.16 / 501.19 ยฑ14.58 / 510.16 ms โ no change โ
โ QQuery 49 โ 284.86 / 288.83 ยฑ2.91 / 293.40 ms โ 280.30 / 285.14 ยฑ4.01 / 291.82 ms โ no change โ
โ QQuery 50 โ 544.02 / 551.49 ยฑ5.00 / 556.09 ms โ 545.38 / 558.32 ยฑ7.82 / 568.85 ms โ no change โ
โ QQuery 51 โ 217.02 / 222.32 ยฑ3.54 / 227.41 ms โ 217.20 / 222.93 ยฑ5.77 / 233.96 ms โ no change โ
โ QQuery 52 โ 109.23 / 114.56 ยฑ3.51 / 119.74 ms โ 117.08 / 118.74 ยฑ1.24 / 120.44 ms โ no change โ
โ QQuery 53 โ 144.96 / 150.09 ยฑ2.97 / 153.45 ms โ 137.05 / 143.71 ยฑ3.96 / 148.26 ms โ no change โ
โ QQuery 54 โ 130.36 / 132.45 ยฑ1.36 / 134.61 ms โ 129.48 / 131.81 ยฑ2.26 / 136.08 ms โ no change โ
โ QQuery 55 โ 111.33 / 114.40 ยฑ1.78 / 116.74 ms โ 113.82 / 116.27 ยฑ1.51 / 118.46 ms โ no change โ
โ QQuery 56 โ 133.68 / 135.05 ยฑ1.45 / 137.78 ms โ 133.68 / 135.38 ยฑ1.38 / 137.30 ms โ no change โ
โ QQuery 57 โ 186.58 / 192.07 ยฑ2.89 / 195.11 ms โ 190.50 / 193.10 ยฑ2.21 / 196.11 ms โ no change โ
โ QQuery 58 โ 227.66 / 229.96 ยฑ1.33 / 231.59 ms โ 227.43 / 229.39 ยฑ1.02 / 230.25 ms โ no change โ
โ QQuery 59 โ 276.86 / 279.88 ยฑ2.07 / 282.95 ms โ 278.73 / 282.30 ยฑ2.35 / 285.58 ms โ no change โ
โ QQuery 60 โ 137.28 / 139.12 ยฑ1.16 / 140.87 ms โ 139.25 / 141.47 ยฑ1.81 / 144.63 ms โ no change โ
โ QQuery 61 โ 12.13 / 12.69 ยฑ0.44 / 13.26 ms โ 12.15 / 12.81 ยฑ0.78 / 14.25 ms โ no change โ
โ QQuery 62 โ 926.71 / 1008.79 ยฑ45.84 / 1067.33 ms โ 898.94 / 962.57 ยฑ36.08 / 999.20 ms โ no change โ
โ QQuery 63 โ 143.30 / 147.03 ยฑ2.79 / 151.31 ms โ 142.02 / 148.91 ยฑ6.63 / 158.81 ms โ no change โ
โ QQuery 64 โ 27771.89 / 29157.97 ยฑ950.13 / 30041.25 ms โ 27970.89 / 29172.56 ยฑ828.88 / 30257.95 ms โ no change โ
โ QQuery 65 โ 370.62 / 378.25 ยฑ5.93 / 388.21 ms โ 377.25 / 380.34 ยฑ3.33 / 385.34 ms โ no change โ
โ QQuery 66 โ 193.81 / 198.01 ยฑ2.87 / 201.90 ms โ 192.57 / 198.37 ยฑ3.82 / 203.44 ms โ no change โ
โ QQuery 67 โ 522.71 / 535.22 ยฑ8.63 / 543.88 ms โ 512.48 / 518.57 ยฑ7.00 / 528.28 ms โ no change โ
โ QQuery 68 โ 8.77 / 10.94 ยฑ1.29 / 12.59 ms โ 8.70 / 10.48 ยฑ1.33 / 12.05 ms โ no change โ
โ QQuery 69 โ 165.22 / 179.68 ยฑ9.47 / 193.08 ms โ 171.94 / 178.16 ยฑ5.13 / 186.47 ms โ no change โ
โ QQuery 70 โ 420.55 / 435.49 ยฑ10.49 / 449.85 ms โ 424.79 / 433.89 ยฑ8.03 / 444.26 ms โ no change โ
โ QQuery 71 โ 128.31 / 134.31 ยฑ3.63 / 137.88 ms โ 128.57 / 132.29 ยฑ2.34 / 135.41 ms โ no change โ
โ QQuery 72 โ 1197.78 / 1211.93 ยฑ13.45 / 1229.63 ms โ 1195.86 / 1203.70 ยฑ6.44 / 1213.28 ms โ no change โ
โ QQuery 73 โ 6.68 / 6.85 ยฑ0.11 / 6.99 ms โ 6.65 / 6.83 ยฑ0.17 / 7.05 ms โ no change โ
โ QQuery 74 โ 509.22 / 513.52 ยฑ5.52 / 524.26 ms โ 512.68 / 520.02 ยฑ3.87 / 523.96 ms โ no change โ
โ QQuery 75 โ 285.03 / 289.61 ยฑ3.18 / 294.15 ms โ 282.86 / 290.62 ยฑ6.06 / 298.33 ms โ no change โ
โ QQuery 76 โ 278.15 / 281.92 ยฑ4.17 / 289.27 ms โ 270.64 / 280.23 ยฑ6.87 / 289.80 ms โ no change โ
โ QQuery 77 โ 225.91 / 229.93 ยฑ2.62 / 232.34 ms โ 223.50 / 231.98 ยฑ4.66 / 237.30 ms โ no change โ
โ QQuery 78 โ 308.61 / 310.95 ยฑ1.83 / 313.23 ms โ 299.78 / 306.76 ยฑ4.76 / 312.16 ms โ no change โ
โ QQuery 79 โ 258.81 / 266.86 ยฑ4.55 / 271.43 ms โ 263.90 / 270.05 ยฑ3.56 / 273.26 ms โ no change โ
โ QQuery 80 โ 286.56 / 288.19 ยฑ0.99 / 289.31 ms โ 286.19 / 289.45 ยฑ2.31 / 291.61 ms โ no change โ
โ QQuery 81 โ 32.10 / 33.05 ยฑ0.81 / 34.49 ms โ 30.91 / 32.67 ยฑ2.14 / 36.86 ms โ no change โ
โ QQuery 82 โ 47.70 / 49.41 ยฑ1.53 / 51.91 ms โ 48.40 / 50.54 ยฑ1.83 / 53.84 ms โ no change โ
โ QQuery 83 โ 46.88 / 48.32 ยฑ1.01 / 49.21 ms โ 45.82 / 46.80 ยฑ1.10 / 48.84 ms โ no change โ
โ QQuery 84 โ 66.24 / 66.80 ยฑ0.33 / 67.18 ms โ 64.96 / 65.79 ยฑ1.18 / 68.02 ms โ no change โ
โ QQuery 85 โ 282.83 / 289.39 ยฑ5.34 / 298.11 ms โ 280.76 / 287.10 ยฑ4.62 / 292.79 ms โ no change โ
โ QQuery 86 โ 50.83 / 52.00 ยฑ0.62 / 52.64 ms โ 49.01 / 49.73 ยฑ0.78 / 51.19 ms โ no change โ
โ QQuery 87 โ 100.73 / 108.85 ยฑ4.49 / 114.52 ms โ 109.68 / 112.02 ยฑ3.81 / 119.54 ms โ no change โ
โ QQuery 88 โ 129.09 / 133.47 ยฑ3.61 / 137.57 ms โ 129.11 / 133.57 ยฑ3.68 / 139.92 ms โ no change โ
โ QQuery 89 โ 155.75 / 163.17 ยฑ6.94 / 172.79 ms โ 160.08 / 165.05 ยฑ3.75 / 171.59 ms โ no change โ
โ QQuery 90 โ 24.34 / 27.92 ยฑ2.63 / 31.42 ms โ 23.35 / 26.72 ยฑ2.17 / 29.22 ms โ no change โ
โ QQuery 91 โ 104.80 / 106.98 ยฑ2.49 / 110.10 ms โ 98.97 / 107.63 ยฑ6.46 / 117.86 ms โ no change โ
โ QQuery 92 โ 54.16 / 55.51 ยฑ1.00 / 56.76 ms โ 53.20 / 56.36 ยฑ1.94 / 58.98 ms โ no change โ
โ QQuery 93 โ 188.53 / 192.91 ยฑ3.85 / 199.70 ms โ 192.65 / 195.47 ยฑ2.94 / 200.82 ms โ no change โ
โ QQuery 94 โ 68.79 / 69.77 ยฑ0.59 / 70.38 ms โ 66.61 / 71.38 ยฑ2.89 / 75.68 ms โ no change โ
โ QQuery 95 โ 146.24 / 150.68 ยฑ3.23 / 153.96 ms โ 149.37 / 152.38 ยฑ1.53 / 153.57 ms โ no change โ
โ QQuery 96 โ 86.47 / 89.63 ยฑ2.00 / 92.48 ms โ 83.38 / 90.88 ยฑ4.08 / 94.56 ms โ no change โ
โ QQuery 97 โ 150.58 / 154.72 ยฑ2.20 / 156.58 ms โ 155.14 / 159.01 ยฑ3.17 / 163.87 ms โ no change โ
โ QQuery 98 โ 116.74 / 122.15 ยฑ3.45 / 126.50 ms โ 122.64 / 126.75 ยฑ2.32 / 129.69 ms โ no change โ
โ QQuery 99 โ 10784.87 / 10848.87 ยฑ47.32 / 10924.51 ms โ 10797.05 / 10857.86 ยฑ50.45 / 10933.01 ms โ no change โ
โโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 62090.94ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 62150.22ms โ
โ Average Time (HEAD) โ 627.18ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 627.78ms โ
โ Queries Faster โ 2 โ
โ Queries Slower โ 4 โ
โ Queries with No Change โ 93 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpcds โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 315.1s |
| Peak memory | 32.0 GiB |
| Avg memory | 22.9 GiB |
| CPU user | 634.4s |
| CPU sys | 28.6s |
| Peak spill | 0 B |
**tpcds โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 315.1s |
| Peak memory | 39.6 GiB |
| Avg memory | 27.3 GiB |
| CPU user | 612.4s |
| CPU sys | 28.3s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4288503441
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4288405532)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark sort_pushdown_inexact.json
--------------------
โโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Q1 โ 6.58 / 7.45 ยฑ1.03 / 9.46 ms โ 6.52 / 7.17 ยฑ0.94 / 9.03 ms โ no change โ
โ Q2 โ 6.57 / 6.74 ยฑ0.09 / 6.80 ms โ 6.69 / 7.30 ยฑ0.46 / 7.74 ms โ 1.08x slower โ
โ Q3 โ 21.38 / 22.02 ยฑ0.50 / 22.63 ms โ 21.30 / 22.04 ยฑ0.49 / 22.72 ms โ no change โ
โ Q4 โ 20.61 / 21.43 ยฑ0.53 / 22.27 ms โ 20.05 / 21.65 ยฑ0.88 / 22.77 ms โ no change โ
โโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 57.65ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 58.16ms โ
โ Average Time (HEAD) โ 14.41ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 14.54ms โ
โ Queries Faster โ 0 โ
โ Queries Slower โ 1 โ
โ Queries with No Change โ 3 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**sort_pushdown_inexact โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 4.4 GiB |
| Avg memory | 4.4 GiB |
| CPU user | 2.5s |
| CPU sys | 0.3s |
| Peak spill | 0 B |
**sort_pushdown_inexact โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 4.4 GiB |
| Avg memory | 4.4 GiB |
| CPU user | 2.5s |
| CPU sys | 0.3s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4293875595
run benchmark sort_pushdown_inexact
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4286757166
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4286742236)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4286742236-1666-kvm5x 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (f4c1845636bec81ffc3ff851705718d02af72310) to 466c3ea (merge-base) [diff](https://github.com/apache/datafusion/compare/466c3eaecfd9cf2b80b365e869383daf1f30b663..f4c1845636bec81ffc3ff851705718d02af72310) using: tpch
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4286893863
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4286742236)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark tpcds_sf1.json
--------------------
โโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ QQuery 1 โ 6.17 / 6.56 ยฑ0.70 / 7.96 ms โ 6.15 / 6.56 ยฑ0.75 / 8.07 ms โ no change โ
โ QQuery 2 โ 112.74 / 113.85 ยฑ1.39 / 116.49 ms โ 110.86 / 131.40 ยฑ23.12 / 159.71 ms โ 1.15x slower โ
โ QQuery 3 โ 108.96 / 109.94 ยฑ0.65 / 111.01 ms โ 109.66 / 110.71 ยฑ0.81 / 111.77 ms โ no change โ
โ QQuery 4 โ 1029.45 / 1049.11 ยฑ13.76 / 1067.73 ms โ 1028.84 / 1055.10 ยฑ14.31 / 1072.14 ms โ no change โ
โ QQuery 5 โ 193.02 / 197.57 ยฑ3.98 / 204.59 ms โ 193.37 / 196.74 ยฑ2.57 / 199.08 ms โ no change โ
โ QQuery 6 โ 249.93 / 256.10 ยฑ4.33 / 261.56 ms โ 240.90 / 248.32 ยฑ6.18 / 256.09 ms โ no change โ
โ QQuery 7 โ 324.47 / 331.93 ยฑ4.34 / 336.34 ms โ 329.97 / 336.49 ยฑ6.54 / 346.04 ms โ no change โ
โ QQuery 8 โ 158.69 / 161.62 ยฑ1.72 / 163.35 ms โ 152.48 / 162.97 ยฑ6.36 / 170.83 ms โ no change โ
โ QQuery 9 โ 225.16 / 235.00 ยฑ7.72 / 244.96 ms โ 239.84 / 249.22 ยฑ6.64 / 258.28 ms โ 1.06x slower โ
โ QQuery 10 โ 168.62 / 172.78 ยฑ4.71 / 179.56 ms โ 168.44 / 172.13 ยฑ3.10 / 176.78 ms โ no change โ
โ QQuery 11 โ 675.39 / 692.30 ยฑ10.81 / 708.83 ms โ 686.86 / 693.86 ยฑ6.78 / 705.51 ms โ no change โ
โ QQuery 12 โ 38.19 / 39.70 ยฑ1.36 / 42.06 ms โ 34.82 / 37.98 ยฑ1.94 / 40.56 ms โ no change โ
โ QQuery 13 โ 552.82 / 567.87 ยฑ8.74 / 575.56 ms โ 550.17 / 563.90 ยฑ10.66 / 579.96 ms โ no change โ
โ QQuery 14 โ 908.16 / 915.87 ยฑ6.99 / 926.89 ms โ 890.69 / 903.69 ยฑ10.65 / 923.13 ms โ no change โ
โ QQuery 15 โ 19.14 / 21.04 ยฑ1.39 / 23.27 ms โ 19.03 / 21.76 ยฑ2.64 / 26.13 ms โ no change โ
โ QQuery 16 โ 6.87 / 7.07 ยฑ0.15 / 7.21 ms โ 6.87 / 7.25 ยฑ0.51 / 8.24 ms โ no change โ
โ QQuery 17 โ 197.73 / 201.46 ยฑ3.61 / 207.64 ms โ 200.00 / 203.47 ยฑ2.77 / 207.16 ms โ no change โ
โ QQuery 18 โ 411.96 / 468.88 ยฑ30.61 / 499.26 ms โ 385.09 / 468.99 ยฑ42.91 / 503.75 ms โ no change โ
โ QQuery 19 โ 134.26 / 144.28 ยฑ5.42 / 149.72 ms โ 141.14 / 144.80 ยฑ2.31 / 147.48 ms โ no change โ
โ QQuery 20 โ 15.32 / 16.55 ยฑ0.81 / 17.70 ms โ 14.58 / 16.35 ยฑ1.19 / 17.89 ms โ no change โ
โ QQuery 21 โ 27.17 / 28.05 ยฑ0.56 / 28.66 ms โ 26.33 / 27.60 ยฑ0.85 / 28.74 ms โ no change โ
โ QQuery 22 โ 502.65 / 508.59 ยฑ4.32 / 514.52 ms โ 505.95 / 510.19 ยฑ3.28 / 514.23 ms โ no change โ
โ QQuery 23 โ 1199.35 / 1217.45 ยฑ10.55 / 1226.92 ms โ 1209.86 / 1218.22 ยฑ5.60 / 1226.04 ms โ no change โ
โ QQuery 24 โ 123.83 / 125.10 ยฑ1.09 / 127.05 ms โ 120.19 / 125.91 ยฑ3.01 / 129.10 ms โ no change โ
โ QQuery 25 โ 301.90 / 305.37 ยฑ3.23 / 310.76 ms โ 304.05 / 306.12 ยฑ1.51 / 307.76 ms โ no change โ
โ QQuery 26 โ 139.76 / 147.46 ยฑ5.83 / 156.28 ms โ 145.33 / 153.53 ยฑ8.93 / 169.96 ms โ no change โ
โ QQuery 27 โ 6.36 / 7.14 ยฑ0.71 / 8.39 ms โ 6.49 / 7.24 ยฑ0.82 / 8.56 ms โ no change โ
โ QQuery 28 โ 216.67 / 229.14 ยฑ7.49 / 239.27 ms โ 219.90 / 227.51 ยฑ5.81 / 233.80 ms โ no change โ
โ QQuery 29 โ 248.60 / 253.39 ยฑ3.51 / 259.49 ms โ 243.23 / 250.70 ยฑ6.43 / 260.39 ms โ no change โ
โ QQuery 30 โ 55.22 / 58.47 ยฑ3.53 / 65.17 ms โ 54.68 / 58.36 ยฑ2.72 / 62.86 ms โ no change โ
โ QQuery 31 โ 173.35 / 178.95 ยฑ3.03 / 182.08 ms โ 177.03 / 179.25 ยฑ2.51 / 183.92 ms โ no change โ
โ QQuery 32 โ 13.48 / 14.21 ยฑ0.51 / 15.07 ms โ 13.44 / 14.48 ยฑ0.97 / 15.85 ms โ no change โ
โ QQuery 33 โ 131.04 / 133.86 ยฑ1.73 / 135.96 ms โ 131.13 / 132.91 ยฑ1.64 / 135.94 ms โ no change โ
โ QQuery 34 โ 6.76 / 7.39 ยฑ0.70 / 8.73 ms โ 6.72 / 7.23 ยฑ0.35 / 7.61 ms โ no change โ
โ QQuery 35 โ 149.49 / 151.43 ยฑ1.38 / 152.84 ms โ 143.31 / 148.84 ยฑ3.67 / 152.52 ms โ no change โ
โ QQuery 36 โ 6.26 / 6.49 ยฑ0.34 / 7.17 ms โ 6.24 / 6.55 ยฑ0.27 / 6.94 ms โ no change โ
โ QQuery 37 โ 5.33 / 5.83 ยฑ0.61 / 6.98 ms โ 5.12 / 5.24 ยฑ0.09 / 5.38 ms โ +1.11x faster โ
โ QQuery 38 โ 106.53 / 108.45 ยฑ2.14 / 112.45 ms โ 100.35 / 106.73 ยฑ4.27 / 113.62 ms โ no change โ
โ QQuery 39 โ 134.11 / 136.93 ยฑ1.70 / 138.71 ms โ 133.74 / 137.55 ยฑ3.08 / 141.78 ms โ no change โ
โ QQuery 40 โ 133.69 / 138.89 ยฑ6.93 / 152.49 ms โ 131.38 / 140.46 ยฑ7.74 / 154.26 ms โ no change โ
โ QQuery 41 โ 14.25 / 15.04 ยฑ0.82 / 16.59 ms โ 13.79 / 15.68 ยฑ1.30 / 17.40 ms โ no change โ
โ QQuery 42 โ 109.10 / 114.28 ยฑ3.05 / 118.49 ms โ 108.32 / 114.19 ยฑ3.01 / 116.39 ms โ no change โ
โ QQuery 43 โ 5.28 / 5.48 ยฑ0.15 / 5.75 ms โ 5.36 / 5.55 ยฑ0.21 / 5.85 ms โ no change โ
โ QQuery 44 โ 10.81 / 11.46 ยฑ1.04 / 13.52 ms โ 11.36 / 12.24 ยฑ0.73 / 13.28 ms โ 1.07x slower โ
โ QQuery 45 โ 44.64 / 47.63 ยฑ2.54 / 50.84 ms โ 44.16 / 45.60 ยฑ1.02 / 46.55 ms โ no change โ
โ QQuery 46 โ 8.25 / 8.86 ยฑ0.37 / 9.34 ms โ 8.01 / 8.37 ยฑ0.23 / 8.64 ms โ +1.06x faster โ
โ QQuery 47 โ 766.99 / 778.32 ยฑ8.28 / 787.78 ms โ 769.35 / 779.79 ยฑ7.00 / 789.42 ms โ no change โ
โ QQuery 48 โ 473.71 / 491.33 ยฑ10.50 / 503.02 ms โ 480.44 / 488.10 ยฑ5.36 / 495.43 ms โ no change โ
โ QQuery 49 โ 279.48 / 283.53 ยฑ2.71 / 286.38 ms โ 280.06 / 284.72 ยฑ2.38 / 286.80 ms โ no change โ
โ QQuery 50 โ 526.46 / 540.88 ยฑ11.22 / 561.03 ms โ 534.61 / 539.10 ยฑ5.18 / 547.99 ms โ no change โ
โ QQuery 51 โ 215.67 / 222.67 ยฑ4.19 / 228.52 ms โ 218.55 / 222.88 ยฑ3.17 / 228.38 ms โ no change โ
โ QQuery 52 โ 109.54 / 115.13 ยฑ3.19 / 118.06 ms โ 109.95 / 113.52 ยฑ2.81 / 116.84 ms โ no change โ
โ QQuery 53 โ 145.47 / 149.46 ยฑ2.27 / 151.66 ms โ 144.06 / 148.94 ยฑ3.37 / 153.33 ms โ no change โ
โ QQuery 54 โ 128.55 / 130.54 ยฑ1.33 / 132.16 ms โ 127.35 / 130.66 ยฑ3.51 / 137.36 ms โ no change โ
โ QQuery 55 โ 114.32 / 115.86 ยฑ0.93 / 116.83 ms โ 109.95 / 115.17 ยฑ2.64 / 117.01 ms โ no change โ
โ QQuery 56 โ 133.53 / 134.47 ยฑ1.06 / 136.40 ms โ 133.13 / 133.98 ยฑ0.67 / 134.91 ms โ no change โ
โ QQuery 57 โ 186.10 / 191.12 ยฑ3.12 / 195.94 ms โ 183.42 / 188.95 ยฑ2.84 / 191.16 ms โ no change โ
โ QQuery 58 โ 226.70 / 229.23 ยฑ1.67 / 231.50 ms โ 223.23 / 227.20 ยฑ2.50 / 229.85 ms โ no change โ
โ QQuery 59 โ 278.00 / 283.30 ยฑ6.32 / 295.15 ms โ 281.84 / 283.04 ยฑ1.06 / 284.34 ms โ no change โ
โ QQuery 60 โ 138.07 / 139.72 ยฑ1.39 / 141.67 ms โ 138.05 / 139.35 ยฑ1.41 / 142.00 ms โ no change โ
โ QQuery 61 โ 11.80 / 12.40 ยฑ0.74 / 13.86 ms โ 11.73 / 12.19 ยฑ0.41 / 12.85 ms โ no change โ
โ QQuery 62 โ 908.36 / 947.88 ยฑ31.22 / 1003.17 ms โ 873.33 / 936.14 ยฑ36.35 / 984.18 ms โ no change โ
โ QQuery 63 โ 147.14 / 149.56 ยฑ2.26 / 153.59 ms โ 145.53 / 150.58 ยฑ3.94 / 156.63 ms โ no change โ
โ QQuery 64 โ 27677.84 / 28404.81 ยฑ472.41 / 29056.73 ms โ 27954.75 / 28770.20 ยฑ926.92 / 30546.59 ms โ no change โ
โ QQuery 65 โ 336.15 / 366.00 ยฑ16.22 / 385.18 ms โ 355.67 / 369.08 ยฑ9.34 / 380.56 ms โ no change โ
โ QQuery 66 โ 190.83 / 194.81 ยฑ2.75 / 199.18 ms โ 194.59 / 200.26 ยฑ3.15 / 203.59 ms โ no change โ
โ QQuery 67 โ 492.06 / 503.62 ยฑ10.91 / 516.95 ms โ 479.28 / 497.67 ยฑ13.67 / 518.87 ms โ no change โ
โ QQuery 68 โ 8.20 / 9.50 ยฑ1.09 / 10.84 ms โ 8.96 / 11.16 ยฑ1.35 / 13.06 ms โ 1.17x slower โ
โ QQuery 69 โ 170.33 / 180.37 ยฑ5.82 / 186.73 ms โ 175.39 / 180.52 ยฑ4.32 / 188.15 ms โ no change โ
โ QQuery 70 โ 425.93 / 433.79 ยฑ6.99 / 446.89 ms โ 424.19 / 440.83 ยฑ8.96 / 450.31 ms โ no change โ
โ QQuery 71 โ 126.08 / 132.79 ยฑ4.29 / 137.46 ms โ 126.72 / 132.15 ยฑ5.72 / 142.73 ms โ no change โ
โ QQuery 72 โ 1187.59 / 1195.97 ยฑ4.97 / 1200.83 ms โ 1190.22 / 1204.64 ยฑ10.60 / 1222.00 ms โ no change โ
โ QQuery 73 โ 6.53 / 7.39 ยฑ0.85 / 8.91 ms โ 6.84 / 7.11 ยฑ0.20 / 7.40 ms โ no change โ
โ QQuery 74 โ 494.87 / 503.93 ยฑ5.11 / 509.18 ms โ 497.20 / 502.68 ยฑ4.47 / 509.27 ms โ no change โ
โ QQuery 75 โ 277.60 / 285.89 ยฑ5.25 / 291.59 ms โ 285.58 / 290.47 ยฑ3.63 / 296.37 ms โ no change โ
โ QQuery 76 โ 274.52 / 281.29 ยฑ4.76 / 286.71 ms โ 276.98 / 281.83 ยฑ3.05 / 285.94 ms โ no change โ
โ QQuery 77 โ 225.67 / 229.36 ยฑ2.24 / 232.00 ms โ 228.71 / 230.19 ยฑ1.05 / 231.97 ms โ no change โ
โ QQuery 78 โ 301.04 / 306.15 ยฑ2.89 / 308.84 ms โ 293.60 / 302.66 ยฑ5.05 / 308.23 ms โ no change โ
โ QQuery 79 โ 257.89 / 263.44 ยฑ4.08 / 270.53 ms โ 259.33 / 264.10 ยฑ3.06 / 268.21 ms โ no change โ
โ QQuery 80 โ 282.57 / 287.55 ยฑ3.54 / 292.66 ms โ 280.73 / 284.64 ยฑ3.46 / 289.64 ms โ no change โ
โ QQuery 81 โ 30.72 / 31.50 ยฑ0.79 / 32.87 ms โ 30.38 / 31.87 ยฑ1.47 / 34.66 ms โ no change โ
โ QQuery 82 โ 48.25 / 49.52 ยฑ1.21 / 51.76 ms โ 47.51 / 50.14 ยฑ2.01 / 52.87 ms โ no change โ
โ QQuery 83 โ 44.21 / 45.64 ยฑ1.09 / 47.38 ms โ 44.83 / 45.48 ยฑ0.55 / 46.42 ms โ no change โ
โ QQuery 84 โ 64.30 / 65.10 ยฑ0.58 / 65.85 ms โ 64.44 / 64.90 ยฑ0.48 / 65.65 ms โ no change โ
โ QQuery 85 โ 267.28 / 287.40 ยฑ10.52 / 296.12 ms โ 276.73 / 285.01 ยฑ5.47 / 293.77 ms โ no change โ
โ QQuery 86 โ 46.93 / 49.47 ยฑ1.52 / 51.20 ms โ 46.53 / 51.49 ยฑ3.29 / 55.32 ms โ no change โ
โ QQuery 87 โ 102.70 / 107.38 ยฑ2.58 / 110.37 ms โ 108.77 / 111.22 ยฑ1.93 / 114.36 ms โ no change โ
โ QQuery 88 โ 128.08 / 135.12 ยฑ4.81 / 139.64 ms โ 120.82 / 130.43 ยฑ5.70 / 137.66 ms โ no change โ
โ QQuery 89 โ 156.76 / 162.28 ยฑ3.33 / 165.99 ms โ 154.48 / 160.41 ยฑ4.94 / 166.20 ms โ no change โ
โ QQuery 90 โ 25.19 / 27.37 ยฑ1.77 / 29.38 ms โ 24.63 / 26.78 ยฑ1.44 / 29.11 ms โ no change โ
โ QQuery 91 โ 97.62 / 108.10 ยฑ6.52 / 118.08 ms โ 100.77 / 103.54 ยฑ1.74 / 105.47 ms โ no change โ
โ QQuery 92 โ 51.58 / 54.58 ยฑ2.13 / 57.95 ms โ 51.58 / 54.76 ยฑ2.74 / 58.99 ms โ no change โ
โ QQuery 93 โ 187.25 / 190.61 ยฑ2.80 / 195.76 ms โ 187.42 / 190.11 ยฑ2.62 / 193.70 ms โ no change โ
โ QQuery 94 โ 68.50 / 69.29 ยฑ0.45 / 69.77 ms โ 68.35 / 69.68 ยฑ0.88 / 70.99 ms โ no change โ
โ QQuery 95 โ 147.36 / 150.06 ยฑ2.26 / 153.63 ms โ 146.51 / 149.38 ยฑ1.66 / 150.87 ms โ no change โ
โ QQuery 96 โ 82.14 / 86.69 ยฑ2.40 / 88.55 ms โ 76.63 / 83.97 ยฑ5.11 / 88.72 ms โ no change โ
โ QQuery 97 โ 150.72 / 156.01 ยฑ3.30 / 159.56 ms โ 148.22 / 154.56 ยฑ3.47 / 158.58 ms โ no change โ
โ QQuery 98 โ 121.57 / 124.93 ยฑ2.77 / 129.29 ms โ 121.69 / 124.76 ยฑ2.19 / 127.21 ms โ no change โ
โ QQuery 99 โ 10686.09 / 10729.84 ยฑ26.07 / 10759.96 ms โ 10655.33 / 10686.23 ยฑ20.87 / 10718.77 ms โ no change โ
โโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 60807.78ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 61137.12ms โ
โ Average Time (HEAD) โ 614.22ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 617.55ms โ
โ Queries Faster โ 2 โ
โ Queries Slower โ 4 โ
โ Queries with No Change โ 93 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpcds โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 305.1s |
| Peak memory | 38.5 GiB |
| Avg memory | 28.1 GiB |
| CPU user | 600.6s |
| CPU sys | 28.3s |
| Peak spill | 0 B |
**tpcds โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 310.1s |
| Peak memory | 36.0 GiB |
| Avg memory | 25.9 GiB |
| CPU user | 600.2s |
| CPU sys | 27.4s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4291358351
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4291304401)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4291304401-1707-sqn9h 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (a269ffd81d91fe0d69fe37017cda2124a1162373) to 466c3ea (merge-base) [diff](https://github.com/apache/datafusion/compare/466c3eaecfd9cf2b80b365e869383daf1f30b663..a269ffd81d91fe0d69fe37017cda2124a1162373) using: clickbench_1
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4320463556
I am trying to dig out of my review backlog -- is this PR ready to review? Is it possible to split it into smaller individual PRs to ease review?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4327575054
Thanks @zhuqi-lucas -- I will prioritize reviewing the smaller PRs
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on code in PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#discussion_r3092581426
##########
datafusion/datasource-parquet/src/opener.rs:
##########
@@ -154,6 +155,10 @@ pub(super) struct ParquetMorselizer {
pub max_predicate_cache_size: Option<usize>,
/// Whether to read row groups in reverse order
pub reverse_row_groups: bool,
+ /// Optional sort order used to reorder row groups by their min/max statistics.
Review Comment:
Thanks @alamb for good suggestion! Addressed in latest PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4234434048
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4234422910)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4234422910-1137-vvpxc 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (5018882309b669e31771223f0b266179b98d9764) to 29c5dd5 (merge-base) [diff](https://github.com/apache/datafusion/compare/29c5dd5b8f7c60663ada64f34e15ecf22a7dc9a1..5018882309b669e31771223f0b266179b98d9764) using: clickbench_partitioned
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4234434844
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4234422910)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4234422910-1138-qjxtt 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (5018882309b669e31771223f0b266179b98d9764) to 29c5dd5 (merge-base) [diff](https://github.com/apache/datafusion/compare/29c5dd5b8f7c60663ada64f34e15ecf22a7dc9a1..5018882309b669e31771223f0b266179b98d9764) using: tpcds
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4234498467
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4234422910)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark tpcds_sf1.json
--------------------
โโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ QQuery 1 โ 6.60 / 7.07 ยฑ0.83 / 8.73 ms โ 6.60 / 7.06 ยฑ0.83 / 8.71 ms โ no change โ
โ QQuery 2 โ 143.88 / 144.99 ยฑ1.22 / 147.28 ms โ 145.49 / 146.39 ยฑ0.75 / 147.36 ms โ no change โ
โ QQuery 3 โ 114.20 / 115.49 ยฑ1.27 / 117.17 ms โ 113.54 / 114.31 ยฑ0.75 / 115.71 ms โ no change โ
โ QQuery 4 โ 1407.17 / 1446.02 ยฑ28.01 / 1488.27 ms โ 1346.64 / 1364.53 ยฑ15.80 / 1393.25 ms โ +1.06x faster โ
โ QQuery 5 โ 171.78 / 174.25 ยฑ2.64 / 179.25 ms โ 172.57 / 174.59 ยฑ1.43 / 176.25 ms โ no change โ
โ QQuery 6 โ 849.48 / 877.16 ยฑ22.87 / 905.49 ms โ 828.07 / 868.05 ยฑ30.14 / 901.99 ms โ no change โ
โ QQuery 7 โ 343.32 / 346.59 ยฑ2.93 / 350.49 ms โ 341.03 / 345.45 ยฑ3.39 / 351.37 ms โ no change โ
โ QQuery 8 โ 117.21 / 119.39 ยฑ1.66 / 121.19 ms โ 117.29 / 118.25 ยฑ1.00 / 119.81 ms โ no change โ
โ QQuery 9 โ 101.98 / 105.46 ยฑ2.06 / 107.89 ms โ 101.30 / 103.91 ยฑ2.47 / 107.10 ms โ no change โ
โ QQuery 10 โ 105.17 / 106.91 ยฑ1.15 / 108.76 ms โ 104.99 / 106.26 ยฑ0.68 / 106.86 ms โ no change โ
โ QQuery 11 โ 950.10 / 964.75 ยฑ15.56 / 992.71 ms โ 952.07 / 966.13 ยฑ10.18 / 977.82 ms โ no change โ
โ QQuery 12 โ 49.17 / 50.87 ยฑ1.79 / 53.14 ms โ 44.24 / 45.58 ยฑ1.32 / 48.07 ms โ +1.12x faster โ
โ QQuery 13 โ 400.79 / 408.52 ยฑ5.63 / 417.80 ms โ 401.25 / 405.70 ยฑ3.28 / 410.32 ms โ no change โ
โ QQuery 14 โ 1004.14 / 1009.46 ยฑ3.40 / 1013.29 ms โ 1004.37 / 1006.86 ยฑ1.62 / 1008.42 ms โ no change โ
โ QQuery 15 โ 15.60 / 16.29 ยฑ0.72 / 17.64 ms โ 15.34 / 16.91 ยฑ1.14 / 18.64 ms โ no change โ
โ QQuery 16 โ 7.29 / 7.58 ยฑ0.23 / 7.82 ms โ 7.31 / 7.77 ยฑ0.29 / 8.12 ms โ no change โ
โ QQuery 17 โ 229.09 / 231.19 ยฑ1.64 / 233.94 ms โ 227.78 / 229.37 ยฑ1.34 / 231.54 ms โ no change โ
โ QQuery 18 โ 129.42 / 129.76 ยฑ0.34 / 130.31 ms โ 126.89 / 128.72 ยฑ1.18 / 130.47 ms โ no change โ
โ QQuery 19 โ 154.96 / 157.06 ยฑ1.46 / 158.84 ms โ 155.11 / 156.36 ยฑ1.00 / 157.47 ms โ no change โ
โ QQuery 20 โ 13.40 / 14.08 ยฑ0.44 / 14.76 ms โ 13.71 / 14.26 ยฑ0.30 / 14.57 ms โ no change โ
โ QQuery 21 โ 18.94 / 19.61 ยฑ0.35 / 19.91 ms โ 19.53 / 19.89 ยฑ0.31 / 20.34 ms โ no change โ
โ QQuery 22 โ 486.41 / 490.25 ยฑ2.46 / 492.89 ms โ 485.59 / 488.57 ยฑ2.14 / 491.78 ms โ no change โ
โ QQuery 23 โ 881.75 / 888.47 ยฑ6.90 / 897.22 ms โ 874.89 / 884.92 ยฑ8.92 / 901.54 ms โ no change โ
โ QQuery 24 โ 382.00 / 384.91 ยฑ2.95 / 389.94 ms โ 381.40 / 383.88 ยฑ3.14 / 389.86 ms โ no change โ
โ QQuery 25 โ 340.39 / 342.38 ยฑ1.35 / 343.76 ms โ 336.89 / 340.18 ยฑ2.75 / 343.84 ms โ no change โ
โ QQuery 26 โ 82.02 / 82.93 ยฑ0.75 / 84.22 ms โ 81.69 / 83.69 ยฑ2.44 / 87.06 ms โ no change โ
โ QQuery 27 โ 7.14 / 7.67 ยฑ0.78 / 9.20 ms โ 6.75 / 6.99 ยฑ0.29 / 7.51 ms โ +1.10x faster โ
โ QQuery 28 โ 148.11 / 151.11 ยฑ2.46 / 155.58 ms โ 148.59 / 150.08 ยฑ0.99 / 151.50 ms โ no change โ
โ QQuery 29 โ 280.02 / 283.14 ยฑ1.85 / 285.10 ms โ 278.47 / 282.20 ยฑ2.15 / 284.39 ms โ no change โ
โ QQuery 30 โ 43.46 / 46.42 ยฑ1.97 / 48.60 ms โ 43.38 / 45.04 ยฑ1.56 / 47.82 ms โ no change โ
โ QQuery 31 โ 169.78 / 171.51 ยฑ1.02 / 172.58 ms โ 171.26 / 173.61 ยฑ1.70 / 175.62 ms โ no change โ
โ QQuery 32 โ 56.82 / 58.73 ยฑ1.23 / 60.51 ms โ 57.19 / 57.73 ยฑ0.63 / 58.94 ms โ no change โ
โ QQuery 33 โ 141.79 / 142.90 ยฑ0.89 / 144.49 ms โ 140.06 / 142.63 ยฑ2.83 / 147.88 ms โ no change โ
โ QQuery 34 โ 7.10 / 7.27 ยฑ0.16 / 7.54 ms โ 7.31 / 8.11 ยฑ1.00 / 10.04 ms โ 1.12x slower โ
โ QQuery 35 โ 105.24 / 108.18 ยฑ1.55 / 109.74 ms โ 113.10 / 114.31 ยฑ1.13 / 115.81 ms โ 1.06x slower โ
โ QQuery 36 โ 6.52 / 6.61 ยฑ0.11 / 6.82 ms โ 6.69 / 7.12 ยฑ0.48 / 8.04 ms โ 1.08x slower โ
โ QQuery 37 โ 8.66 / 9.39 ยฑ0.80 / 10.84 ms โ 8.66 / 9.51 ยฑ0.66 / 10.70 ms โ no change โ
โ QQuery 38 โ 86.45 / 88.58 ยฑ2.96 / 94.37 ms โ 87.34 / 90.25 ยฑ4.29 / 98.75 ms โ no change โ
โ QQuery 39 โ 125.56 / 128.65 ยฑ2.68 / 132.66 ms โ 126.42 / 130.74 ยฑ3.44 / 136.60 ms โ no change โ
โ QQuery 40 โ 108.75 / 116.53 ยฑ6.97 / 129.42 ms โ 120.88 / 127.63 ยฑ9.32 / 145.94 ms โ 1.10x slower โ
โ QQuery 41 โ 14.34 / 15.28 ยฑ0.58 / 16.07 ms โ 14.30 / 15.82 ยฑ1.19 / 17.47 ms โ no change โ
โ QQuery 42 โ 108.24 / 109.86 ยฑ1.55 / 112.63 ms โ 108.34 / 109.85 ยฑ0.93 / 110.82 ms โ no change โ
โ QQuery 43 โ 6.00 / 6.12 ยฑ0.12 / 6.31 ms โ 5.93 / 6.03 ยฑ0.12 / 6.27 ms โ no change โ
โ QQuery 44 โ 11.93 / 12.85 ยฑ0.98 / 14.29 ms โ 11.79 / 12.23 ยฑ0.34 / 12.81 ms โ no change โ
โ QQuery 45 โ 51.59 / 52.20 ยฑ0.71 / 53.58 ms โ 50.50 / 51.48 ยฑ0.80 / 52.59 ms โ no change โ
โ QQuery 46 โ 8.37 / 8.86 ยฑ0.32 / 9.30 ms โ 8.22 / 8.55 ยฑ0.21 / 8.79 ms โ no change โ
โ QQuery 47 โ 730.15 / 735.98 ยฑ6.90 / 748.40 ms โ 705.59 / 712.82 ยฑ4.86 / 720.66 ms โ no change โ
โ QQuery 48 โ 293.14 / 296.48 ยฑ3.12 / 301.21 ms โ 294.01 / 296.74 ยฑ2.30 / 300.54 ms โ no change โ
โ QQuery 49 โ 250.28 / 253.44 ยฑ3.22 / 259.53 ms โ 251.81 / 253.12 ยฑ1.05 / 254.43 ms โ no change โ
โ QQuery 50 โ 226.01 / 230.32 ยฑ4.01 / 235.24 ms โ 220.67 / 223.64 ยฑ2.76 / 228.09 ms โ no change โ
โ QQuery 51 โ 183.04 / 185.25 ยฑ2.09 / 189.07 ms โ 178.31 / 181.98 ยฑ1.95 / 184.09 ms โ no change โ
โ QQuery 52 โ 107.65 / 110.58 ยฑ3.03 / 116.28 ms โ 108.42 / 110.26 ยฑ2.22 / 114.63 ms โ no change โ
โ QQuery 53 โ 102.87 / 103.59 ยฑ0.90 / 105.24 ms โ 103.27 / 104.20 ยฑ1.01 / 106.01 ms โ no change โ
โ QQuery 54 โ 144.26 / 147.65 ยฑ2.00 / 150.36 ms โ 145.75 / 148.22 ยฑ2.27 / 152.02 ms โ no change โ
โ QQuery 55 โ 107.20 / 108.13 ยฑ0.76 / 109.28 ms โ 107.44 / 109.68 ยฑ1.38 / 111.81 ms โ no change โ
โ QQuery 56 โ 141.05 / 142.32 ยฑ1.01 / 144.15 ms โ 140.48 / 142.52 ยฑ1.42 / 144.84 ms โ no change โ
โ QQuery 57 โ 172.82 / 175.12 ยฑ1.39 / 176.89 ms โ 174.64 / 176.19 ยฑ1.47 / 178.51 ms โ no change โ
โ QQuery 58 โ 286.62 / 296.24 ยฑ6.87 / 305.53 ms โ 285.31 / 298.28 ยฑ13.20 / 317.51 ms โ no change โ
โ QQuery 59 โ 199.23 / 200.95 ยฑ1.69 / 204.20 ms โ 195.69 / 199.36 ยฑ3.05 / 203.59 ms โ no change โ
โ QQuery 60 โ 144.67 / 145.48 ยฑ0.66 / 146.41 ms โ 142.34 / 143.44 ยฑ1.31 / 145.79 ms โ no change โ
โ QQuery 61 โ 12.99 / 13.45 ยฑ0.35 / 13.95 ms โ 12.73 / 13.06 ยฑ0.22 / 13.34 ms โ no change โ
โ QQuery 62 โ 904.73 / 932.43 ยฑ16.55 / 947.84 ms โ 901.55 / 934.20 ยฑ25.10 / 966.87 ms โ no change โ
โ QQuery 63 โ 103.15 / 106.72 ยฑ3.02 / 110.78 ms โ 103.85 / 105.22 ยฑ1.02 / 106.83 ms โ no change โ
โ QQuery 64 โ 683.07 / 685.79 ยฑ2.81 / 690.87 ms โ 680.75 / 687.10 ยฑ3.46 / 690.59 ms โ no change โ
โ QQuery 65 โ 246.22 / 253.56 ยฑ4.22 / 258.12 ms โ 252.05 / 256.03 ยฑ3.55 / 262.20 ms โ no change โ
โ QQuery 66 โ 234.63 / 253.48 ยฑ10.76 / 265.83 ms โ 247.60 / 256.44 ยฑ7.16 / 265.72 ms โ no change โ
โ QQuery 67 โ 307.25 / 316.77 ยฑ5.71 / 323.28 ms โ 319.99 / 334.45 ยฑ14.63 / 357.79 ms โ 1.06x slower โ
โ QQuery 68 โ 10.40 / 11.74 ยฑ1.30 / 14.02 ms โ 9.81 / 10.88 ยฑ0.79 / 12.24 ms โ +1.08x faster โ
โ QQuery 69 โ 100.32 / 103.93 ยฑ2.11 / 106.32 ms โ 102.81 / 105.31 ยฑ1.32 / 106.40 ms โ no change โ
โ QQuery 70 โ 342.77 / 354.40 ยฑ11.96 / 373.37 ms โ 337.23 / 344.94 ยฑ6.28 / 351.91 ms โ no change โ
โ QQuery 71 โ 134.41 / 137.03 ยฑ1.43 / 138.73 ms โ 136.55 / 137.88 ยฑ1.11 / 139.85 ms โ no change โ
โ QQuery 72 โ 611.97 / 618.14 ยฑ5.14 / 627.10 ms โ 605.50 / 623.82 ยฑ12.23 / 637.66 ms โ no change โ
โ QQuery 73 โ 7.45 / 8.17 ยฑ0.58 / 9.07 ms โ 7.32 / 8.36 ยฑ1.07 / 10.11 ms โ no change โ
โ QQuery 74 โ 581.34 / 592.24 ยฑ8.46 / 606.84 ms โ 574.83 / 587.08 ยฑ9.45 / 597.06 ms โ no change โ
โ QQuery 75 โ 277.59 / 280.04 ยฑ2.61 / 285.00 ms โ 275.81 / 279.40 ยฑ2.65 / 283.37 ms โ no change โ
โ QQuery 76 โ 131.53 / 133.57 ยฑ1.57 / 136.07 ms โ 131.98 / 133.99 ยฑ1.18 / 135.67 ms โ no change โ
โ QQuery 77 โ 188.69 / 190.76 ยฑ1.26 / 192.15 ms โ 189.33 / 190.25 ยฑ0.58 / 191.04 ms โ no change โ
โ QQuery 78 โ 340.49 / 343.98 ยฑ3.33 / 350.02 ms โ 339.79 / 342.76 ยฑ2.82 / 346.34 ms โ no change โ
โ QQuery 79 โ 233.09 / 234.57 ยฑ1.62 / 237.15 ms โ 233.94 / 236.02 ยฑ1.24 / 237.23 ms โ no change โ
โ QQuery 80 โ 320.55 / 323.94 ยฑ2.76 / 327.30 ms โ 321.31 / 326.39 ยฑ2.91 / 329.11 ms โ no change โ
โ QQuery 81 โ 26.33 / 27.38 ยฑ0.68 / 28.20 ms โ 26.48 / 27.22 ยฑ0.62 / 28.21 ms โ no change โ
โ QQuery 82 โ 197.82 / 199.31 ยฑ2.29 / 203.86 ms โ 198.55 / 200.71 ยฑ2.16 / 203.59 ms โ no change โ
โ QQuery 83 โ 39.37 / 41.36 ยฑ2.24 / 45.22 ms โ 38.52 / 39.36 ยฑ1.33 / 42.00 ms โ no change โ
โ QQuery 84 โ 48.63 / 49.58 ยฑ0.88 / 50.80 ms โ 48.77 / 49.40 ยฑ0.39 / 49.92 ms โ no change โ
โ QQuery 85 โ 147.39 / 148.66 ยฑ1.16 / 150.63 ms โ 147.83 / 148.63 ยฑ0.66 / 149.75 ms โ no change โ
โ QQuery 86 โ 38.52 / 40.01 ยฑ1.14 / 41.54 ms โ 39.86 / 40.90 ยฑ0.87 / 42.04 ms โ no change โ
โ QQuery 87 โ 85.60 / 88.73 ยฑ3.70 / 95.81 ms โ 85.60 / 88.35 ยฑ3.32 / 94.88 ms โ no change โ
โ QQuery 88 โ 100.63 / 101.95 ยฑ0.96 / 103.51 ms โ 99.93 / 101.22 ยฑ1.04 / 102.68 ms โ no change โ
โ QQuery 89 โ 118.81 / 119.79 ยฑ1.26 / 122.07 ms โ 118.70 / 119.92 ยฑ1.02 / 121.42 ms โ no change โ
โ QQuery 90 โ 23.99 / 24.20 ยฑ0.20 / 24.55 ms โ 22.99 / 24.11 ยฑ0.67 / 24.90 ms โ no change โ
โ QQuery 91 โ 61.98 / 64.38 ยฑ1.66 / 66.73 ms โ 62.03 / 64.30 ยฑ2.30 / 68.74 ms โ no change โ
โ QQuery 92 โ 57.67 / 58.07 ยฑ0.31 / 58.44 ms โ 57.81 / 59.39 ยฑ1.21 / 61.43 ms โ no change โ
โ QQuery 93 โ 184.73 / 185.90 ยฑ0.88 / 187.18 ms โ 185.38 / 188.28 ยฑ1.90 / 190.69 ms โ no change โ
โ QQuery 94 โ 61.74 / 62.66 ยฑ0.75 / 63.87 ms โ 60.38 / 62.32 ยฑ1.48 / 64.92 ms โ no change โ
โ QQuery 95 โ 127.91 / 128.82 ยฑ0.55 / 129.40 ms โ 127.77 / 128.56 ยฑ0.72 / 129.74 ms โ no change โ
โ QQuery 96 โ 73.22 / 74.44 ยฑ0.77 / 75.59 ms โ 73.32 / 74.75 ยฑ1.10 / 76.65 ms โ no change โ
โ QQuery 97 โ 125.16 / 126.41 ยฑ0.79 / 127.42 ms โ 124.06 / 127.60 ยฑ2.47 / 130.65 ms โ no change โ
โ QQuery 98 โ 154.18 / 156.03 ยฑ1.73 / 159.27 ms โ 153.08 / 156.89 ยฑ2.23 / 159.74 ms โ no change โ
โ QQuery 99 โ 10778.40 / 10822.79 ยฑ36.20 / 10879.92 ms โ 10738.74 / 10797.52 ยฑ47.31 / 10877.80 ms โ no change โ
โโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 31720.03ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 31590.96ms โ
โ Average Time (HEAD) โ 320.40ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 319.10ms โ
โ Queries Faster โ 4 โ
โ Queries Slower โ 5 โ
โ Queries with No Change โ 90 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpcds โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 158.9s |
| Peak memory | 5.5 GiB |
| Avg memory | 4.5 GiB |
| CPU user | 261.6s |
| CPU sys | 17.7s |
| Peak spill | 0 B |
**tpcds โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 158.3s |
| Peak memory | 5.5 GiB |
| Avg memory | 4.7 GiB |
| CPU user | 260.4s |
| CPU sys | 17.4s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#discussion_r3071275014
##########
datafusion/datasource-parquet/src/access_plan.rs:
##########
@@ -377,6 +382,106 @@ impl PreparedAccessPlan {
})
}
+ /// Reorder row groups by their min statistics for the given sort order.
+ ///
+ /// This helps TopK queries find optimal values first. For ASC sort,
+ /// row groups with the smallest min values come first. For DESC sort,
+ /// row groups with the largest min values come first.
+ ///
+ /// Gracefully skips reordering when:
+ /// - There is a row_selection (too complex to remap)
+ /// - 0 or 1 row groups (nothing to reorder)
+ /// - Sort expression is not a simple column reference
+ /// - Statistics are unavailable
+ pub(crate) fn reorder_by_statistics(
+ mut self,
+ sort_order: &LexOrdering,
+ file_metadata: &ParquetMetaData,
+ arrow_schema: &Schema,
+ ) -> Result<Self> {
+ // Skip if row_selection present (too complex to remap)
+ if self.row_selection.is_some() {
+ debug!("Skipping RG reorder: row_selection present");
+ return Ok(self);
+ }
+
+ // Nothing to reorder
+ if self.row_group_indexes.len() <= 1 {
+ return Ok(self);
+ }
+
+ // Get the first sort expression
+ // LexOrdering is guaranteed non-empty, so first() returns &PhysicalSortExpr
+ let first_sort_expr = sort_order.first();
+
+ // Extract column name from sort expression
+ let column: &Column = match first_sort_expr.expr.as_any().downcast_ref::<Column>()
+ {
+ Some(col) => col,
+ None => {
+ debug!("Skipping RG reorder: sort expr is not a simple column");
+ return Ok(self);
+ }
+ };
+
+ let descending = first_sort_expr.options.descending;
Review Comment:
For `DESC` ordering, reordering by **min** values is often a poor proxy for โrow group likely contains the largest values firstโ; typically you want to sort by **max** when `descending == true` (and by min when ascending). This can significantly reduce the intended TopK benefit (and can even choose a worse first row group when ranges overlap). Consider switching to `row_group_maxs(...)` for descending order, and update the doc comment (currently mentions โmin/maxโ) and the DESC unit test accordingly.
##########
datafusion/datasource-parquet/src/access_plan.rs:
##########
@@ -377,6 +382,106 @@ impl PreparedAccessPlan {
})
}
+ /// Reorder row groups by their min statistics for the given sort order.
+ ///
+ /// This helps TopK queries find optimal values first. For ASC sort,
+ /// row groups with the smallest min values come first. For DESC sort,
+ /// row groups with the largest min values come first.
+ ///
+ /// Gracefully skips reordering when:
+ /// - There is a row_selection (too complex to remap)
+ /// - 0 or 1 row groups (nothing to reorder)
+ /// - Sort expression is not a simple column reference
+ /// - Statistics are unavailable
+ pub(crate) fn reorder_by_statistics(
+ mut self,
+ sort_order: &LexOrdering,
+ file_metadata: &ParquetMetaData,
+ arrow_schema: &Schema,
+ ) -> Result<Self> {
+ // Skip if row_selection present (too complex to remap)
+ if self.row_selection.is_some() {
+ debug!("Skipping RG reorder: row_selection present");
+ return Ok(self);
+ }
+
+ // Nothing to reorder
+ if self.row_group_indexes.len() <= 1 {
+ return Ok(self);
+ }
+
+ // Get the first sort expression
+ // LexOrdering is guaranteed non-empty, so first() returns &PhysicalSortExpr
+ let first_sort_expr = sort_order.first();
Review Comment:
`sort_order.first()` (if `LexOrdering` is `Vec`-like) returns `Option<&PhysicalSortExpr>`, but the code uses it as if it were `&PhysicalSortExpr` (`first_sort_expr.expr...`). This is likely a compile error. A concrete fix is to obtain the first element via iteration and handle the empty case (e.g., early-return `Ok(self)` if no sort expressions), then use the returned `&PhysicalSortExpr`.
```suggestion
let first_sort_expr = match sort_order.iter().next() {
Some(expr) => expr,
None => {
debug!("Skipping RG reorder: empty sort order");
return Ok(self);
}
};
```
##########
datafusion/datasource-parquet/src/source.rs:
##########
@@ -817,7 +821,9 @@ impl FileSource for ParquetSource {
// Return Inexact because we're only reversing row group order,
// not guaranteeing perfect row-level ordering
- let new_source = self.clone().with_reverse_row_groups(true);
+ let sort_order = LexOrdering::new(order.iter().cloned());
+ let mut new_source = self.clone().with_reverse_row_groups(true);
+ new_source.sort_order_for_reorder = sort_order;
Review Comment:
`LexOrdering::new(...)` appears to return a `Result<LexOrdering, _>` (as used with `.unwrap()` in the new unit tests), but here itโs assigned directly without `?`/`unwrap`, and then assigned to `sort_order_for_reorder: Option<LexOrdering>` without wrapping in `Some(...)`. This should be changed to construct a `LexOrdering` with error propagation and store it as `Some(sort_order)` (or skip setting the field on error). Otherwise this wonโt compile.
```suggestion
let sort_order = LexOrdering::new(order.iter().cloned())?;
let mut new_source = self.clone().with_reverse_row_groups(true);
new_source.sort_order_for_reorder = Some(sort_order);
```
##########
datafusion/datasource-parquet/src/access_plan.rs:
##########
@@ -377,6 +382,106 @@ impl PreparedAccessPlan {
})
}
+ /// Reorder row groups by their min statistics for the given sort order.
+ ///
+ /// This helps TopK queries find optimal values first. For ASC sort,
+ /// row groups with the smallest min values come first. For DESC sort,
+ /// row groups with the largest min values come first.
+ ///
+ /// Gracefully skips reordering when:
+ /// - There is a row_selection (too complex to remap)
+ /// - 0 or 1 row groups (nothing to reorder)
+ /// - Sort expression is not a simple column reference
+ /// - Statistics are unavailable
+ pub(crate) fn reorder_by_statistics(
+ mut self,
+ sort_order: &LexOrdering,
+ file_metadata: &ParquetMetaData,
+ arrow_schema: &Schema,
+ ) -> Result<Self> {
+ // Skip if row_selection present (too complex to remap)
+ if self.row_selection.is_some() {
+ debug!("Skipping RG reorder: row_selection present");
+ return Ok(self);
+ }
+
+ // Nothing to reorder
+ if self.row_group_indexes.len() <= 1 {
+ return Ok(self);
+ }
+
+ // Get the first sort expression
+ // LexOrdering is guaranteed non-empty, so first() returns &PhysicalSortExpr
+ let first_sort_expr = sort_order.first();
+
+ // Extract column name from sort expression
+ let column: &Column = match first_sort_expr.expr.as_any().downcast_ref::<Column>()
+ {
+ Some(col) => col,
+ None => {
+ debug!("Skipping RG reorder: sort expr is not a simple column");
+ return Ok(self);
+ }
+ };
+
+ let descending = first_sort_expr.options.descending;
+
+ // Build statistics converter for this column
+ let converter = match StatisticsConverter::try_new(
+ column.name(),
+ arrow_schema,
+ file_metadata.file_metadata().schema_descr(),
+ ) {
+ Ok(c) => c,
+ Err(e) => {
+ debug!("Skipping RG reorder: cannot create stats converter: {e}");
+ return Ok(self);
+ }
+ };
+
+ // Get min values for the selected row groups
+ let rg_metadata: Vec<&RowGroupMetaData> = self
+ .row_group_indexes
+ .iter()
+ .map(|&idx| file_metadata.row_group(idx))
+ .collect();
+
+ let min_values = match converter.row_group_mins(rg_metadata.iter().copied()) {
+ Ok(vals) => vals,
+ Err(e) => {
+ debug!("Skipping RG reorder: cannot get min values: {e}");
+ return Ok(self);
+ }
+ };
+
+ // Sort indices by min values
+ let sort_options = arrow::compute::SortOptions {
+ descending,
+ nulls_first: first_sort_expr.options.nulls_first,
+ };
+ let sorted_indices = match arrow::compute::sort_to_indices(
+ &min_values,
Review Comment:
For `DESC` ordering, reordering by **min** values is often a poor proxy for โrow group likely contains the largest values firstโ; typically you want to sort by **max** when `descending == true` (and by min when ascending). This can significantly reduce the intended TopK benefit (and can even choose a worse first row group when ranges overlap). Consider switching to `row_group_maxs(...)` for descending order, and update the doc comment (currently mentions โmin/maxโ) and the DESC unit test accordingly.
```suggestion
// Get values for the selected row groups: mins for ASC, maxs for DESC
let rg_metadata: Vec<&RowGroupMetaData> = self
.row_group_indexes
.iter()
.map(|&idx| file_metadata.row_group(idx))
.collect();
let sort_values = match if descending {
converter.row_group_maxs(rg_metadata.iter().copied())
} else {
converter.row_group_mins(rg_metadata.iter().copied())
} {
Ok(vals) => vals,
Err(e) => {
debug!("Skipping RG reorder: cannot get min/max values: {e}");
return Ok(self);
}
};
// Sort indices by the statistics that best match the requested order
let sort_options = arrow::compute::SortOptions {
descending,
nulls_first: first_sort_expr.options.nulls_first,
};
let sorted_indices = match arrow::compute::sort_to_indices(
&sort_values,
```
##########
datafusion/datasource-parquet/src/access_plan.rs:
##########
@@ -377,6 +382,106 @@ impl PreparedAccessPlan {
})
}
+ /// Reorder row groups by their min statistics for the given sort order.
+ ///
+ /// This helps TopK queries find optimal values first. For ASC sort,
+ /// row groups with the smallest min values come first. For DESC sort,
+ /// row groups with the largest min values come first.
+ ///
+ /// Gracefully skips reordering when:
+ /// - There is a row_selection (too complex to remap)
+ /// - 0 or 1 row groups (nothing to reorder)
+ /// - Sort expression is not a simple column reference
+ /// - Statistics are unavailable
+ pub(crate) fn reorder_by_statistics(
+ mut self,
+ sort_order: &LexOrdering,
+ file_metadata: &ParquetMetaData,
+ arrow_schema: &Schema,
+ ) -> Result<Self> {
+ // Skip if row_selection present (too complex to remap)
+ if self.row_selection.is_some() {
+ debug!("Skipping RG reorder: row_selection present");
+ return Ok(self);
+ }
+
+ // Nothing to reorder
+ if self.row_group_indexes.len() <= 1 {
+ return Ok(self);
+ }
+
+ // Get the first sort expression
+ // LexOrdering is guaranteed non-empty, so first() returns &PhysicalSortExpr
+ let first_sort_expr = sort_order.first();
+
+ // Extract column name from sort expression
+ let column: &Column = match first_sort_expr.expr.as_any().downcast_ref::<Column>()
+ {
+ Some(col) => col,
+ None => {
+ debug!("Skipping RG reorder: sort expr is not a simple column");
+ return Ok(self);
+ }
+ };
+
+ let descending = first_sort_expr.options.descending;
+
+ // Build statistics converter for this column
+ let converter = match StatisticsConverter::try_new(
+ column.name(),
+ arrow_schema,
+ file_metadata.file_metadata().schema_descr(),
+ ) {
+ Ok(c) => c,
+ Err(e) => {
+ debug!("Skipping RG reorder: cannot create stats converter: {e}");
+ return Ok(self);
+ }
+ };
+
+ // Get min values for the selected row groups
+ let rg_metadata: Vec<&RowGroupMetaData> = self
+ .row_group_indexes
+ .iter()
+ .map(|&idx| file_metadata.row_group(idx))
+ .collect();
+
+ let min_values = match converter.row_group_mins(rg_metadata.iter().copied()) {
+ Ok(vals) => vals,
+ Err(e) => {
+ debug!("Skipping RG reorder: cannot get min values: {e}");
+ return Ok(self);
+ }
+ };
+
+ // Sort indices by min values
+ let sort_options = arrow::compute::SortOptions {
+ descending,
+ nulls_first: first_sort_expr.options.nulls_first,
+ };
+ let sorted_indices = match arrow::compute::sort_to_indices(
+ &min_values,
+ Some(sort_options),
+ None,
+ ) {
Review Comment:
If multiple row groups share the same min (or max) statistic, `sort_to_indices` may not guarantee a deterministic/stable tie-breaker across platforms/versions. Since row-group order can affect scan reproducibility and performance debugging, consider adding a stable secondary key (e.g., original row group index) when statistics are equal.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4234374322
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4234363943)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4234363943-1134-pcn8f 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (a013bf6b9c27269f56d55cdfbb5ddd24ef1992b6) to 29c5dd5 (merge-base) [diff](https://github.com/apache/datafusion/compare/29c5dd5b8f7c60663ada64f34e15ecf22a7dc9a1..a013bf6b9c27269f56d55cdfbb5ddd24ef1992b6) using: clickbench_partitioned
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4234355931
cc @alamb @adriangb
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4268875005
run benchmark sort_pushdown_inexact
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangb (via GitHub)" <gi...@apache.org>.
adriangb commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4268977031
https://github.com/adriangb/datafusion-benchmarking/pull/4 broke benchmarks - please hold off for a bit while I fix (might just revert)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4282161651
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4282133777)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4282133777-1601-bwlks 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (39961788746d0ade8fce9c4b43cabca82a9d8397) to 466c3ea (merge-base) [diff](https://github.com/apache/datafusion/compare/466c3eaecfd9cf2b80b365e869383daf1f30b663..39961788746d0ade8fce9c4b43cabca82a9d8397) using: clickbench_partitioned
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4282462867
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4282410384)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4282410384-1612-48kgc 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (c94bdcccad3916a72f2644b4cac5386f009c94a1) to 466c3ea (merge-base) [diff](https://github.com/apache/datafusion/compare/466c3eaecfd9cf2b80b365e869383daf1f30b663..c94bdcccad3916a72f2644b4cac5386f009c94a1) using: tpch
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init) [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4282410384
run benchmarks
```
env:
DATAFUSION_EXECUTION_PARQUET_PUSHDOWN_FILTERS: true
DATAFUSION_EXECUTION_PARQUET_REORDER_FILTERS: true
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4275886045
run benchmark sort_pushdown
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4275886595
run benchmark topk_tpch
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4285639674
Benchmark for [this request](https://github.com/apache/datafusion/pull/21580#issuecomment-4285628494) failed.
Last 20 lines of output:
<details><summary>Click to expand</summary>
```
struct_query_sql
substr
substr_index
substring
sum
to_char
to_hex
to_local_time
to_time
to_timestamp
topk_aggregate
topk_repartition
translate
trim
trunc
unhex
upper
uuid
window_query_sql
with_hashes
```
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init) [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4285628494
run benchmark clickbench_sorted
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangb (via GitHub)" <gi...@apache.org>.
adriangb commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4241761214
run benchmarks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on code in PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#discussion_r3071407032
##########
datafusion/datasource-parquet/src/access_plan.rs:
##########
@@ -377,6 +382,106 @@ impl PreparedAccessPlan {
})
}
+ /// Reorder row groups by their min statistics for the given sort order.
+ ///
+ /// This helps TopK queries find optimal values first. For ASC sort,
+ /// row groups with the smallest min values come first. For DESC sort,
+ /// row groups with the largest min values come first.
+ ///
+ /// Gracefully skips reordering when:
+ /// - There is a row_selection (too complex to remap)
+ /// - 0 or 1 row groups (nothing to reorder)
+ /// - Sort expression is not a simple column reference
+ /// - Statistics are unavailable
+ pub(crate) fn reorder_by_statistics(
+ mut self,
+ sort_order: &LexOrdering,
+ file_metadata: &ParquetMetaData,
+ arrow_schema: &Schema,
+ ) -> Result<Self> {
+ // Skip if row_selection present (too complex to remap)
+ if self.row_selection.is_some() {
+ debug!("Skipping RG reorder: row_selection present");
+ return Ok(self);
+ }
+
+ // Nothing to reorder
+ if self.row_group_indexes.len() <= 1 {
+ return Ok(self);
+ }
+
+ // Get the first sort expression
+ // LexOrdering is guaranteed non-empty, so first() returns &PhysicalSortExpr
+ let first_sort_expr = sort_order.first();
+
+ // Extract column name from sort expression
+ let column: &Column = match first_sort_expr.expr.as_any().downcast_ref::<Column>()
+ {
+ Some(col) => col,
+ None => {
+ debug!("Skipping RG reorder: sort expr is not a simple column");
+ return Ok(self);
+ }
+ };
+
+ let descending = first_sort_expr.options.descending;
+
+ // Build statistics converter for this column
+ let converter = match StatisticsConverter::try_new(
+ column.name(),
+ arrow_schema,
+ file_metadata.file_metadata().schema_descr(),
+ ) {
+ Ok(c) => c,
+ Err(e) => {
+ debug!("Skipping RG reorder: cannot create stats converter: {e}");
+ return Ok(self);
+ }
+ };
+
+ // Get min values for the selected row groups
+ let rg_metadata: Vec<&RowGroupMetaData> = self
+ .row_group_indexes
+ .iter()
+ .map(|&idx| file_metadata.row_group(idx))
+ .collect();
+
+ let min_values = match converter.row_group_mins(rg_metadata.iter().copied()) {
+ Ok(vals) => vals,
+ Err(e) => {
+ debug!("Skipping RG reorder: cannot get min values: {e}");
+ return Ok(self);
+ }
+ };
+
+ // Sort indices by min values
+ let sort_options = arrow::compute::SortOptions {
+ descending,
+ nulls_first: first_sort_expr.options.nulls_first,
+ };
+ let sorted_indices = match arrow::compute::sort_to_indices(
+ &min_values,
Review Comment:
Yes, this is a good point.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4288586857
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4288570205)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4288570205-1674-fm6pm 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (839ab5a3dba21a43399d27751fc6a760c93f0a4c) to 466c3ea (merge-base) [diff](https://github.com/apache/datafusion/compare/466c3eaecfd9cf2b80b365e869383daf1f30b663..839ab5a3dba21a43399d27751fc6a760c93f0a4c) using: sort_pushdown_inexact
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "xudong963 (via GitHub)" <gi...@apache.org>.
xudong963 commented on code in PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#discussion_r3123373198
##########
datafusion/physical-plan/src/sorts/sort.rs:
##########
@@ -952,14 +962,16 @@ impl SortExec {
if fetch.is_some() && is_pipeline_friendly {
cache = cache.with_boundedness(Boundedness::Bounded);
}
- let filter = fetch.is_some().then(|| {
- // If we already have a filter, keep it. Otherwise, create a new one.
- self.filter.clone().unwrap_or_else(|| self.create_filter())
- });
let mut new_sort = self.cloned();
new_sort.fetch = fetch;
new_sort.cache = cache.into();
- new_sort.filter = filter;
+ new_sort.filter = fetch.is_some().then(|| {
+ // If we already have a filter, keep it. Otherwise, create a new one.
+ // Must be called after setting fetch so DynamicFilter gets the K value.
+ self.filter
Review Comment:
`SortExec::with_fetch` can leave the embedded dynamic filterโs fetch stale. The new parquet optimizations read df.fetch() for threshold init and cumulative prune, so if any later optimizer rewrites fetch through with_fetch, parquet may prune using the old K
##########
datafusion/datasource-parquet/src/access_plan.rs:
##########
@@ -377,6 +381,124 @@ impl PreparedAccessPlan {
})
}
+ /// Return a reference to the row group indexes.
+ pub(crate) fn row_group_indexes(&self) -> &[usize] {
+ &self.row_group_indexes
+ }
+
+ /// Keep only the first `count` row groups, dropping the rest.
+ /// Used for TopK cumulative pruning after reorder + reverse.
+ pub(crate) fn truncate_row_groups(mut self, count: usize) -> Self {
+ self.row_group_indexes.truncate(count);
+ // Clear row_selection since it's tied to the original RG set
+ if self.row_selection.is_some() {
+ self.row_selection = None;
+ }
+ self
+ }
+
+ /// Reorder row groups by their min statistics for the given sort order.
+ ///
+ /// This helps TopK queries find optimal values first. For ASC sort,
+ /// row groups with the smallest min values come first. For DESC sort,
+ /// row groups with the largest min values come first.
+ ///
+ /// Gracefully skips reordering when:
+ /// - There is a row_selection (too complex to remap)
+ /// - 0 or 1 row groups (nothing to reorder)
+ /// - Sort expression is not a simple column reference
+ /// - Statistics are unavailable
+ pub(crate) fn reorder_by_statistics(
+ mut self,
+ sort_order: &LexOrdering,
+ file_metadata: &ParquetMetaData,
+ arrow_schema: &Schema,
+ ) -> Result<Self> {
+ // Skip if row_selection present (too complex to remap)
+ if self.row_selection.is_some() {
+ debug!("Skipping RG reorder: row_selection present");
+ return Ok(self);
+ }
+
+ // Nothing to reorder
+ if self.row_group_indexes.len() <= 1 {
+ return Ok(self);
+ }
+
+ // Get the first sort expression
+ // LexOrdering is guaranteed non-empty, so first() returns &PhysicalSortExpr
+ let first_sort_expr = sort_order.first();
Review Comment:
what about multi-key ORDER BY?
##########
datafusion/datasource-parquet/src/access_plan.rs:
##########
@@ -377,6 +381,124 @@ impl PreparedAccessPlan {
})
}
+ /// Return a reference to the row group indexes.
+ pub(crate) fn row_group_indexes(&self) -> &[usize] {
+ &self.row_group_indexes
+ }
+
+ /// Keep only the first `count` row groups, dropping the rest.
+ /// Used for TopK cumulative pruning after reorder + reverse.
+ pub(crate) fn truncate_row_groups(mut self, count: usize) -> Self {
Review Comment:
it drops existing row_selection entirely after truncation, which can widen the scan back to full row groups or discard exact page-level pruning state
##########
datafusion/datasource-parquet/src/opener.rs:
##########
@@ -1123,13 +1166,157 @@ impl RowGroupsPrunedParquetOpen {
);
}
- // Prepare the access plan (extract row groups and row selection)
+ // Row group ordering optimization (two composable steps):
+ //
+ // 1. reorder_by_statistics: sort RGs by min values (ASC) to align
+ // with the file's declared output ordering. This fixes out-of-order
+ // RGs (e.g., from append-heavy workloads) without changing direction.
+ // Skipped gracefully when statistics are unavailable.
+ //
+ // 2. reverse: flip the order for DESC queries. Applied AFTER reorder
+ // so the reversed order is correct whether or not reorder changed
+ // anything. Also handles row_selection remapping.
+ //
+ // For sorted data: reorder is a no-op, reverse gives perfect DESC.
+ // For unsorted data: reorder fixes the order, reverse flips for DESC.
+ // Build reorder optimizer from sort_order_for_reorder (Inexact path)
+ // or from DynamicFilterPhysicalExpr sort_options (any TopK query).
+ // Fuzz test uses tiebreaker columns so reorder is safe for all TopK.
+ let reorder_optimizer: Option<
+ Box<dyn crate::access_plan_optimizer::AccessPlanOptimizer>,
+ > = if let Some(sort_order) = &prepared.sort_order_for_reorder {
+ Some(
+ Box::new(crate::access_plan_optimizer::ReorderByStatistics::new(
+ sort_order.clone(),
+ ))
+ as Box<dyn crate::access_plan_optimizer::AccessPlanOptimizer>,
+ )
+ } else if let Some(predicate) = &prepared.predicate
+ && let Some(df) = find_dynamic_filter(predicate)
+ && let Some(sort_options) = df.sort_options()
+ && sort_options.len() == 1
+ {
+ // Build a sort order from DynamicFilter for non-sort-pushdown TopK.
+ // Quick bail: check if the sort column exists in file schema.
+ // For GROUP BY + ORDER BY, the sort column is an aggregate output
+ // (not in parquet) โ skip to avoid wasted StatisticsConverter work.
+ let children = df.children();
+ if !children.is_empty() {
+ let col = find_column_in_expr(children[0]);
+ if let Some(ref c) = col
+ && prepared
+ .physical_file_schema
+ .field_with_name(c.name())
+ .is_ok()
+ {
+ let sort_expr =
+ datafusion_physical_expr_common::sort_expr::PhysicalSortExpr {
+ expr: Arc::clone(children[0]),
+ options: arrow::compute::SortOptions {
+ descending: false,
+ nulls_first: sort_options[0].nulls_first,
+ },
+ };
+ LexOrdering::new(vec![sort_expr]).map(|order| {
+ Box::new(crate::access_plan_optimizer::ReorderByStatistics::new(
+ order,
+ ))
+ as Box<dyn crate::access_plan_optimizer::AccessPlanOptimizer>
+ })
+ } else {
+ None
+ }
+ } else {
+ None
+ }
+ } else {
+ None
+ };
+
+ // Reverse for DESC queries. Only when reorder is active (the sort
+ // column exists in parquet stats). Without reorder, reversing RGs
+ // randomly changes I/O patterns with no benefit.
+ let is_descending = prepared.reverse_row_groups
+ || (reorder_optimizer.is_some()
+ && prepared
+ .predicate
+ .as_ref()
+ .and_then(find_dynamic_filter)
+ .and_then(|df| df.sort_options().map(|opts| opts[0].descending))
+ .unwrap_or(false));
+ let reverse_optimizer: Option<
+ Box<dyn crate::access_plan_optimizer::AccessPlanOptimizer>,
+ > = if is_descending {
+ Some(Box::new(crate::access_plan_optimizer::ReverseRowGroups))
+ } else {
+ None
+ };
+
+ // Prepare the access plan and apply optimizers in order:
+ // 1. reorder (fix out-of-order RGs to match declared ordering)
+ // 2. reverse (flip for DESC queries)
let mut prepared_plan = access_plan.prepare(rg_metadata)?;
+ if let Some(opt) = &reorder_optimizer {
+ prepared_plan = opt.optimize(
+ prepared_plan,
+ file_metadata.as_ref(),
+ &prepared.physical_file_schema,
+ )?;
+ }
+ if let Some(opt) = &reverse_optimizer {
+ prepared_plan = opt.optimize(
+ prepared_plan,
+ file_metadata.as_ref(),
+ &prepared.physical_file_schema,
+ )?;
+ }
- // Potentially reverse the access plan for performance.
- // See `ParquetSource::try_pushdown_sort` for the rationale.
- if prepared.reverse_row_groups {
- prepared_plan = prepared_plan.reverse(file_metadata.as_ref())?;
+ // TopK cumulative pruning: after reorder + reverse, the RGs are in
+ // optimal order. Accumulate rows from the front until >= K, prune rest.
+ //
+ // Only safe when predicate is DynamicFilter-only (no WHERE clause).
+ // With WHERE, raw num_rows overestimates qualifying rows โ cumulative
+ // prune may keep too few RGs, returning fewer than K results.
+ //
+ // Additionally requires either sort pushdown (guaranteed non-overlapping)
+ // or verified non-overlap from statistics.
+ let is_pure_dynamic_filter = prepared.predicate.as_ref().is_some_and(|p| {
+ let any_ref: &dyn std::any::Any = p.as_ref();
+ any_ref
+ .downcast_ref::<DynamicFilterPhysicalExpr>()
+ .is_some()
+ });
+ let has_sort_pushdown = prepared.sort_order_for_reorder.is_some();
+ if is_pure_dynamic_filter
+ && let Some(predicate) = &prepared.predicate
+ && let Some(df) = find_dynamic_filter(predicate)
+ && let Some(fetch) = df.fetch()
+ && (has_sort_pushdown
+ || rgs_are_non_overlapping(
+ &prepared_plan,
+ file_metadata.as_ref(),
+ &prepared.physical_file_schema,
+ &df,
+ ))
+ {
+ let rg_indexes = prepared_plan.row_group_indexes();
+ let mut cumulative = 0usize;
+ let mut keep_count = 0;
+ for &idx in rg_indexes {
+ cumulative += file_metadata.row_group(idx).num_rows() as usize;
Review Comment:
The parquet opener first turns the dynamic filter into a pushed-down row_filter / row_selection, but later the cumulative cutoff still sums raw `row_group.num_rows()` and truncates once that raw count reaches fetch. That is unsafe when early RGs contain many rows, but few rows survive the filter.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4290025495
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4289923585)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark sort_pushdown_inexact.json
--------------------
โโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Q1 โ 7.14 / 7.68 ยฑ0.85 / 9.34 ms โ 2.77 / 3.19 ยฑ0.54 / 4.26 ms โ +2.41x faster โ
โ Q2 โ 6.75 / 6.99 ยฑ0.27 / 7.47 ms โ 2.94 / 3.12 ยฑ0.22 / 3.54 ms โ +2.24x faster โ
โ Q3 โ 21.26 / 22.14 ยฑ0.49 / 22.68 ms โ 6.67 / 6.87 ยฑ0.16 / 7.11 ms โ +3.22x faster โ
โ Q4 โ 19.84 / 21.47 ยฑ0.88 / 22.35 ms โ 6.98 / 7.05 ยฑ0.05 / 7.10 ms โ +3.05x faster โ
โโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 58.28ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 20.24ms โ
โ Average Time (HEAD) โ 14.57ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 5.06ms โ
โ Queries Faster โ 4 โ
โ Queries Slower โ 0 โ
โ Queries with No Change โ 0 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**sort_pushdown_inexact โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 4.4 GiB |
| Avg memory | 4.4 GiB |
| CPU user | 2.5s |
| CPU sys | 0.4s |
| Peak spill | 0 B |
**sort_pushdown_inexact โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 4.4 GiB |
| Avg memory | 4.4 GiB |
| CPU user | 0.8s |
| CPU sys | 0.2s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4286756957
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4286742236)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4286742236-1664-tzrhm 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (f4c1845636bec81ffc3ff851705718d02af72310) to 466c3ea (merge-base) [diff](https://github.com/apache/datafusion/compare/466c3eaecfd9cf2b80b365e869383daf1f30b663..f4c1845636bec81ffc3ff851705718d02af72310) using: clickbench_partitioned
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4286923827
run benchmark sort_pushdown_inexact
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on code in PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#discussion_r3123549761
##########
datafusion/datasource-parquet/src/access_plan.rs:
##########
@@ -377,6 +381,124 @@ impl PreparedAccessPlan {
})
}
+ /// Return a reference to the row group indexes.
+ pub(crate) fn row_group_indexes(&self) -> &[usize] {
+ &self.row_group_indexes
+ }
+
+ /// Keep only the first `count` row groups, dropping the rest.
+ /// Used for TopK cumulative pruning after reorder + reverse.
+ pub(crate) fn truncate_row_groups(mut self, count: usize) -> Self {
+ self.row_group_indexes.truncate(count);
+ // Clear row_selection since it's tied to the original RG set
+ if self.row_selection.is_some() {
+ self.row_selection = None;
+ }
+ self
+ }
+
+ /// Reorder row groups by their min statistics for the given sort order.
+ ///
+ /// This helps TopK queries find optimal values first. For ASC sort,
+ /// row groups with the smallest min values come first. For DESC sort,
+ /// row groups with the largest min values come first.
+ ///
+ /// Gracefully skips reordering when:
+ /// - There is a row_selection (too complex to remap)
+ /// - 0 or 1 row groups (nothing to reorder)
+ /// - Sort expression is not a simple column reference
+ /// - Statistics are unavailable
+ pub(crate) fn reorder_by_statistics(
+ mut self,
+ sort_order: &LexOrdering,
+ file_metadata: &ParquetMetaData,
+ arrow_schema: &Schema,
+ ) -> Result<Self> {
+ // Skip if row_selection present (too complex to remap)
+ if self.row_selection.is_some() {
+ debug!("Skipping RG reorder: row_selection present");
+ return Ok(self);
+ }
+
+ // Nothing to reorder
+ if self.row_group_indexes.len() <= 1 {
+ return Ok(self);
+ }
+
+ // Get the first sort expression
+ // LexOrdering is guaranteed non-empty, so first() returns &PhysicalSortExpr
+ let first_sort_expr = sort_order.first();
Review Comment:
Thanks @xudong963 for review, yes, now only support sort one key, i will support multi-key ORDER BY as follow-up.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on code in PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#discussion_r3123555165
##########
datafusion/physical-plan/src/sorts/sort.rs:
##########
@@ -952,14 +962,16 @@ impl SortExec {
if fetch.is_some() && is_pipeline_friendly {
cache = cache.with_boundedness(Boundedness::Bounded);
}
- let filter = fetch.is_some().then(|| {
- // If we already have a filter, keep it. Otherwise, create a new one.
- self.filter.clone().unwrap_or_else(|| self.create_filter())
- });
let mut new_sort = self.cloned();
new_sort.fetch = fetch;
new_sort.cache = cache.into();
- new_sort.filter = filter;
+ new_sort.filter = fetch.is_some().then(|| {
+ // If we already have a filter, keep it. Otherwise, create a new one.
+ // Must be called after setting fetch so DynamicFilter gets the K value.
+ self.filter
Review Comment:
This is actually safe in the current implementation because cumulative prune is guarded by is_pure_dynamic_filter โ it only fires when the predicate is purely the DynamicFilterPhysicalExpr (no WHERE
clause). And cumulative prune runs before any data is read, so row_filter hasn't filtered any rows yet โ num_rows() is accurate at this point.
If we extend this to WHERE queries in the future (e.g. with dynamic RG pruning at runtime via #21399), we'd need to switch from static row counting to runtime early termination.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4272794386
@adriangb I created a fix PR for the inexact_overlap benchmark data โ the previous jitter formula only added overlap between RGs but kept the overall RG order ascending by min values, so reorder_by_statistics was effectively a no-op. The fix scrambles chunk order so the benchmark actually tests what it claims to test.
I also re-triggered CI to confirm there's no regression even with the old (wrong) dataset.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4269763563
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4269752141)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4269752141-1432-js27h 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (2eb2351a18050864f28e2c27cee45fcf4dbebf2c) to afc0784 (merge-base) [diff](https://github.com/apache/datafusion/compare/afc07843a2f7a95f02420b95233c55b97f365dd0..2eb2351a18050864f28e2c27cee45fcf4dbebf2c) using: sort_pushdown_inexact_overlap
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4269736590
๐ค Criterion benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4269723087)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4269723087-1431-gvc7x 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (2eb2351a18050864f28e2c27cee45fcf4dbebf2c) to afc0784 (merge-base) [diff](https://github.com/apache/datafusion/compare/afc07843a2f7a95f02420b95233c55b97f365dd0..2eb2351a18050864f28e2c27cee45fcf4dbebf2c)
BENCH_NAME=sort_pushdown_exact
BENCH_COMMAND=cargo bench --features=parquet --bench sort_pushdown_exact
BENCH_FILTER=
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangb (via GitHub)" <gi...@apache.org>.
adriangb commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4269511093
run benchmark sort_pushdown_inexact
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4272859598
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4272829893)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark sort_pushdown_inexact.json
--------------------
โโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Q1 โ 6.58 / 7.48 ยฑ0.97 / 9.35 ms โ 6.67 / 7.77 ยฑ1.02 / 9.39 ms โ no change โ
โ Q2 โ 6.66 / 7.06 ยฑ0.40 / 7.81 ms โ 6.79 / 7.17 ยฑ0.54 / 8.20 ms โ no change โ
โ Q3 โ 21.90 / 22.28 ยฑ0.34 / 22.77 ms โ 22.31 / 22.70 ยฑ0.32 / 23.20 ms โ no change โ
โ Q4 โ 21.54 / 22.03 ยฑ0.40 / 22.67 ms โ 21.73 / 22.11 ยฑ0.34 / 22.58 ms โ no change โ
โโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 58.86ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 59.74ms โ
โ Average Time (HEAD) โ 14.71ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 14.94ms โ
โ Queries Faster โ 0 โ
โ Queries Slower โ 0 โ
โ Queries with No Change โ 4 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**sort_pushdown_inexact โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 0.6s |
| Peak memory | 3.0 GiB |
| Avg memory | 3.0 GiB |
| CPU user | 2.5s |
| CPU sys | 0.4s |
| Peak spill | 0 B |
**sort_pushdown_inexact โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 0.5s |
| Peak memory | 3.0 GiB |
| Avg memory | 3.0 GiB |
| CPU user | 2.6s |
| CPU sys | 0.3s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4272790065
run benchmark sort_pushdown_inexact_overlap
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangb (via GitHub)" <gi...@apache.org>.
adriangb commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4269227646
run benchmark sort_pushdown_inexact
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4285561089
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4285550908)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4285550908-1642-v8wrw 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (12ae1e474ac9d77ab7a241dc2f3b1d8d1f107ad5) to c470bb1 (merge-base) [diff](https://github.com/apache/datafusion/compare/c470bb19340f4f3fa00751c2ba6313425bc5edd7..12ae1e474ac9d77ab7a241dc2f3b1d8d1f107ad5) using: tpch
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4287483696
Benchmark for [this request](https://github.com/apache/datafusion/pull/21580#issuecomment-4286742236) hit the 7200s job deadline before finishing.
Benchmarks requested: `tpch`
<details><summary>Kubernetes message</summary>
```
Job was active longer than specified deadline
```
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4282349960
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4282216441)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4282216441-1609-zqqh8 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (e4e11b2486e598d092f89e65e7504df91906aea2) to 466c3ea (merge-base) [diff](https://github.com/apache/datafusion/compare/466c3eaecfd9cf2b80b365e869383daf1f30b663..e4e11b2486e598d092f89e65e7504df91906aea2) using: tpch
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4285639375
๐ค Criterion benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4285628494)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4285628494-1643-r95ml 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (12ae1e474ac9d77ab7a241dc2f3b1d8d1f107ad5) to c470bb1 (merge-base) [diff](https://github.com/apache/datafusion/compare/c470bb19340f4f3fa00751c2ba6313425bc5edd7..12ae1e474ac9d77ab7a241dc2f3b1d8d1f107ad5)
BENCH_NAME=clickbench_sorted
BENCH_COMMAND=cargo bench --features=parquet --bench clickbench_sorted
BENCH_FILTER=
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4286863898
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4286742236)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark clickbench_partitioned.json
--------------------
โโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ QQuery 0 โ 1.16 / 4.47 ยฑ6.44 / 17.34 ms โ 1.17 / 4.43 ยฑ6.39 / 17.21 ms โ no change โ
โ QQuery 1 โ 12.21 / 12.70 ยฑ0.26 / 12.89 ms โ 12.30 / 12.77 ยฑ0.27 / 13.02 ms โ no change โ
โ QQuery 2 โ 36.07 / 36.36 ยฑ0.23 / 36.67 ms โ 36.71 / 36.85 ยฑ0.15 / 37.09 ms โ no change โ
โ QQuery 3 โ 31.22 / 32.06 ยฑ0.93 / 33.83 ms โ 31.42 / 31.81 ยฑ0.32 / 32.33 ms โ no change โ
โ QQuery 4 โ 254.44 / 257.63 ยฑ3.38 / 262.20 ms โ 251.48 / 256.13 ยฑ2.95 / 259.87 ms โ no change โ
โ QQuery 5 โ 295.67 / 296.79 ยฑ1.55 / 299.85 ms โ 295.03 / 301.38 ยฑ5.85 / 309.57 ms โ no change โ
โ QQuery 6 โ 5.54 / 5.94 ยฑ0.27 / 6.30 ms โ 5.57 / 6.41 ยฑ0.69 / 7.34 ms โ 1.08x slower โ
โ QQuery 7 โ 15.95 / 16.23 ยฑ0.34 / 16.87 ms โ 15.83 / 15.98 ยฑ0.17 / 16.30 ms โ no change โ
โ QQuery 8 โ 364.06 / 369.27 ยฑ3.17 / 373.95 ms โ 361.87 / 368.93 ยฑ8.88 / 386.38 ms โ no change โ
โ QQuery 9 โ 520.09 / 531.44 ยฑ6.89 / 541.80 ms โ 518.89 / 525.31 ยฑ5.67 / 533.50 ms โ no change โ
โ QQuery 10 โ 97.56 / 99.76 ยฑ2.64 / 104.93 ms โ 97.20 / 99.10 ยฑ1.76 / 102.42 ms โ no change โ
โ QQuery 11 โ 108.31 / 109.09 ยฑ0.77 / 110.33 ms โ 108.16 / 108.54 ยฑ0.50 / 109.52 ms โ no change โ
โ QQuery 12 โ 325.98 / 331.66 ยฑ6.44 / 343.66 ms โ 326.24 / 333.70 ยฑ6.37 / 342.61 ms โ no change โ
โ QQuery 13 โ 458.94 / 482.02 ยฑ16.38 / 505.36 ms โ 458.97 / 464.13 ยฑ3.43 / 467.92 ms โ no change โ
โ QQuery 14 โ 339.40 / 343.22 ยฑ3.01 / 348.46 ms โ 343.21 / 345.05 ยฑ1.73 / 347.94 ms โ no change โ
โ QQuery 15 โ 325.83 / 333.87 ยฑ5.07 / 339.81 ms โ 321.89 / 341.53 ยฑ17.17 / 369.05 ms โ no change โ
โ QQuery 16 โ 681.74 / 703.63 ยฑ39.75 / 783.08 ms โ 683.45 / 691.55 ยฑ7.02 / 700.22 ms โ no change โ
โ QQuery 17 โ 684.66 / 694.12 ยฑ6.72 / 703.28 ms โ 677.00 / 681.56 ยฑ3.71 / 686.25 ms โ no change โ
โ QQuery 18 โ 1395.96 / 1492.49 ยฑ73.55 / 1601.44 ms โ 1349.11 / 1448.88 ยฑ55.78 / 1506.68 ms โ no change โ
โ QQuery 19 โ 30.50 / 32.77 ยฑ2.52 / 37.47 ms โ 31.35 / 38.73 ยฑ12.57 / 63.74 ms โ 1.18x slower โ
โ QQuery 20 โ 516.41 / 527.68 ยฑ12.17 / 543.45 ms โ 516.53 / 525.91 ยฑ8.10 / 540.53 ms โ no change โ
โ QQuery 21 โ 581.14 / 588.97 ยฑ6.02 / 599.53 ms โ 570.07 / 581.34 ยฑ9.38 / 592.59 ms โ no change โ
โ QQuery 22 โ 954.75 / 975.02 ยฑ14.40 / 997.97 ms โ 964.79 / 969.75 ยฑ3.57 / 975.77 ms โ no change โ
โ QQuery 23 โ 126.33 / 131.49 ยฑ4.26 / 136.40 ms โ 243.82 / 264.93 ยฑ11.05 / 276.25 ms โ 2.01x slower โ
โ QQuery 24 โ 41.06 / 44.43 ยฑ1.83 / 46.23 ms โ 54.44 / 57.48 ยฑ2.68 / 61.31 ms โ 1.29x slower โ
โ QQuery 25 โ 144.89 / 146.04 ยฑ0.84 / 147.51 ms โ 164.53 / 167.00 ยฑ2.74 / 171.34 ms โ 1.14x slower โ
โ QQuery 26 โ 60.99 / 61.84 ยฑ0.87 / 63.52 ms โ 61.84 / 63.05 ยฑ0.83 / 64.25 ms โ no change โ
โ QQuery 27 โ 717.43 / 727.31 ยฑ8.28 / 742.02 ms โ 721.45 / 735.30 ยฑ9.37 / 750.78 ms โ no change โ
โ QQuery 28 โ 3076.09 / 3138.08 ยฑ32.59 / 3171.37 ms โ 3102.49 / 3169.04 ยฑ34.86 / 3203.13 ms โ no change โ
โ QQuery 29 โ 45.93 / 80.37 ยฑ28.84 / 111.82 ms โ 44.42 / 83.31 ยฑ70.41 / 223.97 ms โ no change โ
โ QQuery 30 โ 337.50 / 351.61 ยฑ17.32 / 383.80 ms โ 334.68 / 346.79 ยฑ9.55 / 360.84 ms โ no change โ
โ QQuery 31 โ 339.76 / 369.27 ยฑ19.34 / 389.20 ms โ 325.85 / 348.19 ยฑ20.02 / 383.21 ms โ +1.06x faster โ
โ QQuery 32 โ 1197.79 / 1227.55 ยฑ23.36 / 1253.28 ms โ 1041.82 / 1056.39 ยฑ18.00 / 1091.89 ms โ +1.16x faster โ
โ QQuery 33 โ 1486.72 / 1606.16 ยฑ79.86 / 1703.40 ms โ 1467.48 / 1489.57 ยฑ19.75 / 1524.14 ms โ +1.08x faster โ
โ QQuery 34 โ 1485.62 / 1528.11 ยฑ49.99 / 1622.52 ms โ 1474.47 / 1496.63 ยฑ13.00 / 1512.33 ms โ no change โ
โ QQuery 35 โ 318.04 / 323.65 ยฑ5.05 / 332.75 ms โ 317.69 / 327.50 ยฑ10.52 / 347.56 ms โ no change โ
โ QQuery 36 โ 67.65 / 71.25 ยฑ2.28 / 74.58 ms โ 70.69 / 74.09 ยฑ3.78 / 80.65 ms โ no change โ
โ QQuery 37 โ 39.04 / 44.00 ยฑ3.50 / 49.71 ms โ 41.26 / 43.88 ยฑ2.47 / 47.38 ms โ no change โ
โ QQuery 38 โ 36.15 / 41.05 ยฑ2.87 / 44.26 ms โ 37.13 / 39.17 ยฑ1.29 / 41.05 ms โ no change โ
โ QQuery 39 โ 120.95 / 125.18 ยฑ2.96 / 128.79 ms โ 123.22 / 126.44 ยฑ1.79 / 128.67 ms โ no change โ
โ QQuery 40 โ 20.76 / 22.27 ยฑ1.15 / 23.51 ms โ 19.24 / 21.00 ยฑ2.07 / 25.00 ms โ +1.06x faster โ
โ QQuery 41 โ 18.79 / 20.45 ยฑ1.21 / 21.86 ms โ 19.00 / 19.49 ยฑ0.47 / 20.24 ms โ no change โ
โ QQuery 42 โ 15.13 / 15.74 ยฑ0.37 / 16.19 ms โ 14.55 / 15.86 ยฑ1.17 / 17.92 ms โ no change โ
โโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 18353.03ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 18134.87ms โ
โ Average Time (HEAD) โ 426.81ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 421.74ms โ
โ Queries Faster โ 4 โ
โ Queries Slower โ 5 โ
โ Queries with No Change โ 34 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**clickbench_partitioned โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 95.0s |
| Peak memory | 35.9 GiB |
| Avg memory | 26.7 GiB |
| CPU user | 919.9s |
| CPU sys | 105.2s |
| Peak spill | 0 B |
**clickbench_partitioned โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 95.0s |
| Peak memory | 38.0 GiB |
| Avg memory | 27.9 GiB |
| CPU user | 926.7s |
| CPU sys | 91.3s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4286757111
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4286742236)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4286742236-1665-szt59 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (f4c1845636bec81ffc3ff851705718d02af72310) to 466c3ea (merge-base) [diff](https://github.com/apache/datafusion/compare/466c3eaecfd9cf2b80b365e869383daf1f30b663..f4c1845636bec81ffc3ff851705718d02af72310) using: tpcds
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on code in PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#discussion_r3123905664
##########
datafusion/datasource-parquet/src/access_plan.rs:
##########
@@ -377,6 +381,124 @@ impl PreparedAccessPlan {
})
}
+ /// Return a reference to the row group indexes.
+ pub(crate) fn row_group_indexes(&self) -> &[usize] {
+ &self.row_group_indexes
+ }
+
+ /// Keep only the first `count` row groups, dropping the rest.
+ /// Used for TopK cumulative pruning after reorder + reverse.
+ pub(crate) fn truncate_row_groups(mut self, count: usize) -> Self {
Review Comment:
Good catch @xudong963, currently truncate_row_groups drops row_selection entirely, which loses page-level pruning state for the retained RGs. I'll fix this by skipping truncation when row_selection is present cumulative
prune will only apply when there's no page-level pruning active.
This is safe because page pruning is already reducing I/O within those RGs.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4293949641
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4293875595)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark sort_pushdown_inexact.json
--------------------
โโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Q1 โ 6.80 / 7.59 ยฑ1.12 / 9.76 ms โ 2.90 / 3.43 ยฑ0.84 / 5.11 ms โ +2.21x faster โ
โ Q2 โ 6.67 / 6.85 ยฑ0.16 / 7.05 ms โ 3.06 / 3.14 ยฑ0.07 / 3.24 ms โ +2.19x faster โ
โ Q3 โ 21.04 / 21.89 ยฑ0.66 / 22.79 ms โ 6.85 / 7.07 ยฑ0.17 / 7.31 ms โ +3.10x faster โ
โ Q4 โ 20.21 / 20.93 ยฑ0.71 / 21.98 ms โ 6.92 / 7.06 ยฑ0.14 / 7.26 ms โ +2.96x faster โ
โโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 57.26ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 20.70ms โ
โ Average Time (HEAD) โ 14.32ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 5.17ms โ
โ Queries Faster โ 4 โ
โ Queries Slower โ 0 โ
โ Queries with No Change โ 0 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**sort_pushdown_inexact โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 4.4 GiB |
| Avg memory | 4.4 GiB |
| CPU user | 2.5s |
| CPU sys | 0.3s |
| Peak spill | 0 B |
**sort_pushdown_inexact โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 4.4 GiB |
| Avg memory | 4.4 GiB |
| CPU user | 0.9s |
| CPU sys | 0.2s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4266697066
Another idea (maybe even more impactful/generally applicable than the pure - stats):
Currently many queries go like Scan -> Filter -> Aggregate(Partial) -> Aggregate(Final) -> TopK
Needs to first go through the the full aggregation before it reaches Topk (so it's not useful to push down to scan)
We can update bounds from aggregate, once we detect at least K distinct rows in a Partial aggregate.
In practice it would mean after the first batch / batches arrive we already have e.g. 10 rows, so can already prune / filter with the much tighter bound.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4269528452
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4269511093)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4269511093-1430-8vgws 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (2eb2351a18050864f28e2c27cee45fcf4dbebf2c) to afc0784 (merge-base) [diff](https://github.com/apache/datafusion/compare/afc07843a2f7a95f02420b95233c55b97f365dd0..2eb2351a18050864f28e2c27cee45fcf4dbebf2c) using: sort_pushdown_inexact
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4234648190
> > I wonder if the ordering should be done _before_ the files / row groups are assigned to partitions? So they are more _globally_ sorted instead of just per partition? It seems now they are sorted _within_ each partition, which should help, but perhaps not nearly as much as it would be if all the partitions contain the optimal row groups?
> > This would also help in the case of #21581
>
> Great point @Dandandan โ you're right that global reorder is much more effective than per-partition reorder. With global reorder + round-robin distribution, each partition's first RG is close to the global optimum, so:
>
> 1. All partitions quickly converge to tight local TopK thresholds in parallel
> 2. SPM merging finishes faster because each partition's first few batches contain optimal values โ LIMIT can be satisfied with minimal reads across partitions
>
> The current per-partition reorder is limited because even after sorting, partition 0's "best" RG might be much worse than the global best (which may have landed in partition 2).
>
> Moving to global reorder would require changes at the planning / EnforceDistribution layer to load RG statistics and redistribute RGs across partitions. I'd prefer to keep this PR as an incremental step (per-partition) and track global reorder as a follow-up โ it would benefit both #21317 and #21581.
>
> Does this make sense?
Sure, makes sense.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4234477729
run benchmark clickbench_partitioned clickbench_extended
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4234559084
I wonder if the ordering should be done _before_ the files / row groups are assigned to partitions? So they are more _globally_ sorted instead of just per partition? It seems now they are sorted *within* each partition, which should help, but perhaps not nearly as much as it would be if all the partitions contain the optimal row groups?
This would also help in the case of https://github.com/apache/datafusion/issues/21581
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangb (via GitHub)" <gi...@apache.org>.
adriangb commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4248896930
> > > I wonder if the ordering should be done _before_ the files / row groups are assigned to partitions? So they are more _globally_ sorted instead of just per partition? It seems now they are sorted _within_ each partition, which should help, but perhaps not nearly as much as it would be if all the partitions contain the optimal row groups?
> > > This would also help in the case of #21581
> >
> >
> > Great point @Dandandan โ you're right that global reorder is much more effective than per-partition reorder. With global reorder + round-robin distribution, each partition's first RG is close to the global optimum, so:
> >
> > 1. All partitions quickly converge to tight local TopK thresholds in parallel
> > 2. SPM merging finishes faster because each partition's first few batches contain optimal values โ LIMIT can be satisfied with minimal reads across partitions
> >
> > The current per-partition reorder is limited because even after sorting, partition 0's "best" RG might be much worse than the global best (which may have landed in partition 2).
> > Moving to global reorder would require changes at the planning / EnforceDistribution layer to load RG statistics and redistribute RGs across partitions. I'd prefer to keep this PR as an incremental step (per-partition) and track global reorder as a follow-up โ it would benefit both #21317 and #21581.
> > Does this make sense?
>
> Sure, makes sense.
I also wonder if this is something that will be easier to do once morselized scans are in place. Right now it's pretty problematic / clunky to mess with the distribution of files within partitions, but if we had a single queue of files to process that is shared across all partitions we can sort the files before we put them in there and then sort the row groups when we morselize and we get an optimally sorted stream in each partition that is robust to data skew.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4285560154
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4285550908)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4285550908-1641-2m52c 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (12ae1e474ac9d77ab7a241dc2f3b1d8d1f107ad5) to c470bb1 (merge-base) [diff](https://github.com/apache/datafusion/compare/c470bb19340f4f3fa00751c2ba6313425bc5edd7..12ae1e474ac9d77ab7a241dc2f3b1d8d1f107ad5) using: tpcds
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4285644974
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4285550908)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark tpcds_sf1.json
--------------------
โโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ QQuery 1 โ 7.02 / 7.51 ยฑ0.81 / 9.13 ms โ 6.57 / 7.10 ยฑ0.86 / 8.81 ms โ +1.06x faster โ
โ QQuery 2 โ 114.38 / 115.24 ยฑ0.46 / 115.74 ms โ 113.66 / 123.71 ยฑ18.54 / 160.77 ms โ 1.07x slower โ
โ QQuery 3 โ 109.44 / 110.48 ยฑ0.88 / 111.48 ms โ 109.96 / 112.21 ยฑ3.02 / 118.13 ms โ no change โ
โ QQuery 4 โ 1050.78 / 1056.75 ยฑ4.09 / 1062.06 ms โ 1050.02 / 1055.43 ยฑ5.94 / 1064.92 ms โ no change โ
โ QQuery 5 โ 183.87 / 186.83 ยฑ3.25 / 191.13 ms โ 183.09 / 186.52 ยฑ2.47 / 189.84 ms โ no change โ
โ QQuery 6 โ 231.48 / 241.80 ยฑ10.73 / 261.78 ms โ 229.57 / 242.18 ยฑ16.34 / 273.86 ms โ no change โ
โ QQuery 7 โ 312.99 / 318.85 ยฑ5.48 / 327.70 ms โ 310.95 / 321.83 ยฑ9.24 / 335.01 ms โ no change โ
โ QQuery 8 โ 146.32 / 148.17 ยฑ1.57 / 150.97 ms โ 145.86 / 148.86 ยฑ2.98 / 154.21 ms โ no change โ
โ QQuery 9 โ 235.49 / 239.77 ยฑ2.67 / 242.51 ms โ 228.55 / 234.16 ยฑ5.12 / 243.29 ms โ no change โ
โ QQuery 10 โ 155.18 / 156.19 ยฑ0.97 / 157.89 ms โ 152.34 / 157.29 ยฑ5.61 / 167.29 ms โ no change โ
โ QQuery 11 โ 655.40 / 670.83 ยฑ11.49 / 683.94 ms โ 656.37 / 678.01 ยฑ11.23 / 687.06 ms โ no change โ
โ QQuery 12 โ 34.77 / 35.39 ยฑ0.49 / 36.18 ms โ 35.83 / 36.02 ยฑ0.11 / 36.12 ms โ no change โ
โ QQuery 13 โ 529.08 / 533.71 ยฑ5.47 / 543.97 ms โ 524.61 / 532.37 ยฑ5.69 / 540.05 ms โ no change โ
โ QQuery 14 โ 819.36 / 833.09 ยฑ10.81 / 851.86 ms โ 816.43 / 837.47 ยฑ16.46 / 866.66 ms โ no change โ
โ QQuery 15 โ 17.47 / 17.60 ยฑ0.15 / 17.85 ms โ 18.46 / 18.72 ยฑ0.20 / 19.05 ms โ 1.06x slower โ
โ QQuery 16 โ 6.81 / 7.01 ยฑ0.21 / 7.41 ms โ 7.58 / 7.68 ยฑ0.11 / 7.90 ms โ 1.10x slower โ
โ QQuery 17 โ 180.07 / 183.66 ยฑ4.12 / 191.66 ms โ 184.26 / 191.12 ยฑ7.34 / 205.41 ms โ no change โ
โ QQuery 18 โ 403.96 / 419.98 ยฑ21.78 / 462.84 ms โ 418.09 / 443.38 ยฑ29.03 / 482.25 ms โ 1.06x slower โ
โ QQuery 19 โ 132.71 / 134.22 ยฑ1.09 / 135.72 ms โ 133.94 / 137.40 ยฑ4.24 / 145.68 ms โ no change โ
โ QQuery 20 โ 14.96 / 16.46 ยฑ2.49 / 21.43 ms โ 15.33 / 15.53 ยฑ0.13 / 15.68 ms โ +1.06x faster โ
โ QQuery 21 โ 25.94 / 26.29 ยฑ0.30 / 26.74 ms โ 26.64 / 27.07 ยฑ0.24 / 27.29 ms โ no change โ
โ QQuery 22 โ 495.01 / 507.09 ยฑ10.00 / 520.11 ms โ 515.98 / 529.72 ยฑ7.72 / 539.51 ms โ no change โ
โ QQuery 23 โ 1151.05 / 1197.29 ยฑ26.59 / 1220.69 ms โ 1160.80 / 1171.43 ยฑ10.45 / 1189.46 ms โ no change โ
โ QQuery 24 โ 109.05 / 111.77 ยฑ3.29 / 118.18 ms โ 104.67 / 110.06 ยฑ4.92 / 118.51 ms โ no change โ
โ QQuery 25 โ 276.62 / 280.82 ยฑ3.77 / 287.41 ms โ 267.60 / 273.79 ยฑ6.55 / 284.88 ms โ no change โ
โ QQuery 26 โ 136.40 / 142.82 ยฑ4.29 / 149.09 ms โ 134.01 / 141.77 ยฑ9.36 / 159.23 ms โ no change โ
โ QQuery 27 โ 6.46 / 6.70 ยฑ0.21 / 7.10 ms โ 6.51 / 6.67 ยฑ0.12 / 6.86 ms โ no change โ
โ QQuery 28 โ 207.13 / 217.68 ยฑ10.19 / 236.49 ms โ 204.20 / 209.99 ยฑ5.23 / 217.82 ms โ no change โ
โ QQuery 29 โ 218.90 / 226.57 ยฑ7.85 / 240.58 ms โ 214.69 / 225.05 ยฑ15.26 / 255.17 ms โ no change โ
โ QQuery 30 โ 50.30 / 50.64 ยฑ0.41 / 51.44 ms โ 48.61 / 50.99 ยฑ2.46 / 55.58 ms โ no change โ
โ QQuery 31 โ 159.32 / 162.64 ยฑ2.22 / 165.78 ms โ 159.89 / 161.72 ยฑ1.84 / 165.15 ms โ no change โ
โ QQuery 32 โ 14.36 / 14.64 ยฑ0.25 / 15.02 ms โ 13.95 / 14.37 ยฑ0.34 / 14.85 ms โ no change โ
โ QQuery 33 โ 124.10 / 125.41 ยฑ1.46 / 128.19 ms โ 123.57 / 127.89 ยฑ5.21 / 137.25 ms โ no change โ
โ QQuery 34 โ 6.98 / 7.13 ยฑ0.15 / 7.42 ms โ 6.87 / 6.96 ยฑ0.14 / 7.24 ms โ no change โ
โ QQuery 35 โ 133.32 / 138.67 ยฑ3.17 / 143.16 ms โ 131.27 / 138.84 ยฑ7.46 / 151.49 ms โ no change โ
โ QQuery 36 โ 6.51 / 6.72 ยฑ0.13 / 6.89 ms โ 6.25 / 6.46 ยฑ0.22 / 6.80 ms โ no change โ
โ QQuery 37 โ 5.39 / 5.63 ยฑ0.16 / 5.80 ms โ 5.07 / 5.13 ยฑ0.07 / 5.25 ms โ +1.10x faster โ
โ QQuery 38 โ 98.67 / 100.20 ยฑ1.24 / 101.69 ms โ 93.70 / 94.02 ยฑ0.27 / 94.40 ms โ +1.07x faster โ
โ QQuery 39 โ 125.31 / 133.48 ยฑ8.31 / 144.62 ms โ 127.04 / 134.49 ยฑ7.13 / 146.73 ms โ no change โ
โ QQuery 40 โ 121.98 / 125.86 ยฑ3.40 / 131.21 ms โ 126.98 / 130.26 ยฑ3.14 / 135.66 ms โ no change โ
โ QQuery 41 โ 14.47 / 14.65 ยฑ0.27 / 15.18 ms โ 15.12 / 15.34 ยฑ0.23 / 15.74 ms โ no change โ
โ QQuery 42 โ 106.10 / 109.22 ยฑ3.16 / 113.61 ms โ 105.94 / 107.60 ยฑ2.47 / 112.49 ms โ no change โ
โ QQuery 43 โ 5.53 / 5.65 ยฑ0.18 / 6.02 ms โ 5.94 / 5.99 ยฑ0.04 / 6.05 ms โ 1.06x slower โ
โ QQuery 44 โ 11.15 / 11.25 ยฑ0.07 / 11.34 ms โ 11.66 / 11.92 ยฑ0.15 / 12.08 ms โ 1.06x slower โ
โ QQuery 45 โ 39.05 / 39.83 ยฑ0.62 / 40.77 ms โ 39.98 / 40.41 ยฑ0.23 / 40.63 ms โ no change โ
โ QQuery 46 โ 8.18 / 8.33 ยฑ0.12 / 8.53 ms โ 8.44 / 9.60 ยฑ2.05 / 13.69 ms โ 1.15x slower โ
โ QQuery 47 โ 729.90 / 768.96 ยฑ24.98 / 805.70 ms โ 756.77 / 787.27 ยฑ15.98 / 799.02 ms โ no change โ
โ QQuery 48 โ 433.49 / 447.62 ยฑ16.10 / 476.75 ms โ 435.22 / 452.88 ยฑ14.73 / 475.55 ms โ no change โ
โ QQuery 49 โ 261.60 / 266.24 ยฑ2.82 / 269.09 ms โ 262.84 / 269.08 ยฑ6.08 / 280.29 ms โ no change โ
โ QQuery 50 โ 485.07 / 503.38 ยฑ11.83 / 521.80 ms โ 504.80 / 513.16 ยฑ6.15 / 523.58 ms โ no change โ
โ QQuery 51 โ 201.42 / 206.43 ยฑ3.67 / 212.81 ms โ 200.68 / 205.74 ยฑ4.23 / 212.28 ms โ no change โ
โ QQuery 52 โ 104.81 / 108.02 ยฑ2.82 / 112.92 ms โ 104.17 / 105.85 ยฑ1.40 / 108.09 ms โ no change โ
โ QQuery 53 โ 129.42 / 131.16 ยฑ2.04 / 135.02 ms โ 127.63 / 130.77 ยฑ3.12 / 134.95 ms โ no change โ
โ QQuery 54 โ 119.37 / 121.67 ยฑ3.56 / 128.76 ms โ 113.52 / 114.84 ยฑ0.91 / 115.88 ms โ +1.06x faster โ
โ QQuery 55 โ 104.14 / 106.92 ยฑ2.34 / 110.13 ms โ 102.10 / 105.90 ยฑ3.37 / 110.76 ms โ no change โ
โ QQuery 56 โ 123.64 / 125.90 ยฑ1.41 / 127.65 ms โ 123.49 / 125.34 ยฑ1.51 / 128.00 ms โ no change โ
โ QQuery 57 โ 177.48 / 181.80 ยฑ3.60 / 186.04 ms โ 175.42 / 180.73 ยฑ5.64 / 190.46 ms โ no change โ
โ QQuery 58 โ 211.40 / 213.52 ยฑ1.70 / 215.34 ms โ 210.80 / 216.52 ยฑ5.09 / 225.04 ms โ no change โ
โ QQuery 59 โ 252.11 / 258.75 ยฑ4.92 / 265.17 ms โ 250.94 / 261.68 ยฑ11.45 / 280.49 ms โ no change โ
โ QQuery 60 โ 127.92 / 128.99 ยฑ0.58 / 129.66 ms โ 127.11 / 128.25 ยฑ1.10 / 130.02 ms โ no change โ
โ QQuery 61 โ 13.28 / 13.34 ยฑ0.06 / 13.43 ms โ 12.39 / 12.53 ยฑ0.19 / 12.89 ms โ +1.06x faster โ
โ QQuery 62 โ 882.23 / 892.99 ยฑ9.26 / 905.08 ms โ 882.95 / 892.60 ยฑ10.93 / 912.79 ms โ no change โ
โ QQuery 63 โ 130.25 / 133.68 ยฑ4.05 / 141.46 ms โ 128.11 / 130.18 ยฑ2.90 / 135.94 ms โ no change โ
โ QQuery 64 โ 28180.74 / 29156.02 ยฑ650.69 / 29799.27 ms โ 28907.38 / 30256.34 ยฑ991.10 / 31293.03 ms โ no change โ
โ QQuery 65 โ 350.27 / 361.96 ยฑ8.56 / 372.23 ms โ 326.39 / 346.75 ยฑ13.23 / 364.58 ms โ no change โ
โ QQuery 66 โ 184.43 / 188.83 ยฑ5.14 / 198.85 ms โ 176.97 / 182.24 ยฑ4.40 / 187.70 ms โ no change โ
โ QQuery 67 โ 471.53 / 512.99 ยฑ21.18 / 530.22 ms โ 480.44 / 495.44 ยฑ14.82 / 521.63 ms โ no change โ
โ QQuery 68 โ 8.48 / 8.74 ยฑ0.17 / 8.93 ms โ 8.71 / 8.97 ยฑ0.15 / 9.13 ms โ no change โ
โ QQuery 69 โ 151.42 / 161.05 ยฑ9.88 / 178.61 ms โ 146.11 / 154.10 ยฑ4.55 / 159.62 ms โ no change โ
โ QQuery 70 โ 393.70 / 408.87 ยฑ13.45 / 433.87 ms โ 408.30 / 411.92 ยฑ2.21 / 415.06 ms โ no change โ
โ QQuery 71 โ 122.93 / 127.78 ยฑ3.85 / 133.36 ms โ 120.12 / 127.22 ยฑ4.18 / 133.17 ms โ no change โ
โ QQuery 72 โ 1172.99 / 1213.02 ยฑ32.06 / 1258.44 ms โ 1169.90 / 1181.98 ยฑ12.84 / 1204.66 ms โ no change โ
โ QQuery 73 โ 7.36 / 7.44 ยฑ0.06 / 7.51 ms โ 6.68 / 6.89 ยฑ0.18 / 7.21 ms โ +1.08x faster โ
โ QQuery 74 โ 471.09 / 482.49 ยฑ7.80 / 491.21 ms โ 473.35 / 479.33 ยฑ4.28 / 484.80 ms โ no change โ
โ QQuery 75 โ 258.76 / 266.76 ยฑ7.40 / 275.81 ms โ 260.70 / 267.77 ยฑ6.75 / 280.32 ms โ no change โ
โ QQuery 76 โ 269.09 / 274.45 ยฑ6.11 / 284.59 ms โ 257.91 / 268.63 ยฑ7.66 / 280.06 ms โ no change โ
โ QQuery 77 โ 215.31 / 218.79 ยฑ2.66 / 222.61 ms โ 212.06 / 217.06 ยฑ3.42 / 222.50 ms โ no change โ
โ QQuery 78 โ 292.33 / 295.13 ยฑ3.34 / 301.29 ms โ 286.59 / 292.31 ยฑ4.90 / 299.44 ms โ no change โ
โ QQuery 79 โ 243.59 / 248.42 ยฑ4.33 / 255.03 ms โ 237.80 / 245.09 ยฑ5.83 / 252.42 ms โ no change โ
โ QQuery 80 โ 268.13 / 270.46 ยฑ1.62 / 272.53 ms โ 261.37 / 270.91 ยฑ5.27 / 275.64 ms โ no change โ
โ QQuery 81 โ 29.33 / 29.77 ยฑ0.39 / 30.39 ms โ 29.30 / 29.64 ยฑ0.31 / 30.11 ms โ no change โ
โ QQuery 82 โ 43.60 / 47.03 ยฑ2.91 / 51.55 ms โ 44.05 / 46.78 ยฑ3.88 / 54.39 ms โ no change โ
โ QQuery 83 โ 43.63 / 44.49 ยฑ0.65 / 45.50 ms โ 43.40 / 43.62 ยฑ0.19 / 43.97 ms โ no change โ
โ QQuery 84 โ 61.41 / 62.89 ยฑ1.12 / 64.03 ms โ 62.41 / 63.03 ยฑ0.54 / 63.73 ms โ no change โ
โ QQuery 85 โ 253.99 / 258.86 ยฑ3.32 / 262.76 ms โ 235.76 / 245.29 ยฑ5.17 / 250.07 ms โ +1.06x faster โ
โ QQuery 86 โ 46.14 / 49.10 ยฑ2.12 / 51.53 ms โ 46.90 / 48.01 ยฑ1.05 / 49.78 ms โ no change โ
โ QQuery 87 โ 97.82 / 105.75 ยฑ4.66 / 110.58 ms โ 101.49 / 104.66 ยฑ2.68 / 108.95 ms โ no change โ
โ QQuery 88 โ 120.02 / 122.90 ยฑ1.83 / 125.56 ms โ 119.58 / 124.62 ยฑ3.52 / 130.27 ms โ no change โ
โ QQuery 89 โ 146.77 / 155.28 ยฑ8.30 / 171.17 ms โ 147.09 / 152.84 ยฑ3.69 / 157.34 ms โ no change โ
โ QQuery 90 โ 22.85 / 24.97 ยฑ1.95 / 28.54 ms โ 24.30 / 26.17 ยฑ1.64 / 28.27 ms โ no change โ
โ QQuery 91 โ 88.65 / 93.04 ยฑ4.47 / 101.07 ms โ 90.92 / 94.38 ยฑ3.25 / 99.52 ms โ no change โ
โ QQuery 92 โ 50.13 / 51.64 ยฑ1.55 / 53.80 ms โ 48.88 / 50.32 ยฑ1.38 / 52.52 ms โ no change โ
โ QQuery 93 โ 181.13 / 185.82 ยฑ4.03 / 191.48 ms โ 183.23 / 188.46 ยฑ3.99 / 195.57 ms โ no change โ
โ QQuery 94 โ 63.80 / 65.53 ยฑ1.16 / 67.07 ms โ 64.48 / 66.47 ยฑ1.61 / 69.41 ms โ no change โ
โ QQuery 95 โ 137.44 / 141.35 ยฑ3.26 / 147.01 ms โ 139.43 / 143.72 ยฑ2.69 / 146.97 ms โ no change โ
โ QQuery 96 โ 73.40 / 77.44 ยฑ2.91 / 82.34 ms โ 76.30 / 79.17 ยฑ2.74 / 84.02 ms โ no change โ
โ QQuery 97 โ 140.30 / 144.77 ยฑ3.22 / 150.18 ms โ 140.91 / 145.88 ยฑ3.58 / 149.66 ms โ no change โ
โ QQuery 98 โ 111.69 / 117.14 ยฑ3.85 / 123.76 ms โ 111.45 / 118.31 ยฑ4.12 / 123.32 ms โ no change โ
โ QQuery 99 โ 10911.83 / 11232.68 ยฑ349.22 / 11828.07 ms โ 10894.16 / 10948.48 ยฑ49.92 / 11036.47 ms โ no change โ
โโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 61033.53ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 61810.67ms โ
โ Average Time (HEAD) โ 616.50ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 624.35ms โ
โ Queries Faster โ 8 โ
โ Queries Slower โ 7 โ
โ Queries with No Change โ 84 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpcds โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 310.1s |
| Peak memory | 20.4 GiB |
| Avg memory | 9.7 GiB |
| CPU user | 612.3s |
| CPU sys | 16.5s |
| Peak spill | 0 B |
**tpcds โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 310.1s |
| Peak memory | 18.2 GiB |
| Avg memory | 9.8 GiB |
| CPU user | 619.3s |
| CPU sys | 14.6s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4269737151
Benchmark for [this request](https://github.com/apache/datafusion/pull/21580#issuecomment-4269723087) failed.
Last 20 lines of output:
<details><summary>Click to expand</summary>
```
struct_query_sql
substr
substr_index
substring
sum
to_char
to_hex
to_local_time
to_time
to_timestamp
topk_aggregate
topk_repartition
translate
trim
trunc
unhex
upper
uuid
window_query_sql
with_hashes
```
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4266553697
Based on this PR and morsel improvements, I am also thinking we could initialize the TopK statistics from column stats (at least for single columns) and make the initial threshold much tighter based on min/max statistics (at file / rowgroup/page level):
* We have a file/rowgroup with more than K (from TopK) amount of rows
* We have a single order by column (directly after scan)
* We can initialize/update the TopK using max (or min) statistics
* Also, if the new bound is smaller / bigger than the current TopK, we could update it to the tighter bound
This I think might help making initial threshold much tighter instead of having to read all the first row groups using not-initialized TopK.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on code in PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#discussion_r3093080432
##########
datafusion/datasource-parquet/src/opener.rs:
##########
@@ -1223,9 +1230,20 @@ impl RowGroupsPrunedParquetOpen {
// Prepare the access plan (extract row groups and row selection)
let mut prepared_plan = access_plan.prepare(rg_metadata)?;
- // Potentially reverse the access plan for performance.
- // See `ParquetSource::try_pushdown_sort` for the rationale.
- if prepared.reverse_row_groups {
+ // Reorder row groups by statistics if sort order is known.
Review Comment:
Good suggestion! Addressed in latest PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on code in PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#discussion_r3093262764
##########
benchmarks/queries/sort_pushdown_inexact/q1.sql:
##########
@@ -0,0 +1,8 @@
+-- Inexact path: TopK + DESC LIMIT on ASC-declared file.
Review Comment:
https://github.com/apache/datafusion/pull/21674
The separate PR for benchmark is here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on code in PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#discussion_r3128524960
##########
datafusion/datasource-parquet/src/access_plan.rs:
##########
@@ -377,6 +381,124 @@ impl PreparedAccessPlan {
})
}
+ /// Return a reference to the row group indexes.
+ pub(crate) fn row_group_indexes(&self) -> &[usize] {
+ &self.row_group_indexes
+ }
+
+ /// Keep only the first `count` row groups, dropping the rest.
+ /// Used for TopK cumulative pruning after reorder + reverse.
+ pub(crate) fn truncate_row_groups(mut self, count: usize) -> Self {
+ self.row_group_indexes.truncate(count);
+ // Clear row_selection since it's tied to the original RG set
+ if self.row_selection.is_some() {
+ self.row_selection = None;
+ }
+ self
+ }
+
+ /// Reorder row groups by their min statistics for the given sort order.
+ ///
+ /// This helps TopK queries find optimal values first. For ASC sort,
+ /// row groups with the smallest min values come first. For DESC sort,
+ /// row groups with the largest min values come first.
+ ///
+ /// Gracefully skips reordering when:
+ /// - There is a row_selection (too complex to remap)
+ /// - 0 or 1 row groups (nothing to reorder)
+ /// - Sort expression is not a simple column reference
+ /// - Statistics are unavailable
+ pub(crate) fn reorder_by_statistics(
+ mut self,
+ sort_order: &LexOrdering,
+ file_metadata: &ParquetMetaData,
+ arrow_schema: &Schema,
+ ) -> Result<Self> {
+ // Skip if row_selection present (too complex to remap)
+ if self.row_selection.is_some() {
+ debug!("Skipping RG reorder: row_selection present");
+ return Ok(self);
+ }
+
+ // Nothing to reorder
+ if self.row_group_indexes.len() <= 1 {
+ return Ok(self);
+ }
+
+ // Get the first sort expression
+ // LexOrdering is guaranteed non-empty, so first() returns &PhysicalSortExpr
+ let first_sort_expr = sort_order.first();
Review Comment:
Addressed it in latest PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4234373278
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4234363943)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4234363943-1136-k2bb2 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (a013bf6b9c27269f56d55cdfbb5ddd24ef1992b6) to 29c5dd5 (merge-base) [diff](https://github.com/apache/datafusion/compare/29c5dd5b8f7c60663ada64f34e15ecf22a7dc9a1..a013bf6b9c27269f56d55cdfbb5ddd24ef1992b6) using: tpch
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4234422910
run benchmarks
```
env:
PUSHDOWN_FILTERS: true
REORDER_FILTERS: true
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on code in PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#discussion_r3071362975
##########
datafusion/datasource-parquet/src/access_plan.rs:
##########
@@ -377,6 +382,106 @@ impl PreparedAccessPlan {
})
}
+ /// Reorder row groups by their min statistics for the given sort order.
+ ///
+ /// This helps TopK queries find optimal values first. For ASC sort,
+ /// row groups with the smallest min values come first. For DESC sort,
+ /// row groups with the largest min values come first.
+ ///
+ /// Gracefully skips reordering when:
+ /// - There is a row_selection (too complex to remap)
+ /// - 0 or 1 row groups (nothing to reorder)
+ /// - Sort expression is not a simple column reference
+ /// - Statistics are unavailable
+ pub(crate) fn reorder_by_statistics(
+ mut self,
+ sort_order: &LexOrdering,
+ file_metadata: &ParquetMetaData,
+ arrow_schema: &Schema,
+ ) -> Result<Self> {
+ // Skip if row_selection present (too complex to remap)
+ if self.row_selection.is_some() {
+ debug!("Skipping RG reorder: row_selection present");
+ return Ok(self);
+ }
+
+ // Nothing to reorder
+ if self.row_group_indexes.len() <= 1 {
+ return Ok(self);
+ }
+
+ // Get the first sort expression
+ // LexOrdering is guaranteed non-empty, so first() returns &PhysicalSortExpr
+ let first_sort_expr = sort_order.first();
+
+ // Extract column name from sort expression
+ let column: &Column = match first_sort_expr.expr.as_any().downcast_ref::<Column>()
+ {
+ Some(col) => col,
+ None => {
+ debug!("Skipping RG reorder: sort expr is not a simple column");
+ return Ok(self);
+ }
+ };
+
+ let descending = first_sort_expr.options.descending;
+
+ // Build statistics converter for this column
+ let converter = match StatisticsConverter::try_new(
+ column.name(),
+ arrow_schema,
+ file_metadata.file_metadata().schema_descr(),
+ ) {
+ Ok(c) => c,
+ Err(e) => {
+ debug!("Skipping RG reorder: cannot create stats converter: {e}");
+ return Ok(self);
+ }
+ };
+
+ // Get min values for the selected row groups
+ let rg_metadata: Vec<&RowGroupMetaData> = self
+ .row_group_indexes
+ .iter()
+ .map(|&idx| file_metadata.row_group(idx))
+ .collect();
+
+ let min_values = match converter.row_group_mins(rg_metadata.iter().copied()) {
+ Ok(vals) => vals,
+ Err(e) => {
+ debug!("Skipping RG reorder: cannot get min values: {e}");
+ return Ok(self);
+ }
+ };
+
+ // Sort indices by min values
+ let sort_options = arrow::compute::SortOptions {
+ descending,
+ nulls_first: first_sort_expr.options.nulls_first,
+ };
+ let sorted_indices = match arrow::compute::sort_to_indices(
+ &min_values,
Review Comment:
This is a good point
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on code in PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#discussion_r3071295010
##########
datafusion/datasource-parquet/src/access_plan.rs:
##########
@@ -377,6 +382,106 @@ impl PreparedAccessPlan {
})
}
+ /// Reorder row groups by their min statistics for the given sort order.
+ ///
+ /// This helps TopK queries find optimal values first. For ASC sort,
+ /// row groups with the smallest min values come first. For DESC sort,
+ /// row groups with the largest min values come first.
+ ///
+ /// Gracefully skips reordering when:
+ /// - There is a row_selection (too complex to remap)
+ /// - 0 or 1 row groups (nothing to reorder)
+ /// - Sort expression is not a simple column reference
+ /// - Statistics are unavailable
+ pub(crate) fn reorder_by_statistics(
Review Comment:
I think @adriangb had the great idea to also order by grouping keys which can
* reduce cardinality within partitions (partition-local state can be smaller)
* allow for better cache locality (row groups with more equal keys are grouped together)
Doesn't have to be in this PR but perhaps we can think about how it fits in.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on code in PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#discussion_r3071329377
##########
datafusion/datasource-parquet/src/access_plan.rs:
##########
@@ -377,6 +382,106 @@ impl PreparedAccessPlan {
})
}
+ /// Reorder row groups by their min statistics for the given sort order.
+ ///
+ /// This helps TopK queries find optimal values first. For ASC sort,
+ /// row groups with the smallest min values come first. For DESC sort,
+ /// row groups with the largest min values come first.
+ ///
+ /// Gracefully skips reordering when:
+ /// - There is a row_selection (too complex to remap)
+ /// - 0 or 1 row groups (nothing to reorder)
+ /// - Sort expression is not a simple column reference
+ /// - Statistics are unavailable
+ pub(crate) fn reorder_by_statistics(
Review Comment:
Thanks @Dandandan! Created #21581 to track this. The existing infrastructure from this PR should be directly reusable โ mainly needs the aggregate planner to populate `sort_order_for_reorder` from grouping keys.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4234614265
> I wonder if the ordering should be done _before_ the files / row groups are assigned to partitions? So they are more _globally_ sorted instead of just per partition? It seems now they are sorted _within_ each partition, which should help, but perhaps not nearly as much as it would be if all the partitions contain the optimal row groups?
>
> This would also help in the case of #21581
Great point โ you're right that global reorder is much more effective than per-partition reorder. With global reorder + round-robin distribution, each partition's first RG is close to the global optimum, so:
1. All partitions quickly converge to tight local TopK thresholds in parallel
2. SPM merging finishes faster because each partition's first few batches contain optimal values โ LIMIT can be satisfied with minimal reads across partitions
The current per-partition reorder is limited because even after sorting, partition 0's "best" RG might be much worse than the global best (which may have landed in partition 2).
Moving to global reorder would require changes at the planning / EnforceDistribution layer to load RG statistics and redistribute RGs across partitions. I'd prefer to keep this PR as an incremental step (per-partition) and track global reorder as a follow-up โ it would benefit both #21317 and #21581.
Does this make sense?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4234486910
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4234477729)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4234477729-1141-9x5wm 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (5018882309b669e31771223f0b266179b98d9764) to 29c5dd5 (merge-base) [diff](https://github.com/apache/datafusion/compare/29c5dd5b8f7c60663ada64f34e15ecf22a7dc9a1..5018882309b669e31771223f0b266179b98d9764) using: clickbench_extended
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4241775758
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4241761214)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4241761214-1199-kczcm 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (802840a3bdc4156cfa2762957a1926c4d86a5182) to e0fd16e (merge-base) [diff](https://github.com/apache/datafusion/compare/e0fd16ee3fc88e58f8c3e2f63a43ccf3d4ab2f9e..802840a3bdc4156cfa2762957a1926c4d86a5182) using: tpch
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4241853652
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4241761214)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark clickbench_partitioned.json
--------------------
โโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ QQuery 0 โ 1.19 / 4.42 ยฑ6.33 / 17.07 ms โ 1.20 / 4.59 ยฑ6.59 / 17.78 ms โ no change โ
โ QQuery 1 โ 14.08 / 14.73 ยฑ0.34 / 15.00 ms โ 14.26 / 14.77 ยฑ0.28 / 15.02 ms โ no change โ
โ QQuery 2 โ 43.71 / 44.26 ยฑ0.33 / 44.61 ms โ 44.80 / 44.91 ยฑ0.14 / 45.18 ms โ no change โ
โ QQuery 3 โ 41.37 / 44.32 ยฑ1.72 / 46.50 ms โ 43.96 / 47.32 ยฑ1.94 / 49.44 ms โ 1.07x slower โ
โ QQuery 4 โ 289.42 / 296.99 ยฑ4.41 / 302.91 ms โ 295.28 / 311.27 ยฑ8.94 / 322.47 ms โ no change โ
โ QQuery 5 โ 342.60 / 348.93 ยฑ3.96 / 354.69 ms โ 344.63 / 349.26 ยฑ3.05 / 353.08 ms โ no change โ
โ QQuery 6 โ 5.13 / 5.60 ยฑ0.35 / 6.09 ms โ 5.50 / 6.37 ยฑ0.67 / 7.26 ms โ 1.14x slower โ
โ QQuery 7 โ 17.86 / 18.64 ยฑ0.55 / 19.26 ms โ 17.06 / 17.95 ยฑ0.64 / 19.04 ms โ no change โ
โ QQuery 8 โ 416.26 / 427.98 ยฑ6.61 / 436.29 ms โ 430.72 / 442.70 ยฑ14.68 / 471.52 ms โ no change โ
โ QQuery 9 โ 653.76 / 664.78 ยฑ6.98 / 672.71 ms โ 668.24 / 683.06 ยฑ9.87 / 695.94 ms โ no change โ
โ QQuery 10 โ 91.70 / 93.79 ยฑ2.75 / 99.15 ms โ 92.88 / 97.01 ยฑ3.15 / 102.45 ms โ no change โ
โ QQuery 11 โ 104.01 / 104.97 ยฑ0.81 / 106.03 ms โ 107.16 / 109.17 ยฑ1.37 / 110.92 ms โ no change โ
โ QQuery 12 โ 342.41 / 347.86 ยฑ4.82 / 355.76 ms โ 340.24 / 353.68 ยฑ8.84 / 365.87 ms โ no change โ
โ QQuery 13 โ 460.76 / 477.35 ยฑ13.73 / 495.36 ms โ 469.07 / 484.78 ยฑ10.18 / 500.22 ms โ no change โ
โ QQuery 14 โ 351.26 / 355.93 ยฑ4.83 / 363.65 ms โ 348.98 / 354.18 ยฑ5.83 / 365.09 ms โ no change โ
โ QQuery 15 โ 369.15 / 381.89 ยฑ12.87 / 406.48 ms โ 353.27 / 362.47 ยฑ7.42 / 370.51 ms โ +1.05x faster โ
โ QQuery 16 โ 738.71 / 742.39 ยฑ2.16 / 744.53 ms โ 730.92 / 742.05 ยฑ15.56 / 772.61 ms โ no change โ
โ QQuery 17 โ 725.07 / 729.27 ยฑ3.75 / 735.79 ms โ 732.07 / 738.37 ยฑ3.55 / 742.88 ms โ no change โ
โ QQuery 18 โ 1458.53 / 1504.30 ยฑ32.65 / 1558.60 ms โ 1465.60 / 1500.44 ยฑ27.94 / 1536.87 ms โ no change โ
โ QQuery 19 โ 35.91 / 37.67 ยฑ2.05 / 41.60 ms โ 36.43 / 59.85 ยฑ43.35 / 146.51 ms โ 1.59x slower โ
โ QQuery 20 โ 728.25 / 747.25 ยฑ16.13 / 770.70 ms โ 723.13 / 733.86 ยฑ13.45 / 759.69 ms โ no change โ
โ QQuery 21 โ 774.45 / 778.87 ยฑ2.95 / 782.70 ms โ 766.35 / 770.47 ยฑ2.38 / 773.70 ms โ no change โ
โ QQuery 22 โ 1148.44 / 1155.68 ยฑ8.43 / 1170.98 ms โ 1138.57 / 1144.34 ยฑ3.51 / 1149.05 ms โ no change โ
โ QQuery 23 โ 3139.13 / 3153.34 ยฑ8.56 / 3160.96 ms โ 3147.02 / 3157.27 ยฑ5.32 / 3162.41 ms โ no change โ
โ QQuery 24 โ 99.26 / 102.19 ยฑ3.27 / 108.26 ms โ 102.36 / 106.49 ยฑ3.23 / 109.86 ms โ no change โ
โ QQuery 25 โ 139.62 / 141.97 ยฑ2.01 / 144.59 ms โ 139.41 / 141.36 ยฑ1.24 / 143.18 ms โ no change โ
โ QQuery 26 โ 99.65 / 103.93 ยฑ2.61 / 106.38 ms โ 100.32 / 104.39 ยฑ2.29 / 107.04 ms โ no change โ
โ QQuery 27 โ 854.05 / 862.01 ยฑ9.78 / 879.43 ms โ 849.11 / 855.20 ยฑ6.62 / 867.73 ms โ no change โ
โ QQuery 28 โ 3283.18 / 3314.51 ยฑ17.15 / 3327.81 ms โ 3296.70 / 3310.07 ยฑ8.06 / 3321.74 ms โ no change โ
โ QQuery 29 โ 52.26 / 55.87 ยฑ2.94 / 59.88 ms โ 50.61 / 57.51 ยฑ7.27 / 70.63 ms โ no change โ
โ QQuery 30 โ 362.65 / 370.59 ยฑ9.68 / 389.24 ms โ 359.55 / 364.90 ยฑ6.30 / 376.55 ms โ no change โ
โ QQuery 31 โ 363.19 / 381.61 ยฑ12.44 / 399.00 ms โ 370.46 / 379.82 ยฑ5.06 / 384.47 ms โ no change โ
โ QQuery 32 โ 1280.91 / 1316.30 ยฑ21.49 / 1345.06 ms โ 1235.76 / 1302.78 ยฑ50.60 / 1370.02 ms โ no change โ
โ QQuery 33 โ 1527.76 / 1573.30 ยฑ40.63 / 1629.99 ms โ 1452.21 / 1494.77 ยฑ44.84 / 1579.87 ms โ no change โ
โ QQuery 34 โ 1552.41 / 1610.76 ยฑ42.41 / 1669.21 ms โ 1444.93 / 1472.93 ยฑ18.58 / 1494.27 ms โ +1.09x faster โ
โ QQuery 35 โ 401.41 / 439.00 ยฑ42.20 / 519.34 ms โ 390.75 / 399.30 ยฑ6.59 / 407.37 ms โ +1.10x faster โ
โ QQuery 36 โ 113.22 / 122.26 ยฑ5.73 / 129.88 ms โ 112.10 / 120.00 ยฑ4.48 / 125.39 ms โ no change โ
โ QQuery 37 โ 48.89 / 60.87 ยฑ18.80 / 98.34 ms โ 46.91 / 49.32 ยฑ1.49 / 51.50 ms โ +1.23x faster โ
โ QQuery 38 โ 84.46 / 87.13 ยฑ1.47 / 88.54 ms โ 77.88 / 78.80 ยฑ0.98 / 80.52 ms โ +1.11x faster โ
โ QQuery 39 โ 226.13 / 242.73 ยฑ21.64 / 285.09 ms โ 206.97 / 217.45 ยฑ5.37 / 222.02 ms โ +1.12x faster โ
โ QQuery 40 โ 23.19 / 27.02 ยฑ2.89 / 31.50 ms โ 22.25 / 26.17 ยฑ2.02 / 27.73 ms โ no change โ
โ QQuery 41 โ 20.51 / 21.38 ยฑ0.66 / 22.49 ms โ 21.03 / 22.08 ยฑ0.95 / 23.51 ms โ no change โ
โ QQuery 42 โ 19.78 / 20.25 ยฑ0.36 / 20.79 ms โ 19.65 / 20.16 ยฑ0.50 / 20.95 ms โ no change โ
โโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 23334.86ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 23053.61ms โ
โ Average Time (HEAD) โ 542.67ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 536.13ms โ
โ Queries Faster โ 6 โ
โ Queries Slower โ 3 โ
โ Queries with No Change โ 34 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**clickbench_partitioned โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 117.2s |
| Peak memory | 37.3 GiB |
| Avg memory | 28.2 GiB |
| CPU user | 1086.1s |
| CPU sys | 108.9s |
| Peak spill | 0 B |
**clickbench_partitioned โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 116.4s |
| Peak memory | 39.9 GiB |
| Avg memory | 29.6 GiB |
| CPU user | 1080.6s |
| CPU sys | 99.0s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4241892367
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4241879290)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4241879290-1200-mhfkl 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (802840a3bdc4156cfa2762957a1926c4d86a5182) to e0fd16e (merge-base) [diff](https://github.com/apache/datafusion/compare/e0fd16ee3fc88e58f8c3e2f63a43ccf3d4ab2f9e..802840a3bdc4156cfa2762957a1926c4d86a5182) using: sort_pushdown
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4291473047
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4291304401)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark clickbench_1.json
--------------------
โโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ QQuery 0 โ 0.72 / 1.19 ยฑ0.83 / 2.85 ms โ 0.71 / 1.05 ยฑ0.64 / 2.32 ms โ +1.13x faster โ
โ QQuery 1 โ 14.70 / 14.80 ยฑ0.07 / 14.89 ms โ 14.36 / 14.57 ยฑ0.12 / 14.71 ms โ no change โ
โ QQuery 2 โ 43.06 / 43.26 ยฑ0.18 / 43.59 ms โ 42.55 / 42.80 ยฑ0.22 / 43.06 ms โ no change โ
โ QQuery 3 โ 39.02 / 39.97 ยฑ1.09 / 42.08 ms โ 37.69 / 38.07 ยฑ0.33 / 38.67 ms โ no change โ
โ QQuery 4 โ 269.60 / 285.23 ยฑ10.89 / 303.20 ms โ 268.19 / 276.07 ยฑ5.62 / 284.28 ms โ no change โ
โ QQuery 5 โ 452.84 / 464.41 ยฑ12.40 / 480.58 ms โ 437.42 / 480.24 ยฑ34.93 / 526.09 ms โ no change โ
โ QQuery 6 โ 6.39 / 6.75 ยฑ0.30 / 7.27 ms โ 6.91 / 7.21 ยฑ0.21 / 7.50 ms โ 1.07x slower โ
โ QQuery 7 โ 16.86 / 17.16 ยฑ0.16 / 17.30 ms โ 17.58 / 17.88 ยฑ0.49 / 18.86 ms โ no change โ
โ QQuery 8 โ 379.69 / 391.13 ยฑ7.75 / 402.33 ms โ 434.77 / 448.19 ยฑ10.33 / 464.14 ms โ 1.15x slower โ
โ QQuery 9 โ 620.60 / 667.83 ยฑ37.22 / 717.37 ms โ 636.17 / 639.43 ยฑ2.70 / 644.30 ms โ no change โ
โ QQuery 10 โ 98.79 / 100.66 ยฑ3.08 / 106.80 ms โ 94.96 / 97.27 ยฑ4.26 / 105.78 ms โ no change โ
โ QQuery 11 โ 111.62 / 112.83 ยฑ0.83 / 113.72 ms โ 106.31 / 107.75 ยฑ1.25 / 109.26 ms โ no change โ
โ QQuery 12 โ 457.64 / 499.44 ยฑ30.51 / 537.14 ms โ 457.67 / 463.95 ยฑ7.64 / 478.90 ms โ +1.08x faster โ
โ QQuery 13 โ 506.16 / 518.33 ยฑ7.09 / 526.32 ms โ 499.82 / 518.72 ยฑ10.83 / 532.53 ms โ no change โ
โ QQuery 14 โ 451.26 / 462.14 ยฑ8.04 / 470.70 ms โ 456.63 / 477.29 ยฑ29.22 / 534.19 ms โ no change โ
โ QQuery 15 โ 336.44 / 340.16 ยฑ3.31 / 344.80 ms โ 397.02 / 401.58 ยฑ5.05 / 411.32 ms โ 1.18x slower โ
โ QQuery 16 โ 712.39 / 763.78 ยฑ45.96 / 844.28 ms โ 719.00 / 756.44 ยฑ29.24 / 785.67 ms โ no change โ
โ QQuery 17 โ 733.18 / 766.64 ยฑ18.22 / 787.43 ms โ 693.23 / 699.22 ยฑ5.01 / 707.65 ms โ +1.10x faster โ
โ QQuery 18 โ 1414.07 / 1447.65 ยฑ22.54 / 1483.99 ms โ 1425.75 / 1442.05 ยฑ15.35 / 1468.64 ms โ no change โ
โ QQuery 19 โ 42.02 / 58.90 ยฑ24.48 / 107.30 ms โ 38.69 / 63.31 ยฑ38.30 / 139.62 ms โ 1.07x slower โ
โ QQuery 20 โ 620.94 / 638.97 ยฑ28.41 / 695.28 ms โ 626.44 / 641.11 ยฑ25.82 / 692.71 ms โ no change โ
โ QQuery 21 โ 704.25 / 708.46 ยฑ3.42 / 713.89 ms โ 721.73 / 726.45 ยฑ2.56 / 729.15 ms โ no change โ
โ QQuery 22 โ 1361.67 / 1394.23 ยฑ20.70 / 1415.92 ms โ 1363.18 / 1381.90 ยฑ17.22 / 1412.23 ms โ no change โ
โ QQuery 23 โ 3812.19 / 3871.88 ยฑ75.73 / 4018.67 ms โ 3747.74 / 3898.17 ยฑ106.95 / 4053.49 ms โ no change โ
โ QQuery 24 โ 226.55 / 230.17 ยฑ5.30 / 240.67 ms โ 220.38 / 226.97 ยฑ6.00 / 238.05 ms โ no change โ
โ QQuery 25 โ 190.34 / 192.41 ยฑ1.95 / 195.71 ms โ 185.99 / 188.88 ยฑ2.40 / 191.84 ms โ no change โ
โ QQuery 26 โ 230.69 / 234.19 ยฑ3.49 / 240.21 ms โ 215.96 / 219.52 ยฑ2.66 / 223.24 ms โ +1.07x faster โ
โ QQuery 27 โ 745.57 / 757.23 ยฑ12.75 / 777.76 ms โ 743.91 / 747.93 ยฑ3.07 / 752.21 ms โ no change โ
โ QQuery 28 โ 3397.19 / 3475.39 ยฑ75.18 / 3566.61 ms โ 3439.06 / 3512.39 ยฑ62.16 / 3618.52 ms โ no change โ
โ QQuery 29 โ 47.87 / 53.31 ยฑ5.31 / 62.79 ms โ 50.04 / 87.40 ยฑ40.42 / 152.62 ms โ 1.64x slower โ
โ QQuery 30 โ 437.04 / 452.96 ยฑ9.82 / 467.78 ms โ 454.30 / 462.68 ยฑ8.36 / 475.58 ms โ no change โ
โ QQuery 31 โ 428.42 / 435.36 ยฑ6.73 / 446.53 ms โ 423.80 / 436.07 ยฑ14.39 / 464.27 ms โ no change โ
โ QQuery 32 โ 1037.26 / 1059.54 ยฑ20.26 / 1096.61 ms โ 1195.72 / 1310.89 ยฑ62.32 / 1383.94 ms โ 1.24x slower โ
โ QQuery 33 โ 1544.01 / 1625.27 ยฑ49.12 / 1676.99 ms โ 1554.73 / 1720.12 ยฑ124.52 / 1863.63 ms โ 1.06x slower โ
โ QQuery 34 โ 1521.64 / 1615.37 ยฑ109.34 / 1784.34 ms โ 1551.66 / 1608.87 ยฑ72.59 / 1746.03 ms โ no change โ
โ QQuery 35 โ 440.94 / 447.20 ยฑ6.13 / 456.74 ms โ 364.32 / 379.31 ยฑ14.37 / 400.46 ms โ +1.18x faster โ
โ QQuery 36 โ 126.09 / 134.24 ยฑ4.33 / 138.71 ms โ 132.94 / 134.55 ยฑ1.19 / 136.59 ms โ no change โ
โ QQuery 37 โ 59.26 / 61.90 ยฑ2.25 / 64.91 ms โ 59.61 / 61.24 ยฑ2.06 / 65.30 ms โ no change โ
โ QQuery 38 โ 84.97 / 87.72 ยฑ1.80 / 89.88 ms โ 89.58 / 90.45 ยฑ0.45 / 90.87 ms โ no change โ
โ QQuery 39 โ 225.99 / 241.95 ยฑ9.88 / 255.59 ms โ 247.68 / 255.39 ยฑ6.31 / 262.91 ms โ 1.06x slower โ
โ QQuery 40 โ 22.20 / 24.41 ยฑ2.59 / 29.33 ms โ 27.80 / 30.14 ยฑ1.39 / 31.95 ms โ 1.23x slower โ
โ QQuery 41 โ 20.15 / 20.63 ยฑ0.47 / 21.48 ms โ 22.06 / 23.36 ยฑ1.47 / 26.12 ms โ 1.13x slower โ
โ QQuery 42 โ 20.04 / 20.39 ยฑ0.22 / 20.71 ms โ 21.12 / 21.65 ยฑ0.36 / 22.24 ms โ 1.06x slower โ
โโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 24785.41ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 25158.54ms โ
โ Average Time (HEAD) โ 576.40ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 585.08ms โ
โ Queries Faster โ 5 โ
โ Queries Slower โ 11 โ
โ Queries with No Change โ 27 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**clickbench_1 โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 125.0s |
| Peak memory | 37.6 GiB |
| Avg memory | 27.9 GiB |
| CPU user | 1163.7s |
| CPU sys | 94.4s |
| Peak spill | 0 B |
**clickbench_1 โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 130.0s |
| Peak memory | 36.1 GiB |
| Avg memory | 25.8 GiB |
| CPU user | 1163.3s |
| CPU sys | 111.2s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4293745755
run benchmark clickbench_1
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4293613925
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4293595834)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4293595834-1736-l7lsc 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
Comparing feat/reorder-row-groups-by-stats (bb87ff623ebf4077d448df8c6ac881befd1b5d22) to 64619a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/64619a6a35980a929a890bf3384bd3b3a24b0a67..bb87ff623ebf4077d448df8c6ac881befd1b5d22) using: sort_pushdown_inexact
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4267114384
> Another idea (maybe even more impactful/generally applicable than the pure - stats):
>
> Currently many queries go like Scan -> Filter -> Aggregate(Partial) -> Aggregate(Final) -> TopK
>
> Needs to first go through the the full aggregation before it reaches Topk (so it's not useful to push down to scan as we usually scan the entire dataset before emitting the partial aggregate)
>
> We can update bounds from aggregate, once we detect at least K distinct rows in a Partial aggregate.
>
> In practice it would mean after the first batch / batches arrive we already have e.g. 10 rows, so can already prune / filter with the much tighter bound.
Amazing idea!
> But let's focus first on getting the ordering in ๐
Sure ๐ , i will let benchmark PR merged soon, and we can see the performance improvement more easily.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangb (via GitHub)" <gi...@apache.org>.
adriangb commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4269752141
run benchmark sort_pushdown_inexact_overlap
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: reorder row groups by statistics during sort pushdown [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4272827265
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4272790065)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark sort_pushdown_inexact_overlap.json
--------------------
โโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Q1 โ 4.78 / 5.39 ยฑ1.09 / 7.56 ms โ 4.65 / 5.19 ยฑ0.80 / 6.78 ms โ no change โ
โ Q2 โ 5.09 / 5.73 ยฑ0.78 / 7.22 ms โ 4.99 / 5.44 ยฑ0.47 / 6.21 ms โ +1.05x faster โ
โ Q3 โ 13.92 / 14.21 ยฑ0.34 / 14.88 ms โ 13.58 / 14.98 ยฑ1.25 / 17.29 ms โ 1.05x slower โ
โ Q4 โ 13.99 / 14.36 ยฑ0.37 / 14.93 ms โ 14.02 / 14.56 ยฑ0.35 / 14.94 ms โ no change โ
โโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 39.68ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 40.17ms โ
โ Average Time (HEAD) โ 9.92ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 10.04ms โ
โ Queries Faster โ 1 โ
โ Queries Slower โ 1 โ
โ Queries with No Change โ 2 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**sort_pushdown_inexact_overlap โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 0.5s |
| Peak memory | 3.4 GiB |
| Avg memory | 3.4 GiB |
| CPU user | 1.8s |
| CPU sys | 0.2s |
| Peak spill | 0 B |
**sort_pushdown_inexact_overlap โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 0.4s |
| Peak memory | 3.4 GiB |
| Avg memory | 3.4 GiB |
| CPU user | 1.8s |
| CPU sys | 0.3s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init) [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4282325222
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/21580#issuecomment-4282133777)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model name: Neoverse-V2
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 16
Socket(s): -
Cluster(s): 1
Stepping: r0p1
BogoMIPS: 2000.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache: 1 MiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 32 MiB (16 instances)
L3 cache: 80 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected
```
</details>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and feat_reorder-row-groups-by-stats
--------------------
Benchmark tpcds_sf1.json
--------------------
โโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
โ Query โ HEAD โ feat_reorder-row-groups-by-stats โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ QQuery 1 โ 6.20 / 6.65 ยฑ0.73 / 8.11 ms โ 6.11 / 6.58 ยฑ0.81 / 8.20 ms โ no change โ
โ QQuery 2 โ 112.64 / 124.04 ยฑ19.03 / 161.96 ms โ 112.09 / 113.00 ยฑ0.90 / 114.18 ms โ +1.10x faster โ
โ QQuery 3 โ 108.51 / 109.97 ยฑ1.17 / 111.86 ms โ 109.22 / 110.09 ยฑ0.53 / 110.60 ms โ no change โ
โ QQuery 4 โ 1054.65 / 1069.17 ยฑ11.57 / 1088.42 ms โ 1046.87 / 1072.26 ยฑ14.23 / 1089.76 ms โ no change โ
โ QQuery 5 โ 186.47 / 194.57 ยฑ4.91 / 200.35 ms โ 192.97 / 196.13 ยฑ2.28 / 200.04 ms โ no change โ
โ QQuery 6 โ 247.36 / 256.61 ยฑ4.94 / 261.57 ms โ 258.60 / 267.23 ยฑ10.19 / 287.03 ms โ no change โ
โ QQuery 7 โ 320.37 / 334.87 ยฑ9.52 / 350.06 ms โ 326.19 / 333.19 ยฑ3.72 / 336.97 ms โ no change โ
โ QQuery 8 โ 157.76 / 162.11 ยฑ3.33 / 166.66 ms โ 159.28 / 162.86 ยฑ2.38 / 165.53 ms โ no change โ
โ QQuery 9 โ 226.00 / 244.02 ยฑ14.17 / 268.54 ms โ 215.85 / 241.58 ยฑ21.26 / 279.81 ms โ no change โ
โ QQuery 10 โ 174.43 / 180.38 ยฑ5.95 / 188.01 ms โ 166.56 / 176.11 ยฑ5.35 / 182.92 ms โ no change โ
โ QQuery 11 โ 704.26 / 711.24 ยฑ5.23 / 717.43 ms โ 696.89 / 710.73 ยฑ8.07 / 721.50 ms โ no change โ
โ QQuery 12 โ 39.01 / 40.40 ยฑ0.89 / 41.54 ms โ 38.16 / 39.33 ยฑ0.91 / 40.82 ms โ no change โ
โ QQuery 13 โ 555.20 / 567.80 ยฑ9.80 / 579.89 ms โ 562.71 / 566.34 ยฑ2.87 / 570.94 ms โ no change โ
โ QQuery 14 โ 891.05 / 909.38 ยฑ10.28 / 918.56 ms โ 891.62 / 902.88 ยฑ9.56 / 916.08 ms โ no change โ
โ QQuery 15 โ 19.47 / 22.49 ยฑ3.03 / 28.21 ms โ 19.32 / 21.21 ยฑ1.89 / 23.76 ms โ +1.06x faster โ
โ QQuery 16 โ 7.06 / 7.37 ยฑ0.27 / 7.71 ms โ 6.77 / 7.48 ยฑ0.60 / 8.58 ms โ no change โ
โ QQuery 17 โ 201.93 / 207.29 ยฑ4.50 / 214.24 ms โ 198.24 / 204.28 ยฑ4.50 / 211.84 ms โ no change โ
โ QQuery 18 โ 339.58 / 467.10 ยฑ65.01 / 522.12 ms โ 330.65 / 391.89 ยฑ56.46 / 479.73 ms โ +1.19x faster โ
โ QQuery 19 โ 143.85 / 145.80 ยฑ2.08 / 149.51 ms โ 142.79 / 144.49 ยฑ1.11 / 145.82 ms โ no change โ
โ QQuery 20 โ 15.83 / 16.37 ยฑ0.67 / 17.46 ms โ 15.68 / 17.29 ยฑ1.03 / 18.55 ms โ 1.06x slower โ
โ QQuery 21 โ 25.87 / 27.58 ยฑ0.88 / 28.39 ms โ 27.46 / 28.50 ยฑ0.81 / 29.86 ms โ no change โ
โ QQuery 22 โ 502.68 / 509.57 ยฑ6.86 / 519.41 ms โ 506.62 / 512.92 ยฑ6.75 / 524.82 ms โ no change โ
โ QQuery 23 โ 1220.37 / 1237.47 ยฑ14.51 / 1257.53 ms โ 1224.17 / 1241.20 ยฑ10.37 / 1255.66 ms โ no change โ
โ QQuery 24 โ 123.95 / 126.99 ยฑ2.56 / 131.54 ms โ 124.48 / 127.82 ยฑ2.27 / 130.53 ms โ no change โ
โ QQuery 25 โ 306.11 / 313.45 ยฑ4.63 / 320.62 ms โ 303.33 / 310.85 ยฑ5.11 / 318.10 ms โ no change โ
โ QQuery 26 โ 147.79 / 154.81 ยฑ11.89 / 178.51 ms โ 142.46 / 148.94 ยฑ5.28 / 155.28 ms โ no change โ
โ QQuery 27 โ 6.46 / 7.06 ยฑ0.59 / 8.08 ms โ 6.38 / 7.08 ยฑ0.69 / 8.29 ms โ no change โ
โ QQuery 28 โ 224.46 / 234.01 ยฑ8.52 / 248.35 ms โ 217.15 / 231.94 ยฑ8.17 / 240.57 ms โ no change โ
โ QQuery 29 โ 247.95 / 253.97 ยฑ4.61 / 261.07 ms โ 240.07 / 247.99 ยฑ5.24 / 253.80 ms โ no change โ
โ QQuery 30 โ 56.84 / 58.60 ยฑ1.18 / 60.56 ms โ 55.41 / 60.90 ยฑ7.24 / 75.18 ms โ no change โ
โ QQuery 31 โ 177.07 / 179.23 ยฑ1.89 / 181.91 ms โ 176.51 / 177.14 ยฑ0.57 / 177.86 ms โ no change โ
โ QQuery 32 โ 13.68 / 14.29 ยฑ0.49 / 15.17 ms โ 14.44 / 15.28 ยฑ0.80 / 16.40 ms โ 1.07x slower โ
โ QQuery 33 โ 132.75 / 135.56 ยฑ1.74 / 138.19 ms โ 131.51 / 133.72 ยฑ1.24 / 134.93 ms โ no change โ
โ QQuery 34 โ 6.70 / 7.04 ยฑ0.29 / 7.45 ms โ 6.79 / 7.64 ยฑ0.76 / 8.79 ms โ 1.09x slower โ
โ QQuery 35 โ 150.16 / 151.96 ยฑ1.25 / 153.26 ms โ 150.01 / 151.95 ยฑ1.68 / 153.94 ms โ no change โ
โ QQuery 36 โ 6.23 / 6.65 ยฑ0.50 / 7.60 ms โ 6.28 / 6.44 ยฑ0.18 / 6.79 ms โ no change โ
โ QQuery 37 โ 5.15 / 5.43 ยฑ0.34 / 6.10 ms โ 5.21 / 5.33 ยฑ0.08 / 5.44 ms โ no change โ
โ QQuery 38 โ 104.72 / 107.29 ยฑ1.64 / 109.68 ms โ 101.04 / 109.25 ยฑ4.43 / 113.82 ms โ no change โ
โ QQuery 39 โ 135.87 / 138.45 ยฑ3.24 / 144.49 ms โ 135.21 / 138.51 ยฑ3.81 / 145.35 ms โ no change โ
โ QQuery 40 โ 131.76 / 137.97 ยฑ7.89 / 152.70 ms โ 130.55 / 136.79 ยฑ6.15 / 147.85 ms โ no change โ
โ QQuery 41 โ 13.85 / 14.70 ยฑ0.62 / 15.79 ms โ 14.97 / 16.14 ยฑ0.96 / 17.54 ms โ 1.10x slower โ
โ QQuery 42 โ 110.23 / 114.94 ยฑ2.94 / 118.60 ms โ 108.44 / 113.26 ยฑ3.39 / 117.77 ms โ no change โ
โ QQuery 43 โ 5.48 / 5.78 ยฑ0.30 / 6.23 ms โ 5.57 / 5.88 ยฑ0.23 / 6.26 ms โ no change โ
โ QQuery 44 โ 11.37 / 12.05 ยฑ0.48 / 12.79 ms โ 11.59 / 12.21 ยฑ0.72 / 13.20 ms โ no change โ
โ QQuery 45 โ 43.79 / 46.50 ยฑ1.72 / 48.38 ms โ 43.73 / 46.35 ยฑ2.55 / 51.24 ms โ no change โ
โ QQuery 46 โ 8.01 / 8.43 ยฑ0.35 / 9.05 ms โ 8.23 / 8.91 ยฑ0.51 / 9.66 ms โ 1.06x slower โ
โ QQuery 47 โ 796.42 / 807.07 ยฑ8.08 / 819.56 ms โ 786.73 / 801.22 ยฑ11.81 / 816.28 ms โ no change โ
โ QQuery 48 โ 465.63 / 490.14 ยฑ14.94 / 510.39 ms โ 482.63 / 495.24 ยฑ7.64 / 506.75 ms โ no change โ
โ QQuery 49 โ 272.07 / 284.42 ยฑ6.37 / 288.91 ms โ 284.17 / 288.52 ยฑ3.42 / 292.75 ms โ no change โ
โ QQuery 50 โ 537.03 / 543.52 ยฑ4.68 / 549.89 ms โ 536.18 / 547.76 ยฑ7.71 / 559.26 ms โ no change โ
โ QQuery 51 โ 213.50 / 222.88 ยฑ5.11 / 227.74 ms โ 215.95 / 223.14 ยฑ3.70 / 226.33 ms โ no change โ
โ QQuery 52 โ 113.62 / 116.22 ยฑ1.90 / 118.60 ms โ 110.51 / 116.78 ยฑ3.20 / 119.58 ms โ no change โ
โ QQuery 53 โ 136.59 / 144.55 ยฑ4.40 / 148.78 ms โ 140.98 / 148.78 ยฑ4.25 / 152.93 ms โ no change โ
โ QQuery 54 โ 128.51 / 131.15 ยฑ2.47 / 135.15 ms โ 123.04 / 131.38 ยฑ4.47 / 135.30 ms โ no change โ
โ QQuery 55 โ 110.51 / 114.97 ยฑ2.50 / 117.91 ms โ 108.23 / 114.08 ยฑ3.03 / 116.66 ms โ no change โ
โ QQuery 56 โ 132.55 / 134.08 ยฑ1.34 / 135.71 ms โ 128.71 / 133.38 ยฑ2.67 / 136.95 ms โ no change โ
โ QQuery 57 โ 188.43 / 193.62 ยฑ2.64 / 195.58 ms โ 188.17 / 191.03 ยฑ2.47 / 195.34 ms โ no change โ
โ QQuery 58 โ 225.99 / 227.57 ยฑ2.20 / 231.92 ms โ 226.42 / 227.42 ยฑ0.88 / 228.81 ms โ no change โ
โ QQuery 59 โ 280.51 / 283.16 ยฑ2.51 / 287.26 ms โ 280.94 / 283.25 ยฑ1.84 / 285.43 ms โ no change โ
โ QQuery 60 โ 139.14 / 141.84 ยฑ1.53 / 143.56 ms โ 136.77 / 139.58 ยฑ1.85 / 142.60 ms โ no change โ
โ QQuery 61 โ 11.98 / 12.42 ยฑ0.50 / 13.36 ms โ 11.92 / 12.34 ยฑ0.39 / 13.07 ms โ no change โ
โ QQuery 62 โ 887.21 / 950.08 ยฑ45.30 / 992.06 ms โ 899.88 / 971.27 ยฑ37.15 / 1007.78 ms โ no change โ
โ QQuery 63 โ 146.14 / 148.67 ยฑ3.93 / 156.47 ms โ 142.33 / 145.58 ยฑ2.24 / 148.61 ms โ no change โ
โ QQuery 64 โ 28996.92 / 30110.50 ยฑ816.77 / 31398.16 ms โ 28223.78 / 29563.60 ยฑ1280.04 / 31295.49 ms โ no change โ
โ QQuery 65 โ 368.94 / 373.67 ยฑ3.85 / 377.99 ms โ 366.00 / 371.07 ยฑ4.65 / 379.25 ms โ no change โ
โ QQuery 66 โ 197.63 / 202.54 ยฑ3.99 / 207.69 ms โ 198.22 / 202.75 ยฑ3.37 / 207.57 ms โ no change โ
โ QQuery 67 โ 496.92 / 507.42 ยฑ12.26 / 531.46 ms โ 503.17 / 511.42 ยฑ6.06 / 522.01 ms โ no change โ
โ QQuery 68 โ 8.46 / 9.72 ยฑ1.04 / 10.95 ms โ 8.75 / 10.45 ยฑ1.46 / 13.12 ms โ 1.07x slower โ
โ QQuery 69 โ 164.44 / 179.98 ยฑ8.40 / 187.83 ms โ 173.57 / 178.21 ยฑ3.88 / 184.95 ms โ no change โ
โ QQuery 70 โ 423.91 / 432.99 ยฑ7.29 / 444.54 ms โ 435.21 / 449.24 ยฑ9.37 / 462.70 ms โ no change โ
โ QQuery 71 โ 124.03 / 132.50 ยฑ4.92 / 138.87 ms โ 125.63 / 130.78 ยฑ2.66 / 133.14 ms โ no change โ
โ QQuery 72 โ 1192.43 / 1204.42 ยฑ7.17 / 1212.47 ms โ 1198.12 / 1204.56 ยฑ7.88 / 1217.89 ms โ no change โ
โ QQuery 73 โ 6.45 / 7.19 ยฑ0.63 / 8.02 ms โ 6.95 / 7.85 ยฑ0.91 / 9.00 ms โ 1.09x slower โ
โ QQuery 74 โ 501.47 / 511.38 ยฑ6.51 / 520.16 ms โ 502.06 / 512.99 ยฑ6.21 / 520.29 ms โ no change โ
โ QQuery 75 โ 283.86 / 290.15 ยฑ3.92 / 294.60 ms โ 284.81 / 288.01 ยฑ2.91 / 293.25 ms โ no change โ
โ QQuery 76 โ 278.77 / 283.71 ยฑ4.32 / 290.65 ms โ 274.15 / 280.90 ยฑ5.16 / 289.62 ms โ no change โ
โ QQuery 77 โ 229.94 / 232.47 ยฑ1.84 / 235.27 ms โ 230.29 / 232.68 ยฑ2.80 / 237.93 ms โ no change โ
โ QQuery 78 โ 299.51 / 305.14 ยฑ3.67 / 311.07 ms โ 305.30 / 307.94 ยฑ2.99 / 313.46 ms โ no change โ
โ QQuery 79 โ 260.30 / 262.30 ยฑ1.17 / 263.47 ms โ 252.63 / 262.87 ยฑ5.75 / 268.97 ms โ no change โ
โ QQuery 80 โ 278.74 / 286.18 ยฑ4.20 / 291.20 ms โ 277.24 / 284.81 ยฑ4.00 / 288.59 ms โ no change โ
โ QQuery 81 โ 31.49 / 33.45 ยฑ1.53 / 35.28 ms โ 31.41 / 32.98 ยฑ1.42 / 35.59 ms โ no change โ
โ QQuery 82 โ 45.69 / 49.73 ยฑ2.62 / 52.23 ms โ 48.81 / 50.95 ยฑ1.54 / 53.06 ms โ no change โ
โ QQuery 83 โ 44.51 / 45.86 ยฑ1.49 / 48.61 ms โ 44.84 / 45.80 ยฑ0.67 / 46.77 ms โ no change โ
โ QQuery 84 โ 65.59 / 66.11 ยฑ0.47 / 66.90 ms โ 64.15 / 65.98 ยฑ1.18 / 67.48 ms โ no change โ
โ QQuery 85 โ 279.52 / 289.43 ยฑ8.81 / 305.60 ms โ 273.81 / 283.56 ยฑ7.93 / 293.04 ms โ no change โ
โ QQuery 86 โ 47.19 / 49.28 ยฑ1.88 / 52.73 ms โ 49.69 / 52.49 ยฑ2.47 / 56.12 ms โ 1.07x slower โ
โ QQuery 87 โ 109.72 / 112.99 ยฑ2.96 / 117.85 ms โ 106.44 / 110.08 ยฑ3.68 / 116.55 ms โ no change โ
โ QQuery 88 โ 131.96 / 135.01 ยฑ3.25 / 140.47 ms โ 123.80 / 130.33 ยฑ5.70 / 140.04 ms โ no change โ
โ QQuery 89 โ 153.31 / 161.12 ยฑ5.62 / 168.40 ms โ 151.15 / 160.34 ยฑ5.28 / 165.18 ms โ no change โ
โ QQuery 90 โ 23.95 / 25.64 ยฑ1.30 / 27.27 ms โ 25.11 / 27.74 ยฑ2.75 / 31.37 ms โ 1.08x slower โ
โ QQuery 91 โ 97.73 / 102.79 ยฑ3.87 / 107.50 ms โ 96.97 / 107.21 ยฑ6.24 / 113.97 ms โ no change โ
โ QQuery 92 โ 52.59 / 54.52 ยฑ1.81 / 57.95 ms โ 52.45 / 54.11 ยฑ1.79 / 57.57 ms โ no change โ
โ QQuery 93 โ 186.49 / 189.78 ยฑ2.20 / 192.30 ms โ 185.92 / 189.21 ยฑ1.92 / 191.57 ms โ no change โ
โ QQuery 94 โ 67.89 / 68.48 ยฑ0.67 / 69.77 ms โ 67.04 / 68.35 ยฑ1.07 / 69.97 ms โ no change โ
โ QQuery 95 โ 150.01 / 154.28 ยฑ6.03 / 165.82 ms โ 146.67 / 148.61 ยฑ1.97 / 152.26 ms โ no change โ
โ QQuery 96 โ 79.25 / 87.59 ยฑ4.70 / 93.73 ms โ 84.86 / 89.08 ยฑ2.26 / 91.64 ms โ no change โ
โ QQuery 97 โ 153.42 / 157.25 ยฑ3.60 / 163.60 ms โ 151.83 / 155.61 ยฑ2.10 / 157.76 ms โ no change โ
โ QQuery 98 โ 122.63 / 124.79 ยฑ1.23 / 126.07 ms โ 123.38 / 124.73 ยฑ0.80 / 125.65 ms โ no change โ
โ QQuery 99 โ 10744.00 / 10880.49 ยฑ222.46 / 11323.91 ms โ 10728.28 / 10890.65 ยฑ224.42 / 11336.01 ms โ no change โ
โโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 62854.57ms โ
โ Total Time (feat_reorder-row-groups-by-stats) โ 62246.57ms โ
โ Average Time (HEAD) โ 634.89ms โ
โ Average Time (feat_reorder-row-groups-by-stats) โ 628.75ms โ
โ Queries Faster โ 3 โ
โ Queries Slower โ 9 โ
โ Queries with No Change โ 87 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpcds โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 315.1s |
| Peak memory | 37.1 GiB |
| Avg memory | 26.7 GiB |
| CPU user | 631.7s |
| CPU sys | 27.4s |
| Peak spill | 0 B |
**tpcds โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 315.1s |
| Peak memory | 34.7 GiB |
| Avg memory | 24.9 GiB |
| CPU user | 612.7s |
| CPU sys | 26.5s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4288570205
run benchmark sort_pushdown_inexact
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: statistics-driven TopK optimization for parquet (file reorder + RG reorder + threshold init + cumulative prune) [datafusion]
Posted by "zhuqi-lucas (via GitHub)" <gi...@apache.org>.
zhuqi-lucas commented on PR #21580:
URL: https://github.com/apache/datafusion/pull/21580#issuecomment-4351417231
@alamb I've split the first PR out: #21956
It covers:
- Row group reorder by statistics (`reorder_by_statistics`)
- Global file reorder in shared work queue (`reorder_files`)
- DynamicFilter sort metadata (`sort_options` / `fetch`) for TopK
- `SortExec::with_fetch` ordering fix
The remaining parts (stats init + cumulative RG prune) will follow as a second PR once this one lands.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org