Skip to content

feat: initialize TopK dynamic filter threshold from parquet statistics#21712

Draft
zhuqi-lucas wants to merge 2 commits intoapache:mainfrom
zhuqi-lucas:feat/topk-stats-init
Draft

feat: initialize TopK dynamic filter threshold from parquet statistics#21712
zhuqi-lucas wants to merge 2 commits intoapache:mainfrom
zhuqi-lucas:feat/topk-stats-init

Conversation

@zhuqi-lucas
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #21691

Rationale for this change

TopK's dynamic filter starts as lit(true) (no filtering) and only tightens after processing enough rows to fill the heap. This means the first few row groups are never pruned by the dynamic filter. For queries like ORDER BY col DESC LIMIT 100 on parquet files with good statistics, we can compute a tight initial threshold before reading any data.

What changes are included in this PR?

Core implementation (datafusion/datasource-parquet/src/opener.rs):

Three new functions:

  • try_init_topk_threshold() — main function that finds the dynamic filter in the predicate, scans RG statistics, computes the best threshold, and calls update() on the DynamicFilterPhysicalExpr
  • find_dynamic_filter() — recursively walks the predicate tree to find a DynamicFilterPhysicalExpr
  • compute_best_threshold_from_stats() — iterates over row groups and finds the optimal threshold

Algorithm (single-column sort):

  • DESC LIMIT K: threshold = max(min) across RGs where num_rows >= K, filter: col > threshold
  • ASC LIMIT K: threshold = min(max) across RGs where num_rows >= K, filter: col < threshold

Called in build_stream() after metadata is loaded but before row filter construction, so the updated threshold is used by the row filter for the current file and by RG pruning for subsequent files.

The DynamicFilterPhysicalExpr is shared across all partitions, so each file's threshold update is globally visible.

Graceful fallback: skips initialization when statistics are unavailable, column not found, multi-column sort, or no qualifying RGs.

Are these changes tested?

13 unit tests in opener.rs:

  • compute_best_threshold_from_stats: 6 tests (DESC/ASC, skip small RGs, skip nulls, all too small, empty)
  • find_dynamic_filter: 3 tests (direct match, nested in conjunction, absent)
  • try_init_topk_threshold: 4 tests (DESC, ASC, no dynamic filter, multi-column skip)

SLT tests in sort_pushdown.slt (Test H series):

  • Scrambled multi-file parquet data with non-overlapping ranges
  • DESC LIMIT, ASC LIMIT, larger LIMIT spanning files
  • Multi-partition correctness
  • EXPLAIN plan verification

Are there any user-facing changes?

No. This is a transparent optimization — same results, potentially faster TopK queries on parquet data with statistics.

Future work

  • Support multi-column sort threshold initialization
  • Compute global threshold from all files' statistics before opening any file (currently per-file)
  • Attach sort options to DynamicFilterPhysicalExpr to support all TopK queries, not just the Inexact sort pushdown path

@github-actions github-actions bot added sqllogictest SQL Logic Tests (.slt) datasource Changes to the datasource crate labels Apr 18, 2026
@zhuqi-lucas zhuqi-lucas force-pushed the feat/topk-stats-init branch from 97f1343 to 22d97c9 Compare April 18, 2026 08:03
@github-actions github-actions bot added physical-expr Changes to the physical-expr crates physical-plan Changes to the physical-plan crate labels Apr 18, 2026
… statistics

Before reading any parquet data, scan row group min/max statistics to
compute an initial threshold for TopK's dynamic filter. This allows
row-level filtering to benefit immediately from the first file opened,
rather than waiting until TopK processes enough rows to build a
threshold organically.

Algorithm (single-column sort):
- DESC LIMIT K: threshold = max(min) across RGs with num_rows >= K
  Filter: col > threshold
- ASC LIMIT K: threshold = min(max) across RGs with num_rows >= K
  Filter: col < threshold

The DynamicFilterPhysicalExpr is shared across all partitions, so
each file's threshold update is visible to subsequent files globally.

Graceful fallback: skips initialization when statistics are unavailable,
column is not found, or sort is multi-column.
Before reading any parquet data, scan row group min/max statistics to
compute an initial threshold for TopK's dynamic filter. This allows
row-level filtering to benefit immediately from the first file opened,
rather than waiting until TopK processes enough rows to build a
threshold organically.

