Skip to content

Prune hash join probe side via dynamic discrete values from the build side - #25292

Open
gruuya wants to merge 2 commits into
apache:mainfrom
splitgraph:hash-join-dynamic-pruning-minmax
Open

gruuya wants to merge 2 commits into
apache:mainfrom
splitgraph:hash-join-dynamic-pruning-minmax

Conversation

@gruuya

@gruuya gruuya commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

Avoid scanning redundant files/row-groups/pages in the probe side of hash joins, based on the values dictated by the build side.

What changes are included in this PR?

  • 2 new configs that control the thresholds for the dynamic discrete pruning to take place
  • wiring up PushdownStrategy::Map/HashTableLookupExpr to carry the build side values from a hash join
  • extend build_predicate_expression to build the associated pruning expression from HashTableLookupExpr
  • also extend build_predicate_expression so that it now pushes down pruning for CaseExprs, since that also unlocks the partitioned hash-join scenario this pr targets

This then exploits the pre-existing compact pruning mechanism (CompactInListDomain), whereby build-side values are first sorted, and a binary search can then eliminate all containers that don't span a single value, even if naively container's range overlaps the broad min/max bounds of the build-side values.

What is the testing strategy for this PR?

Unit tests added covering all changes.

Also tested manually that the problem from the issue is resolved now

> select version();
+--------------------------------------------+
| version()                                  |
+--------------------------------------------+
| Apache DataFusion 55.0.0, aarch64 on macos |
+--------------------------------------------+
1 row(s) fetched.
Elapsed 0.009 seconds.

> copy (select i as k, random() as v from generate_series(0, 1999999) t(i))
to '/tmp/fact.parquet'
stored as parquet options ('format.max_row_group_size' '1000');
+---------+
| count   |
+---------+
| 2000000 |
+---------+
1 row(s) fetched.
Elapsed 0.091 seconds.

> create external table fact stored as parquet location '/tmp/fact.parquet';
0 row(s) fetched.
Elapsed 0.010 seconds.

> create table dim as
select i as k from generate_series(0, 1999999) t(i) where i % 10000 < 200;
0 row(s) fetched.
Elapsed 0.010 seconds.

> set datafusion.optimizer.hash_join_dynamic_pruning_max_distinct_values = 0; -- disabled
0 row(s) fetched.
Elapsed 0.001 seconds.

> select count(*), sum(v) from fact join dim on fact.k = dim.k; 
select count(*), sum(v) from fact join dim on fact.k = dim.k; 
select count(*), sum(v) from fact join dim on fact.k = dim.k; 
select count(*), sum(v) from fact join dim on fact.k = dim.k;
+----------+--------------------+
| count(*) | sum(fact.v)        |
+----------+--------------------+
| 40000    | 19873.614509561437 |
+----------+--------------------+
1 row(s) fetched.
Elapsed 0.116 seconds.

+----------+-------------------+
| count(*) | sum(fact.v)       |
+----------+-------------------+
| 40000    | 19873.61450956144 |
+----------+-------------------+
1 row(s) fetched.
Elapsed 0.096 seconds.

+----------+-------------------+
| count(*) | sum(fact.v)       |
+----------+-------------------+
| 40000    | 19873.61450956144 |
+----------+-------------------+
1 row(s) fetched.
Elapsed 0.096 seconds.

+----------+-------------------+
| count(*) | sum(fact.v)       |
+----------+-------------------+
| 40000    | 19873.61450956144 |
+----------+-------------------+
1 row(s) fetched.
Elapsed 0.093 seconds.

> explain analyze select count(*), sum(v) from fact join dim on fact.k = dim.k
...
|                   |           DataSourceExec: file_groups={12 groups: [[tmp/fact.parquet:0..1929814], [tmp/fact.parquet:1929814..3859628], [tmp/fact.parquet:3859628..5789442], [tmp/fact.parquet:5789442..7719256], [tmp/fact.parquet:7719256..9649070], ...]}, projection=[k, v], output_ordering=[k@0 ASC NULLS LAST], file_type=parquet, predicate=DynamicFilter [ k@0 >= 0 AND k@0 <= 1990199 AND hash_lookup ], dynamic_rg_pruning=eligible, pruning_predicate=k_null_count@1 != row_count@2 AND k_max@0 >= 0 AND k_null_count@1 != row_count@2 AND k_min@3 <= 1990199, required_guarantees=[], metrics=[output_rows=1.99 M, elapsed_compute=551.82µs, output_bytes=248.9 MB, output_batches=1.99 K, files_ranges_pruned_statistics=12 total → 12 matched, row_groups_pruned_statistics=2.00 K total → 1.99 K matched, row_groups_pruned_bloom_filter=1.99 K total → 1.99 K matched, page_index_pages_pruned=1.99 K total → 1.99 K matched, page_index_rows_pruned=1.99 M total → 1.99 M matched, limit_pruned_row_groups=0 total → 0 matched, batches_split=0, bytes_processed=22.1 MB, bytes_scanned=21.3 MB, file_open_errors=0, file_scan_errors=0, files_opened=12, files_processed=12, num_predicate_creation_errors=0, predicate_evaluation_errors=0, pushdown_rows_matched=0, pushdown_rows_pruned=0, row_groups_pruned_dynamic_filter=0, predicate_cache_inner_records=0, predicate_cache_records=0, bloom_filter_eval_time=75.36µs, metadata_load_time=1.25ms, page_index_eval_time=10.25ms, row_pushdown_eval_time=36ns, statistics_eval_time=1.05ms, time_elapsed_opening=17.55ms, time_elapsed_processing=106.88ms, time_elapsed_scanning_total=1.17s, time_elapsed_scanning_until_data=14.07ms, output_rows_skew=1.64%, scan_efficiency_ratio=96.46% (22.34 M/23.16 M)] |
...

> set datafusion.optimizer.hash_join_dynamic_pruning_max_distinct_values = 100000;  -- enabled, default
0 row(s) fetched.
Elapsed 0.000 seconds

> select count(*), sum(v) from fact join dim on fact.k = dim.k; 
select count(*), sum(v) from fact join dim on fact.k = dim.k; 
select count(*), sum(v) from fact join dim on fact.k = dim.k; 
select count(*), sum(v) from fact join dim on fact.k = dim.k;
+----------+--------------------+
| count(*) | sum(fact.v)        |
+----------+--------------------+
| 40000    | 19873.614509561437 |
+----------+--------------------+
1 row(s) fetched.
Elapsed 0.026 seconds.

+----------+-------------------+
| count(*) | sum(fact.v)       |
+----------+-------------------+
| 40000    | 19873.61450956144 |
+----------+-------------------+
1 row(s) fetched.
Elapsed 0.019 seconds.

+----------+-------------------+
| count(*) | sum(fact.v)       |
+----------+-------------------+
| 40000    | 19873.61450956144 |
+----------+-------------------+
1 row(s) fetched.
Elapsed 0.020 seconds.

+----------+-------------------+
| count(*) | sum(fact.v)       |
+----------+-------------------+
| 40000    | 19873.61450956144 |
+----------+-------------------+
1 row(s) fetched.
Elapsed 0.014 seconds.

> explain analyze select count(*), sum(v) from fact join dim on fact.k = dim.k;
...
|                   |           DataSourceExec: file_groups={12 groups: [[tmp/fact.parquet:0..1929814], [tmp/fact.parquet:1929814..3859628], [tmp/fact.parquet:3859628..5789442], [tmp/fact.parquet:5789442..7719256], [tmp/fact.parquet:7719256..9649070], ...]}, projection=[k, v], output_ordering=[k@0 ASC NULLS LAST], file_type=parquet, predicate=DynamicFilter [ k@0 >= 0 AND k@0 <= 1990199 AND hash_lookup ], dynamic_rg_pruning=eligible, pruning_predicate=k_null_count@1 != row_count@2 AND k_max@0 >= 0 AND k_null_count@1 != row_count@2 AND k_min@3 <= 1990199 AND k_null_count@1 != row_count@2 AND IN_SET_INTERSECTS(k_min@3, k_max@0, 40000 values), required_guarantees=[], metrics=[output_rows=200.0 K, elapsed_compute=76.72µs, output_bytes=25.0 MB, output_batches=200, files_ranges_pruned_statistics=12 total → 12 matched, row_groups_pruned_statistics=2.00 K total → 200 matched, row_groups_pruned_bloom_filter=200 total → 200 matched, page_index_pages_pruned=200 total → 200 matched, page_index_rows_pruned=200.0 K total → 200.0 K matched, limit_pruned_row_groups=0 total → 0 matched, batches_split=0, bytes_processed=22.1 MB, bytes_scanned=2.1 MB, file_open_errors=0, file_scan_errors=0, files_opened=12, files_processed=12, num_predicate_creation_errors=0, predicate_evaluation_errors=0, pushdown_rows_matched=0, pushdown_rows_pruned=0, row_groups_pruned_dynamic_filter=0, predicate_cache_inner_records=0, predicate_cache_records=0, bloom_filter_eval_time=64.73µs, metadata_load_time=2.78ms, page_index_eval_time=1.83ms, row_pushdown_eval_time=36ns, statistics_eval_time=773.07µs, time_elapsed_opening=77.42ms, time_elapsed_processing=91.60ms, time_elapsed_scanning_total=189.39ms, time_elapsed_scanning_until_data=11.29ms, output_rows_skew=1.63%, scan_efficiency_ratio=9.69% (2.24 M/23.16 M)] |
...

Note that the scanned rows are shrunk 10x (output_rows=1.99 M vs output_rows=200.0 K), and consequently the execution time is improved 5x (0.096 vs 0.019 seconds). It would be good to benchmark this more broadly.

