Skip to content

perf: Convert inner joins to semi joins when equivalent#22652

Merged
alamb merged 14 commits into
apache:mainfrom
neilconway:neilc/perf-fd-convert-to-semi-join
Jun 11, 2026
Merged

perf: Convert inner joins to semi joins when equivalent#22652
alamb merged 14 commits into
apache:mainfrom
neilconway:neilc/perf-fd-convert-to-semi-join

Conversation

@neilconway

@neilconway neilconway commented May 30, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

This PR extends the EliminateJoin rewrite pass to replace inner joins with semi joins in some cases. An inner join L ⋈ R can be rewritten to a left semi join L ⋉ R if two conditions hold:

  1. None of R's columns are referenced above the join
  2. (a) each L row matches at most one R row, OR (b) the consumers of the join result are insensitive to duplicates

(And symmetrically with right semi joins.)

What changes are included in this PR?

  • Add for_each_referenced_index helper that is used by both EliminateJoin and EliminateProjections
  • Introduce LiveColumns type to track the "live" (referenced by parent) columns of a plan node
  • Add inner -> semi join rewrite to EliminateJoin
  • Add unit and SLT tests for rewrite behavior
  • Update SLT test fixtures for plan changes

Are these changes tested?

Yes; new tests added.

Are there any user-facing changes?

Some plan changes but no behavioral changes.

@neilconway

Copy link
Copy Markdown
Contributor Author

run benchmarks tpcds

@github-actions github-actions Bot added optimizer Optimizer rules sqllogictest SQL Logic Tests (.slt) labels May 30, 2026
@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4583581776-374-57xj4 6.12.68+ #1 SMP Wed Apr 1 02:23:28 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 neilc/perf-fd-convert-to-semi-join (39eb398) to 2e7b8e1 (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 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 neilc_perf-fd-convert-to-semi-join
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃    neilc_perf-fd-convert-to-semi-join ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │           5.88 / 6.36 ±0.87 / 8.09 ms │           5.88 / 6.37 ±0.84 / 8.04 ms │     no change │
│ QQuery 2  │        83.85 / 84.09 ±0.16 / 84.34 ms │        81.07 / 81.37 ±0.30 / 81.93 ms │     no change │
│ QQuery 3  │        29.21 / 29.38 ±0.15 / 29.57 ms │        28.93 / 29.19 ±0.24 / 29.64 ms │     no change │
│ QQuery 4  │     500.03 / 505.73 ±3.64 / 509.52 ms │     500.62 / 508.07 ±4.31 / 512.96 ms │     no change │
│ QQuery 5  │        51.79 / 52.37 ±0.58 / 53.39 ms │        52.02 / 52.45 ±0.31 / 52.81 ms │     no change │
│ QQuery 6  │        36.90 / 37.30 ±0.22 / 37.56 ms │        36.71 / 37.35 ±0.34 / 37.69 ms │     no change │
│ QQuery 7  │       95.53 / 99.00 ±4.83 / 108.52 ms │       95.18 / 97.20 ±3.27 / 103.71 ms │     no change │
│ QQuery 8  │        37.41 / 37.74 ±0.21 / 38.02 ms │        37.33 / 37.87 ±0.41 / 38.53 ms │     no change │
│ QQuery 9  │        52.94 / 55.44 ±1.39 / 56.69 ms │        54.46 / 55.28 ±1.34 / 57.95 ms │     no change │
│ QQuery 10 │        69.05 / 69.65 ±0.34 / 70.10 ms │        71.19 / 71.41 ±0.20 / 71.72 ms │     no change │
│ QQuery 11 │     305.57 / 308.21 ±1.54 / 309.77 ms │     312.30 / 314.57 ±1.43 / 316.52 ms │     no change │
│ QQuery 12 │        28.79 / 29.05 ±0.30 / 29.64 ms │        28.73 / 29.19 ±0.28 / 29.52 ms │     no change │
│ QQuery 13 │     119.82 / 121.61 ±1.64 / 123.63 ms │     119.62 / 120.65 ±0.99 / 122.35 ms │     no change │
│ QQuery 14 │    503.08 / 512.86 ±12.20 / 536.80 ms │     434.41 / 436.01 ±1.15 / 437.98 ms │ +1.18x faster │
│ QQuery 15 │        59.46 / 61.70 ±2.44 / 66.41 ms │        60.27 / 60.73 ±0.35 / 61.21 ms │     no change │
│ QQuery 16 │          6.72 / 7.76 ±1.60 / 10.90 ms │           6.89 / 7.10 ±0.25 / 7.56 ms │ +1.09x faster │
│ QQuery 17 │        80.81 / 81.89 ±1.26 / 84.04 ms │        80.43 / 82.52 ±2.07 / 86.12 ms │     no change │
│ QQuery 18 │     125.26 / 126.59 ±0.90 / 127.44 ms │     125.61 / 127.33 ±1.02 / 128.34 ms │     no change │
│ QQuery 19 │        42.09 / 42.32 ±0.14 / 42.46 ms │        41.98 / 42.84 ±0.74 / 44.22 ms │     no change │
│ QQuery 20 │        36.32 / 36.75 ±0.31 / 37.11 ms │        35.98 / 38.05 ±2.50 / 42.92 ms │     no change │
│ QQuery 21 │        17.12 / 17.45 ±0.25 / 17.71 ms │        17.27 / 17.60 ±0.22 / 17.95 ms │     no change │
│ QQuery 22 │        63.23 / 63.65 ±0.34 / 64.18 ms │        63.17 / 63.78 ±0.39 / 64.34 ms │     no change │
│ QQuery 23 │     481.60 / 486.16 ±3.31 / 490.47 ms │     475.13 / 484.22 ±5.97 / 493.00 ms │     no change │
│ QQuery 24 │     223.93 / 228.08 ±4.13 / 235.57 ms │    226.76 / 234.79 ±10.07 / 253.97 ms │     no change │
│ QQuery 25 │     113.59 / 117.62 ±6.79 / 131.17 ms │     114.98 / 117.61 ±1.82 / 120.52 ms │     no change │
│ QQuery 26 │        58.99 / 59.44 ±0.33 / 59.94 ms │        58.59 / 61.74 ±3.89 / 67.77 ms │     no change │
│ QQuery 27 │           6.61 / 6.73 ±0.15 / 7.02 ms │           6.90 / 7.03 ±0.16 / 7.35 ms │     no change │
│ QQuery 28 │        61.39 / 61.63 ±0.19 / 61.86 ms │        57.64 / 60.32 ±1.91 / 62.38 ms │     no change │
│ QQuery 29 │      98.49 / 102.20 ±3.46 / 107.67 ms │       98.19 / 99.99 ±1.75 / 103.35 ms │     no change │
│ QQuery 30 │        33.01 / 33.38 ±0.52 / 34.40 ms │        33.58 / 36.53 ±2.37 / 40.55 ms │  1.09x slower │
│ QQuery 31 │     111.53 / 112.43 ±0.48 / 112.85 ms │     113.46 / 114.95 ±1.43 / 117.55 ms │     no change │
│ QQuery 32 │        20.57 / 21.58 ±1.22 / 23.94 ms │        20.79 / 21.07 ±0.26 / 21.56 ms │     no change │
│ QQuery 33 │        38.55 / 38.81 ±0.28 / 39.35 ms │        38.74 / 39.09 ±0.27 / 39.53 ms │     no change │
│ QQuery 34 │         9.87 / 10.26 ±0.34 / 10.86 ms │         9.84 / 11.89 ±3.76 / 19.39 ms │  1.16x slower │
│ QQuery 35 │        77.99 / 78.72 ±0.50 / 79.56 ms │        84.74 / 86.94 ±3.04 / 92.92 ms │  1.10x slower │
│ QQuery 36 │           5.83 / 5.96 ±0.16 / 6.28 ms │           6.05 / 6.18 ±0.16 / 6.48 ms │     no change │
│ QQuery 37 │           6.86 / 7.03 ±0.16 / 7.32 ms │           6.93 / 7.27 ±0.33 / 7.88 ms │     no change │
│ QQuery 38 │        63.49 / 65.37 ±1.87 / 68.54 ms │        65.30 / 66.24 ±0.97 / 67.95 ms │     no change │
│ QQuery 39 │       98.95 / 99.87 ±0.58 / 100.54 ms │     103.03 / 105.71 ±2.56 / 110.27 ms │  1.06x slower │
│ QQuery 40 │        23.35 / 23.59 ±0.13 / 23.72 ms │        23.88 / 24.47 ±0.35 / 24.90 ms │     no change │
│ QQuery 41 │        11.59 / 11.83 ±0.16 / 12.03 ms │        11.96 / 12.10 ±0.08 / 12.19 ms │     no change │
│ QQuery 42 │        24.11 / 24.50 ±0.28 / 24.82 ms │        24.50 / 24.77 ±0.36 / 25.44 ms │     no change │
│ QQuery 43 │           4.84 / 4.96 ±0.13 / 5.22 ms │           4.88 / 5.00 ±0.12 / 5.23 ms │     no change │
│ QQuery 44 │        10.79 / 12.36 ±2.91 / 18.18 ms │        10.92 / 10.97 ±0.05 / 11.06 ms │ +1.13x faster │
│ QQuery 45 │        39.07 / 40.63 ±1.55 / 43.28 ms │        39.80 / 40.11 ±0.28 / 40.51 ms │     no change │
│ QQuery 46 │        12.23 / 12.45 ±0.21 / 12.78 ms │        11.88 / 13.43 ±1.84 / 16.96 ms │  1.08x slower │
│ QQuery 47 │     236.87 / 242.06 ±6.08 / 253.35 ms │     239.01 / 244.23 ±5.06 / 252.86 ms │     no change │
│ QQuery 48 │        98.09 / 98.74 ±0.57 / 99.56 ms │        97.78 / 98.31 ±0.65 / 99.55 ms │     no change │
│ QQuery 49 │        77.60 / 80.15 ±3.96 / 88.03 ms │        78.68 / 84.07 ±6.05 / 94.48 ms │     no change │
│ QQuery 50 │        58.93 / 59.65 ±0.43 / 60.20 ms │        60.10 / 61.31 ±0.76 / 62.32 ms │     no change │
│ QQuery 51 │        92.69 / 95.75 ±2.80 / 99.57 ms │        95.04 / 96.05 ±0.83 / 96.94 ms │     no change │
│ QQuery 52 │        24.40 / 25.09 ±0.66 / 25.96 ms │        24.72 / 25.41 ±0.88 / 27.03 ms │     no change │
│ QQuery 53 │        30.03 / 30.37 ±0.22 / 30.62 ms │        29.97 / 31.87 ±3.36 / 38.57 ms │     no change │
│ QQuery 54 │        56.56 / 56.87 ±0.46 / 57.76 ms │        67.14 / 68.60 ±0.98 / 70.02 ms │  1.21x slower │
│ QQuery 55 │        24.01 / 24.30 ±0.32 / 24.93 ms │        24.05 / 24.48 ±0.35 / 25.07 ms │     no change │
│ QQuery 56 │        38.77 / 39.31 ±0.56 / 40.16 ms │        39.72 / 39.81 ±0.06 / 39.86 ms │     no change │
│ QQuery 57 │     176.71 / 179.38 ±3.17 / 185.17 ms │     179.72 / 183.21 ±4.55 / 192.18 ms │     no change │
│ QQuery 58 │     119.83 / 120.49 ±0.60 / 121.42 ms │     118.81 / 120.45 ±1.81 / 123.80 ms │     no change │
│ QQuery 59 │     120.57 / 121.68 ±1.96 / 125.58 ms │     118.02 / 118.45 ±0.40 / 119.07 ms │     no change │
│ QQuery 60 │        39.05 / 39.90 ±0.73 / 41.10 ms │        39.64 / 41.26 ±2.14 / 45.48 ms │     no change │
│ QQuery 61 │        12.51 / 12.63 ±0.11 / 12.82 ms │        12.89 / 12.99 ±0.09 / 13.11 ms │     no change │
│ QQuery 62 │        46.03 / 46.50 ±0.35 / 47.04 ms │        46.89 / 47.23 ±0.27 / 47.59 ms │     no change │
│ QQuery 63 │        30.00 / 30.29 ±0.16 / 30.46 ms │        29.78 / 29.88 ±0.11 / 30.07 ms │     no change │
│ QQuery 64 │    395.34 / 406.51 ±10.69 / 420.20 ms │    308.27 / 323.70 ±11.92 / 337.79 ms │ +1.26x faster │
│ QQuery 65 │     144.94 / 147.69 ±2.22 / 151.74 ms │     142.76 / 144.02 ±0.90 / 145.42 ms │     no change │
│ QQuery 66 │        79.42 / 79.91 ±0.38 / 80.45 ms │        80.80 / 85.56 ±5.80 / 95.81 ms │  1.07x slower │
│ QQuery 67 │     253.59 / 260.67 ±4.66 / 267.38 ms │     258.21 / 263.86 ±5.75 / 271.13 ms │     no change │
│ QQuery 68 │        11.85 / 12.00 ±0.18 / 12.35 ms │        11.90 / 12.06 ±0.12 / 12.21 ms │     no change │
│ QQuery 69 │        63.66 / 64.05 ±0.34 / 64.53 ms │        65.01 / 71.70 ±7.31 / 81.31 ms │  1.12x slower │
│ QQuery 70 │     107.16 / 114.79 ±6.73 / 124.33 ms │     106.61 / 111.06 ±4.50 / 119.53 ms │     no change │
│ QQuery 71 │        36.04 / 36.53 ±0.70 / 37.90 ms │        35.15 / 35.79 ±0.43 / 36.34 ms │     no change │
│ QQuery 72 │ 2136.47 / 2205.41 ±52.63 / 2277.75 ms │ 2149.93 / 2231.16 ±53.78 / 2319.41 ms │     no change │
│ QQuery 73 │          9.54 / 9.85 ±0.21 / 10.05 ms │         9.35 / 11.90 ±4.72 / 21.34 ms │  1.21x slower │
│ QQuery 74 │     183.88 / 188.42 ±5.31 / 198.16 ms │     174.42 / 180.76 ±4.96 / 189.73 ms │     no change │
│ QQuery 75 │     149.99 / 153.48 ±3.75 / 160.62 ms │     149.13 / 151.48 ±2.51 / 156.00 ms │     no change │
│ QQuery 76 │        36.58 / 39.16 ±4.44 / 48.02 ms │        35.72 / 36.11 ±0.23 / 36.33 ms │ +1.08x faster │
│ QQuery 77 │        60.22 / 60.88 ±0.54 / 61.49 ms │        61.38 / 65.48 ±3.93 / 70.57 ms │  1.08x slower │
│ QQuery 78 │     190.21 / 195.04 ±4.34 / 202.86 ms │     189.67 / 196.82 ±7.47 / 210.91 ms │     no change │
│ QQuery 79 │        67.77 / 67.98 ±0.30 / 68.59 ms │        67.78 / 68.22 ±0.40 / 68.74 ms │     no change │
│ QQuery 80 │     101.04 / 103.35 ±1.85 / 106.43 ms │     100.83 / 101.81 ±0.96 / 103.45 ms │     no change │
│ QQuery 81 │        25.80 / 26.14 ±0.19 / 26.39 ms │        26.47 / 29.22 ±4.49 / 38.11 ms │  1.12x slower │
│ QQuery 82 │        16.68 / 17.37 ±1.06 / 19.48 ms │        16.35 / 17.18 ±0.95 / 18.98 ms │     no change │
│ QQuery 83 │        39.57 / 39.95 ±0.32 / 40.49 ms │        40.51 / 41.24 ±0.51 / 41.86 ms │     no change │
│ QQuery 84 │        34.73 / 35.18 ±0.35 / 35.68 ms │        35.21 / 35.43 ±0.19 / 35.71 ms │     no change │
│ QQuery 85 │     110.43 / 115.52 ±4.98 / 123.79 ms │     108.81 / 111.55 ±4.37 / 120.24 ms │     no change │
│ QQuery 86 │        25.22 / 25.78 ±0.29 / 26.06 ms │        25.39 / 25.66 ±0.22 / 25.93 ms │     no change │
│ QQuery 87 │        64.65 / 66.07 ±2.11 / 70.28 ms │        66.99 / 67.64 ±0.52 / 68.53 ms │     no change │
│ QQuery 88 │        62.75 / 63.31 ±0.51 / 64.07 ms │        62.22 / 62.99 ±0.54 / 63.84 ms │     no change │
│ QQuery 89 │        35.64 / 35.97 ±0.17 / 36.11 ms │        36.43 / 37.98 ±1.78 / 41.46 ms │  1.06x slower │
│ QQuery 90 │        17.13 / 17.24 ±0.06 / 17.32 ms │        17.30 / 17.48 ±0.19 / 17.83 ms │     no change │
│ QQuery 91 │        45.59 / 45.99 ±0.26 / 46.28 ms │        45.46 / 45.93 ±0.29 / 46.21 ms │     no change │
│ QQuery 92 │        29.37 / 30.11 ±0.41 / 30.59 ms │        30.37 / 30.95 ±0.32 / 31.23 ms │     no change │
│ QQuery 93 │        51.68 / 52.05 ±0.20 / 52.28 ms │        52.11 / 52.69 ±0.42 / 53.39 ms │     no change │
│ QQuery 94 │        38.62 / 39.09 ±0.32 / 39.56 ms │        40.01 / 42.38 ±2.48 / 45.47 ms │  1.08x slower │
│ QQuery 95 │        83.71 / 84.33 ±0.39 / 84.92 ms │        84.08 / 85.97 ±1.74 / 88.75 ms │     no change │
│ QQuery 96 │        24.19 / 24.47 ±0.20 / 24.68 ms │        24.56 / 24.88 ±0.18 / 25.05 ms │     no change │
│ QQuery 97 │        45.66 / 48.20 ±2.01 / 51.09 ms │        50.21 / 50.64 ±0.28 / 50.95 ms │  1.05x slower │
│ QQuery 98 │        42.61 / 43.75 ±0.78 / 44.93 ms │        43.08 / 45.25 ±1.99 / 48.82 ms │     no change │
│ QQuery 99 │        70.10 / 70.41 ±0.19 / 70.65 ms │        70.47 / 70.85 ±0.28 / 71.17 ms │     no change │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                                 ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                                 │ 10382.31ms │
│ Total Time (neilc_perf-fd-convert-to-semi-join)   │ 10324.36ms │
│ Average Time (HEAD)                               │   104.87ms │
│ Average Time (neilc_perf-fd-convert-to-semi-join) │   104.29ms │
│ Queries Faster                                    │          5 │
│ Queries Slower                                    │         14 │
│ Queries with No Change                            │         80 │
│ Queries with Failure                              │          0 │
└───────────────────────────────────────────────────┴────────────┘

