Skip to content

Resolve MIN/MAX from Parquet metadata for Single-mode aggregates and CAST projections#21651

Open
Dandandan wants to merge 4 commits intoapache:mainfrom
Dandandan:aggregate-stats-single-mode-and-cast
Open

Resolve MIN/MAX from Parquet metadata for Single-mode aggregates and CAST projections#21651
Dandandan wants to merge 4 commits intoapache:mainfrom
Dandandan:aggregate-stats-single-mode-and-cast

Conversation

@Dandandan
Copy link
Copy Markdown
Contributor

@Dandandan Dandandan commented Apr 15, 2026

Which issue does this PR close?

Related to improving ClickBench performance (metadata-only query resolution)

Rationale for this change

ClickBench Q6 (SELECT MIN("EventDate"), MAX("EventDate") FROM hits) was doing a full column scan despite the answer being available in Parquet row group statistics. Two issues prevented the AggregateStatistics optimizer from firing:

  1. take_optimizable missed Single mode — it only matched the Final → Partial pair, not single-partition scans.
  2. Statistics lost through CAST projectionsproject_statistics returned unknown for any non-Column/Literal expression, discarding Parquet min/max through casts like CAST(CAST(EventDate AS Int32) AS Date32).

This now avoids scanning any columns, going from ~6ms to ~1.5ms

│ QQuery 6  │           5.12 / 6.29 ±0.83 / 7.65 ms │           1.26 / 1.43 ±0.26 / 1.93 ms │ +4.39x faster │

What changes are included in this PR?

  • aggregate_statistics.rs: take_optimizable now also matches Single/SinglePartitioned aggregates.
  • projection.rs: Added project_column_statistics_through_expr() which propagates min/max statistics through CastExpr.

Result: Q6 now resolves entirely from Parquet metadata (zero I/O).

Are these changes tested?

Yes — existing tests pass, ClickBench sqllogictest updated with new expected plan for Q6.

Are there any user-facing changes?

Scalar MIN/MAX aggregates over CAST projections now resolve from file metadata when statistics are available, avoiding unnecessary I/O.

🤖 Generated with Claude Code

…CAST projections

Two changes enable the AggregateStatistics optimizer to resolve
MIN/MAX (and COUNT) from file metadata instead of scanning data:

1. `take_optimizable` now handles `Single`/`SinglePartitioned`
   aggregate modes, not just `Final` wrapping `Partial`. This matters
   for single-partition scans where the planner skips the
   Partial→Final split.

2. `project_statistics` now propagates min/max statistics through
   CAST expressions (recursively), so that projections like
   `CAST(CAST(col AS Int32) AS Date32)` preserve the underlying
   column statistics instead of returning unknown.

Together these turn ClickBench Q6
(`SELECT MIN("EventDate"), MAX("EventDate") FROM hits`) from a full
column scan into a metadata-only lookup (PlaceholderRowExec).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions github-actions bot added physical-expr Changes to the physical-expr crates optimizer Optimizer rules sqllogictest SQL Logic Tests (.slt) labels Apr 15, 2026
@Dandandan
Copy link
Copy Markdown
Contributor Author

run benchmark clickbench_partitioned

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4254830321-1316-ckv6d 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux

CPU Details (lscpu)
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

Comparing aggregate-stats-single-mode-and-cast (38736c2) to 5c653be (merge-base) diff using: clickbench_partitioned
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Instance: c4a-highmem-16 (12 vCPU / 65 GiB)