Are there any user-facing changes?

Yes, the two new configs mirroring the in-list ones, as well as the construction API for HashTableLookupExpr, which now accepts an optional values arg too.

@github-actions github-actions Bot added documentation Improvements or additions to documentation common Related to common crate physical-plan Changes to the physical-plan crate labels Sep 14, 2026
@github-actions

github-actions Bot commented Sep 14, 2026

Copy link
Copy Markdown

Thank you for opening this pull request!

Reviewer note: cargo-semver-checks reported the current version number is not SemVer-compatible with the changes in this pull request (compared against the base branch).

Details
     Cloning apache/main
    Building datafusion-common v55.1.0 (current)
       Built [  34.416s] (current)
     Parsing datafusion-common v55.1.0 (current)
      Parsed [   0.057s] (current)
    Building datafusion-common v55.1.0 (baseline)
       Built [  29.992s] (baseline)
     Parsing datafusion-common v55.1.0 (baseline)
      Parsed [   0.056s] (baseline)
    Checking datafusion-common v55.1.0 -> v55.1.0 (no change; assume patch)
     Checked [   0.953s] 223 checks: 222 pass, 1 fail, 0 warn, 31 skip

--- failure constructible_struct_adds_field: struct exhaustively constructible through public API adds field ---

Description:
A pub struct that could be exhaustively constructed with a literal using only public API has a new pub field, breaking existing exhaustive literals.
        ref: https://doc.rust-lang.org/reference/expressions/struct-expr.html
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.50.0/src/lints/constructible_struct_adds_field.ron

Failed in:
  field OptimizerOptions.hash_join_dynamic_pruning_max_distinct_values in /home/runner/work/datafusion/datafusion/datafusion/common/src/config.rs:1584
  field OptimizerOptions.hash_join_dynamic_pruning_max_size in /home/runner/work/datafusion/datafusion/datafusion/common/src/config.rs:1584

     Summary semver requires new major version: 1 major and 0 minor checks failed
    Finished [  67.209s] datafusion-common
    Building datafusion-physical-plan v55.1.0 (current)
       Built [  34.937s] (current)
     Parsing datafusion-physical-plan v55.1.0 (current)
      Parsed [   0.160s] (current)
    Building datafusion-physical-plan v55.1.0 (baseline)
       Built [  35.721s] (baseline)
     Parsing datafusion-physical-plan v55.1.0 (baseline)
      Parsed [   0.159s] (baseline)
    Checking datafusion-physical-plan v55.1.0 -> v55.1.0 (no change; assume patch)
     Checked [   0.913s] 223 checks: 223 pass, 31 skip
     Summary no semver update required
    Finished [  73.206s] datafusion-physical-plan
    Building datafusion-proto v55.1.0 (current)
       Built [  50.281s] (current)
     Parsing datafusion-proto v55.1.0 (current)
      Parsed [   0.016s] (current)
    Building datafusion-proto v55.1.0 (baseline)
       Built [  49.669s] (baseline)
     Parsing datafusion-proto v55.1.0 (baseline)
      Parsed [   0.017s] (baseline)
    Checking datafusion-proto v55.1.0 -> v55.1.0 (no change; assume patch)
     Checked [   0.139s] 223 checks: 223 pass, 31 skip
     Summary no semver update required
    Finished [ 101.367s] datafusion-proto
    Building datafusion-pruning v55.1.0 (current)
       Built [  37.052s] (current)
     Parsing datafusion-pruning v55.1.0 (current)
      Parsed [   0.015s] (current)
    Building datafusion-pruning v55.1.0 (baseline)
       Built [  36.845s] (baseline)
     Parsing datafusion-pruning v55.1.0 (baseline)
      Parsed [   0.015s] (baseline)
    Checking datafusion-pruning v55.1.0 -> v55.1.0 (no change; assume patch)
     Checked [   0.107s] 223 checks: 223 pass, 31 skip
     Summary no semver update required
    Finished [  75.106s] datafusion-pruning
    Building datafusion-sqllogictest v55.1.0 (current)
       Built [  90.236s] (current)
     Parsing datafusion-sqllogictest v55.1.0 (current)
      Parsed [   0.022s] (current)
    Building datafusion-sqllogictest v55.1.0 (baseline)
       Built [  90.060s] (baseline)
     Parsing datafusion-sqllogictest v55.1.0 (baseline)
      Parsed [   0.021s] (baseline)
    Checking datafusion-sqllogictest v55.1.0 -> v55.1.0 (no change; assume patch)
     Checked [   0.126s] 223 checks: 223 pass, 31 skip
     Summary no semver update required
    Finished [ 183.291s] datafusion-sqllogictest

@github-actions github-actions Bot added the auto detected api change Auto detected API change label Sep 14, 2026
@gruuya
gruuya force-pushed the hash-join-dynamic-pruning-minmax branch from 7b174d8 to f116035 Compare September 14, 2026 12:17
@gruuya gruuya changed the title Prune hash join probe side via dynamic discreete values from the build side Prune hash join probe side via dynamic discrete values from the build side Sep 14, 2026
@gruuya
gruuya force-pushed the hash-join-dynamic-pruning-minmax branch from f116035 to 542e11a Compare September 14, 2026 12:32
@github-actions github-actions Bot added the proto Related to proto crate label Sep 14, 2026
@gruuya
gruuya force-pushed the hash-join-dynamic-pruning-minmax branch from 542e11a to 4b9a166 Compare September 14, 2026 12:58
@github-actions github-actions Bot added the sqllogictest SQL Logic Tests (.slt) label Sep 14, 2026
@gruuya
gruuya force-pushed the hash-join-dynamic-pruning-minmax branch from 4b9a166 to e09baaa Compare September 14, 2026 13:04
@gruuya

gruuya commented Sep 14, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark tpch

@adriangbot

Copy link
Copy Markdown

@codecov-commenter

codecov-commenter commented Sep 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 78.66005% with 86 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.42%. Comparing base (714956b) to head (39f2d8c).

Files with missing lines Patch % Lines
datafusion/pruning/src/pruning_predicate.rs 73.02% 53 Missing and 12 partials ⚠️
datafusion/pruning/src/primitive_in_list.rs 44.82% 14 Missing and 2 partials ⚠️
...tafusion/physical-plan/src/joins/hash_join/exec.rs 84.21% 1 Missing and 2 partials ⚠️
...-plan/src/joins/hash_join/partitioned_hash_eval.rs 98.11% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##             main   #25292    +/-   ##
========================================
  Coverage   82.42%   82.42%            
========================================
  Files        1140     1140            
  Lines      435586   435968   +382     
  Branches   435586   435968   +382     
========================================
+ Hits       359042   359363   +321     
- Misses      54828    54869    +41     
- Partials    21716    21736    +20     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@2010YOUY01

Copy link
Copy Markdown
Contributor

@gruuya You can open a PR like it, to request permission:

jayzhan211

This comment was marked as duplicate.

@jayzhan211 jayzhan211 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @gruuya , here is a suggestion:

The sorted domain is rebuilt for every PruningPredicate, about 3× per file (file, row-group, page). Each build pushes up to 100k scalars, then runs sort_unstable + dedup. The OnceLock scalar cache is also dropped by with_new_children, which runs per file through the dynamic-filter remap and the expr adapter.

A/B on default config (release-nonlto): 2000-file Parquet probe, unclustered keys so nothing prunes. Off is hash_join_dynamic_pruning_max_distinct_values = 0.

build side off on (default)
100k Int64 keys 0.087–0.094 s 0.71–0.78 s
20k string keys 0.090–0.095 s 0.238–0.264 s

Repro:

COPY (SELECT value AS a, value % 2000 AS p FROM generate_series(1, 400000) t(value))
  TO 'many_int/' STORED AS PARQUET PARTITIONED BY (p);
COPY (SELECT value * 4 AS k FROM generate_series(1, 100000) t(value))
  TO 'dim_int.parquet' STORED AS PARQUET;
CREATE EXTERNAL TABLE probe_i STORED AS PARQUET LOCATION 'many_int/';
CREATE EXTERNAL TABLE dim_i STORED AS PARQUET LOCATION 'dim_int.parquet';
SELECT count(*) FROM dim_i JOIN probe_i ON dim_i.k = probe_i.a;
SET datafusion.optimizer.hash_join_dynamic_pruning_max_distinct_values = 0;
SELECT count(*) FROM dim_i JOIN probe_i ON dim_i.k = probe_i.a;

Sharing the scalar cache across with_new_children (diff below) is needed but recovered nothing on its own (0.74–0.79 s). The domain sort dominates.

Fix: build the sorted, deduplicated domain once per build side, behind the shared Arc. Have the pruning expression binary-search it, so per-file cost is O(log n). Until then, default the feature off or lower the cap.

-    pruning_scalars: LazyPruningScalars,
+    pruning_scalars: Arc<LazyPruningScalars>,
@@ fn with_new_children
-        Ok(Arc::new(HashTableLookupExpr::new(
-            children,
-            self.random_state.clone(),
-            Arc::clone(&self.map),
-            self.description.clone(),
-            self.pruning_scalars.raw.clone(),
-        )))
+        Ok(Arc::new(HashTableLookupExpr {
+            on_columns: children,
+            random_state: self.random_state.clone(),
+            map: Arc::clone(&self.map),
+            description: self.description.clone(),
+            pruning_scalars: Arc::clone(&self.pruning_scalars),
+        }))