Algorithm (single-column sort):
- DESC LIMIT K: threshold = max(min) across RGs with num_rows >= K
  Filter: col > threshold
- ASC LIMIT K: threshold = min(max) across RGs with num_rows >= K
  Filter: col < threshold

Sort direction is read from sort_options on DynamicFilterPhysicalExpr,
which is now set by SortExec::create_filter() for TopK queries. This
makes the optimization work for ALL TopK queries on parquet, not just
those with sort pushdown.

The DynamicFilterPhysicalExpr is shared across all partitions, so
each file's threshold update is visible to subsequent files globally.

Graceful fallback: skips initialization when sort_options is absent,
statistics are unavailable, column not found, or multi-column sort.
@zhuqi-lucas zhuqi-lucas force-pushed the feat/topk-stats-init branch from 22d97c9 to fbbaf61 Compare April 18, 2026 08:05
@zhuqi-lucas
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-c4273194911-1451-9hlch 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 feat/topk-stats-init (fbbaf61) to 29f1acd (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-c4273194911-1452-kmxk4 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 feat/topk-stats-init (fbbaf61) to 29f1acd (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-c4273194911-1453-c2ssz 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 feat/topk-stats-init (fbbaf61) to 29f1acd (merge-base) diff using: tpch
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 feat_topk-stats-init
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                     HEAD ┃                     feat_topk-stats-init ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │              6.56 / 7.06 ±0.80 / 8.64 ms │              6.55 / 7.06 ±0.73 / 8.51 ms │     no change │
│ QQuery 2  │        146.03 / 146.86 ±0.48 / 147.37 ms │        145.40 / 146.94 ±1.19 / 148.91 ms │     no change │
│ QQuery 3  │        114.12 / 114.81 ±0.72 / 115.91 ms │        114.34 / 114.93 ±0.45 / 115.53 ms │     no change │
│ QQuery 4  │    1328.79 / 1347.55 ±12.90 / 1361.81 ms │    1318.04 / 1352.47 ±21.85 / 1377.32 ms │     no change │
│ QQuery 5  │        173.09 / 174.64 ±1.30 / 176.95 ms │        173.03 / 175.35 ±1.25 / 176.82 ms │     no change │
│ QQuery 6  │       851.50 / 873.82 ±15.70 / 892.41 ms │        847.93 / 857.69 ±7.86 / 870.19 ms │     no change │
│ QQuery 7  │        345.62 / 346.40 ±0.99 / 348.24 ms │        342.64 / 346.76 ±2.75 / 351.13 ms │     no change │
│ QQuery 8  │        117.23 / 118.17 ±0.55 / 118.87 ms │        117.59 / 119.45 ±1.30 / 121.19 ms │     no change │
│ QQuery 9  │       100.77 / 108.79 ±10.20 / 128.56 ms │        101.16 / 104.68 ±2.62 / 107.23 ms │     no change │
│ QQuery 10 │        105.78 / 106.56 ±0.61 / 107.27 ms │        106.48 / 107.22 ±0.58 / 107.80 ms │     no change │
│ QQuery 11 │        951.09 / 963.50 ±6.76 / 970.29 ms │        965.39 / 974.36 ±5.50 / 980.25 ms │     no change │
│ QQuery 12 │           45.37 / 47.79 ±2.09 / 50.65 ms │           45.69 / 46.77 ±1.39 / 49.43 ms │     no change │
│ QQuery 13 │        396.23 / 399.82 ±2.09 / 401.73 ms │        402.60 / 405.69 ±2.03 / 408.27 ms │     no change │
│ QQuery 14 │    1002.50 / 1011.85 ±10.24 / 1028.91 ms │     1006.41 / 1017.85 ±9.28 / 1029.68 ms │     no change │
│ QQuery 15 │           16.02 / 16.79 ±0.95 / 18.61 ms │           16.64 / 18.07 ±1.27 / 20.44 ms │  1.08x slower │
│ QQuery 16 │             7.59 / 8.68 ±1.26 / 10.40 ms │              7.32 / 7.79 ±0.35 / 8.30 ms │ +1.12x faster │
│ QQuery 17 │        228.80 / 230.55 ±1.48 / 232.71 ms │        230.86 / 232.32 ±1.40 / 234.64 ms │     no change │
│ QQuery 18 │        126.64 / 127.92 ±0.71 / 128.63 ms │        125.59 / 128.57 ±2.33 / 132.75 ms │     no change │
│ QQuery 19 │        154.63 / 155.94 ±1.68 / 159.20 ms │        156.08 / 158.44 ±1.89 / 161.11 ms │     no change │
│ QQuery 20 │           14.73 / 15.19 ±0.25 / 15.44 ms │           13.93 / 14.68 ±1.08 / 16.83 ms │     no change │
│ QQuery 21 │           19.21 / 20.07 ±0.70 / 21.31 ms │           19.14 / 20.20 ±0.89 / 21.84 ms │     no change │
│ QQuery 22 │        481.62 / 484.37 ±1.93 / 487.27 ms │        483.99 / 488.04 ±3.97 / 492.94 ms │     no change │
│ QQuery 23 │        877.06 / 886.81 ±7.61 / 895.45 ms │        882.73 / 888.16 ±3.97 / 893.91 ms │     no change │
│ QQuery 24 │        383.00 / 385.92 ±2.69 / 389.57 ms │        382.24 / 386.69 ±3.23 / 391.74 ms │     no change │
│ QQuery 25 │        344.88 / 346.71 ±1.10 / 347.91 ms │        340.18 / 343.22 ±2.02 / 346.54 ms │     no change │
│ QQuery 26 │           81.51 / 84.03 ±1.75 / 86.09 ms │           81.20 / 83.18 ±1.67 / 85.96 ms │     no change │
│ QQuery 27 │              6.81 / 7.01 ±0.14 / 7.20 ms │              6.81 / 7.35 ±0.72 / 8.78 ms │     no change │
│ QQuery 28 │        147.95 / 148.89 ±0.55 / 149.53 ms │        149.40 / 150.43 ±0.78 / 151.34 ms │     no change │
│ QQuery 29 │        281.67 / 282.94 ±0.89 / 284.34 ms │        282.87 / 285.31 ±2.37 / 289.51 ms │     no change │
│ QQuery 30 │           43.17 / 44.73 ±1.24 / 46.25 ms │           44.05 / 44.89 ±0.82 / 46.34 ms │     no change │
│ QQuery 31 │        172.08 / 174.07 ±2.31 / 178.50 ms │        172.31 / 173.75 ±1.35 / 175.79 ms │     no change │
│ QQuery 32 │           13.84 / 14.71 ±0.91 / 15.89 ms │           13.64 / 14.16 ±0.31 / 14.61 ms │     no change │
│ QQuery 33 │        141.16 / 142.40 ±1.48 / 145.12 ms │        139.57 / 142.54 ±2.40 / 146.65 ms │     no change │
│ QQuery 34 │              6.77 / 7.00 ±0.23 / 7.42 ms │              7.00 / 7.36 ±0.40 / 8.07 ms │  1.05x slower │
│ QQuery 35 │        105.40 / 107.55 ±1.62 / 109.77 ms │        108.77 / 109.83 ±0.68 / 110.84 ms │     no change │
│ QQuery 36 │              6.38 / 6.67 ±0.20 / 6.90 ms │              6.54 / 7.10 ±0.38 / 7.68 ms │  1.07x slower │
│ QQuery 37 │              8.80 / 9.04 ±0.18 / 9.36 ms │             8.32 / 9.14 ±0.58 / 10.07 ms │     no change │
│ QQuery 38 │           83.58 / 87.05 ±3.04 / 91.33 ms │           81.25 / 88.32 ±5.32 / 97.68 ms │     no change │
│ QQuery 39 │        125.98 / 129.24 ±1.95 / 131.21 ms │        124.66 / 125.54 ±1.01 / 127.47 ms │     no change │
│ QQuery 40 │        105.52 / 115.47 ±7.47 / 128.74 ms │        113.39 / 116.11 ±4.55 / 125.16 ms │     no change │
│ QQuery 41 │           13.96 / 15.73 ±1.29 / 17.49 ms │           14.56 / 15.54 ±0.73 / 16.68 ms │     no change │
│ QQuery 42 │        106.82 / 108.95 ±2.10 / 112.77 ms │        109.02 / 110.52 ±1.14 / 112.01 ms │     no change │
│ QQuery 43 │              5.81 / 5.97 ±0.22 / 6.39 ms │              5.82 / 5.97 ±0.17 / 6.29 ms │     no change │
│ QQuery 44 │           11.32 / 12.11 ±0.73 / 13.49 ms │           11.71 / 12.30 ±0.62 / 13.12 ms │     no change │
│ QQuery 45 │           51.70 / 52.15 ±0.38 / 52.66 ms │           51.16 / 52.30 ±0.80 / 53.34 ms │     no change │
│ QQuery 46 │              8.07 / 8.40 ±0.21 / 8.71 ms │              8.63 / 8.76 ±0.11 / 8.92 ms │     no change │
│ QQuery 47 │        727.07 / 729.87 ±2.54 / 733.44 ms │        721.43 / 732.11 ±6.46 / 739.94 ms │     no change │
│ QQuery 48 │        283.75 / 290.74 ±4.94 / 296.19 ms │        283.59 / 288.85 ±5.45 / 298.08 ms │     no change │
│ QQuery 49 │        250.65 / 255.35 ±3.43 / 260.44 ms │        251.19 / 253.28 ±1.24 / 254.53 ms │     no change │
│ QQuery 50 │        220.46 / 223.98 ±3.75 / 230.73 ms │        225.75 / 227.53 ±1.85 / 231.07 ms │     no change │
│ QQuery 51 │        178.97 / 182.47 ±1.93 / 184.63 ms │        181.30 / 183.67 ±1.44 / 185.16 ms │     no change │
│ QQuery 52 │        107.59 / 109.26 ±1.96 / 112.71 ms │        108.22 / 109.89 ±1.01 / 111.39 ms │     no change │
│ QQuery 53 │        102.99 / 105.37 ±1.65 / 108.14 ms │        103.37 / 104.12 ±0.39 / 104.47 ms │     no change │
│ QQuery 54 │        145.94 / 148.48 ±2.84 / 153.62 ms │        146.62 / 148.19 ±0.87 / 149.10 ms │     no change │
│ QQuery 55 │        107.35 / 108.52 ±1.55 / 111.57 ms │        107.00 / 107.57 ±0.38 / 108.07 ms │     no change │
│ QQuery 56 │        140.19 / 141.72 ±1.05 / 143.08 ms │        141.37 / 142.98 ±1.93 / 146.68 ms │     no change │
│ QQuery 57 │        173.19 / 174.40 ±1.10 / 176.36 ms │        174.49 / 176.44 ±2.13 / 180.27 ms │     no change │
│ QQuery 58 │        273.55 / 275.86 ±2.18 / 279.45 ms │        271.50 / 275.36 ±2.01 / 277.18 ms │     no change │
│ QQuery 59 │        195.44 / 196.87 ±1.27 / 198.74 ms │        197.51 / 199.17 ±1.08 / 200.65 ms │     no change │
│ QQuery 60 │        142.15 / 144.14 ±1.46 / 145.62 ms │        145.14 / 146.49 ±0.72 / 147.29 ms │     no change │
│ QQuery 61 │           13.11 / 13.40 ±0.16 / 13.57 ms │           13.08 / 13.29 ±0.21 / 13.66 ms │     no change │
│ QQuery 62 │       884.56 / 920.54 ±25.40 / 958.51 ms │       896.06 / 954.40 ±40.67 / 992.37 ms │     no change │
│ QQuery 63 │        105.23 / 107.73 ±2.67 / 112.51 ms │        104.34 / 106.35 ±2.71 / 111.57 ms │     no change │
│ QQuery 64 │        688.84 / 692.72 ±3.10 / 696.42 ms │        689.47 / 694.09 ±2.73 / 698.00 ms │     no change │
│ QQuery 65 │        256.13 / 256.94 ±0.84 / 258.41 ms │        253.11 / 255.96 ±2.76 / 259.83 ms │     no change │
│ QQuery 66 │        232.09 / 243.63 ±9.20 / 259.77 ms │        249.87 / 257.46 ±5.42 / 263.83 ms │  1.06x slower │
│ QQuery 67 │        312.09 / 320.20 ±6.03 / 330.29 ms │        320.56 / 327.62 ±6.11 / 338.11 ms │     no change │
│ QQuery 68 │            8.42 / 10.69 ±1.45 / 12.81 ms │             8.39 / 9.38 ±0.87 / 10.89 ms │ +1.14x faster │
│ QQuery 69 │        101.34 / 103.69 ±1.82 / 106.77 ms │        102.13 / 104.52 ±2.53 / 109.00 ms │     no change │
│ QQuery 70 │       329.51 / 345.65 ±11.87 / 365.91 ms │       328.64 / 350.29 ±13.90 / 366.21 ms │     no change │
│ QQuery 71 │        135.50 / 139.13 ±4.29 / 147.44 ms │        134.79 / 136.94 ±1.18 / 138.07 ms │     no change │
│ QQuery 72 │        616.28 / 629.45 ±9.28 / 641.42 ms │        621.55 / 626.89 ±4.81 / 635.44 ms │     no change │
│ QQuery 73 │              6.57 / 7.76 ±1.02 / 9.49 ms │              6.58 / 7.46 ±0.54 / 8.23 ms │     no change │
│ QQuery 74 │        604.23 / 605.86 ±2.62 / 611.08 ms │        601.92 / 609.51 ±5.56 / 618.78 ms │     no change │
│ QQuery 75 │        275.20 / 277.66 ±1.68 / 279.41 ms │        275.02 / 278.61 ±2.80 / 281.99 ms │     no change │
│ QQuery 76 │        131.67 / 133.06 ±1.80 / 136.39 ms │        131.97 / 133.96 ±1.38 / 135.67 ms │     no change │
│ QQuery 77 │        187.44 / 190.10 ±1.56 / 192.17 ms │        188.85 / 191.69 ±2.08 / 194.36 ms │     no change │
│ QQuery 78 │        339.32 / 344.34 ±2.72 / 347.26 ms │        338.62 / 345.77 ±4.27 / 350.18 ms │     no change │
│ QQuery 79 │        232.01 / 234.74 ±1.67 / 236.76 ms │        234.61 / 236.84 ±1.53 / 238.85 ms │     no change │
│ QQuery 80 │        325.61 / 328.39 ±2.64 / 332.63 ms │        324.75 / 329.35 ±3.37 / 333.59 ms │     no change │
│ QQuery 81 │           26.15 / 27.19 ±1.26 / 29.65 ms │           25.97 / 27.88 ±1.92 / 30.77 ms │     no change │
│ QQuery 82 │           41.28 / 42.68 ±0.93 / 44.21 ms │           41.10 / 41.77 ±0.60 / 42.72 ms │     no change │
│ QQuery 83 │           38.82 / 39.81 ±0.97 / 41.57 ms │           38.48 / 39.13 ±0.53 / 39.98 ms │     no change │
│ QQuery 84 │           48.33 / 49.28 ±0.95 / 50.86 ms │           49.05 / 49.48 ±0.31 / 49.99 ms │     no change │
│ QQuery 85 │        147.34 / 148.16 ±0.98 / 150.10 ms │        148.91 / 150.49 ±1.39 / 152.65 ms │     no change │
│ QQuery 86 │           39.09 / 40.44 ±1.07 / 42.09 ms │           39.36 / 40.90 ±1.53 / 43.59 ms │     no change │
│ QQuery 87 │           82.35 / 87.90 ±4.25 / 93.88 ms │           86.84 / 89.23 ±2.22 / 93.11 ms │     no change │
│ QQuery 88 │         99.72 / 100.51 ±0.76 / 101.79 ms │        100.72 / 101.97 ±0.82 / 103.23 ms │     no change │
│ QQuery 89 │        117.04 / 119.16 ±1.11 / 120.27 ms │        118.66 / 120.54 ±1.10 / 122.01 ms │     no change │
│ QQuery 90 │           24.64 / 25.35 ±0.62 / 26.34 ms │           24.06 / 24.89 ±0.71 / 25.95 ms │     no change │
│ QQuery 91 │           62.62 / 65.55 ±3.79 / 73.03 ms │           64.30 / 65.51 ±1.01 / 67.30 ms │     no change │
│ QQuery 92 │           58.01 / 59.70 ±1.51 / 61.96 ms │           57.84 / 58.69 ±0.98 / 60.52 ms │     no change │
│ QQuery 93 │        188.74 / 189.71 ±1.04 / 191.70 ms │        186.95 / 189.64 ±1.36 / 190.54 ms │     no change │
│ QQuery 94 │           62.42 / 63.17 ±0.54 / 63.91 ms │           62.42 / 63.83 ±1.45 / 66.62 ms │     no change │
│ QQuery 95 │        130.46 / 132.04 ±1.38 / 134.11 ms │        130.92 / 131.76 ±0.87 / 133.44 ms │     no change │
│ QQuery 96 │           74.48 / 75.62 ±0.63 / 76.37 ms │           73.78 / 74.77 ±0.52 / 75.20 ms │     no change │
│ QQuery 97 │        126.47 / 128.34 ±1.91 / 131.37 ms │        126.83 / 128.43 ±1.24 / 130.52 ms │     no change │
│ QQuery 98 │        151.94 / 155.55 ±2.71 / 158.82 ms │        153.85 / 155.76 ±1.77 / 158.97 ms │     no change │
│ QQuery 99 │ 10725.01 / 10765.75 ±33.76 / 10806.77 ms │ 10743.47 / 10796.01 ±45.44 / 10864.68 ms │     no change │
└───────────┴──────────────────────────────────────────┴──────────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                   ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                   │ 31319.31ms │
│ Total Time (feat_topk-stats-init)   │ 31450.43ms │
│ Average Time (HEAD)                 │   316.36ms │
│ Average Time (feat_topk-stats-init) │   317.68ms │
│ Queries Faster                      │          2 │
│ Queries Slower                      │          4 │
│ Queries with No Change              │         93 │
│ Queries with Failure                │          0 │
└─────────────────────────────────────┴────────────┘

Resource Usage

tpcds — base (merge-base)

Metric Value
Wall time 156.9s
Peak memory 4.9 GiB
Avg memory 4.3 GiB
CPU user 260.0s
CPU sys 16.4s
Peak spill 0 B

tpcds — branch

Metric Value
Wall time 157.5s
Peak memory 5.4 GiB
Avg memory 4.3 GiB
CPU user 260.3s
CPU sys 17.0s
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 feat_topk-stats-init
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃                  feat_topk-stats-init ┃       Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━┩
│ QQuery 0  │          1.21 / 4.45 ±6.38 / 17.20 ms │          1.18 / 4.39 ±6.32 / 17.03 ms │    no change │
│ QQuery 1  │        14.80 / 15.10 ±0.24 / 15.41 ms │        14.70 / 14.99 ±0.27 / 15.50 ms │    no change │
│ QQuery 2  │        44.24 / 44.55 ±0.19 / 44.84 ms │        43.58 / 44.03 ±0.24 / 44.24 ms │    no change │
│ QQuery 3  │        39.80 / 41.18 ±1.14 / 43.26 ms │        40.63 / 40.87 ±0.12 / 41.00 ms │    no change │
│ QQuery 4  │     280.06 / 282.03 ±1.91 / 285.56 ms │     282.74 / 285.46 ±3.39 / 291.98 ms │    no change │
│ QQuery 5  │     334.59 / 338.29 ±3.83 / 345.58 ms │     328.65 / 333.11 ±3.24 / 336.45 ms │    no change │
│ QQuery 6  │           5.50 / 6.03 ±0.59 / 7.12 ms │           5.98 / 6.60 ±0.56 / 7.57 ms │ 1.09x slower │
│ QQuery 7  │        17.39 / 17.63 ±0.29 / 18.19 ms │        17.29 / 17.89 ±0.59 / 18.79 ms │    no change │
│ QQuery 8  │     403.48 / 407.24 ±2.73 / 411.05 ms │     401.50 / 408.23 ±5.36 / 415.12 ms │    no change │
│ QQuery 9  │     628.89 / 641.12 ±9.91 / 656.73 ms │     631.21 / 640.67 ±8.88 / 655.13 ms │    no change │
│ QQuery 10 │        91.52 / 94.08 ±2.06 / 97.55 ms │       90.55 / 94.78 ±4.75 / 103.75 ms │    no change │
│ QQuery 11 │     103.53 / 104.17 ±0.42 / 104.68 ms │     102.85 / 104.40 ±1.33 / 106.53 ms │    no change │
│ QQuery 12 │     335.22 / 340.79 ±3.89 / 345.84 ms │     334.29 / 338.55 ±3.07 / 343.38 ms │    no change │
│ QQuery 13 │    444.42 / 466.84 ±14.83 / 488.56 ms │    441.00 / 462.81 ±12.28 / 475.38 ms │    no change │
│ QQuery 14 │     340.89 / 344.76 ±4.27 / 352.57 ms │     342.00 / 345.83 ±3.93 / 353.10 ms │    no change │
│ QQuery 15 │    349.71 / 363.31 ±19.39 / 400.01 ms │    348.54 / 369.57 ±25.77 / 419.36 ms │    no change │
│ QQuery 16 │     708.68 / 717.95 ±8.28 / 730.51 ms │     711.95 / 720.10 ±9.70 / 738.65 ms │    no change │
│ QQuery 17 │     703.83 / 710.27 ±6.93 / 720.70 ms │     710.16 / 713.85 ±3.10 / 719.19 ms │    no change │
│ QQuery 18 │ 1445.89 / 1481.15 ±28.27 / 1522.38 ms │ 1403.87 / 1459.91 ±30.92 / 1487.79 ms │    no change │
│ QQuery 19 │        36.68 / 37.23 ±0.81 / 38.83 ms │       35.60 / 49.37 ±11.25 / 66.98 ms │ 1.33x slower │
│ QQuery 20 │    713.52 / 739.57 ±22.28 / 766.68 ms │    716.88 / 737.62 ±30.06 / 796.45 ms │    no change │
│ QQuery 21 │    785.17 / 795.93 ±10.65 / 815.36 ms │    761.95 / 776.38 ±11.11 / 795.15 ms │    no change │
│ QQuery 22 │  1129.29 / 1139.91 ±9.72 / 1157.66 ms │  1136.63 / 1145.25 ±7.98 / 1155.68 ms │    no change │
│ QQuery 23 │ 3063.12 / 3088.99 ±21.52 / 3125.43 ms │ 3057.97 / 3135.47 ±67.16 / 3257.06 ms │    no change │
│ QQuery 24 │     102.76 / 105.33 ±2.71 / 108.67 ms │     100.55 / 101.99 ±1.12 / 103.89 ms │    no change │
│ QQuery 25 │     141.67 / 143.75 ±2.45 / 148.13 ms │     141.85 / 142.56 ±0.75 / 143.92 ms │    no change │
│ QQuery 26 │      97.62 / 102.98 ±3.56 / 108.67 ms │     100.10 / 101.48 ±1.26 / 103.40 ms │    no change │
│ QQuery 27 │     851.37 / 855.56 ±7.49 / 870.53 ms │     852.50 / 857.43 ±3.60 / 862.93 ms │    no change │
│ QQuery 28 │ 3236.96 / 3258.41 ±11.71 / 3270.10 ms │ 3252.95 / 3283.27 ±19.06 / 3309.01 ms │    no change │
│ QQuery 29 │      50.62 / 81.34 ±45.58 / 171.35 ms │      50.50 / 85.98 ±59.08 / 202.71 ms │ 1.06x slower │
│ QQuery 30 │     358.02 / 367.58 ±9.90 / 385.40 ms │     362.72 / 369.25 ±5.22 / 375.27 ms │    no change │
│ QQuery 31 │    371.83 / 391.12 ±16.56 / 421.35 ms │    368.92 / 398.02 ±25.20 / 437.35 ms │    no change │
│ QQuery 32 │ 1146.33 / 1190.64 ±39.03 / 1254.20 ms │ 1154.69 / 1197.92 ±29.27 / 1242.59 ms │    no change │
│ QQuery 33 │ 1432.64 / 1458.62 ±37.55 / 1532.67 ms │ 1479.25 / 1516.56 ±51.09 / 1615.80 ms │    no change │
│ QQuery 34 │ 1451.04 / 1468.56 ±11.14 / 1480.28 ms │ 1493.85 / 1516.05 ±27.06 / 1568.71 ms │    no change │
│ QQuery 35 │     381.07 / 385.83 ±4.46 / 393.88 ms │    414.87 / 428.27 ±12.66 / 448.36 ms │ 1.11x slower │
│ QQuery 36 │     114.07 / 120.10 ±3.34 / 123.27 ms │     121.22 / 125.60 ±2.92 / 130.29 ms │    no change │
│ QQuery 37 │        47.07 / 48.93 ±1.42 / 51.23 ms │        48.03 / 51.54 ±1.81 / 53.21 ms │ 1.05x slower │
│ QQuery 38 │        74.70 / 76.66 ±1.57 / 79.48 ms │        74.66 / 78.92 ±3.75 / 85.96 ms │    no change │
│ QQuery 39 │     209.48 / 219.47 ±5.99 / 225.18 ms │     222.74 / 234.76 ±8.81 / 247.18 ms │ 1.07x slower │
│ QQuery 40 │        21.36 / 24.16 ±3.41 / 30.74 ms │        28.09 / 29.48 ±1.00 / 31.21 ms │ 1.22x slower │
│ QQuery 41 │        20.43 / 21.75 ±0.70 / 22.32 ms │        21.79 / 23.95 ±2.93 / 29.66 ms │ 1.10x slower │
│ QQuery 42 │        18.74 / 19.72 ±0.80 / 21.14 ms │        21.25 / 21.92 ±1.09 / 24.08 ms │ 1.11x slower │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴──────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                   ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                   │ 22563.06ms │
│ Total Time (feat_topk-stats-init)   │ 22815.06ms │
│ Average Time (HEAD)                 │   524.72ms │
│ Average Time (feat_topk-stats-init) │   530.58ms │
│ Queries Faster                      │          0 │
│ Queries Slower                      │          9 │
│ Queries with No Change              │         34 │
│ Queries with Failure                │          0 │
└─────────────────────────────────────┴────────────┘

Resource Usage

clickbench_partitioned — base (merge-base)

Metric Value
Wall time 113.8s
Peak memory 35.4 GiB
Avg memory 25.0 GiB
CPU user 1059.3s
CPU sys 97.7s
Peak spill 0 B

clickbench_partitioned — branch

Metric Value
Wall time 115.0s
Peak memory 36.7 GiB
Avg memory 25.6 GiB
CPU user 1070.2s
CPU sys 102.4s
Peak spill 0 B

File an issue against this benchmark runner

@zhuqi-lucas
Copy link
Copy Markdown
Contributor Author

run benchmark sort_pushdown_inexact

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4273542024-1458-rl7tn 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 feat/topk-stats-init (fbbaf61) to 29f1acd (merge-base) diff using: sort_pushdown_inexact
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 feat_topk-stats-init
--------------------
Benchmark sort_pushdown_inexact.json
--------------------
┏━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Query ┃                           HEAD ┃           feat_topk-stats-init ┃    Change ┃
┡━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Q1    │    6.64 / 7.65 ±1.08 / 9.66 ms │    6.99 / 7.67 ±0.81 / 9.16 ms │ no change │
│ Q2    │    6.83 / 7.08 ±0.27 / 7.49 ms │    6.69 / 6.77 ±0.08 / 6.91 ms │ no change │
│ Q3    │ 22.05 / 22.31 ±0.27 / 22.74 ms │ 21.32 / 22.08 ±0.45 / 22.75 ms │ no change │
│ Q4    │ 19.89 / 21.42 ±0.97 / 22.35 ms │ 19.87 / 21.57 ±0.91 / 22.21 ms │ no change │
└───────┴────────────────────────────────┴────────────────────────────────┴───────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┓
┃ Benchmark Summary                   ┃         ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━┩
│ Total Time (HEAD)                   │ 58.46ms │
│ Total Time (feat_topk-stats-init)   │ 58.09ms │
│ Average Time (HEAD)                 │ 14.61ms │
│ Average Time (feat_topk-stats-init) │ 14.52ms │
│ Queries Faster                      │       0 │
│ Queries Slower                      │       0 │
│ Queries with No Change              │       4 │
│ Queries with Failure                │       0 │
└─────────────────────────────────────┴─────────┘

Resource Usage

sort_pushdown_inexact — base (merge-base)

Metric Value
Wall time 0.6s
Peak memory 3.4 GiB
Avg memory 3.4 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.4 GiB
Avg memory 3.4 GiB
CPU user 2.5s
CPU sys 0.3s
Peak spill 0 B

File an issue against this benchmark runner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

datasource Changes to the datasource crate physical-expr Changes to the physical-expr crates physical-plan Changes to the physical-plan crate sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Initialize TopK from file / rowgroup / .. statistics

2 participants