Resource Usage

tpcds — base (merge-base)

Metric Value
Wall time 55.0s
Peak memory 7.0 GiB
Avg memory 6.3 GiB
CPU user 239.6s
CPU sys 6.8s
Peak spill 0 B

tpcds — branch

Metric Value
Wall time 55.0s
Peak memory 6.9 GiB
Avg memory 6.0 GiB
CPU user 240.8s
CPU sys 7.0s
Peak spill 0 B

File an issue against this benchmark runner

@neilconway neilconway marked this pull request as ready for review May 31, 2026 13:33
Comment on lines +80 to +83
/// The columns that are "live" at a plan node, i.e., which of its output
/// columns are referenced by an ancestor node. Represented as a set of column
/// indices, relative to the node's schema.
type LiveColumns = HashSet<usize>;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

  1. This is similar but not identical to the RequiredIndices data structure used by OptimizeProjections. RequiredIndices cares about insertion order but we don't, so it seemed cleaner to use a different data structure here.
  2. It would be better to use a bitmap than a HashSet. We could do so by adding a dependency on a third-party bitmap implementation (e.g., https://github.com/petgraph/fixedbitset, which one of our indirect dependencies already pulls in). But the performance impact should be small, so I'm not sure it's worth adding the dep.

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.

You could potentially use arrow BooleanBufferBuilder as a mutable bitset: https://docs.rs/arrow/latest/arrow/array/struct.BooleanBufferBuilder.html

Not sure if that is actually faster or not

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

BooleanBufferBuilder would be awkward for what we need (i.e., variably-sized mutable bitmap, iterating over just the set bits, etc.)

Now that LiveColumns is a proper type, we can always switch this later. I'm inclined to leave as-is for now, I don't think the performance difference will be large.

@neilconway

Copy link
Copy Markdown
Contributor Author

Digging into some of the TPC-DS query plan changes, we ran into two different planner bugs: #22679 and #22674. This PR will also benefit (on TPC-DS and TPC-H) from landing #22646

@Dandandan

Copy link
Copy Markdown
Contributor

run benchmarks

@Dandandan

Copy link
Copy Markdown
Contributor

run benchmark tpch10

@adriangbot

Copy link
Copy Markdown

Benchmark for this request failed.

Last 20 lines of output:

Click to expand
Cloning into '/workspace/datafusion-branch'...
From https://github.com/apache/datafusion
 * [new ref]         refs/pull/22652/head -> neilc/perf-fd-convert-to-semi-join
 * branch            main                 -> FETCH_HEAD
Switched to branch 'neilc/perf-fd-convert-to-semi-join'
5c92390921d8d667aa7cb7d56276a59ba36926f4
Cloning into '/workspace/datafusion-base'...
HEAD is now at 5c92390 perf(optimizer): EliminateCrossJoin fast-path for join-free plans (#22612)
rustc 1.95.0 (59807616e 2026-04-14)
2daef07cdf11d845914ca30f313693b5c53ab101
5c92390921d8d667aa7cb7d56276a59ba36926f4

File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

Benchmark for this request failed.

Last 20 lines of output:

Click to expand
Cloning into '/workspace/datafusion-branch'...
From https://github.com/apache/datafusion
 * [new ref]         refs/pull/22652/head -> neilc/perf-fd-convert-to-semi-join
 * branch            main                 -> FETCH_HEAD
Switched to branch 'neilc/perf-fd-convert-to-semi-join'
5c92390921d8d667aa7cb7d56276a59ba36926f4
Cloning into '/workspace/datafusion-base'...
HEAD is now at 5c92390 perf(optimizer): EliminateCrossJoin fast-path for join-free plans (#22612)
rustc 1.95.0 (59807616e 2026-04-14)
2daef07cdf11d845914ca30f313693b5c53ab101
5c92390921d8d667aa7cb7d56276a59ba36926f4

File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

Benchmark for this request failed.

Last 20 lines of output:

Click to expand
Cloning into '/workspace/datafusion-branch'...
From https://github.com/apache/datafusion
 * [new ref]         refs/pull/22652/head -> neilc/perf-fd-convert-to-semi-join
 * branch            main                 -> FETCH_HEAD
Switched to branch 'neilc/perf-fd-convert-to-semi-join'
5c92390921d8d667aa7cb7d56276a59ba36926f4
Cloning into '/workspace/datafusion-base'...
HEAD is now at 5c92390 perf(optimizer): EliminateCrossJoin fast-path for join-free plans (#22612)
rustc 1.95.0 (59807616e 2026-04-14)
2daef07cdf11d845914ca30f313693b5c53ab101
5c92390921d8d667aa7cb7d56276a59ba36926f4

File an issue against this benchmark runner

@Dandandan

Copy link
Copy Markdown
Contributor

@neilconway FYI quite some plans changed now 🚀

Can you take a look at the PR

@neilconway

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-c4603881427-404-pgljs 6.12.68+ #1 SMP Wed Apr 1 02:23:28 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 neilc/perf-fd-convert-to-semi-join (6b1d38a) to 7843ab3 (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-c4603881427-405-5jfvt 6.12.68+ #1 SMP Wed Apr 1 02:23:28 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 neilc/perf-fd-convert-to-semi-join (6b1d38a) to 7843ab3 (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-c4603881427-406-48w5q 6.12.68+ #1 SMP Wed Apr 1 02:23:28 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 neilc/perf-fd-convert-to-semi-join (6b1d38a) to 7843ab3 (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 neilc_perf-fd-convert-to-semi-join
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                           HEAD ┃ neilc_perf-fd-convert-to-semi-join ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │ 38.16 / 40.11 ±1.09 / 41.38 ms │     38.02 / 40.13 ±1.12 / 41.31 ms │     no change │
│ QQuery 2  │ 18.26 / 18.66 ±0.32 / 19.19 ms │     18.29 / 18.52 ±0.21 / 18.91 ms │     no change │
│ QQuery 3  │ 31.31 / 32.69 ±0.78 / 33.39 ms │     30.88 / 32.58 ±2.20 / 36.92 ms │     no change │
│ QQuery 4  │ 17.06 / 18.16 ±1.08 / 20.05 ms │     17.01 / 17.16 ±0.12 / 17.37 ms │ +1.06x faster │
│ QQuery 5  │ 37.71 / 39.84 ±1.81 / 42.40 ms │     37.86 / 39.89 ±1.87 / 43.11 ms │     no change │
│ QQuery 6  │ 15.84 / 15.95 ±0.13 / 16.17 ms │     15.98 / 16.19 ±0.13 / 16.35 ms │     no change │
│ QQuery 7  │ 44.07 / 45.81 ±1.52 / 48.47 ms │     43.90 / 45.41 ±1.09 / 46.55 ms │     no change │
│ QQuery 8  │ 42.66 / 43.61 ±1.15 / 45.87 ms │     42.66 / 43.38 ±0.81 / 44.96 ms │     no change │
│ QQuery 9  │ 48.43 / 49.89 ±1.00 / 51.46 ms │     49.15 / 49.88 ±0.65 / 50.68 ms │     no change │
│ QQuery 10 │ 41.84 / 42.51 ±1.26 / 45.03 ms │     41.63 / 42.22 ±0.93 / 44.08 ms │     no change │
│ QQuery 11 │ 13.13 / 13.26 ±0.10 / 13.40 ms │     13.30 / 13.85 ±0.34 / 14.17 ms │     no change │
│ QQuery 12 │ 23.87 / 24.39 ±0.34 / 24.89 ms │     24.04 / 24.85 ±1.16 / 27.08 ms │     no change │
│ QQuery 13 │ 31.86 / 34.35 ±3.33 / 40.93 ms │     31.47 / 33.89 ±1.48 / 35.51 ms │     no change │
│ QQuery 14 │ 23.50 / 23.74 ±0.15 / 23.92 ms │     23.50 / 23.75 ±0.35 / 24.41 ms │     no change │
│ QQuery 15 │ 30.94 / 31.79 ±0.88 / 33.18 ms │     31.09 / 32.18 ±1.36 / 34.73 ms │     no change │
│ QQuery 16 │ 13.92 / 14.16 ±0.25 / 14.58 ms │     13.84 / 13.99 ±0.15 / 14.25 ms │     no change │
│ QQuery 17 │ 72.18 / 72.78 ±0.70 / 74.09 ms │     71.95 / 72.65 ±0.37 / 73.04 ms │     no change │
│ QQuery 18 │ 56.88 / 59.62 ±2.45 / 63.89 ms │     58.34 / 60.12 ±1.93 / 63.55 ms │     no change │
│ QQuery 19 │ 33.22 / 34.57 ±2.01 / 38.55 ms │     32.78 / 32.96 ±0.24 / 33.42 ms │     no change │
│ QQuery 20 │ 32.12 / 32.45 ±0.43 / 33.26 ms │     31.67 / 32.16 ±0.58 / 33.29 ms │     no change │
│ QQuery 21 │ 55.39 / 56.23 ±0.61 / 56.89 ms │     54.73 / 57.24 ±1.35 / 58.84 ms │     no change │
│ QQuery 22 │ 13.38 / 13.76 ±0.27 / 14.20 ms │     13.57 / 13.82 ±0.21 / 14.14 ms │     no change │
└───────────┴────────────────────────────────┴────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary                                 ┃          ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD)                                 │ 758.33ms │
│ Total Time (neilc_perf-fd-convert-to-semi-join)   │ 756.81ms │
│ Average Time (HEAD)                               │  34.47ms │
│ Average Time (neilc_perf-fd-convert-to-semi-join) │  34.40ms │
│ Queries Faster                                    │        1 │
│ Queries Slower                                    │        0 │
│ Queries with No Change                            │       21 │
│ Queries with Failure                              │        0 │
└───────────────────────────────────────────────────┴──────────┘

Resource Usage

tpch — base (merge-base)

Metric Value
Wall time 5.0s
Peak memory 5.7 GiB
Avg memory 4.9 GiB
CPU user 29.6s
CPU sys 2.2s
Peak spill 0 B

tpch — branch

Metric Value
Wall time 5.0s
Peak memory 5.6 GiB
Avg memory 4.9 GiB
CPU user 29.8s
CPU sys 2.2s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected
Details

Comparing HEAD and neilc_perf-fd-convert-to-semi-join
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃    neilc_perf-fd-convert-to-semi-join ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │           5.91 / 6.37 ±0.83 / 8.03 ms │           5.35 / 5.84 ±0.77 / 7.38 ms │ +1.09x faster │
│ QQuery 2  │        81.53 / 81.88 ±0.34 / 82.41 ms │        81.02 / 81.23 ±0.19 / 81.57 ms │     no change │
│ QQuery 3  │        29.05 / 29.25 ±0.17 / 29.50 ms │        28.65 / 29.04 ±0.33 / 29.47 ms │     no change │
│ QQuery 4  │     482.24 / 489.58 ±6.67 / 499.96 ms │     488.39 / 491.82 ±2.82 / 495.82 ms │     no change │
│ QQuery 5  │        51.99 / 52.85 ±1.24 / 55.23 ms │        52.15 / 52.78 ±0.45 / 53.55 ms │     no change │
│ QQuery 6  │        36.51 / 36.94 ±0.25 / 37.25 ms │        37.93 / 38.19 ±0.39 / 38.96 ms │     no change │
│ QQuery 7  │        96.13 / 96.62 ±0.40 / 97.26 ms │        95.29 / 95.97 ±0.38 / 96.44 ms │     no change │
│ QQuery 8  │        37.12 / 38.77 ±2.92 / 44.60 ms │        37.68 / 39.38 ±2.38 / 44.04 ms │     no change │
│ QQuery 9  │        53.04 / 54.78 ±1.38 / 56.75 ms │        53.05 / 55.10 ±1.87 / 57.65 ms │     no change │
│ QQuery 10 │        68.55 / 68.94 ±0.32 / 69.35 ms │        70.65 / 70.89 ±0.18 / 71.10 ms │     no change │
│ QQuery 11 │     296.98 / 303.11 ±4.47 / 307.54 ms │     299.21 / 305.66 ±6.37 / 317.88 ms │     no change │
│ QQuery 12 │        28.65 / 29.06 ±0.34 / 29.58 ms │        28.98 / 29.51 ±0.44 / 30.30 ms │     no change │
│ QQuery 13 │     119.58 / 121.00 ±1.45 / 123.60 ms │     119.09 / 120.34 ±1.19 / 122.40 ms │     no change │
│ QQuery 14 │     508.14 / 509.13 ±1.09 / 511.11 ms │     439.21 / 445.24 ±3.41 / 449.50 ms │ +1.14x faster │
│ QQuery 15 │        59.46 / 60.22 ±1.11 / 62.41 ms │        59.45 / 59.74 ±0.29 / 60.16 ms │     no change │
│ QQuery 16 │           6.74 / 6.89 ±0.14 / 7.14 ms │           6.39 / 6.54 ±0.15 / 6.77 ms │     no change │
│ QQuery 17 │        81.44 / 83.60 ±3.33 / 90.23 ms │        79.94 / 81.46 ±1.93 / 85.28 ms │     no change │
│ QQuery 18 │     125.81 / 126.96 ±0.81 / 127.95 ms │     124.59 / 126.03 ±1.34 / 128.36 ms │     no change │
│ QQuery 19 │        42.14 / 42.59 ±0.62 / 43.83 ms │        42.41 / 43.33 ±1.12 / 45.46 ms │     no change │
│ QQuery 20 │        35.71 / 36.32 ±0.49 / 37.15 ms │        35.94 / 37.42 ±1.83 / 40.84 ms │     no change │
│ QQuery 21 │        17.06 / 17.40 ±0.29 / 17.87 ms │        17.22 / 17.46 ±0.18 / 17.73 ms │     no change │
│ QQuery 22 │        62.18 / 62.82 ±0.65 / 63.62 ms │        64.09 / 64.73 ±0.66 / 65.97 ms │     no change │
│ QQuery 23 │     344.25 / 347.44 ±3.35 / 353.70 ms │     353.88 / 358.01 ±4.86 / 367.13 ms │     no change │
│ QQuery 24 │     224.45 / 227.70 ±2.04 / 230.33 ms │     226.28 / 230.16 ±3.19 / 235.16 ms │     no change │
│ QQuery 25 │     114.11 / 117.10 ±3.27 / 121.89 ms │     112.63 / 113.81 ±0.78 / 114.73 ms │     no change │
│ QQuery 26 │        58.32 / 58.75 ±0.28 / 59.01 ms │        57.67 / 59.31 ±2.16 / 63.50 ms │     no change │
│ QQuery 27 │           6.69 / 6.86 ±0.17 / 7.14 ms │           6.04 / 6.15 ±0.18 / 6.51 ms │ +1.11x faster │
│ QQuery 28 │        56.14 / 58.86 ±2.26 / 61.17 ms │        61.11 / 61.57 ±0.39 / 62.17 ms │     no change │
│ QQuery 29 │      98.70 / 102.35 ±2.19 / 104.75 ms │       96.57 / 98.94 ±2.46 / 102.50 ms │     no change │
│ QQuery 30 │        32.01 / 32.64 ±0.57 / 33.69 ms │        32.15 / 32.79 ±0.61 / 33.86 ms │     no change │
│ QQuery 31 │     111.26 / 112.40 ±0.89 / 113.99 ms │     111.60 / 112.26 ±0.39 / 112.69 ms │     no change │
│ QQuery 32 │        20.26 / 20.56 ±0.23 / 20.87 ms │        20.35 / 21.54 ±1.58 / 24.64 ms │     no change │
│ QQuery 33 │        38.67 / 39.20 ±0.47 / 39.94 ms │        38.31 / 40.33 ±2.58 / 45.27 ms │     no change │
│ QQuery 34 │           9.44 / 9.56 ±0.17 / 9.87 ms │          9.42 / 9.92 ±0.51 / 10.73 ms │     no change │
│ QQuery 35 │        76.39 / 77.05 ±0.46 / 77.72 ms │        80.47 / 80.86 ±0.30 / 81.37 ms │     no change │
│ QQuery 36 │           5.98 / 6.08 ±0.13 / 6.34 ms │           5.56 / 5.73 ±0.16 / 6.02 ms │ +1.06x faster │
│ QQuery 37 │           6.80 / 6.87 ±0.06 / 6.94 ms │           6.75 / 6.83 ±0.06 / 6.92 ms │     no change │
│ QQuery 38 │        63.21 / 63.78 ±0.49 / 64.63 ms │        63.45 / 63.60 ±0.17 / 63.88 ms │     no change │
│ QQuery 39 │     455.07 / 461.24 ±6.31 / 472.99 ms │     453.44 / 461.88 ±5.82 / 469.32 ms │     no change │
│ QQuery 40 │        23.40 / 23.55 ±0.11 / 23.69 ms │        23.10 / 23.37 ±0.25 / 23.84 ms │     no change │
│ QQuery 41 │        11.33 / 11.48 ±0.20 / 11.87 ms │        11.35 / 11.50 ±0.17 / 11.81 ms │     no change │
│ QQuery 42 │        23.77 / 24.01 ±0.25 / 24.44 ms │        23.90 / 24.12 ±0.20 / 24.50 ms │     no change │
│ QQuery 43 │           4.96 / 5.03 ±0.09 / 5.21 ms │           4.83 / 4.93 ±0.11 / 5.14 ms │     no change │
│ QQuery 44 │        10.69 / 10.86 ±0.11 / 11.03 ms │        10.65 / 10.84 ±0.14 / 11.06 ms │     no change │
│ QQuery 45 │        38.82 / 42.12 ±4.00 / 48.54 ms │        38.62 / 39.18 ±0.51 / 40.00 ms │ +1.07x faster │
│ QQuery 46 │        11.95 / 12.38 ±0.35 / 12.78 ms │        11.37 / 13.56 ±3.67 / 20.88 ms │  1.10x slower │
│ QQuery 47 │     228.82 / 237.15 ±8.00 / 251.53 ms │     229.58 / 232.48 ±2.88 / 237.75 ms │     no change │
│ QQuery 48 │        97.98 / 98.31 ±0.34 / 98.95 ms │        97.79 / 98.25 ±0.24 / 98.44 ms │     no change │
│ QQuery 49 │        77.90 / 79.07 ±1.03 / 80.36 ms │        75.37 / 76.29 ±0.71 / 77.36 ms │     no change │
│ QQuery 50 │        60.06 / 60.67 ±0.43 / 61.17 ms │        58.68 / 62.11 ±4.31 / 70.59 ms │     no change │
│ QQuery 51 │        91.85 / 93.42 ±1.34 / 95.54 ms │        93.63 / 95.45 ±2.30 / 99.87 ms │     no change │
│ QQuery 52 │        24.36 / 27.49 ±5.72 / 38.93 ms │        24.19 / 24.61 ±0.26 / 24.96 ms │ +1.12x faster │
│ QQuery 53 │        29.93 / 30.49 ±0.47 / 31.11 ms │        29.36 / 30.50 ±1.85 / 34.15 ms │     no change │
│ QQuery 54 │        55.88 / 56.45 ±0.45 / 57.15 ms │        59.18 / 60.97 ±2.58 / 66.09 ms │  1.08x slower │
│ QQuery 55 │        23.66 / 23.94 ±0.20 / 24.27 ms │        24.80 / 25.24 ±0.34 / 25.64 ms │  1.05x slower │
│ QQuery 56 │        39.36 / 39.66 ±0.29 / 40.14 ms │        38.83 / 39.54 ±0.65 / 40.57 ms │     no change │
│ QQuery 57 │     177.37 / 180.54 ±4.39 / 189.11 ms │     179.17 / 182.70 ±3.27 / 188.28 ms │     no change │
│ QQuery 58 │     117.96 / 118.89 ±0.78 / 120.06 ms │     118.07 / 119.97 ±3.33 / 126.63 ms │     no change │
│ QQuery 59 │     117.58 / 118.27 ±0.53 / 119.13 ms │     117.64 / 118.91 ±0.82 / 120.08 ms │     no change │
│ QQuery 60 │        39.81 / 42.18 ±2.10 / 46.02 ms │        39.39 / 40.13 ±0.60 / 40.87 ms │     no change │
│ QQuery 61 │        13.26 / 13.47 ±0.18 / 13.77 ms │        11.87 / 12.03 ±0.18 / 12.36 ms │ +1.12x faster │
│ QQuery 62 │        46.55 / 46.80 ±0.24 / 47.11 ms │        48.50 / 50.37 ±3.54 / 57.45 ms │  1.08x slower │
│ QQuery 63 │        29.68 / 30.02 ±0.18 / 30.20 ms │        29.64 / 30.77 ±1.18 / 33.01 ms │     no change │
│ QQuery 64 │     399.67 / 406.48 ±5.64 / 415.41 ms │     416.48 / 417.98 ±1.56 / 420.05 ms │     no change │
│ QQuery 65 │     146.32 / 150.97 ±4.38 / 157.42 ms │     150.86 / 153.24 ±2.38 / 157.81 ms │     no change │
│ QQuery 66 │        80.05 / 80.64 ±0.50 / 81.49 ms │        79.75 / 80.86 ±1.75 / 84.30 ms │     no change │
│ QQuery 67 │     245.84 / 253.33 ±6.11 / 260.74 ms │     245.11 / 250.61 ±6.17 / 259.53 ms │     no change │
│ QQuery 68 │        11.93 / 14.28 ±4.35 / 22.97 ms │        11.49 / 11.68 ±0.22 / 12.12 ms │ +1.22x faster │
│ QQuery 69 │        62.71 / 63.49 ±0.49 / 64.19 ms │        64.76 / 66.03 ±1.44 / 68.81 ms │     no change │
│ QQuery 70 │     105.03 / 106.60 ±1.08 / 107.83 ms │     108.68 / 112.40 ±4.10 / 120.27 ms │  1.05x slower │
│ QQuery 71 │        35.93 / 40.21 ±6.77 / 53.66 ms │        35.86 / 36.35 ±0.34 / 36.76 ms │ +1.11x faster │
│ QQuery 72 │ 2180.04 / 2260.82 ±81.28 / 2402.80 ms │ 2098.65 / 2192.07 ±51.73 / 2248.50 ms │     no change │
│ QQuery 73 │           9.18 / 9.47 ±0.24 / 9.90 ms │           9.20 / 9.38 ±0.28 / 9.93 ms │     no change │
│ QQuery 74 │     169.87 / 175.30 ±8.14 / 191.45 ms │     168.81 / 172.36 ±2.51 / 175.69 ms │     no change │
│ QQuery 75 │     147.88 / 149.66 ±1.22 / 151.38 ms │     147.98 / 151.59 ±5.67 / 162.77 ms │     no change │
│ QQuery 76 │        35.56 / 36.31 ±0.40 / 36.78 ms │        35.14 / 35.75 ±0.45 / 36.42 ms │     no change │
│ QQuery 77 │        60.94 / 61.57 ±0.46 / 62.12 ms │        61.38 / 64.84 ±4.56 / 73.80 ms │  1.05x slower │
│ QQuery 78 │     188.89 / 195.10 ±7.06 / 207.96 ms │     190.28 / 192.88 ±1.91 / 195.96 ms │     no change │
│ QQuery 79 │        67.28 / 67.69 ±0.24 / 67.97 ms │        68.31 / 69.43 ±1.21 / 71.79 ms │     no change │
│ QQuery 80 │     101.35 / 107.06 ±5.45 / 114.93 ms │      99.20 / 100.32 ±0.84 / 101.21 ms │ +1.07x faster │
│ QQuery 81 │        25.80 / 26.01 ±0.21 / 26.27 ms │        25.47 / 26.17 ±1.03 / 28.18 ms │     no change │
│ QQuery 82 │        16.09 / 16.31 ±0.16 / 16.55 ms │        16.56 / 17.38 ±1.05 / 19.38 ms │  1.07x slower │
│ QQuery 83 │        39.59 / 39.98 ±0.39 / 40.63 ms │        39.81 / 40.81 ±1.04 / 42.54 ms │     no change │
│ QQuery 84 │        34.27 / 34.49 ±0.19 / 34.75 ms │        34.51 / 34.85 ±0.27 / 35.22 ms │     no change │
│ QQuery 85 │     108.72 / 112.44 ±5.08 / 122.36 ms │     107.43 / 109.33 ±2.52 / 114.28 ms │     no change │
│ QQuery 86 │        25.07 / 25.26 ±0.21 / 25.66 ms │        26.85 / 27.05 ±0.16 / 27.34 ms │  1.07x slower │
│ QQuery 87 │        63.23 / 63.58 ±0.40 / 64.08 ms │        63.82 / 65.36 ±1.91 / 68.90 ms │     no change │
│ QQuery 88 │        62.06 / 64.44 ±3.22 / 70.83 ms │        65.21 / 65.69 ±0.29 / 66.05 ms │     no change │
│ QQuery 89 │        35.75 / 36.35 ±0.37 / 36.91 ms │        35.86 / 37.69 ±2.69 / 43.03 ms │     no change │
│ QQuery 90 │        16.68 / 16.91 ±0.21 / 17.23 ms │        17.36 / 17.59 ±0.21 / 17.91 ms │     no change │
│ QQuery 91 │        44.76 / 45.10 ±0.28 / 45.50 ms │        44.82 / 45.28 ±0.29 / 45.64 ms │     no change │
│ QQuery 92 │        28.88 / 29.10 ±0.21 / 29.45 ms │        30.45 / 30.86 ±0.31 / 31.32 ms │  1.06x slower │
│ QQuery 93 │        51.31 / 53.93 ±3.43 / 60.44 ms │        49.94 / 51.24 ±0.74 / 52.23 ms │     no change │
│ QQuery 94 │        38.75 / 39.19 ±0.47 / 40.08 ms │        39.28 / 39.63 ±0.26 / 39.97 ms │     no change │
│ QQuery 95 │        83.25 / 83.65 ±0.24 / 83.94 ms │        82.59 / 83.79 ±1.81 / 87.38 ms │     no change │
│ QQuery 96 │        23.83 / 24.15 ±0.22 / 24.49 ms │        24.97 / 25.22 ±0.26 / 25.61 ms │     no change │
│ QQuery 97 │        46.08 / 47.97 ±2.68 / 53.29 ms │        49.69 / 50.00 ±0.44 / 50.85 ms │     no change │
│ QQuery 98 │        42.52 / 43.50 ±0.79 / 44.73 ms │        42.87 / 43.28 ±0.44 / 44.05 ms │     no change │
│ QQuery 99 │        69.65 / 70.34 ±0.47 / 71.00 ms │        72.85 / 74.47 ±2.28 / 78.93 ms │  1.06x slower │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                                 ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                                 │ 10581.45ms │
│ Total Time (neilc_perf-fd-convert-to-semi-join)   │ 10492.69ms │
│ Average Time (HEAD)                               │   106.88ms │
│ Average Time (neilc_perf-fd-convert-to-semi-join) │   105.99ms │
│ Queries Faster                                    │         10 │
│ Queries Slower                                    │         10 │
│ Queries with No Change                            │         79 │
│ Queries with Failure                              │          0 │
└───────────────────────────────────────────────────┴────────────┘

Resource Usage

tpcds — base (merge-base)

Metric Value
Wall time 55.0s
Peak memory 6.6 GiB
Avg memory 6.1 GiB
CPU user 242.4s
CPU sys 6.5s
Peak spill 0 B

tpcds — branch

Metric Value
Wall time 55.0s
Peak memory 6.6 GiB
Avg memory 6.1 GiB
CPU user 241.4s
CPU sys 6.4s
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 neilc_perf-fd-convert-to-semi-join
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃    neilc_perf-fd-convert-to-semi-join ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0  │          1.17 / 3.36 ±4.33 / 12.02 ms │          1.20 / 3.33 ±4.17 / 11.66 ms │     no change │
│ QQuery 1  │        12.40 / 12.52 ±0.06 / 12.59 ms │        12.17 / 12.51 ±0.21 / 12.71 ms │     no change │
│ QQuery 2  │        35.25 / 35.52 ±0.26 / 35.99 ms │        35.54 / 35.82 ±0.22 / 36.17 ms │     no change │
│ QQuery 3  │        30.68 / 31.50 ±1.06 / 33.55 ms │        30.75 / 31.02 ±0.41 / 31.84 ms │     no change │
│ QQuery 4  │     224.47 / 227.31 ±2.81 / 232.24 ms │     224.17 / 226.29 ±1.83 / 229.10 ms │     no change │
│ QQuery 5  │     272.92 / 274.33 ±0.94 / 275.40 ms │     271.52 / 275.28 ±3.29 / 280.68 ms │     no change │
│ QQuery 6  │           1.19 / 1.34 ±0.23 / 1.79 ms │           1.24 / 1.41 ±0.24 / 1.88 ms │     no change │
│ QQuery 7  │        13.48 / 13.79 ±0.29 / 14.24 ms │        13.63 / 13.85 ±0.19 / 14.09 ms │     no change │
│ QQuery 8  │     322.67 / 325.22 ±1.91 / 328.01 ms │     321.43 / 325.87 ±3.70 / 332.01 ms │     no change │
│ QQuery 9  │     457.60 / 463.43 ±3.90 / 469.48 ms │     455.09 / 461.73 ±6.00 / 471.62 ms │     no change │
│ QQuery 10 │        69.32 / 70.49 ±1.26 / 72.90 ms │        70.38 / 71.94 ±1.02 / 73.21 ms │     no change │
│ QQuery 11 │        81.52 / 82.22 ±0.58 / 83.27 ms │        81.09 / 82.73 ±1.30 / 84.84 ms │     no change │
│ QQuery 12 │     266.61 / 275.08 ±5.32 / 282.15 ms │     268.04 / 272.41 ±3.43 / 276.52 ms │     no change │
│ QQuery 13 │     370.81 / 376.30 ±7.17 / 390.44 ms │    369.31 / 386.20 ±10.05 / 398.71 ms │     no change │
│ QQuery 14 │     284.74 / 288.99 ±3.80 / 294.43 ms │     282.14 / 286.11 ±3.27 / 290.90 ms │     no change │
│ QQuery 15 │     267.79 / 272.21 ±3.36 / 277.11 ms │     268.16 / 279.24 ±9.27 / 293.85 ms │     no change │
│ QQuery 16 │     617.85 / 628.68 ±6.69 / 636.38 ms │     619.57 / 627.77 ±7.85 / 641.64 ms │     no change │
│ QQuery 17 │     634.67 / 638.51 ±2.94 / 641.59 ms │    614.89 / 634.47 ±14.25 / 658.26 ms │     no change │
│ QQuery 18 │ 1288.35 / 1315.10 ±18.32 / 1343.54 ms │ 1252.48 / 1298.76 ±36.41 / 1340.75 ms │     no change │
│ QQuery 19 │        27.49 / 29.96 ±4.62 / 39.18 ms │       27.74 / 37.43 ±11.80 / 54.75 ms │  1.25x slower │
│ QQuery 20 │     515.41 / 527.96 ±8.27 / 538.25 ms │    518.17 / 535.55 ±17.56 / 566.38 ms │     no change │
│ QQuery 21 │     595.22 / 599.02 ±3.16 / 603.35 ms │     595.18 / 599.69 ±3.28 / 604.31 ms │     no change │
│ QQuery 22 │  1062.26 / 1071.42 ±5.77 / 1079.04 ms │  1071.48 / 1078.60 ±7.81 / 1092.73 ms │     no change │
│ QQuery 23 │ 3202.83 / 3229.02 ±24.81 / 3273.48 ms │ 3209.54 / 3240.20 ±32.53 / 3287.65 ms │     no change │
│ QQuery 24 │        41.56 / 45.82 ±6.89 / 59.53 ms │        41.27 / 44.04 ±3.34 / 50.52 ms │     no change │
│ QQuery 25 │    111.96 / 119.40 ±11.56 / 142.31 ms │    111.06 / 121.38 ±16.15 / 153.23 ms │     no change │
│ QQuery 26 │        41.95 / 43.63 ±2.26 / 48.03 ms │        42.02 / 44.82 ±3.69 / 52.03 ms │     no change │
│ QQuery 27 │     671.54 / 677.86 ±5.23 / 683.82 ms │     670.99 / 678.74 ±6.15 / 687.34 ms │     no change │
│ QQuery 28 │ 3039.44 / 3070.75 ±30.19 / 3112.22 ms │ 3039.37 / 3058.30 ±20.30 / 3096.23 ms │     no change │
│ QQuery 29 │        40.17 / 44.46 ±5.86 / 55.46 ms │       40.15 / 61.27 ±25.98 / 99.91 ms │  1.38x slower │
│ QQuery 30 │    295.89 / 310.12 ±11.15 / 322.86 ms │     298.01 / 305.21 ±5.02 / 312.28 ms │     no change │
│ QQuery 31 │     285.29 / 298.04 ±9.62 / 314.53 ms │    289.96 / 305.04 ±20.97 / 346.61 ms │     no change │
│ QQuery 32 │   950.29 / 984.73 ±22.89 / 1005.85 ms │   941.41 / 989.15 ±29.65 / 1032.07 ms │     no change │
│ QQuery 33 │ 1452.98 / 1496.00 ±43.12 / 1574.57 ms │ 1466.85 / 1484.13 ±17.93 / 1513.86 ms │     no change │
│ QQuery 34 │ 1468.64 / 1535.60 ±54.25 / 1601.85 ms │ 1455.60 / 1482.68 ±22.05 / 1517.88 ms │     no change │
│ QQuery 35 │    273.02 / 300.76 ±28.30 / 354.39 ms │    277.06 / 345.21 ±94.29 / 531.72 ms │  1.15x slower │
│ QQuery 36 │        67.60 / 77.40 ±9.33 / 94.80 ms │        65.53 / 69.51 ±3.17 / 74.97 ms │ +1.11x faster │
│ QQuery 37 │        35.44 / 40.66 ±4.59 / 47.02 ms │        35.41 / 36.64 ±0.85 / 37.94 ms │ +1.11x faster │
│ QQuery 38 │        43.28 / 45.27 ±3.52 / 52.27 ms │        39.76 / 41.05 ±1.25 / 42.84 ms │ +1.10x faster │
│ QQuery 39 │     140.64 / 149.87 ±6.25 / 159.68 ms │    141.40 / 152.89 ±13.79 / 179.54 ms │     no change │
│ QQuery 40 │        14.02 / 16.45 ±4.38 / 25.21 ms │        13.87 / 14.35 ±0.45 / 15.11 ms │ +1.15x faster │
│ QQuery 41 │        13.43 / 15.20 ±2.65 / 20.32 ms │        13.19 / 13.54 ±0.19 / 13.75 ms │ +1.12x faster │
│ QQuery 42 │        12.61 / 12.95 ±0.20 / 13.24 ms │        12.78 / 12.97 ±0.16 / 13.24 ms │     no change │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                                 ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                                 │ 20078.22ms │
│ Total Time (neilc_perf-fd-convert-to-semi-join)   │ 20079.14ms │
│ Average Time (HEAD)                               │   466.94ms │
│ Average Time (neilc_perf-fd-convert-to-semi-join) │   466.96ms │
│ Queries Faster                                    │          5 │
│ Queries Slower                                    │          3 │
│ Queries with No Change                            │         35 │
│ Queries with Failure                              │          0 │
└───────────────────────────────────────────────────┴────────────┘

Resource Usage

clickbench_partitioned — base (merge-base)

Metric Value
Wall time 105.0s
Peak memory 30.5 GiB
Avg memory 22.7 GiB
CPU user 1028.0s
CPU sys 77.2s
Peak spill 0 B

clickbench_partitioned — branch

Metric Value
Wall time 105.0s
Peak memory 29.8 GiB
Avg memory 23.0 GiB
CPU user 1026.2s
CPU sys 77.8s
Peak spill 0 B

File an issue against this benchmark runner

@Dandandan

Copy link
Copy Markdown
Contributor

run benchmarks

@Dandandan

Copy link
Copy Markdown
Contributor

run benchmark tpch10

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4645504218-470-jprlj 6.12.68+ #1 SMP Sat May 2 07:49:07 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 neilc/perf-fd-convert-to-semi-join (227b2ac) to 04ef3c7 (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-c4645504218-471-s8k55 6.12.68+ #1 SMP Sat May 2 07:49:07 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 neilc/perf-fd-convert-to-semi-join (227b2ac) to 04ef3c7 (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-c4645504218-472-q66tt 6.12.68+ #1 SMP Sat May 2 07:49:07 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 neilc/perf-fd-convert-to-semi-join (227b2ac) to 04ef3c7 (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 running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4645505063-473-629mr 6.12.68+ #1 SMP Sat May 2 07:49:07 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 neilc/perf-fd-convert-to-semi-join (227b2ac) to 04ef3c7 (merge-base) diff using: tpch10
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 neilc_perf-fd-convert-to-semi-join
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Query     ┃                           HEAD ┃ neilc_perf-fd-convert-to-semi-join ┃    Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ QQuery 1  │ 37.99 / 38.67 ±0.96 / 40.56 ms │     38.05 / 39.18 ±1.69 / 42.54 ms │ no change │
│ QQuery 2  │ 18.33 / 18.71 ±0.30 / 19.23 ms │     18.79 / 19.44 ±0.88 / 21.14 ms │ no change │
│ QQuery 3  │ 31.06 / 32.72 ±1.34 / 33.95 ms │     30.47 / 32.64 ±1.27 / 33.66 ms │ no change │
│ QQuery 4  │ 17.10 / 17.49 ±0.46 / 18.33 ms │     17.04 / 17.15 ±0.10 / 17.27 ms │ no change │
│ QQuery 5  │ 38.52 / 40.78 ±1.65 / 43.64 ms │     38.24 / 39.58 ±0.99 / 40.54 ms │ no change │
│ QQuery 6  │ 16.02 / 16.56 ±0.71 / 17.97 ms │     16.13 / 16.30 ±0.11 / 16.44 ms │ no change │
│ QQuery 7  │ 42.96 / 44.94 ±1.18 / 46.19 ms │     43.24 / 45.65 ±1.62 / 47.56 ms │ no change │
│ QQuery 8  │ 42.57 / 42.80 ±0.15 / 42.98 ms │     42.82 / 42.96 ±0.19 / 43.33 ms │ no change │
│ QQuery 9  │ 48.87 / 49.83 ±0.76 / 51.16 ms │     48.75 / 49.87 ±0.68 / 50.66 ms │ no change │
│ QQuery 10 │ 41.86 / 42.87 ±1.36 / 45.46 ms │     42.11 / 43.20 ±1.35 / 45.83 ms │ no change │
│ QQuery 11 │ 13.09 / 13.20 ±0.10 / 13.36 ms │     13.13 / 13.27 ±0.10 / 13.40 ms │ no change │
│ QQuery 12 │ 23.52 / 24.09 ±0.59 / 25.18 ms │     23.59 / 23.85 ±0.18 / 24.10 ms │ no change │
│ QQuery 13 │ 33.63 / 34.35 ±0.64 / 35.30 ms │     31.74 / 33.35 ±1.54 / 35.79 ms │ no change │
│ QQuery 14 │ 23.78 / 24.45 ±0.91 / 26.22 ms │     23.58 / 23.81 ±0.20 / 24.09 ms │ no change │
│ QQuery 15 │ 31.24 / 31.71 ±0.57 / 32.74 ms │     31.72 / 32.22 ±0.58 / 33.20 ms │ no change │
│ QQuery 16 │ 13.89 / 14.14 ±0.16 / 14.30 ms │     13.79 / 13.96 ±0.15 / 14.16 ms │ no change │
│ QQuery 17 │ 72.59 / 73.79 ±0.64 / 74.43 ms │     74.19 / 75.28 ±1.10 / 77.32 ms │ no change │
│ QQuery 18 │ 58.54 / 60.22 ±1.92 / 63.95 ms │     56.97 / 58.92 ±1.52 / 61.30 ms │ no change │
│ QQuery 19 │ 32.73 / 32.99 ±0.21 / 33.24 ms │     33.13 / 33.48 ±0.30 / 34.04 ms │ no change │
│ QQuery 20 │ 32.24 / 33.21 ±1.37 / 35.91 ms │     31.89 / 32.17 ±0.28 / 32.65 ms │ no change │
│ QQuery 21 │ 56.22 / 57.96 ±1.37 / 59.82 ms │     54.01 / 56.61 ±1.69 / 58.26 ms │ no change │
│ QQuery 22 │ 13.88 / 14.33 ±0.67 / 15.67 ms │     13.78 / 14.13 ±0.53 / 15.19 ms │ no change │
└───────────┴────────────────────────────────┴────────────────────────────────────┴───────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary                                 ┃          ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD)                                 │ 759.83ms │
│ Total Time (neilc_perf-fd-convert-to-semi-join)   │ 757.01ms │
│ Average Time (HEAD)                               │  34.54ms │
│ Average Time (neilc_perf-fd-convert-to-semi-join) │  34.41ms │
│ Queries Faster                                    │        0 │
│ Queries Slower                                    │        0 │
│ Queries with No Change                            │       22 │
│ Queries with Failure                              │        0 │
└───────────────────────────────────────────────────┴──────────┘

Resource Usage

tpch — base (merge-base)

Metric Value
Wall time 5.0s
Peak memory 5.8 GiB
Avg memory 4.9 GiB
CPU user 30.1s
CPU sys 2.2s
Peak spill 0 B

tpch — branch

Metric Value
Wall time 5.0s
Peak memory 5.7 GiB
Avg memory 4.9 GiB
CPU user 29.8s
CPU sys 2.2s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected
Details

Comparing HEAD and neilc_perf-fd-convert-to-semi-join
--------------------
Benchmark tpch_sf10.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                               HEAD ┃ neilc_perf-fd-convert-to-semi-join ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │  316.69 / 317.72 ±0.65 / 318.61 ms │  313.34 / 315.34 ±1.19 / 316.87 ms │     no change │
│ QQuery 2  │  104.28 / 106.89 ±2.29 / 110.16 ms │  100.89 / 104.54 ±1.97 / 106.16 ms │     no change │
│ QQuery 3  │  234.75 / 242.60 ±7.12 / 255.06 ms │  237.18 / 238.98 ±2.01 / 242.67 ms │     no change │
│ QQuery 4  │  116.34 / 118.03 ±1.66 / 120.81 ms │  115.12 / 117.51 ±2.38 / 121.99 ms │     no change │
│ QQuery 5  │  352.36 / 359.33 ±4.98 / 366.58 ms │ 353.01 / 366.46 ±11.96 / 382.70 ms │     no change │
│ QQuery 6  │  126.25 / 128.23 ±1.87 / 131.71 ms │  126.63 / 129.18 ±2.36 / 133.64 ms │     no change │
│ QQuery 7  │ 465.86 / 482.51 ±15.07 / 500.88 ms │  467.15 / 478.35 ±9.09 / 492.54 ms │     no change │
│ QQuery 8  │  391.89 / 396.20 ±3.07 / 400.01 ms │  383.02 / 391.28 ±6.18 / 400.41 ms │     no change │
│ QQuery 9  │ 552.16 / 563.63 ±15.90 / 595.00 ms │  549.93 / 558.26 ±8.69 / 574.73 ms │     no change │
│ QQuery 10 │ 299.60 / 314.29 ±10.90 / 330.51 ms │  302.09 / 315.56 ±9.20 / 330.53 ms │     no change │
│ QQuery 11 │    86.35 / 90.46 ±7.70 / 105.85 ms │    84.02 / 90.83 ±6.78 / 103.52 ms │     no change │
│ QQuery 12 │ 181.80 / 191.47 ±12.26 / 214.02 ms │ 180.46 / 189.59 ±13.07 / 214.64 ms │     no change │
│ QQuery 13 │ 297.44 / 310.25 ±14.43 / 337.18 ms │  293.74 / 303.39 ±7.02 / 313.44 ms │     no change │
│ QQuery 14 │  178.42 / 180.27 ±3.26 / 186.78 ms │  177.81 / 181.78 ±3.52 / 186.79 ms │     no change │
│ QQuery 15 │  317.07 / 322.06 ±2.91 / 326.17 ms │  315.22 / 320.06 ±3.77 / 324.53 ms │     no change │
│ QQuery 16 │     65.98 / 68.97 ±1.65 / 71.07 ms │     65.87 / 68.79 ±3.17 / 74.89 ms │     no change │
│ QQuery 17 │ 648.67 / 659.27 ±12.79 / 682.84 ms │ 631.00 / 649.14 ±16.35 / 671.32 ms │     no change │
│ QQuery 18 │ 720.81 / 761.83 ±36.08 / 825.37 ms │  713.80 / 719.39 ±5.75 / 729.99 ms │ +1.06x faster │
│ QQuery 19 │ 259.80 / 274.23 ±17.56 / 303.23 ms │ 251.75 / 269.14 ±19.91 / 300.21 ms │     no change │
│ QQuery 20 │ 281.72 / 308.92 ±15.85 / 326.73 ms │  296.91 / 302.45 ±5.29 / 312.48 ms │     no change │
│ QQuery 21 │ 822.31 / 856.13 ±28.02 / 896.96 ms │  657.52 / 669.31 ±7.18 / 680.04 ms │ +1.28x faster │
│ QQuery 22 │   61.18 / 77.86 ±23.99 / 124.90 ms │     60.48 / 65.66 ±5.29 / 75.42 ms │ +1.19x faster │
└───────────┴────────────────────────────────────┴────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary                                 ┃           ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD)                                 │ 7131.15ms │
│ Total Time (neilc_perf-fd-convert-to-semi-join)   │ 6844.99ms │
│ Average Time (HEAD)                               │  324.14ms │
│ Average Time (neilc_perf-fd-convert-to-semi-join) │  311.14ms │
│ Queries Faster                                    │         3 │
│ Queries Slower                                    │         0 │
│ Queries with No Change                            │        19 │
│ Queries with Failure                              │         0 │
└───────────────────────────────────────────────────┴───────────┘

Resource Usage

tpch10 — base (merge-base)

Metric Value
Wall time 40.0s
Peak memory 12.3 GiB
Avg memory 8.6 GiB
CPU user 367.9s
CPU sys 23.8s
Peak spill 0 B

tpch10 — branch

Metric Value
Wall time 35.0s
Peak memory 12.3 GiB
Avg memory 8.6 GiB
CPU user 356.8s
CPU sys 21.3s
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 neilc_perf-fd-convert-to-semi-join
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃    neilc_perf-fd-convert-to-semi-join ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │           5.78 / 6.39 ±0.94 / 8.26 ms │           5.98 / 6.41 ±0.79 / 7.99 ms │     no change │
│ QQuery 2  │        80.08 / 80.45 ±0.33 / 81.02 ms │        81.95 / 82.16 ±0.16 / 82.32 ms │     no change │
│ QQuery 3  │        28.86 / 29.31 ±0.25 / 29.63 ms │        30.13 / 30.29 ±0.16 / 30.58 ms │     no change │
│ QQuery 4  │     496.79 / 501.67 ±4.03 / 508.61 ms │     550.38 / 562.90 ±8.55 / 574.33 ms │  1.12x slower │
│ QQuery 5  │        51.37 / 52.08 ±0.54 / 52.75 ms │        53.21 / 54.91 ±1.07 / 56.52 ms │  1.05x slower │
│ QQuery 6  │        36.54 / 36.93 ±0.24 / 37.27 ms │        38.78 / 40.15 ±0.77 / 41.01 ms │  1.09x slower │
│ QQuery 7  │       95.86 / 97.60 ±2.75 / 103.07 ms │      99.13 / 102.01 ±4.82 / 111.58 ms │     no change │
│ QQuery 8  │        37.13 / 37.48 ±0.26 / 37.93 ms │        37.93 / 38.74 ±0.42 / 39.09 ms │     no change │
│ QQuery 9  │        50.90 / 54.32 ±1.96 / 56.69 ms │        54.15 / 57.61 ±1.74 / 58.72 ms │  1.06x slower │
│ QQuery 10 │        62.58 / 62.99 ±0.27 / 63.31 ms │        64.56 / 66.98 ±3.70 / 74.35 ms │  1.06x slower │
│ QQuery 11 │     306.21 / 309.79 ±3.41 / 314.60 ms │     357.87 / 365.62 ±3.95 / 368.41 ms │  1.18x slower │
│ QQuery 12 │        28.91 / 29.15 ±0.30 / 29.73 ms │        30.57 / 31.87 ±0.79 / 32.81 ms │  1.09x slower │
│ QQuery 13 │     120.24 / 121.31 ±1.48 / 124.25 ms │     124.31 / 125.85 ±0.97 / 126.71 ms │     no change │
│ QQuery 14 │     412.73 / 415.89 ±1.93 / 417.88 ms │     424.07 / 431.30 ±6.02 / 440.21 ms │     no change │
│ QQuery 15 │        58.01 / 59.10 ±0.60 / 59.64 ms │        65.56 / 72.02 ±4.99 / 78.97 ms │  1.22x slower │
│ QQuery 16 │           6.65 / 6.81 ±0.22 / 7.24 ms │           7.11 / 7.24 ±0.13 / 7.48 ms │  1.06x slower │
│ QQuery 17 │        80.76 / 82.21 ±1.97 / 86.05 ms │        82.59 / 84.18 ±1.72 / 87.53 ms │     no change │
│ QQuery 18 │     126.02 / 128.32 ±2.21 / 131.05 ms │     126.23 / 129.56 ±3.79 / 136.67 ms │     no change │
│ QQuery 19 │        42.88 / 43.33 ±0.31 / 43.74 ms │        42.71 / 43.01 ±0.23 / 43.38 ms │     no change │
│ QQuery 20 │        37.28 / 37.78 ±0.33 / 38.08 ms │        35.82 / 36.24 ±0.37 / 36.77 ms │     no change │
│ QQuery 21 │        17.82 / 19.07 ±1.74 / 22.48 ms │        17.91 / 17.94 ±0.04 / 18.02 ms │ +1.06x faster │
│ QQuery 22 │        69.16 / 70.45 ±1.17 / 72.10 ms │        68.49 / 69.56 ±1.28 / 71.87 ms │     no change │
│ QQuery 23 │     346.53 / 352.29 ±6.34 / 363.70 ms │    375.45 / 387.86 ±16.19 / 419.65 ms │  1.10x slower │
│ QQuery 24 │     229.23 / 233.13 ±3.46 / 239.38 ms │     232.72 / 236.54 ±2.68 / 239.76 ms │     no change │
│ QQuery 25 │     115.46 / 116.85 ±0.99 / 117.77 ms │     113.49 / 115.94 ±1.76 / 118.14 ms │     no change │
│ QQuery 26 │        60.89 / 62.01 ±0.69 / 62.79 ms │        58.63 / 60.56 ±1.90 / 64.20 ms │     no change │
│ QQuery 27 │           7.28 / 7.34 ±0.03 / 7.37 ms │           6.64 / 6.75 ±0.09 / 6.86 ms │ +1.09x faster │
│ QQuery 28 │        61.74 / 62.50 ±0.66 / 63.32 ms │        62.94 / 63.56 ±0.84 / 65.19 ms │     no change │
│ QQuery 29 │     101.60 / 104.89 ±3.52 / 110.84 ms │     101.05 / 101.82 ±0.51 / 102.57 ms │     no change │
│ QQuery 30 │        34.17 / 34.65 ±0.38 / 35.26 ms │        34.51 / 34.94 ±0.46 / 35.80 ms │     no change │
│ QQuery 31 │     115.62 / 117.22 ±1.42 / 119.83 ms │     116.53 / 117.75 ±1.02 / 119.25 ms │     no change │
│ QQuery 32 │        21.80 / 23.14 ±2.12 / 27.37 ms │        21.58 / 21.76 ±0.17 / 22.02 ms │ +1.06x faster │
│ QQuery 33 │        40.79 / 42.52 ±2.36 / 47.16 ms │        39.81 / 40.32 ±0.63 / 41.37 ms │ +1.05x faster │
│ QQuery 34 │         9.97 / 10.35 ±0.44 / 10.93 ms │        10.48 / 10.79 ±0.27 / 11.14 ms │     no change │
│ QQuery 35 │        79.30 / 80.73 ±0.90 / 82.12 ms │        78.37 / 79.30 ±0.79 / 80.34 ms │     no change │
│ QQuery 36 │           6.20 / 6.33 ±0.11 / 6.51 ms │           6.44 / 6.55 ±0.09 / 6.67 ms │     no change │
│ QQuery 37 │           7.24 / 7.27 ±0.02 / 7.28 ms │           7.59 / 7.63 ±0.05 / 7.73 ms │     no change │
│ QQuery 38 │        69.03 / 70.97 ±2.22 / 75.12 ms │        68.73 / 69.19 ±0.34 / 69.66 ms │     no change │
│ QQuery 39 │     492.15 / 503.93 ±7.26 / 512.69 ms │     501.28 / 510.75 ±5.02 / 515.66 ms │     no change │
│ QQuery 40 │        24.44 / 24.60 ±0.12 / 24.78 ms │        24.70 / 24.91 ±0.27 / 25.44 ms │     no change │
│ QQuery 41 │        11.82 / 12.07 ±0.27 / 12.58 ms │        12.32 / 12.55 ±0.16 / 12.80 ms │     no change │
│ QQuery 42 │        25.09 / 25.18 ±0.08 / 25.28 ms │        25.07 / 25.53 ±0.42 / 26.21 ms │     no change │
│ QQuery 43 │           5.27 / 5.37 ±0.12 / 5.60 ms │           5.37 / 5.45 ±0.07 / 5.57 ms │     no change │
│ QQuery 44 │         9.53 / 11.88 ±4.25 / 20.38 ms │         9.87 / 10.18 ±0.26 / 10.63 ms │ +1.17x faster │
│ QQuery 45 │        44.54 / 49.11 ±4.05 / 56.67 ms │        45.54 / 48.27 ±3.44 / 54.98 ms │     no change │
│ QQuery 46 │        12.52 / 13.26 ±0.51 / 13.86 ms │        12.10 / 12.41 ±0.43 / 13.26 ms │ +1.07x faster │
│ QQuery 47 │     271.59 / 281.21 ±8.94 / 295.75 ms │     260.54 / 269.43 ±6.61 / 278.61 ms │     no change │
│ QQuery 48 │      98.80 / 103.11 ±3.61 / 107.66 ms │       98.96 / 99.73 ±0.66 / 100.54 ms │     no change │
│ QQuery 49 │        80.35 / 81.43 ±0.81 / 82.84 ms │        78.81 / 80.64 ±1.76 / 83.93 ms │     no change │
│ QQuery 50 │        62.01 / 62.65 ±0.46 / 63.44 ms │        60.43 / 61.44 ±0.73 / 62.16 ms │     no change │
│ QQuery 51 │      96.31 / 100.70 ±5.15 / 109.67 ms │       93.64 / 97.24 ±4.86 / 106.77 ms │     no change │
│ QQuery 52 │        25.15 / 25.59 ±0.35 / 26.06 ms │        25.49 / 26.21 ±1.19 / 28.58 ms │     no change │
│ QQuery 53 │        30.34 / 30.67 ±0.23 / 30.99 ms │        30.30 / 30.47 ±0.14 / 30.65 ms │     no change │
│ QQuery 54 │        56.51 / 58.29 ±1.61 / 61.30 ms │        55.65 / 56.89 ±0.77 / 58.00 ms │     no change │
│ QQuery 55 │        24.72 / 25.45 ±0.55 / 26.26 ms │        24.36 / 24.80 ±0.28 / 25.11 ms │     no change │
│ QQuery 56 │        40.15 / 41.05 ±0.54 / 41.62 ms │        40.61 / 43.01 ±4.05 / 51.08 ms │     no change │
│ QQuery 57 │     183.13 / 185.79 ±2.14 / 189.06 ms │     181.13 / 183.83 ±1.93 / 186.14 ms │     no change │
│ QQuery 58 │     118.29 / 118.77 ±0.47 / 119.64 ms │     116.88 / 117.80 ±0.55 / 118.42 ms │     no change │
│ QQuery 59 │     121.56 / 123.51 ±2.61 / 128.63 ms │     118.00 / 120.74 ±2.92 / 126.17 ms │     no change │
│ QQuery 60 │        41.09 / 41.79 ±0.56 / 42.67 ms │        40.63 / 41.33 ±0.54 / 42.30 ms │     no change │
│ QQuery 61 │        13.93 / 14.06 ±0.10 / 14.20 ms │        12.09 / 12.40 ±0.31 / 12.78 ms │ +1.13x faster │
│ QQuery 62 │        48.45 / 49.34 ±0.80 / 50.63 ms │        48.40 / 48.55 ±0.10 / 48.70 ms │     no change │
│ QQuery 63 │        30.73 / 33.09 ±3.67 / 40.40 ms │        30.24 / 30.50 ±0.21 / 30.81 ms │ +1.09x faster │
│ QQuery 64 │     421.50 / 431.85 ±7.36 / 439.70 ms │     413.47 / 418.00 ±4.49 / 425.88 ms │     no change │
│ QQuery 65 │     152.67 / 155.10 ±1.65 / 157.16 ms │     144.10 / 149.00 ±3.46 / 153.59 ms │     no change │
│ QQuery 66 │        84.58 / 85.33 ±0.57 / 86.26 ms │        79.44 / 82.35 ±3.74 / 89.63 ms │     no change │
│ QQuery 67 │     279.92 / 283.87 ±4.60 / 291.88 ms │     247.98 / 254.35 ±6.18 / 265.28 ms │ +1.12x faster │
│ QQuery 68 │        12.97 / 13.07 ±0.10 / 13.26 ms │        11.55 / 14.28 ±4.51 / 23.27 ms │  1.09x slower │
│ QQuery 69 │        60.85 / 64.41 ±6.64 / 77.68 ms │        57.46 / 57.76 ±0.16 / 57.92 ms │ +1.12x faster │
│ QQuery 70 │     111.94 / 114.48 ±3.22 / 120.83 ms │     105.74 / 109.21 ±4.40 / 117.66 ms │     no change │
│ QQuery 71 │        37.86 / 43.76 ±6.98 / 53.86 ms │        35.33 / 38.34 ±5.00 / 48.31 ms │ +1.14x faster │
│ QQuery 72 │ 2281.65 / 2339.58 ±82.95 / 2503.03 ms │ 2152.67 / 2200.73 ±35.06 / 2249.73 ms │ +1.06x faster │
│ QQuery 73 │          9.53 / 9.93 ±0.28 / 10.33 ms │          9.23 / 9.91 ±0.65 / 10.96 ms │     no change │
│ QQuery 74 │     173.81 / 177.77 ±3.33 / 183.88 ms │     173.89 / 176.42 ±2.66 / 181.15 ms │     no change │
│ QQuery 75 │    147.37 / 154.96 ±10.04 / 174.77 ms │     148.52 / 151.90 ±5.84 / 163.50 ms │     no change │
│ QQuery 76 │        35.52 / 35.81 ±0.19 / 36.05 ms │        35.34 / 36.10 ±0.39 / 36.46 ms │     no change │
│ QQuery 77 │        60.79 / 61.75 ±0.52 / 62.24 ms │        61.05 / 62.04 ±0.67 / 62.96 ms │     no change │
│ QQuery 78 │     185.02 / 191.40 ±8.21 / 207.18 ms │     184.86 / 191.41 ±5.88 / 199.87 ms │     no change │
│ QQuery 79 │        66.70 / 72.35 ±7.62 / 87.39 ms │        66.54 / 67.22 ±0.46 / 67.91 ms │ +1.08x faster │
│ QQuery 80 │     101.59 / 105.27 ±4.56 / 114.24 ms │      98.67 / 100.43 ±1.13 / 102.07 ms │     no change │
│ QQuery 81 │        25.89 / 26.03 ±0.11 / 26.17 ms │        25.93 / 28.07 ±4.10 / 36.27 ms │  1.08x slower │
│ QQuery 82 │        16.57 / 16.69 ±0.10 / 16.84 ms │        16.01 / 16.63 ±0.38 / 17.08 ms │     no change │
│ QQuery 83 │        40.51 / 45.36 ±5.46 / 54.73 ms │        39.45 / 39.99 ±0.52 / 40.91 ms │ +1.13x faster │
│ QQuery 84 │        34.84 / 35.46 ±0.41 / 36.05 ms │        30.03 / 32.07 ±3.50 / 39.06 ms │ +1.11x faster │
│ QQuery 85 │     111.00 / 112.20 ±1.04 / 113.73 ms │     107.79 / 110.00 ±3.78 / 117.54 ms │     no change │
│ QQuery 86 │        26.42 / 29.05 ±2.78 / 34.02 ms │        25.08 / 26.11 ±1.06 / 28.11 ms │ +1.11x faster │
│ QQuery 87 │        69.13 / 70.15 ±1.11 / 72.23 ms │        63.23 / 64.44 ±0.78 / 65.31 ms │ +1.09x faster │
│ QQuery 88 │        63.95 / 64.52 ±0.61 / 65.70 ms │        62.38 / 62.92 ±0.59 / 64.06 ms │     no change │
│ QQuery 89 │        36.68 / 37.08 ±0.35 / 37.64 ms │        35.61 / 36.63 ±1.42 / 39.44 ms │     no change │
│ QQuery 90 │        17.27 / 17.63 ±0.28 / 18.02 ms │        16.44 / 16.78 ±0.24 / 17.11 ms │     no change │
│ QQuery 91 │        46.21 / 48.81 ±3.54 / 55.84 ms │        45.42 / 46.24 ±0.49 / 46.96 ms │ +1.06x faster │
│ QQuery 92 │        30.80 / 31.93 ±0.86 / 33.37 ms │        29.53 / 31.11 ±2.33 / 35.60 ms │     no change │
│ QQuery 93 │        52.15 / 53.75 ±1.30 / 55.52 ms │        50.33 / 51.92 ±1.26 / 54.17 ms │     no change │
│ QQuery 94 │        40.18 / 40.88 ±1.00 / 42.88 ms │        38.43 / 38.87 ±0.50 / 39.75 ms │     no change │
│ QQuery 95 │        87.52 / 88.55 ±1.19 / 90.14 ms │        81.91 / 83.40 ±2.52 / 88.43 ms │ +1.06x faster │
│ QQuery 96 │        24.59 / 24.94 ±0.23 / 25.29 ms │        23.95 / 25.03 ±1.82 / 28.66 ms │     no change │
│ QQuery 97 │        46.54 / 47.08 ±0.46 / 47.66 ms │        46.48 / 47.65 ±0.90 / 49.25 ms │     no change │
│ QQuery 98 │        43.79 / 44.43 ±0.47 / 44.92 ms │        43.33 / 43.50 ±0.14 / 43.70 ms │     no change │
│ QQuery 99 │        71.14 / 73.12 ±2.42 / 77.81 ms │        69.87 / 71.45 ±2.07 / 75.52 ms │     no change │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                                 ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                                 │ 10884.87ms │
│ Total Time (neilc_perf-fd-convert-to-semi-join)   │ 10805.11ms │
│ Average Time (HEAD)                               │   109.95ms │
│ Average Time (neilc_perf-fd-convert-to-semi-join) │   109.14ms │
│ Queries Faster                                    │         19 │
│ Queries Slower                                    │         12 │
│ Queries with No Change                            │         68 │
│ Queries with Failure                              │          0 │
└───────────────────────────────────────────────────┴────────────┘

Resource Usage

tpcds — base (merge-base)

Metric Value
Wall time 55.0s
Peak memory 6.8 GiB
Avg memory 6.3 GiB
CPU user 252.6s
CPU sys 7.0s
Peak spill 0 B

tpcds — branch

Metric Value
Wall time 55.0s
Peak memory 6.6 GiB
Avg memory 6.2 GiB
CPU user 243.1s
CPU sys 6.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)

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 neilc_perf-fd-convert-to-semi-join
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃    neilc_perf-fd-convert-to-semi-join ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0  │          1.15 / 3.25 ±4.16 / 11.57 ms │          1.22 / 3.34 ±4.16 / 11.65 ms │     no change │
│ QQuery 1  │        12.80 / 12.93 ±0.09 / 13.08 ms │        12.39 / 12.59 ±0.18 / 12.90 ms │     no change │
│ QQuery 2  │        35.68 / 35.95 ±0.21 / 36.25 ms │        35.37 / 35.91 ±0.42 / 36.64 ms │     no change │
│ QQuery 3  │        30.47 / 31.19 ±0.74 / 32.60 ms │        30.85 / 31.09 ±0.28 / 31.62 ms │     no change │
│ QQuery 4  │     218.05 / 222.43 ±2.81 / 226.06 ms │     219.65 / 223.43 ±3.39 / 229.37 ms │     no change │
│ QQuery 5  │     269.29 / 271.16 ±1.74 / 273.44 ms │     269.10 / 270.93 ±1.11 / 272.21 ms │     no change │
│ QQuery 6  │           1.18 / 1.32 ±0.22 / 1.75 ms │           1.24 / 1.39 ±0.23 / 1.85 ms │  1.05x slower │
│ QQuery 7  │        13.74 / 14.01 ±0.25 / 14.48 ms │        13.54 / 13.63 ±0.08 / 13.77 ms │     no change │
│ QQuery 8  │     315.35 / 319.41 ±2.30 / 321.32 ms │     315.36 / 318.51 ±2.30 / 321.37 ms │     no change │
│ QQuery 9  │     452.09 / 456.01 ±5.04 / 465.66 ms │     450.52 / 457.16 ±7.55 / 470.43 ms │     no change │
│ QQuery 10 │        69.21 / 70.88 ±1.70 / 74.03 ms │        68.12 / 69.81 ±1.83 / 73.32 ms │     no change │
│ QQuery 11 │        81.39 / 82.00 ±0.52 / 82.92 ms │        80.31 / 81.84 ±1.33 / 84.22 ms │     no change │
│ QQuery 12 │     264.10 / 270.23 ±5.08 / 276.29 ms │     263.02 / 272.26 ±6.07 / 280.60 ms │     no change │
│ QQuery 13 │     367.43 / 378.37 ±8.52 / 390.48 ms │    368.87 / 385.18 ±11.91 / 404.82 ms │     no change │
│ QQuery 14 │     278.72 / 284.05 ±4.09 / 289.16 ms │     279.01 / 285.51 ±9.29 / 303.88 ms │     no change │
│ QQuery 15 │     262.82 / 268.08 ±4.15 / 274.12 ms │     268.67 / 275.43 ±6.62 / 288.07 ms │     no change │
│ QQuery 16 │     607.80 / 617.08 ±7.93 / 627.09 ms │    606.48 / 623.89 ±13.17 / 640.35 ms │     no change │
│ QQuery 17 │     611.90 / 620.35 ±6.77 / 629.27 ms │     618.20 / 625.19 ±3.69 / 628.94 ms │     no change │
│ QQuery 18 │ 1232.43 / 1253.49 ±14.47 / 1271.35 ms │ 1264.49 / 1291.89 ±19.32 / 1320.50 ms │     no change │
│ QQuery 19 │        27.50 / 29.99 ±3.94 / 37.76 ms │        27.63 / 27.75 ±0.07 / 27.82 ms │ +1.08x faster │
│ QQuery 20 │    513.73 / 530.48 ±17.49 / 561.58 ms │    521.81 / 536.63 ±15.59 / 561.75 ms │     no change │
│ QQuery 21 │     518.94 / 522.30 ±2.78 / 525.97 ms │     515.71 / 523.02 ±3.94 / 526.54 ms │     no change │
│ QQuery 22 │    987.90 / 995.13 ±5.37 / 1002.26 ms │   988.95 / 1001.91 ±8.35 / 1014.73 ms │     no change │
│ QQuery 23 │ 3186.62 / 3214.48 ±26.01 / 3261.35 ms │ 3207.84 / 3234.84 ±23.49 / 3270.27 ms │     no change │
│ QQuery 24 │        42.28 / 43.70 ±1.75 / 46.69 ms │        41.46 / 41.91 ±0.43 / 42.72 ms │     no change │
│ QQuery 25 │     109.85 / 113.68 ±3.86 / 120.59 ms │     109.72 / 112.04 ±3.79 / 119.58 ms │     no change │
│ QQuery 26 │        41.65 / 42.48 ±0.85 / 44.02 ms │        41.88 / 43.60 ±1.36 / 46.05 ms │     no change │
│ QQuery 27 │     669.32 / 677.81 ±4.90 / 684.08 ms │     672.09 / 676.70 ±3.25 / 681.41 ms │     no change │
│ QQuery 28 │ 3015.11 / 3037.94 ±19.45 / 3061.77 ms │ 3030.33 / 3066.47 ±22.08 / 3085.84 ms │     no change │
│ QQuery 29 │       39.64 / 61.15 ±19.72 / 92.74 ms │        40.12 / 44.59 ±8.11 / 60.78 ms │ +1.37x faster │
│ QQuery 30 │     300.21 / 304.81 ±6.87 / 318.45 ms │     297.32 / 303.09 ±3.13 / 305.85 ms │     no change │
│ QQuery 31 │     281.33 / 292.82 ±5.96 / 298.04 ms │    285.71 / 296.28 ±10.75 / 316.69 ms │     no change │
│ QQuery 32 │   950.24 / 978.36 ±26.90 / 1013.48 ms │    940.00 / 964.09 ±20.52 / 995.52 ms │     no change │
│ QQuery 33 │ 1447.04 / 1474.56 ±20.43 / 1507.37 ms │ 1413.05 / 1461.14 ±37.43 / 1526.06 ms │     no change │
│ QQuery 34 │ 1446.53 / 1482.84 ±23.37 / 1519.66 ms │ 1442.28 / 1500.56 ±49.87 / 1588.47 ms │     no change │
│ QQuery 35 │    279.98 / 303.24 ±31.17 / 359.73 ms │    277.63 / 313.02 ±42.23 / 394.05 ms │     no change │
│ QQuery 36 │        65.97 / 68.28 ±3.52 / 75.24 ms │        64.01 / 67.31 ±2.68 / 71.33 ms │     no change │
│ QQuery 37 │        34.79 / 39.95 ±9.24 / 58.40 ms │        35.07 / 40.23 ±7.75 / 55.55 ms │     no change │
│ QQuery 38 │        41.03 / 46.45 ±4.29 / 53.94 ms │        42.55 / 44.63 ±2.67 / 49.90 ms │     no change │
│ QQuery 39 │     141.77 / 149.52 ±9.42 / 166.78 ms │    131.67 / 150.19 ±10.68 / 162.76 ms │     no change │
│ QQuery 40 │        13.67 / 15.78 ±3.76 / 23.28 ms │        13.86 / 15.74 ±2.80 / 21.16 ms │     no change │
│ QQuery 41 │        13.33 / 13.50 ±0.22 / 13.92 ms │        13.24 / 15.04 ±2.91 / 20.83 ms │  1.11x slower │
│ QQuery 42 │        12.75 / 12.93 ±0.20 / 13.33 ms │        12.82 / 16.68 ±6.95 / 30.57 ms │  1.29x slower │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                                 ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                                 │ 19664.36ms │
│ Total Time (neilc_perf-fd-convert-to-semi-join)   │ 19776.45ms │
│ Average Time (HEAD)                               │   457.31ms │
│ Average Time (neilc_perf-fd-convert-to-semi-join) │   459.92ms │
│ Queries Faster                                    │          2 │
│ Queries Slower                                    │          3 │
│ Queries with No Change                            │         38 │
│ Queries with Failure                              │          0 │
└───────────────────────────────────────────────────┴────────────┘