@gruuya
gruuya force-pushed the hash-join-dynamic-pruning-minmax branch 2 times, most recently from 6d1dfad to 2b782bf Compare September 20, 2026 07:36
@gruuya

gruuya commented Sep 20, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @jayzhan211, that's a good point. I've clauded up a fix for that, alongside some other improvements that the agent flagged:

  • build the pruning expressions exactly once (including across with_new_children, file, row-group, page)
  • enabling the optimization for the partitioned path
  • release the raw array as soon as we build the pruning expression
  • avoid ScalarValue (which introduces a unneeded round-trip)
  • replace explicit dict-based deduping with implicit PrimitiveInListPruningExpr::new sort + dedup

That said, the example you provide is a worst case one for this feature: unclustered keys so nothing prunes meaning we expend the (now minimized and amortized) cost of creating the pruning expression and running it without any benefits.

Numbers I'm seeing

> COPY (SELECT value AS a, value % 2000 AS p FROM generate_series(1, 400000) t(value))
  TO 'many_int/' STORED AS PARQUET PARTITIONED BY (p);
COPY (SELECT value * 4 AS k FROM generate_series(1, 100000) t(value))
  TO 'dim_int.parquet' STORED AS PARQUET;
CREATE EXTERNAL TABLE probe_i STORED AS PARQUET LOCATION 'many_int/';
CREATE EXTERNAL TABLE dim_i STORED AS PARQUET LOCATION 'dim_int.parquet';
+--------+
| count  |
+--------+
| 400000 |
+--------+
1 row(s) fetched.
Elapsed 1.142 seconds.

+--------+
| count  |
+--------+
| 100000 |
+--------+
1 row(s) fetched.
Elapsed 0.007 seconds.

0 row(s) fetched.
Elapsed 0.227 seconds.

0 row(s) fetched.
Elapsed 0.001 seconds.

> SELECT count(*) FROM dim_i JOIN probe_i ON dim_i.k = probe_i.a; SELECT count(*) FROM dim_i JOIN probe_i ON dim_i.k = probe_i.a; SELECT count(*) FROM dim_i JOIN probe_i ON dim_i.k = probe_i.a;
+----------+
| count(*) |
+----------+
| 100000   |
+----------+
1 row(s) fetched.
Elapsed 0.088 seconds.

+----------+
| count(*) |
+----------+
| 100000   |
+----------+
1 row(s) fetched.
Elapsed 0.072 seconds.

+----------+
| count(*) |
+----------+
| 100000   |
+----------+
1 row(s) fetched.
Elapsed 0.072 seconds.

> SET datafusion.optimizer.hash_join_dynamic_pruning_max_distinct_values = 0;
0 row(s) fetched.
Elapsed 0.000 seconds.

> SELECT count(*) FROM dim_i JOIN probe_i ON dim_i.k = probe_i.a; SELECT count(*) FROM dim_i JOIN probe_i ON dim_i.k = probe_i.a; SELECT count(*) FROM dim_i JOIN probe_i ON dim_i.k = probe_i.a;
+----------+
| count(*) |
+----------+
| 100000   |
+----------+
1 row(s) fetched.
Elapsed 0.090 seconds.

+----------+
| count(*) |
+----------+
| 100000   |
+----------+
1 row(s) fetched.
Elapsed 0.070 seconds.

+----------+
| count(*) |
+----------+
| 100000   |
+----------+
1 row(s) fetched.
Elapsed 0.080 seconds.

So on and off are no longer off by a OOM but are very close by (and inside the noise margin). However off should always have the best time in this scenario by design.

I'm wondering what this means about the default value of hash_join_dynamic_pruning_max_distinct_values

  1. leave as is
  2. reduce (32K?)
  3. disable by default (0)

Also any chance you or @2010YOUY01 can kick-off the tpcds benchmarks, since I don't have the permissions yet?

@gruuya
gruuya force-pushed the hash-join-dynamic-pruning-minmax branch from 2b782bf to 91a2f15 Compare September 20, 2026 08:38
@jayzhan211

Copy link
Copy Markdown
Contributor

run benchmarks

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c5749427030-2528-8vrpx 6.12.94+ #1 SMP Tue Aug 4 08:44:15 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 hash-join-dynamic-pruning-minmax (91a2f15) to a522cd5 (merge-base) diff

Run configuration
run benchmark 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-c5749427030-2527-kh5fp 6.12.94+ #1 SMP Tue Aug 4 08:44:15 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 hash-join-dynamic-pruning-minmax (91a2f15) to a522cd5 (merge-base) diff

Run configuration
run benchmark 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-c5749427030-2529-45wxm 6.12.94+ #1 SMP Tue Aug 4 08:44:15 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 hash-join-dynamic-pruning-minmax (91a2f15) to a522cd5 (merge-base) diff

Run configuration
run benchmark 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)

Comparing hash-join-dynamic-pruning-minmax (91a2f15) to a522cd5 (merge-base) diff

Run configuration
run benchmark tpch
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 hash-join-dynamic-pruning-minmax
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Query     ┃     HEAD ┃ hash-join-dynamic-pruning-minmax ┃       Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━┩
│ QQuery 1  │ 41.93 ms │                         41.17 ms │    no change │
│ QQuery 2  │ 18.56 ms │                         19.03 ms │    no change │
│ QQuery 3  │ 29.10 ms │                         28.66 ms │    no change │
│ QQuery 4  │ 17.42 ms │                         18.25 ms │    no change │
│ QQuery 5  │ 35.87 ms │                         35.82 ms │    no change │
│ QQuery 6  │ 16.43 ms │                         16.53 ms │    no change │
│ QQuery 7  │ 42.52 ms │                         41.71 ms │    no change │
│ QQuery 8  │ 40.84 ms │                         47.15 ms │ 1.15x slower │
│ QQuery 9  │ 49.20 ms │                         50.74 ms │    no change │
│ QQuery 10 │ 41.16 ms │                         42.71 ms │    no change │
│ QQuery 11 │ 13.70 ms │                         13.75 ms │    no change │
│ QQuery 12 │ 21.41 ms │                         22.31 ms │    no change │
│ QQuery 13 │ 41.37 ms │                         40.61 ms │    no change │
│ QQuery 14 │ 24.96 ms │                         26.08 ms │    no change │
│ QQuery 15 │ 31.51 ms │                         31.41 ms │    no change │
│ QQuery 16 │ 14.33 ms │                         14.68 ms │    no change │
│ QQuery 17 │ 74.86 ms │                         76.25 ms │    no change │
│ QQuery 18 │ 61.19 ms │                         58.44 ms │    no change │
│ QQuery 19 │ 32.37 ms │                         32.22 ms │    no change │
│ QQuery 20 │ 32.57 ms │                         32.05 ms │    no change │
│ QQuery 21 │ 55.89 ms │                         57.95 ms │    no change │
│ QQuery 22 │ 14.14 ms │                         14.31 ms │    no change │
└───────────┴──────────┴──────────────────────────────────┴──────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary                               ┃          ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD)                               │ 751.34ms │
│ Total Time (hash-join-dynamic-pruning-minmax)   │ 761.83ms │
│ Average Time (HEAD)                             │  34.15ms │
│ Average Time (hash-join-dynamic-pruning-minmax) │  34.63ms │
│ Queries Faster                                  │        0 │
│ Queries Slower                                  │        1 │
│ Queries with No Change                          │       21 │
│ Queries with Failure                            │        0 │
└─────────────────────────────────────────────────┴──────────┘

Distribution per query (min / mean ±stddev / max):