CPU Details (lscpu)
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 HEAD and aggregate-stats-single-mode-and-cast
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃   aggregate-stats-single-mode-and-cast ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0  │          1.19 / 4.45 ±6.36 / 17.18 ms │           1.21 / 4.43 ±6.34 / 17.11 ms │     no change │
│ QQuery 1  │        14.26 / 14.57 ±0.20 / 14.83 ms │         14.25 / 14.56 ±0.26 / 15.01 ms │     no change │
│ QQuery 2  │        43.46 / 43.91 ±0.48 / 44.81 ms │         43.27 / 43.59 ±0.19 / 43.81 ms │     no change │
│ QQuery 3  │        43.57 / 45.42 ±1.11 / 46.79 ms │         41.84 / 43.98 ±1.56 / 46.35 ms │     no change │
│ QQuery 4  │     285.24 / 291.20 ±4.20 / 295.47 ms │     288.54 / 297.04 ±10.64 / 317.06 ms │     no change │
│ QQuery 5  │     346.03 / 349.08 ±3.51 / 355.95 ms │      345.29 / 346.94 ±1.29 / 348.52 ms │     no change │
│ QQuery 6  │           5.68 / 6.40 ±0.75 / 7.65 ms │            1.24 / 1.40 ±0.24 / 1.88 ms │ +4.58x faster │
│ QQuery 7  │        16.70 / 18.29 ±2.22 / 22.59 ms │         17.12 / 18.38 ±0.76 / 19.43 ms │     no change │
│ QQuery 8  │     402.30 / 411.52 ±5.84 / 419.55 ms │      429.09 / 432.28 ±2.73 / 436.98 ms │  1.05x slower │
│ QQuery 9  │     631.70 / 648.61 ±9.75 / 662.20 ms │      643.89 / 653.74 ±5.45 / 659.67 ms │     no change │
│ QQuery 10 │        91.65 / 94.37 ±2.51 / 99.12 ms │         91.57 / 93.78 ±2.81 / 98.64 ms │     no change │
│ QQuery 11 │     104.07 / 106.21 ±1.47 / 108.20 ms │      103.01 / 104.42 ±1.63 / 107.59 ms │     no change │
│ QQuery 12 │     340.63 / 349.22 ±7.71 / 363.67 ms │      335.95 / 338.54 ±3.23 / 344.85 ms │     no change │
│ QQuery 13 │    450.69 / 466.93 ±11.23 / 481.22 ms │     439.85 / 464.94 ±18.55 / 495.88 ms │     no change │
│ QQuery 14 │     342.41 / 344.01 ±2.19 / 348.09 ms │      341.40 / 347.69 ±4.11 / 354.16 ms │     no change │
│ QQuery 15 │    343.01 / 366.36 ±21.45 / 401.25 ms │     354.78 / 372.13 ±14.20 / 396.29 ms │     no change │
│ QQuery 16 │    711.11 / 727.84 ±19.54 / 765.31 ms │      707.92 / 716.51 ±6.50 / 726.97 ms │     no change │
│ QQuery 17 │     701.63 / 711.67 ±6.25 / 718.16 ms │      706.89 / 716.91 ±5.57 / 723.59 ms │     no change │
│ QQuery 18 │ 1393.86 / 1465.68 ±42.08 / 1511.79 ms │  1394.16 / 1464.23 ±44.83 / 1515.40 ms │     no change │
│ QQuery 19 │       35.74 / 41.56 ±10.84 / 63.23 ms │        35.92 / 45.55 ±16.07 / 77.43 ms │  1.10x slower │
│ QQuery 20 │    718.76 / 737.61 ±16.46 / 761.53 ms │     713.66 / 730.05 ±18.00 / 764.78 ms │     no change │
│ QQuery 21 │     760.85 / 764.47 ±3.10 / 769.47 ms │      760.54 / 764.45 ±4.45 / 772.84 ms │     no change │
│ QQuery 22 │  1137.63 / 1147.63 ±8.05 / 1161.34 ms │   1141.43 / 1144.41 ±1.73 / 1146.31 ms │     no change │
│ QQuery 23 │ 3083.35 / 3117.97 ±32.25 / 3175.44 ms │  3097.13 / 3116.46 ±13.08 / 3131.74 ms │     no change │
│ QQuery 24 │      98.66 / 103.21 ±4.67 / 111.76 ms │      101.84 / 104.70 ±2.12 / 107.97 ms │     no change │
│ QQuery 25 │     138.07 / 140.83 ±1.46 / 142.00 ms │      137.86 / 140.23 ±2.30 / 143.42 ms │     no change │
│ QQuery 26 │      99.11 / 102.33 ±2.37 / 105.34 ms │       99.90 / 102.05 ±1.54 / 104.63 ms │     no change │
│ QQuery 27 │     847.17 / 853.80 ±5.63 / 863.19 ms │      857.64 / 858.72 ±1.17 / 860.58 ms │     no change │
│ QQuery 28 │ 3249.66 / 3275.08 ±13.68 / 3289.22 ms │  3272.58 / 3285.68 ±11.94 / 3299.78 ms │     no change │
│ QQuery 29 │        50.54 / 55.61 ±4.65 / 62.75 ms │         50.12 / 54.55 ±4.90 / 63.59 ms │     no change │
│ QQuery 30 │     359.23 / 369.50 ±6.20 / 376.38 ms │      356.94 / 364.64 ±4.84 / 371.99 ms │     no change │
│ QQuery 31 │     369.38 / 375.85 ±4.59 / 381.86 ms │      367.35 / 373.10 ±4.74 / 379.61 ms │     no change │
│ QQuery 32 │  1046.61 / 1054.72 ±8.84 / 1068.75 ms │ 1035.87 / 1146.32 ±136.57 / 1404.85 ms │  1.09x slower │
│ QQuery 33 │  1444.84 / 1456.39 ±7.23 / 1467.29 ms │  1458.39 / 1468.13 ±13.63 / 1494.60 ms │     no change │
│ QQuery 34 │ 1451.44 / 1465.67 ±16.57 / 1495.78 ms │   1445.85 / 1456.82 ±6.67 / 1466.68 ms │     no change │
│ QQuery 35 │     384.23 / 392.17 ±4.96 / 398.68 ms │      388.98 / 396.64 ±6.89 / 406.89 ms │     no change │
│ QQuery 36 │     113.05 / 118.69 ±4.44 / 125.24 ms │      122.85 / 124.32 ±1.17 / 126.42 ms │     no change │
│ QQuery 37 │        47.12 / 48.81 ±1.45 / 51.48 ms │         47.79 / 49.50 ±1.57 / 52.00 ms │     no change │
│ QQuery 38 │        74.80 / 76.39 ±1.10 / 78.07 ms │         76.64 / 77.84 ±1.02 / 79.67 ms │     no change │
│ QQuery 39 │     206.20 / 216.32 ±9.95 / 233.96 ms │      221.19 / 222.79 ±2.02 / 226.77 ms │     no change │
│ QQuery 40 │        21.57 / 26.10 ±2.77 / 29.85 ms │         24.16 / 26.31 ±2.17 / 30.11 ms │     no change │
│ QQuery 41 │        20.28 / 21.83 ±1.25 / 24.04 ms │         20.48 / 22.15 ±1.61 / 24.09 ms │     no change │
│ QQuery 42 │        19.02 / 20.05 ±0.54 / 20.57 ms │         19.45 / 20.58 ±1.10 / 22.67 ms │     no change │
└───────────┴───────────────────────────────────────┴────────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                                   ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                                   │ 22448.33ms │
│ Total Time (aggregate-stats-single-mode-and-cast)   │ 22571.44ms │
│ Average Time (HEAD)                                 │   522.05ms │
│ Average Time (aggregate-stats-single-mode-and-cast) │   524.92ms │
│ Queries Faster                                      │          1 │
│ Queries Slower                                      │          3 │
│ Queries with No Change                              │         39 │
│ Queries with Failure                                │          0 │
└─────────────────────────────────────────────────────┴────────────┘