Resource Usage

clickbench_partitioned — base (merge-base)

Metric Value
Wall time 100.0s
Peak memory 30.2 GiB
Avg memory 23.2 GiB
CPU user 1010.2s
CPU sys 73.7s
Peak spill 0 B

clickbench_partitioned — branch

Metric Value
Wall time 100.0s
Peak memory 30.4 GiB
Avg memory 23.2 GiB
CPU user 1009.8s
CPU sys 76.6s
Peak spill 0 B

File an issue against this benchmark runner

@Dandandan

Copy link
Copy Markdown
Contributor

run benchmark tpch10

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4647917709-476-gqlzs 6.12.68+ #1 SMP Sat May 2 07:49:07 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 neilc/perf-fd-convert-to-semi-join (227b2ac) to 04ef3c7 (merge-base) diff using: tpch10
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 neilc_perf-fd-convert-to-semi-join
--------------------
Benchmark tpch_sf10.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                               HEAD ┃ neilc_perf-fd-convert-to-semi-join ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │  313.38 / 314.55 ±1.09 / 316.15 ms │  312.06 / 313.56 ±1.15 / 315.05 ms │     no change │
│ QQuery 2  │  102.18 / 105.34 ±2.73 / 109.77 ms │  101.83 / 105.44 ±3.64 / 112.28 ms │     no change │
│ QQuery 3  │  232.88 / 237.11 ±3.57 / 243.43 ms │  232.54 / 240.39 ±4.31 / 243.83 ms │     no change │
│ QQuery 4  │  114.48 / 115.55 ±1.14 / 117.61 ms │  114.42 / 116.46 ±1.83 / 119.47 ms │     no change │
│ QQuery 5  │  346.15 / 350.41 ±5.79 / 361.24 ms │  350.58 / 354.86 ±3.03 / 358.67 ms │     no change │
│ QQuery 6  │  125.29 / 128.30 ±3.53 / 135.10 ms │  127.01 / 129.16 ±3.26 / 135.61 ms │     no change │
│ QQuery 7  │  460.75 / 467.51 ±6.36 / 475.51 ms │  460.68 / 464.20 ±3.06 / 469.55 ms │     no change │
│ QQuery 8  │ 376.58 / 389.66 ±14.04 / 416.36 ms │  380.87 / 386.43 ±4.04 / 391.70 ms │     no change │
│ QQuery 9  │  533.08 / 543.34 ±8.79 / 559.08 ms │  546.94 / 552.74 ±3.73 / 558.39 ms │     no change │
│ QQuery 10 │  306.40 / 312.53 ±7.41 / 325.33 ms │ 301.26 / 319.73 ±15.82 / 344.88 ms │     no change │
│ QQuery 11 │    85.19 / 90.01 ±7.32 / 104.50 ms │    87.56 / 94.72 ±7.92 / 105.51 ms │  1.05x slower │
│ QQuery 12 │  177.57 / 186.45 ±7.93 / 200.62 ms │  177.62 / 182.99 ±8.10 / 198.77 ms │     no change │
│ QQuery 13 │  281.43 / 291.97 ±9.47 / 306.53 ms │  305.99 / 311.31 ±5.52 / 321.14 ms │  1.07x slower │
│ QQuery 14 │  173.02 / 177.71 ±4.32 / 184.29 ms │  175.99 / 181.00 ±5.73 / 190.24 ms │     no change │
│ QQuery 15 │  310.35 / 312.48 ±1.89 / 315.27 ms │  309.11 / 313.31 ±4.45 / 320.28 ms │     no change │
│ QQuery 16 │     66.59 / 68.28 ±1.75 / 71.64 ms │     64.77 / 68.62 ±5.37 / 78.97 ms │     no change │
│ QQuery 17 │ 620.02 / 633.68 ±11.41 / 654.19 ms │  621.99 / 632.15 ±9.76 / 650.55 ms │     no change │
│ QQuery 18 │ 674.21 / 691.63 ±14.38 / 710.20 ms │ 668.44 / 682.92 ±13.69 / 703.35 ms │     no change │
│ QQuery 19 │ 249.42 / 263.71 ±11.61 / 283.56 ms │ 247.98 / 268.90 ±21.77 / 295.70 ms │     no change │
│ QQuery 20 │  279.65 / 290.61 ±8.45 / 300.42 ms │  293.56 / 300.11 ±3.74 / 305.16 ms │     no change │
│ QQuery 21 │ 752.08 / 783.65 ±20.97 / 816.99 ms │  647.22 / 664.79 ±9.76 / 675.19 ms │ +1.18x faster │
│ QQuery 22 │   60.18 / 85.37 ±31.59 / 142.66 ms │     61.26 / 63.41 ±1.47 / 65.02 ms │ +1.35x faster │
└───────────┴────────────────────────────────────┴────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary                                 ┃           ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD)                                 │ 6839.85ms │
│ Total Time (neilc_perf-fd-convert-to-semi-join)   │ 6747.20ms │
│ Average Time (HEAD)                               │  310.90ms │
│ Average Time (neilc_perf-fd-convert-to-semi-join) │  306.69ms │
│ Queries Faster                                    │         2 │
│ Queries Slower                                    │         2 │
│ Queries with No Change                            │        18 │
│ Queries with Failure                              │         0 │
└───────────────────────────────────────────────────┴───────────┘