Comparing HEAD and hash-join-dynamic-pruning-minmax
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                           HEAD ┃ hash-join-dynamic-pruning-minmax ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │ 41.93 / 43.77 ±1.06 / 45.11 ms │   41.17 / 41.83 ±0.89 / 43.58 ms │     no change │
│ QQuery 2  │ 18.56 / 19.10 ±0.42 / 19.63 ms │   19.03 / 19.60 ±0.94 / 21.47 ms │     no change │
│ QQuery 3  │ 29.10 / 29.35 ±0.27 / 29.85 ms │   28.66 / 29.97 ±1.10 / 31.96 ms │     no change │
│ QQuery 4  │ 17.42 / 17.95 ±0.66 / 19.24 ms │   18.25 / 18.68 ±0.50 / 19.61 ms │     no change │
│ QQuery 5  │ 35.87 / 36.14 ±0.21 / 36.47 ms │   35.82 / 36.13 ±0.37 / 36.81 ms │     no change │
│ QQuery 6  │ 16.43 / 16.76 ±0.23 / 17.16 ms │   16.53 / 16.63 ±0.08 / 16.76 ms │     no change │
│ QQuery 7  │ 42.52 / 44.23 ±2.60 / 49.35 ms │   41.71 / 43.89 ±2.65 / 49.11 ms │     no change │
│ QQuery 8  │ 40.84 / 41.55 ±0.66 / 42.74 ms │   47.15 / 47.27 ±0.11 / 47.43 ms │  1.14x slower │
│ QQuery 9  │ 49.20 / 51.44 ±1.89 / 54.94 ms │   50.74 / 51.64 ±0.52 / 52.13 ms │     no change │
│ QQuery 10 │ 41.16 / 41.61 ±0.48 / 42.54 ms │   42.71 / 43.24 ±0.33 / 43.68 ms │     no change │
│ QQuery 11 │ 13.70 / 13.84 ±0.11 / 14.01 ms │   13.75 / 14.21 ±0.53 / 15.17 ms │     no change │
│ QQuery 12 │ 21.41 / 21.88 ±0.39 / 22.59 ms │   22.31 / 22.85 ±0.64 / 24.02 ms │     no change │
│ QQuery 13 │ 41.37 / 41.86 ±0.50 / 42.68 ms │   40.61 / 41.98 ±1.64 / 45.08 ms │     no change │
│ QQuery 14 │ 24.96 / 25.20 ±0.14 / 25.32 ms │   26.08 / 26.39 ±0.33 / 27.01 ms │     no change │
│ QQuery 15 │ 31.51 / 31.77 ±0.18 / 32.03 ms │   31.41 / 32.06 ±0.51 / 32.76 ms │     no change │
│ QQuery 16 │ 14.33 / 14.52 ±0.16 / 14.75 ms │   14.68 / 14.91 ±0.14 / 15.08 ms │     no change │
│ QQuery 17 │ 74.86 / 75.86 ±0.77 / 76.74 ms │   76.25 / 77.14 ±1.29 / 79.64 ms │     no change │
│ QQuery 18 │ 61.19 / 62.91 ±1.16 / 64.22 ms │   58.44 / 59.27 ±0.79 / 60.33 ms │ +1.06x faster │
│ QQuery 19 │ 32.37 / 32.64 ±0.18 / 32.84 ms │   32.22 / 33.70 ±1.22 / 35.26 ms │     no change │
│ QQuery 20 │ 32.57 / 32.90 ±0.36 / 33.53 ms │   32.05 / 32.65 ±0.32 / 33.03 ms │     no change │
│ QQuery 21 │ 55.89 / 56.55 ±0.42 / 57.07 ms │   57.95 / 58.79 ±0.66 / 59.71 ms │     no change │
│ QQuery 22 │ 14.14 / 14.32 ±0.10 / 14.43 ms │   14.31 / 14.51 ±0.18 / 14.72 ms │     no change │
└───────────┴────────────────────────────────┴──────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary                               ┃          ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD)                               │ 766.14ms │
│ Total Time (hash-join-dynamic-pruning-minmax)   │ 777.32ms │
│ Average Time (HEAD)                             │  34.82ms │
│ Average Time (hash-join-dynamic-pruning-minmax) │  35.33ms │
│ Queries Faster                                  │        1 │
│ Queries Slower                                  │        1 │
│ Queries with No Change                          │       20 │
│ Queries with Failure                            │        0 │
└─────────────────────────────────────────────────┴──────────┘

Resource Usage

tpch — base (merge-base)

Metric Value
Wall time 5.0s
Peak memory 1.2 GiB
Avg memory 494.6 MiB
CPU user 21.7s
CPU sys 1.8s
Peak spill 0 B

tpch — branch

Metric Value
Wall time 5.0s
Peak memory 1.1 GiB
Avg memory 471.7 MiB
CPU user 21.0s
CPU sys 1.8s
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)

Comparing hash-join-dynamic-pruning-minmax (91a2f15) to a522cd5 (merge-base) diff

Run configuration
run benchmark tpcds
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 hash-join-dynamic-pruning-minmax
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Query     ┃       HEAD ┃ hash-join-dynamic-pruning-minmax ┃       Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━┩
│ QQuery 1  │    5.64 ms │                          5.65 ms │    no change │
│ QQuery 2  │   80.66 ms │                         81.33 ms │    no change │
│ QQuery 3  │   28.56 ms │                         29.28 ms │    no change │
│ QQuery 4  │  450.31 ms │                        465.57 ms │    no change │
│ QQuery 5  │   50.59 ms │                         50.65 ms │    no change │
│ QQuery 6  │   35.08 ms │                         38.00 ms │ 1.08x slower │
│ QQuery 7  │   74.26 ms │                         75.30 ms │    no change │
│ QQuery 8  │   35.81 ms │                         37.43 ms │    no change │
│ QQuery 9  │   51.02 ms │                         52.28 ms │    no change │
│ QQuery 10 │   61.48 ms │                         61.63 ms │    no change │
│ QQuery 11 │  282.07 ms │                        295.52 ms │    no change │
│ QQuery 12 │   28.51 ms │                         28.94 ms │    no change │
│ QQuery 13 │  117.27 ms │                        120.65 ms │    no change │
│ QQuery 14 │  391.33 ms │                        403.99 ms │    no change │
│ QQuery 15 │   54.07 ms │                         55.87 ms │    no change │
│ QQuery 16 │    6.26 ms │                          6.46 ms │    no change │
│ QQuery 17 │   77.20 ms │                         79.68 ms │    no change │
│ QQuery 18 │  102.47 ms │                        106.55 ms │    no change │
│ QQuery 19 │   40.98 ms │                         41.36 ms │    no change │
│ QQuery 20 │   35.65 ms │                         35.44 ms │    no change │
│ QQuery 21 │   17.38 ms │                         17.13 ms │    no change │
│ QQuery 22 │   65.16 ms │                         63.99 ms │    no change │
│ QQuery 23 │  316.47 ms │                        318.51 ms │    no change │
│ QQuery 24 │  197.86 ms │                        203.47 ms │    no change │
│ QQuery 25 │  106.91 ms │                        108.18 ms │    no change │
│ QQuery 26 │   49.41 ms │                         48.31 ms │    no change │
│ QQuery 27 │    6.14 ms │                          6.10 ms │    no change │
│ QQuery 28 │   57.57 ms │                         56.45 ms │    no change │
│ QQuery 29 │   94.82 ms │                         96.92 ms │    no change │
│ QQuery 30 │   32.40 ms │                         33.53 ms │    no change │
│ QQuery 31 │  108.51 ms │                        111.17 ms │    no change │
│ QQuery 32 │   19.99 ms │                         20.53 ms │    no change │
│ QQuery 33 │   37.32 ms │                         37.99 ms │    no change │
│ QQuery 34 │   10.22 ms │                         10.26 ms │    no change │
│ QQuery 35 │   72.16 ms │                         77.02 ms │ 1.07x slower │
│ QQuery 36 │    5.83 ms │                          6.34 ms │ 1.09x slower │
│ QQuery 37 │    6.79 ms │                          7.11 ms │    no change │
│ QQuery 38 │   62.41 ms │                         65.89 ms │ 1.06x slower │
│ QQuery 39 │   74.25 ms │                         74.38 ms │    no change │
│ QQuery 40 │   23.73 ms │                         24.29 ms │    no change │
│ QQuery 41 │   11.41 ms │                         11.48 ms │    no change │
│ QQuery 42 │   23.76 ms │                         23.91 ms │    no change │
│ QQuery 43 │    5.14 ms │                          5.14 ms │    no change │
│ QQuery 44 │    9.40 ms │                          9.39 ms │    no change │
│ QQuery 45 │   37.02 ms │                         39.89 ms │ 1.08x slower │
│ QQuery 46 │   11.89 ms │                         11.91 ms │    no change │
│ QQuery 47 │  222.91 ms │                        224.99 ms │    no change │
│ QQuery 48 │   94.76 ms │                         95.95 ms │    no change │
│ QQuery 49 │   69.51 ms │                         69.81 ms │    no change │
│ QQuery 50 │   57.36 ms │                         59.34 ms │    no change │
│ QQuery 51 │   93.41 ms │                         94.77 ms │    no change │
│ QQuery 52 │   24.00 ms │                         24.24 ms │    no change │
│ QQuery 53 │   29.04 ms │                         29.18 ms │    no change │
│ QQuery 54 │   53.89 ms │                         53.64 ms │    no change │
│ QQuery 55 │   23.53 ms │                         23.62 ms │    no change │
│ QQuery 56 │   38.74 ms │                         38.85 ms │    no change │
│ QQuery 57 │  167.43 ms │                        170.26 ms │    no change │
│ QQuery 58 │  107.78 ms │                        110.09 ms │    no change │
│ QQuery 59 │  116.13 ms │                        115.95 ms │    no change │
│ QQuery 60 │   39.09 ms │                         39.25 ms │    no change │
│ QQuery 61 │   12.13 ms │                         12.10 ms │    no change │
│ QQuery 62 │   44.18 ms │                         44.88 ms │    no change │
│ QQuery 63 │   29.27 ms │                         29.22 ms │    no change │
│ QQuery 64 │  363.58 ms │                        371.17 ms │    no change │
│ QQuery 65 │  134.10 ms │                        130.66 ms │    no change │
│ QQuery 66 │   77.13 ms │                         76.21 ms │    no change │
│ QQuery 67 │  258.64 ms │                        252.95 ms │    no change │
│ QQuery 68 │   12.30 ms │                         11.99 ms │    no change │
│ QQuery 69 │   57.10 ms │                         56.43 ms │    no change │
│ QQuery 70 │  104.29 ms │                        103.80 ms │    no change │
│ QQuery 71 │   35.04 ms │                         34.95 ms │    no change │
│ QQuery 72 │ 1733.92 ms │                       1784.23 ms │    no change │
│ QQuery 73 │   10.45 ms │                         10.76 ms │    no change │
│ QQuery 74 │  165.40 ms │                        165.15 ms │    no change │
│ QQuery 75 │  141.49 ms │                        142.72 ms │    no change │
│ QQuery 76 │   34.68 ms │                         34.92 ms │    no change │
│ QQuery 77 │   61.23 ms │                         59.91 ms │    no change │
│ QQuery 78 │  166.77 ms │                        160.12 ms │    no change │
│ QQuery 79 │   67.01 ms │                         67.13 ms │    no change │
│ QQuery 80 │   96.88 ms │                         94.86 ms │    no change │
│ QQuery 81 │   26.57 ms │                         26.62 ms │    no change │
│ QQuery 82 │   17.02 ms │                         16.76 ms │    no change │
│ QQuery 83 │   34.97 ms │                         33.64 ms │    no change │
│ QQuery 84 │   30.39 ms │                         29.92 ms │    no change │
│ QQuery 85 │  103.88 ms │                        104.10 ms │    no change │
│ QQuery 86 │   25.82 ms │                         25.76 ms │    no change │
│ QQuery 87 │   63.29 ms │                         67.01 ms │ 1.06x slower │
│ QQuery 88 │   61.03 ms │                         61.12 ms │    no change │
│ QQuery 89 │   35.59 ms │                         35.11 ms │    no change │
│ QQuery 90 │   16.70 ms │                         16.91 ms │    no change │
│ QQuery 91 │   44.89 ms │                         44.93 ms │    no change │
│ QQuery 92 │   30.03 ms │                         29.73 ms │    no change │
│ QQuery 93 │   49.47 ms │                         49.25 ms │    no change │
│ QQuery 94 │   39.10 ms │                         38.82 ms │    no change │
│ QQuery 95 │   80.50 ms │                         97.74 ms │ 1.21x slower │
│ QQuery 96 │   24.03 ms │                         23.86 ms │    no change │
│ QQuery 97 │   50.77 ms │                         50.59 ms │    no change │
│ QQuery 98 │   42.73 ms │                         42.52 ms │    no change │
│ QQuery 99 │   65.75 ms │                         65.55 ms │    no change │
└───────────┴────────────┴──────────────────────────────────┴──────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary                               ┃           ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD)                               │ 9058.90ms │
│ Total Time (hash-join-dynamic-pruning-minmax)   │ 9214.90ms │
│ Average Time (HEAD)                             │   91.50ms │
│ Average Time (hash-join-dynamic-pruning-minmax) │   93.08ms │
│ Queries Faster                                  │         0 │
│ Queries Slower                                  │         7 │
│ Queries with No Change                          │        92 │
│ Queries with Failure                            │         0 │
└─────────────────────────────────────────────────┴───────────┘