Resource Usage

clickbench_partitioned — base (merge-base)

Metric Value
Wall time 113.4s
Peak memory 43.4 GiB
Avg memory 30.3 GiB
CPU user 1070.9s
CPU sys 82.3s
Peak spill 0 B

clickbench_partitioned — branch

Metric Value
Wall time 113.8s
Peak memory 38.4 GiB
Avg memory 28.2 GiB
CPU user 1070.5s
CPU sys 87.1s
Peak spill 0 B

File an issue against this benchmark runner

@Dandandan
Copy link
Copy Markdown
Contributor Author

run benchmarks

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4255072927-1324-ckcw4 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux

CPU Details (lscpu)
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

Comparing aggregate-stats-single-mode-and-cast (aa1db03) to 5c653be (merge-base) diff using: clickbench_partitioned
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4255072927-1325-dwtfc 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux

CPU Details (lscpu)
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

Comparing aggregate-stats-single-mode-and-cast (aa1db03) to 5c653be (merge-base) diff using: tpcds
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4255072927-1326-bqwfx 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux

CPU Details (lscpu)
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

Comparing aggregate-stats-single-mode-and-cast (aa1db03) to 5c653be (merge-base) diff using: tpch
Results will be posted here when complete


File an issue against this benchmark runner

…T-specific code

Replace the CAST-specific statistics propagation with a generic approach
using PhysicalExpr::evaluate_bounds(). This works for any expression
that implements evaluate_bounds — including CAST, negation, and
arithmetic with literals.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Dandandan Dandandan force-pushed the aggregate-stats-single-mode-and-cast branch from aa1db03 to 077c595 Compare April 15, 2026 20:04
@adriangbot
Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Instance: c4a-highmem-16 (12 vCPU / 65 GiB)