Resource Usage

tpch10 — base (merge-base)

Metric Value
Wall time 35.0s
Peak memory 11.8 GiB
Avg memory 8.8 GiB
CPU user 355.1s
CPU sys 21.5s
Peak spill 0 B

tpch10 — branch

Metric Value
Wall time 35.0s
Peak memory 12.1 GiB
Avg memory 8.5 GiB
CPU user 351.0s
CPU sys 20.8s
Peak spill 0 B

File an issue against this benchmark runner

@alamb

alamb commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

For anyone following along, @neilconway and @Dandandan made Semi-join faster in

So now we expect this rewrite to be better perofrming 🚀

@alamb alamb added the performance Make DataFusion faster label Jun 8, 2026
@neilconway

neilconway commented Jun 8, 2026

Copy link
Copy Markdown
Contributor Author

The latest benchmark numbers look better overall.

Looking at the TPC-H numbers, at least locally w/ SF10, it seems that Q22 improves because switching to a semi-join results in emitting different stats for the join output, and those stats result in avoiding some poor planner choices we made for operators above the semi-join. So while semi-joins are a bit easier to compute stats for than inner joins, the win there is a bit coincidental. Q13 and Q22 are noise (no plan change from this rewrite).

I looked at TPC-DS Q14, it's interesting: locally, the rewrite regresses performance by ~15% with >= 2 partitions but improves performance by ~10% with a single partition. The reason seems to be that using a semi-join results in less flexibility for subsequent partition decision making, so the overall plan performs worse because it needs a repartition that the inner join plan didn't.