Distribution per query (min / mean ±stddev / max):

Comparing HEAD and hash-join-dynamic-pruning-minmax
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃      hash-join-dynamic-pruning-minmax ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │           5.64 / 6.30 ±1.01 / 8.29 ms │           5.65 / 6.16 ±0.96 / 8.08 ms │     no change │
│ QQuery 2  │        80.66 / 81.08 ±0.44 / 81.83 ms │        81.33 / 81.64 ±0.22 / 81.94 ms │     no change │
│ QQuery 3  │        28.56 / 28.81 ±0.16 / 29.02 ms │        29.28 / 29.40 ±0.10 / 29.54 ms │     no change │
│ QQuery 4  │     450.31 / 456.02 ±4.76 / 462.29 ms │     465.57 / 471.31 ±4.12 / 478.04 ms │     no change │
│ QQuery 5  │        50.59 / 50.89 ±0.21 / 51.20 ms │        50.65 / 53.96 ±5.20 / 64.31 ms │  1.06x slower │
│ QQuery 6  │        35.08 / 35.89 ±0.47 / 36.46 ms │        38.00 / 38.47 ±0.44 / 39.04 ms │  1.07x slower │
│ QQuery 7  │        74.26 / 75.04 ±0.47 / 75.61 ms │        75.30 / 75.89 ±0.44 / 76.46 ms │     no change │
│ QQuery 8  │        35.81 / 36.11 ±0.15 / 36.25 ms │        37.43 / 37.58 ±0.17 / 37.90 ms │     no change │
│ QQuery 9  │        51.02 / 54.64 ±3.30 / 59.79 ms │        52.28 / 53.61 ±1.22 / 55.79 ms │     no change │
│ QQuery 10 │        61.48 / 62.51 ±0.71 / 63.47 ms │        61.63 / 62.32 ±0.42 / 62.80 ms │     no change │
│ QQuery 11 │     282.07 / 284.97 ±2.70 / 289.68 ms │     295.52 / 300.95 ±4.91 / 307.07 ms │  1.06x slower │
│ QQuery 12 │        28.51 / 29.10 ±0.44 / 29.63 ms │        28.94 / 29.53 ±0.40 / 30.00 ms │     no change │
│ QQuery 13 │     117.27 / 119.47 ±3.06 / 125.48 ms │     120.65 / 121.75 ±1.22 / 123.98 ms │     no change │
│ QQuery 14 │     391.33 / 399.56 ±6.00 / 409.05 ms │     403.99 / 404.69 ±0.70 / 405.86 ms │     no change │
│ QQuery 15 │        54.07 / 55.42 ±0.89 / 56.28 ms │        55.87 / 56.41 ±0.48 / 57.05 ms │     no change │
│ QQuery 16 │           6.26 / 6.45 ±0.25 / 6.93 ms │           6.46 / 6.66 ±0.14 / 6.88 ms │     no change │
│ QQuery 17 │        77.20 / 77.78 ±0.45 / 78.43 ms │        79.68 / 80.52 ±0.54 / 81.31 ms │     no change │
│ QQuery 18 │     102.47 / 103.42 ±0.66 / 104.20 ms │     106.55 / 108.14 ±1.14 / 110.10 ms │     no change │
│ QQuery 19 │        40.98 / 41.25 ±0.47 / 42.19 ms │        41.36 / 41.72 ±0.33 / 42.27 ms │     no change │
│ QQuery 20 │        35.65 / 36.62 ±0.81 / 37.80 ms │        35.44 / 36.05 ±0.50 / 36.95 ms │     no change │
│ QQuery 21 │        17.38 / 17.48 ±0.09 / 17.62 ms │        17.13 / 17.26 ±0.14 / 17.50 ms │     no change │
│ QQuery 22 │        65.16 / 66.74 ±1.34 / 68.44 ms │        63.99 / 64.84 ±0.63 / 65.69 ms │     no change │
│ QQuery 23 │     316.47 / 320.26 ±2.67 / 323.59 ms │     318.51 / 321.47 ±2.50 / 326.00 ms │     no change │
│ QQuery 24 │     197.86 / 203.25 ±5.23 / 213.13 ms │     203.47 / 208.51 ±5.86 / 219.45 ms │     no change │
│ QQuery 25 │     106.91 / 109.45 ±2.87 / 114.77 ms │     108.18 / 110.39 ±1.35 / 112.31 ms │     no change │
│ QQuery 26 │        49.41 / 49.84 ±0.68 / 51.18 ms │        48.31 / 48.74 ±0.31 / 49.08 ms │     no change │
│ QQuery 27 │           6.14 / 6.35 ±0.24 / 6.81 ms │           6.10 / 6.26 ±0.11 / 6.43 ms │     no change │
│ QQuery 28 │        57.57 / 60.49 ±1.61 / 62.38 ms │        56.45 / 60.65 ±2.41 / 63.94 ms │     no change │
│ QQuery 29 │       94.82 / 98.73 ±5.19 / 109.00 ms │       96.92 / 98.75 ±1.35 / 100.99 ms │     no change │
│ QQuery 30 │        32.40 / 32.86 ±0.49 / 33.66 ms │        33.53 / 33.86 ±0.27 / 34.36 ms │     no change │
│ QQuery 31 │     108.51 / 110.70 ±2.00 / 113.98 ms │     111.17 / 113.98 ±3.62 / 121.12 ms │     no change │
│ QQuery 32 │        19.99 / 20.44 ±0.31 / 20.87 ms │        20.53 / 20.69 ±0.11 / 20.85 ms │     no change │
│ QQuery 33 │        37.32 / 37.55 ±0.18 / 37.77 ms │        37.99 / 38.42 ±0.40 / 39.14 ms │     no change │
│ QQuery 34 │        10.22 / 10.39 ±0.11 / 10.54 ms │        10.26 / 10.66 ±0.21 / 10.88 ms │     no change │
│ QQuery 35 │        72.16 / 73.79 ±1.04 / 74.80 ms │        77.02 / 77.71 ±0.57 / 78.65 ms │  1.05x slower │
│ QQuery 36 │           5.83 / 6.09 ±0.21 / 6.28 ms │           6.34 / 6.43 ±0.11 / 6.64 ms │  1.06x slower │
│ QQuery 37 │           6.79 / 6.91 ±0.10 / 7.08 ms │           7.11 / 7.33 ±0.17 / 7.60 ms │  1.06x slower │
│ QQuery 38 │        62.41 / 64.30 ±2.19 / 68.35 ms │        65.89 / 67.65 ±0.91 / 68.46 ms │  1.05x slower │
│ QQuery 39 │        74.25 / 75.36 ±0.98 / 77.07 ms │        74.38 / 75.01 ±0.52 / 75.98 ms │     no change │
│ QQuery 40 │        23.73 / 24.24 ±0.47 / 25.13 ms │        24.29 / 24.61 ±0.25 / 24.98 ms │     no change │
│ QQuery 41 │        11.41 / 11.62 ±0.12 / 11.78 ms │        11.48 / 11.69 ±0.23 / 12.13 ms │     no change │
│ QQuery 42 │        23.76 / 24.13 ±0.42 / 24.91 ms │        23.91 / 24.56 ±0.61 / 25.39 ms │     no change │
│ QQuery 43 │           5.14 / 5.29 ±0.17 / 5.62 ms │           5.14 / 5.34 ±0.20 / 5.72 ms │     no change │
│ QQuery 44 │           9.40 / 9.47 ±0.07 / 9.59 ms │           9.39 / 9.69 ±0.23 / 9.97 ms │     no change │
│ QQuery 45 │        37.02 / 40.16 ±2.82 / 44.89 ms │        39.89 / 41.33 ±1.01 / 42.62 ms │     no change │
│ QQuery 46 │        11.89 / 12.30 ±0.35 / 12.81 ms │        11.91 / 12.83 ±0.83 / 14.37 ms │     no change │
│ QQuery 47 │     222.91 / 227.93 ±3.91 / 234.83 ms │     224.99 / 229.34 ±2.31 / 231.13 ms │     no change │
│ QQuery 48 │        94.76 / 95.17 ±0.47 / 95.87 ms │        95.95 / 96.70 ±0.44 / 97.09 ms │     no change │
│ QQuery 49 │        69.51 / 72.94 ±4.66 / 82.12 ms │        69.81 / 71.11 ±1.07 / 72.93 ms │     no change │
│ QQuery 50 │        57.36 / 57.69 ±0.47 / 58.63 ms │        59.34 / 59.90 ±0.43 / 60.53 ms │     no change │
│ QQuery 51 │        93.41 / 96.44 ±2.10 / 99.89 ms │       94.77 / 96.83 ±2.37 / 101.33 ms │     no change │
│ QQuery 52 │        24.00 / 27.17 ±4.66 / 36.32 ms │        24.24 / 24.56 ±0.21 / 24.83 ms │ +1.11x faster │
│ QQuery 53 │        29.04 / 29.52 ±0.32 / 29.98 ms │        29.18 / 30.25 ±1.62 / 33.49 ms │     no change │
│ QQuery 54 │        53.89 / 54.23 ±0.35 / 54.71 ms │        53.64 / 54.53 ±0.53 / 55.10 ms │     no change │
│ QQuery 55 │        23.53 / 24.11 ±0.47 / 24.76 ms │        23.62 / 23.86 ±0.17 / 24.08 ms │     no change │
│ QQuery 56 │        38.74 / 39.30 ±0.42 / 39.87 ms │        38.85 / 41.51 ±3.98 / 49.34 ms │  1.06x slower │
│ QQuery 57 │     167.43 / 169.68 ±2.50 / 174.24 ms │     170.26 / 172.00 ±1.91 / 175.72 ms │     no change │
│ QQuery 58 │     107.78 / 109.64 ±1.47 / 111.57 ms │     110.09 / 111.65 ±1.96 / 115.46 ms │     no change │
│ QQuery 59 │     116.13 / 117.34 ±1.10 / 119.42 ms │     115.95 / 116.94 ±0.71 / 117.96 ms │     no change │
│ QQuery 60 │        39.09 / 40.14 ±0.84 / 41.51 ms │        39.25 / 40.31 ±0.69 / 41.28 ms │     no change │
│ QQuery 61 │        12.13 / 12.25 ±0.10 / 12.40 ms │        12.10 / 12.19 ±0.09 / 12.33 ms │     no change │
│ QQuery 62 │        44.18 / 45.98 ±2.37 / 50.67 ms │        44.88 / 45.92 ±0.88 / 47.35 ms │     no change │
│ QQuery 63 │        29.27 / 29.69 ±0.34 / 30.08 ms │        29.22 / 29.70 ±0.39 / 30.34 ms │     no change │
│ QQuery 64 │     363.58 / 370.41 ±5.28 / 376.53 ms │     371.17 / 377.56 ±5.32 / 384.03 ms │     no change │
│ QQuery 65 │     134.10 / 138.10 ±2.95 / 143.05 ms │     130.66 / 133.79 ±2.30 / 137.05 ms │     no change │
│ QQuery 66 │        77.13 / 80.11 ±3.04 / 85.63 ms │        76.21 / 78.26 ±1.37 / 80.37 ms │     no change │
│ QQuery 67 │     258.64 / 263.26 ±3.48 / 268.04 ms │     252.95 / 257.46 ±3.40 / 263.06 ms │     no change │
│ QQuery 68 │        12.30 / 12.46 ±0.11 / 12.59 ms │        11.99 / 12.23 ±0.20 / 12.54 ms │     no change │
│ QQuery 69 │        57.10 / 57.53 ±0.41 / 58.17 ms │        56.43 / 60.99 ±7.04 / 75.02 ms │  1.06x slower │
│ QQuery 70 │     104.29 / 108.74 ±4.90 / 117.50 ms │     103.80 / 105.68 ±1.75 / 108.85 ms │     no change │
│ QQuery 71 │        35.04 / 35.74 ±0.67 / 36.73 ms │        34.95 / 35.52 ±0.32 / 35.79 ms │     no change │
│ QQuery 72 │ 1733.92 / 1800.01 ±58.89 / 1906.09 ms │ 1784.23 / 1845.94 ±78.99 / 1990.78 ms │     no change │
│ QQuery 73 │        10.45 / 10.77 ±0.29 / 11.26 ms │        10.76 / 11.16 ±0.24 / 11.44 ms │     no change │
│ QQuery 74 │     165.40 / 173.48 ±6.29 / 183.91 ms │     165.15 / 168.80 ±2.24 / 171.85 ms │     no change │
│ QQuery 75 │     141.49 / 143.52 ±1.55 / 145.80 ms │     142.72 / 143.98 ±0.76 / 144.76 ms │     no change │
│ QQuery 76 │        34.68 / 35.02 ±0.22 / 35.38 ms │        34.92 / 35.15 ±0.19 / 35.44 ms │     no change │
│ QQuery 77 │        61.23 / 62.04 ±0.78 / 63.49 ms │        59.91 / 62.31 ±3.43 / 69.08 ms │     no change │
│ QQuery 78 │     166.77 / 169.94 ±2.93 / 174.94 ms │     160.12 / 165.69 ±5.17 / 172.58 ms │     no change │
│ QQuery 79 │        67.01 / 67.89 ±0.76 / 69.13 ms │        67.13 / 67.86 ±0.53 / 68.69 ms │     no change │
│ QQuery 80 │      96.88 / 100.02 ±3.46 / 106.71 ms │        94.86 / 96.10 ±0.74 / 97.14 ms │     no change │
│ QQuery 81 │        26.57 / 27.58 ±1.12 / 29.72 ms │        26.62 / 28.79 ±3.75 / 36.28 ms │     no change │
│ QQuery 82 │        17.02 / 17.31 ±0.23 / 17.55 ms │        16.76 / 17.13 ±0.35 / 17.66 ms │     no change │
│ QQuery 83 │        34.97 / 35.61 ±0.58 / 36.51 ms │        33.64 / 33.97 ±0.27 / 34.42 ms │     no change │
│ QQuery 84 │        30.39 / 30.75 ±0.29 / 31.25 ms │        29.92 / 30.50 ±0.67 / 31.66 ms │     no change │
│ QQuery 85 │     103.88 / 107.84 ±4.33 / 116.25 ms │     104.10 / 104.64 ±0.39 / 105.24 ms │     no change │
│ QQuery 86 │        25.82 / 26.31 ±0.50 / 27.26 ms │        25.76 / 27.59 ±2.87 / 33.32 ms │     no change │
│ QQuery 87 │        63.29 / 64.17 ±0.45 / 64.60 ms │        67.01 / 67.38 ±0.20 / 67.56 ms │  1.05x slower │
│ QQuery 88 │        61.03 / 63.77 ±4.70 / 73.15 ms │        61.12 / 61.83 ±0.61 / 62.79 ms │     no change │
│ QQuery 89 │        35.59 / 35.81 ±0.18 / 36.12 ms │        35.11 / 35.56 ±0.35 / 35.93 ms │     no change │
│ QQuery 90 │        16.70 / 17.02 ±0.25 / 17.34 ms │        16.91 / 16.98 ±0.07 / 17.10 ms │     no change │
│ QQuery 91 │        44.89 / 45.25 ±0.21 / 45.45 ms │        44.93 / 48.12 ±5.60 / 59.31 ms │  1.06x slower │
│ QQuery 92 │        30.03 / 30.38 ±0.30 / 30.88 ms │        29.73 / 31.32 ±1.34 / 33.20 ms │     no change │
│ QQuery 93 │        49.47 / 50.06 ±0.46 / 50.66 ms │        49.25 / 50.75 ±1.05 / 51.90 ms │     no change │
│ QQuery 94 │        39.10 / 39.33 ±0.23 / 39.69 ms │        38.82 / 39.19 ±0.20 / 39.35 ms │     no change │
│ QQuery 95 │        80.50 / 81.77 ±1.02 / 83.59 ms │       97.74 / 99.25 ±0.85 / 100.03 ms │  1.21x slower │
│ QQuery 96 │        24.03 / 24.13 ±0.10 / 24.26 ms │        23.86 / 24.42 ±0.61 / 25.61 ms │     no change │
│ QQuery 97 │        50.77 / 52.67 ±1.11 / 53.82 ms │        50.59 / 52.00 ±1.36 / 54.23 ms │     no change │
│ QQuery 98 │        42.73 / 43.33 ±0.45 / 44.03 ms │        42.52 / 43.38 ±0.49 / 44.02 ms │     no change │
│ QQuery 99 │        65.75 / 66.70 ±1.14 / 68.93 ms │        65.55 / 65.94 ±0.32 / 66.28 ms │     no change │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary                               ┃           ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD)                               │ 9277.61ms │
│ Total Time (hash-join-dynamic-pruning-minmax)   │ 9409.96ms │
│ Average Time (HEAD)                             │   93.71ms │
│ Average Time (hash-join-dynamic-pruning-minmax) │   95.05ms │
│ Queries Faster                                  │         1 │
│ Queries Slower                                  │        12 │
│ Queries with No Change                          │        86 │
│ Queries with Failure                            │         0 │
└─────────────────────────────────────────────────┴───────────┘

Resource Usage

tpcds — base (merge-base)

Metric Value
Wall time 50.0s
Peak memory 2.1 GiB
Avg memory 1.3 GiB
CPU user 203.7s
CPU sys 5.4s
Peak spill 0 B

tpcds — branch

Metric Value
Wall time 50.0s
Peak memory 1.9 GiB
Avg memory 1.4 GiB
CPU user 204.6s
CPU sys 5.5s
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)

Comparing hash-join-dynamic-pruning-minmax (91a2f15) to a522cd5 (merge-base) diff

Run configuration
run benchmark clickbench_partitioned
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 hash-join-dynamic-pruning-minmax
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃       HEAD ┃ hash-join-dynamic-pruning-minmax ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0  │    1.24 ms │                          1.33 ms │  1.07x slower │
│ QQuery 1  │   11.55 ms │                         11.78 ms │     no change │
│ QQuery 2  │   37.02 ms │                         36.96 ms │     no change │
│ QQuery 3  │   31.29 ms │                         31.80 ms │     no change │
│ QQuery 4  │  244.36 ms │                        246.58 ms │     no change │
│ QQuery 5  │  279.60 ms │                        280.37 ms │     no change │
│ QQuery 6  │    1.31 ms │                          1.31 ms │     no change │
│ QQuery 7  │   13.45 ms │                         13.60 ms │     no change │
│ QQuery 8  │  347.13 ms │                        353.73 ms │     no change │
│ QQuery 9  │  487.51 ms │                        484.36 ms │     no change │
│ QQuery 10 │   66.36 ms │                         65.91 ms │     no change │
│ QQuery 11 │   77.91 ms │                         75.99 ms │     no change │
│ QQuery 12 │  278.11 ms │                        280.29 ms │     no change │
│ QQuery 13 │  375.67 ms │                        381.69 ms │     no change │
│ QQuery 14 │  289.30 ms │                        288.10 ms │     no change │
│ QQuery 15 │  298.24 ms │                        301.21 ms │     no change │
│ QQuery 16 │  645.50 ms │                        635.16 ms │     no change │
│ QQuery 17 │  648.22 ms │                        657.52 ms │     no change │
│ QQuery 18 │ 1328.20 ms │                       1297.59 ms │     no change │
│ QQuery 19 │   28.54 ms │                         28.60 ms │     no change │
│ QQuery 20 │  516.73 ms │                        529.05 ms │     no change │
│ QQuery 21 │  514.78 ms │                        521.52 ms │     no change │
│ QQuery 22 │  993.07 ms │                       1002.79 ms │     no change │
│ QQuery 23 │ 3168.25 ms │                       3129.48 ms │     no change │
│ QQuery 24 │   40.10 ms │                         40.35 ms │     no change │
│ QQuery 25 │  106.34 ms │                        105.50 ms │     no change │
│ QQuery 26 │   41.27 ms │                         40.95 ms │     no change │
│ QQuery 27 │  519.46 ms │                        512.41 ms │     no change │
│ QQuery 28 │ 2878.22 ms │                       2978.74 ms │     no change │
│ QQuery 29 │   42.38 ms │                         42.33 ms │     no change │
│ QQuery 30 │  318.41 ms │                        317.51 ms │     no change │
│ QQuery 31 │  281.97 ms │                        278.77 ms │     no change │
│ QQuery 32 │  971.10 ms │                        994.19 ms │     no change │
│ QQuery 33 │ 1505.66 ms │                       1502.38 ms │     no change │
│ QQuery 34 │ 1535.50 ms │                       1533.86 ms │     no change │
│ QQuery 35 │  312.56 ms │                        317.94 ms │     no change │
│ QQuery 36 │   65.64 ms │                         67.95 ms │     no change │
│ QQuery 37 │   35.92 ms │                         35.89 ms │     no change │
│ QQuery 38 │   41.17 ms │                         41.20 ms │     no change │
│ QQuery 39 │  154.23 ms │                        145.50 ms │ +1.06x faster │
│ QQuery 40 │   14.65 ms │                         14.48 ms │     no change │
│ QQuery 41 │   14.33 ms │                         14.57 ms │     no change │
│ QQuery 42 │   13.91 ms │                         14.66 ms │  1.05x slower │
└───────────┴────────────┴──────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                               ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                               │ 19576.15ms │
│ Total Time (hash-join-dynamic-pruning-minmax)   │ 19655.88ms │
│ Average Time (HEAD)                             │   455.26ms │
│ Average Time (hash-join-dynamic-pruning-minmax) │   457.11ms │
│ Queries Faster                                  │          1 │
│ Queries Slower                                  │          2 │
│ Queries with No Change                          │         40 │
│ Queries with Failure                            │          0 │
└─────────────────────────────────────────────────┴────────────┘