CPU Details (lscpu)
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 HEAD and aggregate-stats-single-mode-and-cast
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃  aggregate-stats-single-mode-and-cast ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0  │          1.20 / 4.48 ±6.39 / 17.26 ms │          1.22 / 4.51 ±6.43 / 17.36 ms │     no change │
│ QQuery 1  │        14.72 / 15.14 ±0.25 / 15.45 ms │        15.10 / 15.34 ±0.16 / 15.54 ms │     no change │
│ QQuery 2  │        44.66 / 44.87 ±0.20 / 45.20 ms │        44.53 / 44.66 ±0.13 / 44.85 ms │     no change │
│ QQuery 3  │        40.67 / 41.70 ±1.48 / 44.63 ms │        43.39 / 45.57 ±1.42 / 47.18 ms │  1.09x slower │
│ QQuery 4  │     280.98 / 285.41 ±2.73 / 289.26 ms │    286.37 / 297.92 ±13.04 / 323.16 ms │     no change │
│ QQuery 5  │     339.80 / 345.37 ±5.66 / 353.98 ms │     347.07 / 351.28 ±2.51 / 353.87 ms │     no change │
│ QQuery 6  │           5.12 / 6.29 ±0.83 / 7.65 ms │           1.26 / 1.43 ±0.26 / 1.93 ms │ +4.39x faster │
│ QQuery 7  │        16.98 / 17.48 ±0.54 / 18.50 ms │        17.38 / 21.25 ±5.62 / 32.32 ms │  1.22x slower │
│ QQuery 8  │    399.97 / 418.52 ±11.98 / 435.07 ms │    424.29 / 439.29 ±15.55 / 469.31 ms │     no change │
│ QQuery 9  │     652.80 / 662.13 ±9.29 / 675.01 ms │    666.54 / 677.02 ±10.89 / 695.69 ms │     no change │
│ QQuery 10 │        92.00 / 93.62 ±1.79 / 97.04 ms │       92.89 / 98.04 ±3.50 / 103.74 ms │     no change │
│ QQuery 11 │     105.30 / 105.94 ±0.95 / 107.83 ms │     108.00 / 110.97 ±2.53 / 115.59 ms │     no change │
│ QQuery 12 │     338.00 / 345.61 ±5.93 / 353.77 ms │    344.09 / 356.68 ±11.78 / 376.60 ms │     no change │
│ QQuery 13 │     452.91 / 465.54 ±8.99 / 478.16 ms │    465.62 / 476.86 ±10.87 / 496.71 ms │     no change │
│ QQuery 14 │     345.39 / 352.84 ±3.77 / 355.65 ms │     348.43 / 353.71 ±3.89 / 360.52 ms │     no change │
│ QQuery 15 │    351.37 / 366.69 ±14.36 / 392.91 ms │    358.97 / 379.62 ±23.94 / 422.05 ms │     no change │
│ QQuery 16 │     709.02 / 715.99 ±6.46 / 725.78 ms │    732.91 / 742.60 ±10.47 / 760.66 ms │     no change │
│ QQuery 17 │     709.78 / 720.12 ±7.89 / 729.90 ms │    727.91 / 748.09 ±33.04 / 813.96 ms │     no change │
│ QQuery 18 │ 1419.19 / 1480.16 ±42.42 / 1545.88 ms │ 1432.89 / 1483.14 ±30.50 / 1527.36 ms │     no change │
│ QQuery 19 │        37.04 / 38.88 ±2.47 / 43.68 ms │       35.95 / 49.12 ±24.32 / 97.71 ms │  1.26x slower │
│ QQuery 20 │    720.27 / 741.02 ±19.56 / 767.53 ms │    726.50 / 740.47 ±17.26 / 774.27 ms │     no change │
│ QQuery 21 │     766.98 / 774.44 ±5.56 / 782.09 ms │     766.71 / 771.66 ±2.78 / 774.89 ms │     no change │
│ QQuery 22 │  1137.61 / 1142.00 ±4.68 / 1150.71 ms │  1144.86 / 1148.19 ±3.24 / 1153.69 ms │     no change │
│ QQuery 23 │ 3084.90 / 3115.88 ±26.69 / 3147.17 ms │ 3120.52 / 3136.85 ±13.18 / 3151.15 ms │     no change │
│ QQuery 24 │     102.81 / 104.65 ±2.61 / 109.69 ms │      99.99 / 107.34 ±4.96 / 113.08 ms │     no change │
│ QQuery 25 │     139.67 / 142.20 ±2.99 / 148.01 ms │     140.04 / 142.72 ±1.68 / 145.00 ms │     no change │
│ QQuery 26 │     100.35 / 102.81 ±1.47 / 104.14 ms │      99.43 / 104.52 ±2.68 / 107.20 ms │     no change │
│ QQuery 27 │     857.05 / 860.62 ±4.76 / 869.98 ms │    857.37 / 865.19 ±10.43 / 885.81 ms │     no change │
│ QQuery 28 │ 3231.75 / 3263.39 ±25.14 / 3303.42 ms │ 3273.42 / 3293.58 ±14.09 / 3312.68 ms │     no change │
│ QQuery 29 │        50.44 / 54.61 ±4.29 / 62.16 ms │        50.93 / 55.85 ±6.31 / 68.10 ms │     no change │
│ QQuery 30 │     362.77 / 367.72 ±5.76 / 378.81 ms │     365.55 / 377.85 ±7.38 / 384.94 ms │     no change │
│ QQuery 31 │    366.41 / 385.75 ±10.67 / 399.27 ms │     371.15 / 381.18 ±9.25 / 396.11 ms │     no change │
│ QQuery 32 │ 1228.31 / 1262.53 ±38.36 / 1332.79 ms │ 1047.97 / 1068.26 ±19.04 / 1102.81 ms │ +1.18x faster │
│ QQuery 33 │ 1542.65 / 1586.73 ±35.91 / 1638.90 ms │  1488.96 / 1492.04 ±3.71 / 1499.11 ms │ +1.06x faster │
│ QQuery 34 │ 1539.27 / 1629.06 ±97.46 / 1811.28 ms │  1472.88 / 1480.28 ±5.42 / 1488.67 ms │ +1.10x faster │
│ QQuery 35 │    392.35 / 410.72 ±18.76 / 446.55 ms │     391.82 / 396.93 ±3.43 / 401.36 ms │     no change │
│ QQuery 36 │     120.11 / 124.68 ±2.88 / 128.66 ms │     123.42 / 126.82 ±3.60 / 133.50 ms │     no change │
│ QQuery 37 │        49.27 / 51.75 ±2.19 / 55.70 ms │        48.92 / 50.48 ±1.75 / 53.85 ms │     no change │
│ QQuery 38 │        78.35 / 79.52 ±0.94 / 81.12 ms │        76.90 / 78.83 ±1.31 / 80.50 ms │     no change │
│ QQuery 39 │     215.52 / 224.74 ±6.49 / 234.92 ms │     218.38 / 225.67 ±5.33 / 230.78 ms │     no change │
│ QQuery 40 │        23.92 / 25.73 ±1.28 / 27.35 ms │        22.34 / 25.48 ±1.87 / 27.22 ms │     no change │
│ QQuery 41 │        20.59 / 22.98 ±1.36 / 24.33 ms │        20.56 / 21.55 ±0.70 / 22.28 ms │ +1.07x faster │
│ QQuery 42 │        20.13 / 20.49 ±0.28 / 21.00 ms │        19.94 / 20.42 ±0.26 / 20.72 ms │     no change │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                                   ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                                   │ 23020.81ms │
│ Total Time (aggregate-stats-single-mode-and-cast)   │ 22809.24ms │
│ Average Time (HEAD)                                 │   535.37ms │
│ Average Time (aggregate-stats-single-mode-and-cast) │   530.45ms │
│ Queries Faster                                      │          5 │
│ Queries Slower                                      │          3 │
│ Queries with No Change                              │         35 │
│ Queries with Failure                                │          0 │
└─────────────────────────────────────────────────────┴────────────┘