I think we're okay to merge this as-is, but there's a bunch of room for further improvements:

  1. perf: Optimize semi-, anti-join index alignment #22794 reduced semi-join overhead compared to inner joins, but semi-joins are still slower than inner joins in DF. We might still see overall performance improvements from this rewrite -- two causes might be plan changes/improvements, or perhaps because semi-joins effectively do duplicate elimination sooner, which reduces the # of intermediate values passed between operators. But if we had a specialized join kernel for semi-joins I think we could get significantly better performance on the join itself.
  2. As mentioned for Q14 above, semi-joins actually have one negative property compared to inner joins: their partitioning behavior is less flexible. Once we commit to LeftSemi vs. RightSemi (which we do on the basis of which join operand is smaller), we never consider swapping back -- even if changing the join orientation would result in better partitioning behavior for downstream operators. That seems like something we could improve, e.g., in EnsureRequirements.

@alamb

alamb commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Given we are cranking on the join implementations this release, let's merge this in.

@alamb alamb added this pull request to the merge queue Jun 10, 2026
@alamb

alamb commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Thanks again @neilconway and @Dandandan

@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 10, 2026
@alamb

alamb commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Looks like the merge queue has caught a logical conflict

https://github.com/apache/datafusion/actions/runs/27299136079/job/80639801196

error[E0004]: non-exhaustive patterns: `&datafusion_expr::Partitioning::Range(_)` not covered
    --> datafusion/optimizer/src/eliminate_join.rs:326:19
     |
 326 |             match &partitioning_scheme {
     |                   ^^^^^^^^^^^^^^^^^^^^ pattern `&datafusion_expr::Partitioning::Range(_)` not covered
     |
note: `datafusion_expr::Partitioning` defined here
    --> datafusion/expr/src/logical_plan/plan.rs:4443:1
     |
4443 | pub enum Partitioning {
     | ^^^^^^^^^^^^^^^^^^^^^
...
4451 |     Range(RangePartitioning),
     |     ----- not covered
     = note: the matched value is of type `&datafusion_expr::Partitioning`
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
     |
 330 ~                 Partitioning::RoundRobinBatch(_) => {},
 331 +                 &datafusion_expr::Partitioning::Range(_) => todo!()
     |

@neilconway

Copy link
Copy Markdown
Contributor Author

@alamb Updated, CI should be fixed.

@alamb alamb added this pull request to the merge queue Jun 11, 2026
Merged via the queue into apache:main with commit b8998c7 Jun 11, 2026
38 checks passed
AdamGS pushed a commit to AdamGS/arrow-datafusion that referenced this pull request Jun 11, 2026
## Which issue does this PR close?

- Closes apache#22594

## Rationale for this change

This PR extends the `EliminateJoin` rewrite pass to replace inner joins
with semi joins in some cases. An inner join `L ⋈ R` can be rewritten to
a left semi join `L ⋉ R` if two conditions hold:

1. None of R's columns are referenced above the join
2. (a) each L row matches at most one R row, OR (b) the consumers of the
join result are insensitive to duplicates

(And symmetrically with right semi joins.)

## What changes are included in this PR?

* Add `for_each_referenced_index` helper that is used by both
`EliminateJoin` and `EliminateProjections`
* Introduce `LiveColumns` type to track the "live" (referenced by
parent) columns of a plan node
* Add inner -> semi join rewrite to `EliminateJoin`
* Add unit and SLT tests for rewrite behavior
* Update SLT test fixtures for plan changes

## Are these changes tested?

Yes; new tests added.

## Are there any user-facing changes?

Some plan changes but no behavioral changes.

---------

Co-authored-by: Daniël Heres <danielheres@gmail.com>
@neilconway neilconway deleted the neilc/perf-fd-convert-to-semi-join branch June 14, 2026 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

optimizer Optimizer rules performance Make DataFusion faster sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Optimize inner joins to semi joins when possible

4 participants