Distribution per query (min / mean ±stddev / max):

Comparing HEAD and hash-join-dynamic-pruning-minmax
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃      hash-join-dynamic-pruning-minmax ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0  │          1.24 / 4.16 ±5.69 / 15.54 ms │          1.33 / 4.30 ±5.76 / 15.82 ms │     no change │
│ QQuery 1  │        11.55 / 11.94 ±0.22 / 12.19 ms │        11.78 / 11.99 ±0.16 / 12.19 ms │     no change │
│ QQuery 2  │        37.02 / 37.34 ±0.21 / 37.65 ms │        36.96 / 37.26 ±0.29 / 37.77 ms │     no change │
│ QQuery 3  │        31.29 / 32.69 ±1.02 / 33.88 ms │        31.80 / 32.00 ±0.16 / 32.23 ms │     no change │
│ QQuery 4  │     244.36 / 249.16 ±3.45 / 253.68 ms │     246.58 / 254.37 ±4.93 / 259.32 ms │     no change │
│ QQuery 5  │     279.60 / 288.54 ±5.13 / 294.55 ms │     280.37 / 284.58 ±4.18 / 290.05 ms │     no change │
│ QQuery 6  │           1.31 / 1.46 ±0.24 / 1.94 ms │          1.31 / 4.27 ±5.38 / 15.02 ms │  2.93x slower │
│ QQuery 7  │        13.45 / 15.92 ±4.20 / 24.28 ms │        13.60 / 14.00 ±0.24 / 14.33 ms │ +1.14x faster │
│ QQuery 8  │     347.13 / 352.49 ±3.24 / 356.79 ms │     353.73 / 356.61 ±2.18 / 358.88 ms │     no change │
│ QQuery 9  │     487.51 / 492.37 ±4.48 / 499.79 ms │     484.36 / 496.47 ±8.05 / 507.36 ms │     no change │
│ QQuery 10 │        66.36 / 68.29 ±1.39 / 70.63 ms │        65.91 / 66.57 ±0.51 / 67.08 ms │     no change │
│ QQuery 11 │        77.91 / 80.05 ±2.60 / 85.09 ms │        75.99 / 77.16 ±1.20 / 79.47 ms │     no change │
│ QQuery 12 │     278.11 / 284.33 ±5.27 / 293.39 ms │     280.29 / 288.20 ±4.91 / 293.25 ms │     no change │
│ QQuery 13 │     375.67 / 378.77 ±2.57 / 382.92 ms │     381.69 / 387.02 ±3.52 / 391.41 ms │     no change │
│ QQuery 14 │     289.30 / 295.82 ±5.67 / 305.55 ms │     288.10 / 298.17 ±9.22 / 314.53 ms │     no change │
│ QQuery 15 │     298.24 / 304.01 ±3.02 / 306.86 ms │     301.21 / 310.69 ±8.44 / 322.18 ms │     no change │
│ QQuery 16 │     645.50 / 653.88 ±6.65 / 660.58 ms │    635.16 / 651.31 ±13.32 / 669.39 ms │     no change │
│ QQuery 17 │    648.22 / 659.79 ±10.95 / 679.07 ms │     657.52 / 666.38 ±6.52 / 675.12 ms │     no change │
│ QQuery 18 │ 1328.20 / 1346.87 ±13.13 / 1367.81 ms │ 1297.59 / 1331.71 ±25.58 / 1366.46 ms │     no change │
│ QQuery 19 │       28.54 / 40.13 ±19.26 / 78.19 ms │       28.60 / 36.14 ±11.16 / 57.59 ms │ +1.11x faster │
│ QQuery 20 │     516.73 / 528.97 ±8.47 / 541.93 ms │    529.05 / 551.45 ±27.51 / 604.43 ms │     no change │
│ QQuery 21 │     514.78 / 519.37 ±7.50 / 534.32 ms │     521.52 / 527.71 ±5.98 / 536.67 ms │     no change │
│ QQuery 22 │  993.07 / 1035.25 ±22.78 / 1055.73 ms │ 1002.79 / 1025.34 ±20.03 / 1054.97 ms │     no change │
│ QQuery 23 │ 3168.25 / 3193.79 ±21.43 / 3220.34 ms │ 3129.48 / 3160.22 ±23.77 / 3189.73 ms │     no change │
│ QQuery 24 │       40.10 / 47.89 ±14.14 / 76.15 ms │        40.35 / 44.74 ±6.45 / 57.55 ms │ +1.07x faster │
│ QQuery 25 │     106.34 / 111.65 ±7.58 / 126.08 ms │     105.50 / 107.17 ±1.33 / 109.00 ms │     no change │
│ QQuery 26 │        41.27 / 45.09 ±5.84 / 56.73 ms │        40.95 / 43.37 ±3.00 / 48.96 ms │     no change │
│ QQuery 27 │     519.46 / 526.61 ±8.59 / 541.38 ms │     512.41 / 523.89 ±7.73 / 534.43 ms │     no change │
│ QQuery 28 │ 2878.22 / 2928.81 ±27.96 / 2962.32 ms │ 2978.74 / 2991.79 ±10.40 / 3005.97 ms │     no change │
│ QQuery 29 │       42.38 / 53.12 ±12.72 / 76.35 ms │        42.33 / 42.43 ±0.12 / 42.66 ms │ +1.25x faster │
│ QQuery 30 │     318.41 / 323.89 ±5.87 / 335.29 ms │     317.51 / 328.57 ±6.80 / 335.51 ms │     no change │
│ QQuery 31 │     281.97 / 299.84 ±9.92 / 310.60 ms │     278.77 / 292.04 ±7.27 / 299.90 ms │     no change │
│ QQuery 32 │  971.10 / 1005.09 ±28.33 / 1045.24 ms │  994.19 / 1020.62 ±29.08 / 1067.22 ms │     no change │
│ QQuery 33 │  1505.66 / 1519.66 ±7.24 / 1526.45 ms │ 1502.38 / 1558.35 ±43.00 / 1614.75 ms │     no change │
│ QQuery 34 │ 1535.50 / 1564.47 ±23.68 / 1596.97 ms │ 1533.86 / 1565.42 ±31.23 / 1618.46 ms │     no change │
│ QQuery 35 │    312.56 / 339.10 ±14.77 / 356.94 ms │    317.94 / 358.63 ±51.33 / 459.24 ms │  1.06x slower │
│ QQuery 36 │        65.64 / 70.45 ±4.08 / 78.01 ms │        67.95 / 72.53 ±5.11 / 81.95 ms │     no change │
│ QQuery 37 │        35.92 / 40.13 ±6.26 / 52.44 ms │        35.89 / 36.82 ±0.98 / 38.33 ms │ +1.09x faster │
│ QQuery 38 │        41.17 / 44.92 ±2.33 / 48.46 ms │        41.20 / 43.44 ±1.70 / 45.26 ms │     no change │
│ QQuery 39 │     154.23 / 163.17 ±7.74 / 175.84 ms │     145.50 / 155.85 ±8.09 / 169.33 ms │     no change │
│ QQuery 40 │        14.65 / 14.85 ±0.26 / 15.36 ms │        14.48 / 15.84 ±1.82 / 19.44 ms │  1.07x slower │
│ QQuery 41 │        14.33 / 17.43 ±3.33 / 22.46 ms │        14.57 / 17.83 ±6.04 / 29.91 ms │     no change │
│ QQuery 42 │        13.91 / 15.14 ±2.13 / 19.38 ms │        14.66 / 18.02 ±3.69 / 24.28 ms │  1.19x slower │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                               ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                               │ 20006.71ms │
│ Total Time (hash-join-dynamic-pruning-minmax)   │ 20111.27ms │
│ Average Time (HEAD)                             │   465.27ms │
│ Average Time (hash-join-dynamic-pruning-minmax) │   467.70ms │
│ Queries Faster                                  │          5 │
│ Queries Slower                                  │          4 │
│ Queries with No Change                          │         34 │
│ Queries with Failure                            │          0 │
└─────────────────────────────────────────────────┴────────────┘

Resource Usage

clickbench_partitioned — base (merge-base)

Metric Value
Wall time 105.0s
Peak memory 12.7 GiB
Avg memory 4.4 GiB
CPU user 1024.1s
CPU sys 74.5s
Peak spill 0 B

clickbench_partitioned — branch

Metric Value
Wall time 105.0s
Peak memory 11.8 GiB
Avg memory 4.4 GiB
CPU user 1024.4s
CPU sys 75.4s
Peak spill 0 B

File an issue against this benchmark runner

@jayzhan211

Copy link
Copy Markdown
Contributor

Thanks @gruuya, the caching fix looks good, and on ≈ off in the unclustered case matches what I'd expect now.

On the default: rather than picking between 100k / 32K / 0, I wonder if we can drop hash_join_dynamic_pruning_max_distinct_values (and _max_size) altogether.

The cap is only needed because we keep the exact key set: an O(n log n) sort under the OnceLock on the first file open, 8·n bytes that aren't accounted for, and the raw key array pinned by the plan. But pruning only asks "is there a build key in [min, max]?", and any superset of the keys answers that soundly. Precision is limited by how many containers there are, not by how many keys, so a fixed-size summary should lose very little.

Concretely, a bucket bitmap over the key bounds we already compute in collect_left_input:

  • Build: one O(n) pass over left_values[0], no sort or dedup. bucket = (v.wrapping_sub(min) as u64) >> shift, the same offset trick as ArrayMap::key_to_index.
  • Size: clamp(next_pow2(8 * num_rows), 2^10, 2^20) bits, so at most 128 KB per partition (same figure as hash_join_inlist_pushdown_max_size). If range + 1 fits, use shift = 0 and the bitmap is exact, which covers date keys and small surrogate-id dims.
  • Check: clamp the container's [min, max] to the build bounds, map both ends to buckets, scan for any set bit with early exit. A wide container, like the unclustered repro above, hits a set bit in the first word.
  • No benefit means no cost: if every bucket is set, the summary can't prune anything the bounds predicate doesn't already, so return None and emit no pruning clause. That is a property of the summary rather than a tuned cutoff, and it behaves the same as "off".
  • No cliff: the false-keep rate for a narrow container is bounded by the fill ratio (≤ n/B, so ≤ 12.5% up to 128k keys) and degrades gradually after that. Clustered keys, the only case where this feature helps, share buckets, so fill stays low at any n. Today a clustered 150k-key build side gets nothing.

On your example from the description (40k keys, range ≈ 2M, bucket width 4, row groups 1000 wide) I'd expect the same 2000 → 200 row groups.

It also simplifies the PR a bit:

  • PruningDomain (Mutex + OnceLock + built-for-type cache + the builder closure) becomes a plain Option<Arc> on HashTableLookupExpr, built eagerly and charged to the build reservation.
  • build_in_list_domain_expr, string_values, binary_values and the PrimitiveInListDomain::from_array additions go away.
  • The OptimizerOptions semver failure disappears with the two configs.
  • The CaseExpr → OR-of-branches rewrite stays as is.

Trade-offs I can see:

  • v1 would cover integer-like keys only (ints, dates, timestamps, decimals). Strings could follow by stripping the common prefix of the global min/max and taking the next 8 big-endian bytes; floats need an order-preserving bit mapping.
  • A sentinel key (-1, i64::MAX) stretches the range and coarsens the buckets. If that shows up in practice, a sampled core range plus two tail intervals keeps it O(n).
  • The O(n) pass is paid on every build that falls back to Map. I'd expect it to be small next to the hash build, but it needs measuring on a large build side.

I haven't benchmarked any of this yet. Happy to prototype it on top of your branch and post A/B numbers (your clustered case, the unclustered repro, and a clustered build side past 100k keys) if you think it's worth pursuing. If you'd rather land the current approach first, I'd lean towards a lower default for now and do this as a follow-up.

@gruuya

gruuya commented Sep 21, 2026

Copy link
Copy Markdown
Contributor Author

Ok, I get it now, the bucket bitmap approach you suggest does seem like a more sophisticated approach @jayzhan211. We trade-off pruning precision against pruning speed: make it fixed cost but we sometimes scan more false positives than we need to.

The pathological case in that regards seems to be when there are a lot of (file/row-group/page) containers, and the build side has few-ish values spanning a big range. In that case each bucket spans a large-ish sub-range as well, and the ones that are populated by the sparse values will falsely "light-up" many redundant containers alongside the correct one. Probably mitigated easily to some degree by just defaulting to 2^20 for the bucket size. Either way it would be a net win over the default state today.

Let me see how much of the PR is salvageable if we pick that direction. Doesn't make much sense to me to merge this with the new config and then remove it soon after in the follow-up.

@gruuya

gruuya commented Sep 21, 2026

Copy link
Copy Markdown
Contributor Author

Happy to prototype it on top of your branch and post A/B numbers (your clustered case, the unclustered repro, and a clustered build side past 100k keys)

@jayzhan211 if you're still up for doing this please let me know. I do have a PoC clauded up but i'd need to do a self-review first before opening up a PR, and it might take you less time to do the same. Benchmarking shows the PoC is within the margin of this branch when it comes to the unclustered scenario (which is the default in tpc-{h,ds}), but it's slightly more complex.

@gruuya

gruuya commented Sep 22, 2026

Copy link
Copy Markdown
Contributor Author

Alright, I've unslopped and polished the PoC, and opened a PR that uses bitmap buckets: #25602

I think that's a more elegant approach to the problem; same effect (clustered dynamic pruning through a join), but without any extra configs, so on by default (though it only works for integer-like keys for now).

gruuya and others added 2 commits September 22, 2026 14:21
Exposes HashTableLookupExpr's single-column build values through the
same compact sorted-domain rewrite ordinary large IN-lists already get
(PrimitiveInListPruningExpr/StringInListPruningExpr), so row-group/file
min/max stats alone can exclude containers - no bloom filter fetch, no
LiteralGuarantee. On by default via
hash_join_dynamic_pruning_max_distinct_values (default 100_000); set to
0 to disable.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Cache the built domain expression on the lookup and rebind it to each
container's statistics, and see through the CASE that routes a partitioned
join's per-partition filters.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@gruuya
gruuya force-pushed the hash-join-dynamic-pruning-minmax branch from 91a2f15 to 39f2d8c Compare September 22, 2026 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto detected api change Auto detected API change common Related to common crate documentation Improvements or additions to documentation physical-plan Changes to the physical-plan crate proto Related to proto crate sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement dynamic discrete pruning through a join

5 participants