Resource Usage

clickbench_partitioned — base (merge-base)

Metric Value
Wall time 115.8s
Peak memory 33.1 GiB
Avg memory 25.1 GiB
CPU user 1072.8s
CPU sys 106.1s
Peak spill 0 B

clickbench_partitioned — branch

Metric Value
Wall time 115.2s
Peak memory 40.6 GiB
Avg memory 29.7 GiB
CPU user 1084.1s
CPU sys 89.2s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Instance: c4a-highmem-16 (12 vCPU / 65 GiB)

CPU Details (lscpu)
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 HEAD and aggregate-stats-single-mode-and-cast
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                     HEAD ┃     aggregate-stats-single-mode-and-cast ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │              6.63 / 7.05 ±0.76 / 8.58 ms │              6.74 / 7.25 ±0.75 / 8.75 ms │     no change │
│ QQuery 2  │        144.49 / 144.94 ±0.58 / 146.06 ms │        143.37 / 144.35 ±0.60 / 144.90 ms │     no change │
│ QQuery 3  │        113.21 / 114.15 ±0.62 / 115.14 ms │        113.08 / 113.98 ±0.82 / 115.44 ms │     no change │
│ QQuery 4  │    1294.63 / 1321.42 ±19.33 / 1352.23 ms │    1295.35 / 1310.96 ±10.32 / 1321.36 ms │     no change │
│ QQuery 5  │        172.32 / 173.00 ±0.43 / 173.44 ms │        172.33 / 173.90 ±0.98 / 175.32 ms │     no change │
│ QQuery 6  │       827.03 / 843.34 ±27.87 / 899.02 ms │       816.16 / 835.44 ±14.50 / 851.66 ms │     no change │
│ QQuery 7  │        339.77 / 341.76 ±1.35 / 343.58 ms │        338.15 / 340.33 ±1.50 / 342.53 ms │     no change │
│ QQuery 8  │        115.95 / 117.28 ±0.69 / 117.74 ms │        115.53 / 116.31 ±0.43 / 116.85 ms │     no change │
│ QQuery 9  │        100.76 / 107.05 ±4.95 / 115.93 ms │        101.98 / 105.66 ±2.75 / 108.36 ms │     no change │
│ QQuery 10 │        104.22 / 106.36 ±1.37 / 108.46 ms │        104.34 / 105.48 ±0.90 / 107.03 ms │     no change │
│ QQuery 11 │        885.86 / 898.31 ±8.73 / 906.40 ms │       883.88 / 903.38 ±10.43 / 911.89 ms │     no change │
│ QQuery 12 │           44.26 / 45.56 ±1.35 / 47.99 ms │           44.54 / 46.46 ±1.57 / 49.03 ms │     no change │
│ QQuery 13 │        396.27 / 401.54 ±3.10 / 405.77 ms │        398.15 / 401.26 ±2.78 / 406.26 ms │     no change │
│ QQuery 14 │      993.22 / 1003.41 ±7.62 / 1015.56 ms │       987.49 / 999.44 ±7.62 / 1008.21 ms │     no change │
│ QQuery 15 │           15.47 / 16.17 ±0.75 / 17.51 ms │           15.42 / 16.36 ±0.67 / 17.13 ms │     no change │
│ QQuery 16 │              7.14 / 7.78 ±0.65 / 8.97 ms │              7.04 / 7.53 ±0.61 / 8.68 ms │     no change │
│ QQuery 17 │        228.37 / 230.02 ±1.11 / 231.22 ms │        226.05 / 228.41 ±1.82 / 231.42 ms │     no change │
│ QQuery 18 │        125.31 / 126.66 ±1.22 / 128.42 ms │        126.52 / 126.98 ±0.43 / 127.68 ms │     no change │
│ QQuery 19 │        153.46 / 155.08 ±1.75 / 158.39 ms │        152.84 / 154.17 ±1.05 / 156.00 ms │     no change │
│ QQuery 20 │           14.10 / 14.48 ±0.39 / 15.15 ms │           13.20 / 13.87 ±0.35 / 14.22 ms │     no change │
│ QQuery 21 │           19.19 / 19.83 ±0.41 / 20.35 ms │           18.77 / 19.47 ±0.50 / 20.04 ms │     no change │
│ QQuery 22 │        478.33 / 483.42 ±3.81 / 488.96 ms │        481.27 / 484.80 ±2.60 / 488.50 ms │     no change │
│ QQuery 23 │        841.71 / 853.91 ±9.54 / 867.81 ms │        857.08 / 864.23 ±5.91 / 872.25 ms │     no change │
│ QQuery 24 │        378.31 / 381.10 ±2.25 / 383.69 ms │        376.63 / 378.74 ±1.69 / 380.52 ms │     no change │
│ QQuery 25 │        336.15 / 340.04 ±2.07 / 341.99 ms │        337.29 / 339.05 ±1.05 / 340.23 ms │     no change │
│ QQuery 26 │           80.49 / 81.22 ±0.62 / 82.19 ms │           78.59 / 80.01 ±1.35 / 82.30 ms │     no change │
│ QQuery 27 │              6.93 / 7.35 ±0.38 / 7.99 ms │              7.06 / 7.53 ±0.37 / 8.15 ms │     no change │
│ QQuery 28 │        147.47 / 149.57 ±1.22 / 151.08 ms │        148.21 / 149.03 ±0.78 / 150.30 ms │     no change │
│ QQuery 29 │        278.18 / 280.61 ±1.75 / 283.59 ms │        276.84 / 279.44 ±1.73 / 282.00 ms │     no change │
│ QQuery 30 │           42.40 / 44.34 ±1.01 / 45.33 ms │           43.99 / 45.07 ±0.88 / 46.42 ms │     no change │
│ QQuery 31 │        167.50 / 169.99 ±1.42 / 171.84 ms │        169.08 / 170.58 ±1.20 / 171.86 ms │     no change │
│ QQuery 32 │           56.02 / 56.64 ±0.61 / 57.77 ms │           55.66 / 56.96 ±1.02 / 58.74 ms │     no change │
│ QQuery 33 │        139.69 / 141.28 ±0.92 / 142.51 ms │        140.38 / 141.51 ±0.83 / 142.88 ms │     no change │
│ QQuery 34 │              7.00 / 7.33 ±0.35 / 7.99 ms │              6.90 / 7.13 ±0.19 / 7.46 ms │     no change │
│ QQuery 35 │        106.40 / 108.25 ±1.10 / 109.36 ms │        107.80 / 108.38 ±0.68 / 109.64 ms │     no change │
│ QQuery 36 │              6.29 / 6.58 ±0.20 / 6.88 ms │              6.70 / 6.91 ±0.15 / 7.14 ms │  1.05x slower │
│ QQuery 37 │             8.43 / 9.18 ±1.12 / 11.41 ms │              8.32 / 8.75 ±0.29 / 9.10 ms │     no change │
│ QQuery 38 │           81.49 / 86.09 ±3.54 / 92.18 ms │           83.12 / 85.75 ±4.20 / 94.03 ms │     no change │
│ QQuery 39 │        123.17 / 124.79 ±0.93 / 125.81 ms │        123.57 / 126.07 ±1.56 / 127.77 ms │     no change │
│ QQuery 40 │        105.06 / 112.85 ±5.72 / 120.57 ms │        110.04 / 113.81 ±6.30 / 126.32 ms │     no change │
│ QQuery 41 │           14.03 / 14.77 ±0.55 / 15.41 ms │           14.51 / 15.82 ±0.81 / 16.65 ms │  1.07x slower │
│ QQuery 42 │        106.12 / 107.05 ±0.94 / 108.69 ms │        107.13 / 107.74 ±0.42 / 108.10 ms │     no change │
│ QQuery 43 │              5.87 / 6.16 ±0.24 / 6.52 ms │              6.16 / 6.44 ±0.32 / 6.95 ms │     no change │
│ QQuery 44 │           11.41 / 11.91 ±0.49 / 12.60 ms │           11.54 / 11.97 ±0.46 / 12.83 ms │     no change │
│ QQuery 45 │           49.97 / 50.92 ±1.07 / 52.94 ms │           49.42 / 50.90 ±1.17 / 52.23 ms │     no change │
│ QQuery 46 │              8.64 / 8.85 ±0.31 / 9.47 ms │              8.35 / 8.67 ±0.28 / 9.08 ms │     no change │
│ QQuery 47 │       685.27 / 693.82 ±10.28 / 712.98 ms │        682.78 / 691.75 ±6.06 / 700.87 ms │     no change │
│ QQuery 48 │        283.24 / 289.19 ±4.96 / 295.94 ms │        285.18 / 291.87 ±5.52 / 300.93 ms │     no change │
│ QQuery 49 │        249.51 / 252.86 ±2.51 / 256.86 ms │        250.75 / 253.04 ±1.66 / 255.90 ms │     no change │
│ QQuery 50 │        218.50 / 221.26 ±2.52 / 225.87 ms │        216.47 / 221.89 ±3.31 / 226.68 ms │     no change │
│ QQuery 51 │        178.28 / 180.76 ±2.03 / 184.47 ms │        177.34 / 180.95 ±3.40 / 185.51 ms │     no change │
│ QQuery 52 │        107.14 / 109.14 ±1.63 / 111.67 ms │        106.52 / 107.52 ±0.69 / 108.62 ms │     no change │
│ QQuery 53 │        102.61 / 103.70 ±0.92 / 105.21 ms │        103.11 / 103.62 ±0.63 / 104.85 ms │     no change │
│ QQuery 54 │        145.49 / 147.05 ±1.52 / 149.86 ms │        147.20 / 148.37 ±0.96 / 149.62 ms │     no change │
│ QQuery 55 │        106.55 / 107.69 ±1.12 / 109.70 ms │        106.82 / 108.23 ±1.44 / 110.53 ms │     no change │
│ QQuery 56 │        139.88 / 141.13 ±0.84 / 142.14 ms │        141.36 / 142.57 ±1.33 / 144.47 ms │     no change │
│ QQuery 57 │        172.73 / 174.37 ±1.28 / 176.31 ms │        171.13 / 174.33 ±2.10 / 176.74 ms │     no change │
│ QQuery 58 │        289.97 / 300.53 ±9.54 / 316.62 ms │        290.98 / 298.66 ±5.02 / 305.97 ms │     no change │
│ QQuery 59 │        198.70 / 199.22 ±0.42 / 199.63 ms │        197.01 / 198.26 ±1.09 / 200.17 ms │     no change │
│ QQuery 60 │        143.06 / 145.36 ±1.38 / 147.09 ms │        142.56 / 143.67 ±1.15 / 145.41 ms │     no change │
│ QQuery 61 │           12.89 / 13.13 ±0.22 / 13.42 ms │           13.05 / 13.40 ±0.22 / 13.74 ms │     no change │
│ QQuery 62 │       869.95 / 921.17 ±43.24 / 989.24 ms │       876.66 / 911.53 ±33.36 / 969.92 ms │     no change │
│ QQuery 63 │        101.65 / 105.74 ±2.85 / 108.87 ms │        104.04 / 106.44 ±1.93 / 109.24 ms │     no change │
│ QQuery 64 │        674.72 / 678.82 ±2.93 / 683.62 ms │        674.73 / 683.76 ±4.82 / 688.92 ms │     no change │
│ QQuery 65 │        247.89 / 251.19 ±3.83 / 258.70 ms │        243.68 / 249.30 ±5.13 / 256.94 ms │     no change │
│ QQuery 66 │       223.50 / 244.78 ±15.82 / 269.28 ms │        238.06 / 244.55 ±6.70 / 255.78 ms │     no change │
│ QQuery 67 │        302.49 / 311.38 ±5.47 / 319.23 ms │        304.23 / 312.23 ±5.43 / 317.93 ms │     no change │
│ QQuery 68 │             8.74 / 9.96 ±1.20 / 11.92 ms │            8.76 / 10.64 ±1.22 / 12.00 ms │  1.07x slower │
│ QQuery 69 │        102.49 / 104.35 ±1.39 / 105.91 ms │        100.36 / 103.06 ±1.82 / 105.53 ms │     no change │
│ QQuery 70 │        329.20 / 346.78 ±9.84 / 356.26 ms │        342.41 / 351.30 ±7.19 / 363.73 ms │     no change │
│ QQuery 71 │        135.20 / 136.63 ±0.95 / 137.94 ms │        134.36 / 135.53 ±1.42 / 138.27 ms │     no change │
│ QQuery 72 │        603.71 / 611.79 ±6.03 / 621.09 ms │        599.96 / 615.56 ±7.87 / 620.62 ms │     no change │
│ QQuery 73 │             6.75 / 7.71 ±1.24 / 10.14 ms │              6.81 / 7.04 ±0.19 / 7.28 ms │ +1.10x faster │
│ QQuery 74 │        554.26 / 564.10 ±7.28 / 573.02 ms │       560.78 / 581.28 ±17.09 / 606.28 ms │     no change │
│ QQuery 75 │        275.20 / 277.13 ±1.71 / 279.95 ms │        275.77 / 277.37 ±1.68 / 280.13 ms │     no change │
│ QQuery 76 │        130.96 / 132.86 ±1.31 / 134.41 ms │        131.06 / 132.23 ±0.86 / 133.45 ms │     no change │
│ QQuery 77 │        187.36 / 189.88 ±2.99 / 194.79 ms │        187.84 / 189.54 ±1.48 / 191.72 ms │     no change │
│ QQuery 78 │        335.50 / 342.80 ±5.26 / 349.75 ms │        332.77 / 338.53 ±3.18 / 341.45 ms │     no change │
│ QQuery 79 │        228.65 / 232.41 ±4.07 / 239.80 ms │        227.53 / 231.14 ±2.35 / 233.69 ms │     no change │
│ QQuery 80 │        319.66 / 323.14 ±3.23 / 329.23 ms │        322.40 / 325.09 ±2.68 / 329.81 ms │     no change │
│ QQuery 81 │           26.00 / 26.47 ±0.73 / 27.92 ms │           26.14 / 27.27 ±1.33 / 29.74 ms │     no change │
│ QQuery 82 │        197.40 / 200.37 ±1.92 / 202.89 ms │        198.36 / 201.51 ±2.59 / 205.53 ms │     no change │
│ QQuery 83 │           37.85 / 39.52 ±1.01 / 40.60 ms │           37.59 / 38.78 ±1.14 / 40.89 ms │     no change │
│ QQuery 84 │           47.84 / 49.19 ±0.82 / 50.31 ms │           48.50 / 49.33 ±1.22 / 51.75 ms │     no change │
│ QQuery 85 │        147.61 / 149.04 ±1.43 / 150.98 ms │        148.28 / 149.54 ±1.81 / 153.09 ms │     no change │
│ QQuery 86 │           38.66 / 40.29 ±2.17 / 44.44 ms │           38.80 / 39.91 ±0.70 / 40.60 ms │     no change │
│ QQuery 87 │           84.00 / 87.90 ±3.89 / 94.52 ms │           86.33 / 88.21 ±1.87 / 91.52 ms │     no change │
│ QQuery 88 │         99.95 / 100.61 ±0.78 / 101.87 ms │         99.44 / 100.66 ±0.99 / 102.46 ms │     no change │
│ QQuery 89 │        117.08 / 119.19 ±1.09 / 120.17 ms │        119.10 / 120.05 ±0.72 / 120.68 ms │     no change │
│ QQuery 90 │           23.90 / 24.96 ±1.47 / 27.87 ms │           23.62 / 24.23 ±0.55 / 25.18 ms │     no change │
│ QQuery 91 │           62.21 / 64.67 ±1.83 / 67.83 ms │           59.96 / 62.74 ±1.51 / 64.47 ms │     no change │
│ QQuery 92 │           56.88 / 57.80 ±0.93 / 59.40 ms │           57.09 / 58.50 ±1.01 / 59.86 ms │     no change │
│ QQuery 93 │        185.84 / 186.68 ±0.69 / 187.84 ms │        184.05 / 185.93 ±0.99 / 186.91 ms │     no change │
│ QQuery 94 │           60.17 / 61.37 ±0.70 / 62.32 ms │           60.87 / 61.77 ±0.96 / 63.27 ms │     no change │
│ QQuery 95 │        126.97 / 127.35 ±0.38 / 127.94 ms │        126.00 / 127.46 ±0.86 / 128.40 ms │     no change │
│ QQuery 96 │           72.49 / 73.34 ±0.55 / 74.19 ms │           73.24 / 74.12 ±0.46 / 74.53 ms │     no change │
│ QQuery 97 │        124.04 / 125.90 ±1.83 / 129.31 ms │        123.52 / 126.42 ±1.87 / 128.88 ms │     no change │
│ QQuery 98 │        151.84 / 154.12 ±1.45 / 156.15 ms │        150.59 / 154.07 ±2.36 / 157.91 ms │     no change │
│ QQuery 99 │ 10727.73 / 10763.72 ±37.98 / 10828.77 ms │ 10681.24 / 10722.85 ±25.42 / 10755.05 ms │     no change │
└───────────┴──────────────────────────────────────────┴──────────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                                   ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                                   │ 31163.69ms │
│ Total Time (aggregate-stats-single-mode-and-cast)   │ 31123.90ms │
│ Average Time (HEAD)                                 │   314.78ms │
│ Average Time (aggregate-stats-single-mode-and-cast) │   314.38ms │
│ Queries Faster                                      │          1 │
│ Queries Slower                                      │          3 │
│ Queries with No Change                              │         95 │
│ Queries with Failure                                │          0 │
└─────────────────────────────────────────────────────┴────────────┘

Resource Usage

tpcds — base (merge-base)

Metric Value
Wall time 156.1s
Peak memory 5.4 GiB
Avg memory 4.5 GiB
CPU user 257.3s
CPU sys 16.3s
Peak spill 0 B

tpcds — branch

Metric Value
Wall time 155.9s
Peak memory 5.2 GiB
Avg memory 4.4 GiB
CPU user 257.0s
CPU sys 16.2s
Peak spill 0 B

File an issue against this benchmark runner

@Dandandan Dandandan marked this pull request as ready for review April 15, 2026 20:22
Dandandan and others added 2 commits April 16, 2026 07:04
The PhysicalExpr trait no longer exposes as_any() after upstream changes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

optimizer Optimizer rules physical-expr Changes to the physical-expr crates sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants