Skip to content

perf: Handle intermediate Projection nodes in EliminateOuterJoin#22534

Open
neilconway wants to merge 2 commits into
apache:mainfrom
neilconway:neilc/eliminate-outer-join-through-projection
Open

perf: Handle intermediate Projection nodes in EliminateOuterJoin#22534
neilconway wants to merge 2 commits into
apache:mainfrom
neilconway:neilc/eliminate-outer-join-through-projection

Conversation

@neilconway
Copy link
Copy Markdown
Contributor

@neilconway neilconway commented May 26, 2026

Which issue does this PR close?

Rationale for this change

EliminateOuterJoin looks for plans with a Filter directly above a Join. For most queries, that is the right plan shape (because PushdownFilter will typically place the filters that are useful for outer join elimination directly on top of the relevant Join). However, some plans don't follow this shape, for at least two reasons:

  1. Volatile expressions can interfere with filter pushdown
  2. OptimizeProjections might insert a Projection between the Filter and Join

Notably, we run into case (2) in TPC-DS Q49; we currently fail to convert three outer joins to inner joins for that reason.

We can handle this by teaching EliminateOuterJoins to descend through one or more intermediate Projection nodes, rewriting the filter predicate as it goes to account for the effect of the projection.

What changes are included in this PR?

  • Teach EliminateOuterJoins to descend through one or more Projection nodes
  • Refactor various code in eliminate_outer_joins.rs, improve comments
  • Add unit tests
  • Add SLT tests

Are these changes tested?

Yes, new tests added. Manually verified that we fail to eliminate the outer joins in TPC-DS Q49 without this change and succeed on doing so with this change.

Are there any user-facing changes?

More effective outer join query optimization.

EliminateOuterJoin previously only matched the literal Filter -> Join pattern. When a Projection sits between the Filter and the Join, the rule no-ops and the outer join stays in place even when the predicate above the projection would justify converting it.

A common shape that hits this comes from projection pruning after filter pushdown. In TPC-DS q49, PushDownFilter moves the returns-side predicate above the sales/returns LEFT JOIN, then OptimizeProjections inserts a pruning Projection between that Filter and the LEFT JOIN. The returns-side predicate still filters out the outer rows, but the projection hides the join from the old rule.

Extend the rule to walk down through Projection nodes between Filter and Join, rewriting a working copy of the predicate into the join's coordinate space for analysis. The rewritten predicate is used only for analysis; the original predicate and surrounding plan structure are preserved on success.

Tests cover passthrough projection, aliased projection, negative cases, a non-transparent Limit guard, and SQL-level q49-shaped cases where OptimizeProjections places a pruning Projection between a returns-side Filter and the sales/returns LEFT JOIN.
Comment on lines +617 to +643
# A CTE can introduce a query boundary between the outer filter and the
# LEFT JOIN.
query TT
explain
with s as (
select t1.a, t2.y
from t1 left join t2 on t1.a = t2.x
)
select s.a from s where s.y > 150;
----
logical_plan
01)SubqueryAlias: s
02)--Projection: t1.a
03)----Inner Join: t1.a = t2.x
04)------TableScan: t1 projection=[a]
05)------Projection: t2.x
06)--------Filter: t2.y > Int32(150)
07)----------TableScan: t2 projection=[x, y]

query I rowsort
with s as (
select t1.a, t2.y
from t1 left join t2 on t1.a = t2.x
)
select s.a from s where s.y > 150;
----
2
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.

The "Filter -> Projection -> Join" pattern does not actually appear in the final plan, because of subsequent optimizer passes; I verified that the plan contains an outer join if we revert the changes in this PR.

@github-actions github-actions Bot added optimizer Optimizer rules sqllogictest SQL Logic Tests (.slt) labels May 26, 2026
@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-c4546036125-332-dgftn 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/eliminate-outer-join-through-projection (fc7f165) to 2453bec (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-c4546036125-331-rr9f5 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/eliminate-outer-join-through-projection (fc7f165) to 2453bec (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-c4546036125-333-cpcf4 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/eliminate-outer-join-through-projection (fc7f165) to 2453bec (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_eliminate-outer-join-through-projection
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Query     ┃                           HEAD ┃ neilc_eliminate-outer-join-through-projection ┃    Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ QQuery 1  │ 38.71 / 40.12 ±1.80 / 43.50 ms │                38.66 / 39.40 ±1.00 / 41.38 ms │ no change │
│ QQuery 2  │ 19.43 / 19.62 ±0.20 / 19.94 ms │                19.48 / 19.91 ±0.42 / 20.56 ms │ no change │
│ QQuery 3  │ 32.24 / 34.71 ±2.06 / 38.03 ms │                32.72 / 34.54 ±0.96 / 35.30 ms │ no change │
│ QQuery 4  │ 17.28 / 17.47 ±0.18 / 17.81 ms │                17.35 / 17.44 ±0.08 / 17.57 ms │ no change │
│ QQuery 5  │ 41.41 / 42.69 ±1.24 / 45.06 ms │                39.92 / 42.03 ±1.88 / 45.22 ms │ no change │
│ QQuery 6  │ 16.37 / 16.48 ±0.09 / 16.64 ms │                16.26 / 16.32 ±0.06 / 16.44 ms │ no change │
│ QQuery 7  │ 45.26 / 47.81 ±2.73 / 52.06 ms │                46.61 / 49.18 ±2.64 / 54.27 ms │ no change │
│ QQuery 8  │ 44.83 / 46.64 ±3.00 / 52.57 ms │                44.61 / 44.76 ±0.16 / 45.07 ms │ no change │
│ QQuery 9  │ 49.25 / 50.40 ±0.91 / 52.00 ms │                49.07 / 50.68 ±1.11 / 52.21 ms │ no change │
│ QQuery 10 │ 63.77 / 64.08 ±0.31 / 64.62 ms │                63.99 / 64.58 ±0.62 / 65.71 ms │ no change │
│ QQuery 11 │ 13.21 / 13.48 ±0.16 / 13.68 ms │                13.50 / 13.80 ±0.45 / 14.69 ms │ no change │
│ QQuery 12 │ 24.27 / 24.96 ±0.87 / 26.60 ms │                23.95 / 25.29 ±2.07 / 29.40 ms │ no change │
│ QQuery 13 │ 33.70 / 36.60 ±2.11 / 38.80 ms │                33.44 / 35.36 ±1.99 / 39.15 ms │ no change │
│ QQuery 14 │ 25.56 / 25.70 ±0.10 / 25.83 ms │                25.64 / 26.06 ±0.50 / 27.01 ms │ no change │
│ QQuery 15 │ 31.40 / 31.92 ±0.40 / 32.46 ms │                31.48 / 32.12 ±0.54 / 32.85 ms │ no change │
│ QQuery 16 │ 14.76 / 14.87 ±0.09 / 14.98 ms │                14.73 / 14.96 ±0.18 / 15.16 ms │ no change │
│ QQuery 17 │ 74.74 / 75.85 ±0.67 / 76.56 ms │                76.52 / 77.06 ±0.48 / 77.93 ms │ no change │
│ QQuery 18 │ 62.22 / 63.92 ±1.58 / 66.20 ms │                61.77 / 63.62 ±1.05 / 64.74 ms │ no change │
│ QQuery 19 │ 33.96 / 35.02 ±1.27 / 37.31 ms │                34.21 / 34.85 ±0.56 / 35.60 ms │ no change │
│ QQuery 20 │ 37.83 / 38.03 ±0.23 / 38.48 ms │                37.40 / 37.94 ±0.37 / 38.53 ms │ no change │
│ QQuery 21 │ 56.13 / 57.02 ±0.73 / 57.81 ms │                56.77 / 57.52 ±0.62 / 58.60 ms │ no change │
│ QQuery 22 │ 23.52 / 24.42 ±0.65 / 25.04 ms │                23.92 / 24.42 ±0.41 / 24.99 ms │ no change │
└───────────┴────────────────────────────────┴───────────────────────────────────────────────┴───────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary                                            ┃          ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD)                                            │ 821.79ms │
│ Total Time (neilc_eliminate-outer-join-through-projection)   │ 821.84ms │
│ Average Time (HEAD)                                          │  37.35ms │
│ Average Time (neilc_eliminate-outer-join-through-projection) │  37.36ms │
│ 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.7 GiB
Avg memory 5.1 GiB
CPU user 29.8s
CPU sys 2.3s
Peak spill 0 B

tpch — branch

Metric Value
Wall time 5.0s
Peak memory 5.6 GiB
Avg memory 5.1 GiB
CPU user 29.8s
CPU sys 2.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_eliminate-outer-join-through-projection
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃ neilc_eliminate-outer-join-through-projection ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │           5.63 / 6.18 ±0.90 / 7.98 ms │                   5.80 / 6.32 ±0.94 / 8.20 ms │     no change │
│ QQuery 2  │        80.99 / 81.18 ±0.11 / 81.30 ms │                80.73 / 81.14 ±0.31 / 81.54 ms │     no change │
│ QQuery 3  │        28.24 / 28.66 ±0.29 / 29.04 ms │                28.70 / 29.03 ±0.36 / 29.71 ms │     no change │
│ QQuery 4  │     501.93 / 507.89 ±3.56 / 513.09 ms │             510.80 / 516.16 ±4.07 / 522.41 ms │     no change │
│ QQuery 5  │        50.59 / 50.92 ±0.51 / 51.94 ms │                50.86 / 51.75 ±0.72 / 52.90 ms │     no change │
│ QQuery 6  │        35.01 / 35.24 ±0.24 / 35.69 ms │                35.42 / 35.70 ±0.24 / 36.09 ms │     no change │
│ QQuery 7  │     106.90 / 109.80 ±4.21 / 118.17 ms │             109.41 / 111.07 ±1.97 / 114.14 ms │     no change │
│ QQuery 8  │        36.47 / 37.12 ±0.47 / 37.78 ms │                36.39 / 36.87 ±0.53 / 37.79 ms │     no change │
│ QQuery 9  │        54.25 / 55.23 ±0.95 / 56.56 ms │                53.05 / 55.22 ±1.79 / 57.71 ms │     no change │
│ QQuery 10 │        80.94 / 81.29 ±0.29 / 81.71 ms │                82.93 / 84.70 ±3.00 / 90.67 ms │     no change │
│ QQuery 11 │     309.27 / 312.11 ±2.30 / 314.15 ms │             313.93 / 325.07 ±8.50 / 337.58 ms │     no change │
│ QQuery 12 │        28.12 / 28.66 ±0.40 / 29.18 ms │                28.22 / 28.70 ±0.34 / 29.11 ms │     no change │
│ QQuery 13 │     124.53 / 125.25 ±0.45 / 125.94 ms │             124.90 / 126.20 ±1.19 / 128.04 ms │     no change │
│ QQuery 14 │     498.56 / 504.39 ±5.76 / 513.49 ms │             497.59 / 499.47 ±1.55 / 501.86 ms │     no change │
│ QQuery 15 │        60.14 / 61.59 ±1.44 / 64.18 ms │                61.73 / 63.37 ±1.71 / 65.74 ms │     no change │
│ QQuery 16 │           6.60 / 6.75 ±0.17 / 7.09 ms │                   6.49 / 6.63 ±0.22 / 7.07 ms │     no change │
│ QQuery 17 │        79.90 / 80.91 ±0.77 / 82.13 ms │                79.87 / 81.10 ±1.01 / 82.79 ms │     no change │
│ QQuery 18 │     149.92 / 152.77 ±3.38 / 159.24 ms │             151.29 / 152.42 ±1.09 / 154.00 ms │     no change │
│ QQuery 19 │        40.57 / 41.00 ±0.48 / 41.86 ms │                40.82 / 41.41 ±0.45 / 42.14 ms │     no change │
│ QQuery 20 │        34.82 / 35.47 ±0.39 / 35.98 ms │                35.20 / 35.69 ±0.26 / 35.93 ms │     no change │
│ QQuery 21 │        16.76 / 16.96 ±0.16 / 17.21 ms │                16.91 / 17.09 ±0.23 / 17.54 ms │     no change │
│ QQuery 22 │        61.45 / 61.90 ±0.41 / 62.50 ms │                62.35 / 62.65 ±0.25 / 63.00 ms │     no change │
│ QQuery 23 │     474.51 / 482.22 ±8.35 / 493.39 ms │             473.35 / 481.66 ±6.49 / 493.20 ms │     no change │
│ QQuery 24 │     231.93 / 236.58 ±4.47 / 244.03 ms │             232.11 / 239.01 ±6.61 / 251.53 ms │     no change │
│ QQuery 25 │     113.26 / 118.84 ±5.54 / 128.73 ms │             116.29 / 118.74 ±3.97 / 126.66 ms │     no change │
│ QQuery 26 │        70.05 / 70.71 ±0.56 / 71.55 ms │                70.78 / 71.67 ±0.65 / 72.68 ms │     no change │
│ QQuery 27 │           6.43 / 6.59 ±0.17 / 6.91 ms │                   6.48 / 6.60 ±0.16 / 6.92 ms │     no change │
│ QQuery 28 │        57.28 / 60.63 ±1.72 / 62.18 ms │                59.93 / 60.83 ±0.81 / 62.20 ms │     no change │
│ QQuery 29 │      98.05 / 102.70 ±6.43 / 115.37 ms │               98.09 / 99.06 ±0.77 / 100.19 ms │     no change │
│ QQuery 30 │        30.25 / 30.86 ±0.52 / 31.56 ms │                30.11 / 30.94 ±0.55 / 31.60 ms │     no change │
│ QQuery 31 │     109.94 / 112.82 ±4.69 / 122.13 ms │             111.37 / 111.63 ±0.25 / 111.99 ms │     no change │
│ QQuery 32 │        19.91 / 20.24 ±0.29 / 20.72 ms │                19.86 / 20.13 ±0.24 / 20.53 ms │     no change │
│ QQuery 33 │        38.21 / 38.83 ±0.45 / 39.57 ms │                37.96 / 38.52 ±0.45 / 39.32 ms │     no change │
│ QQuery 34 │         9.28 / 10.13 ±0.52 / 10.75 ms │                  9.21 / 9.71 ±0.47 / 10.46 ms │     no change │
│ QQuery 35 │        80.55 / 81.23 ±0.48 / 81.91 ms │                81.14 / 82.95 ±2.05 / 86.94 ms │     no change │
│ QQuery 36 │           5.89 / 5.99 ±0.17 / 6.32 ms │                   5.71 / 5.90 ±0.21 / 6.32 ms │     no change │
│ QQuery 37 │           6.73 / 6.84 ±0.10 / 6.98 ms │                   6.63 / 6.89 ±0.39 / 7.65 ms │     no change │
│ QQuery 38 │        68.89 / 70.73 ±2.28 / 75.19 ms │                68.93 / 70.14 ±1.26 / 72.39 ms │     no change │
│ QQuery 39 │       96.34 / 97.72 ±1.49 / 100.50 ms │                97.25 / 97.79 ±0.58 / 98.68 ms │     no change │
│ QQuery 40 │        22.29 / 22.61 ±0.22 / 22.92 ms │                22.68 / 24.02 ±2.13 / 28.25 ms │  1.06x slower │
│ QQuery 41 │        11.02 / 11.14 ±0.12 / 11.36 ms │                11.36 / 11.51 ±0.19 / 11.88 ms │     no change │
│ QQuery 42 │        24.30 / 26.40 ±2.38 / 29.90 ms │                23.89 / 25.07 ±1.93 / 28.93 ms │ +1.05x faster │
│ QQuery 43 │           4.73 / 4.83 ±0.13 / 5.07 ms │                   4.70 / 4.82 ±0.13 / 5.04 ms │     no change │
│ QQuery 44 │        10.41 / 10.76 ±0.20 / 10.99 ms │                10.40 / 10.57 ±0.11 / 10.74 ms │     no change │
│ QQuery 45 │        40.05 / 40.78 ±0.42 / 41.26 ms │                39.73 / 40.39 ±0.41 / 41.03 ms │     no change │
│ QQuery 46 │        12.52 / 13.08 ±0.62 / 14.26 ms │                12.90 / 13.18 ±0.24 / 13.56 ms │     no change │
│ QQuery 47 │     225.52 / 228.37 ±2.15 / 232.03 ms │             227.09 / 230.84 ±2.16 / 233.46 ms │     no change │
│ QQuery 48 │     101.45 / 104.57 ±4.96 / 114.46 ms │             102.73 / 104.96 ±2.76 / 110.06 ms │     no change │
│ QQuery 49 │        79.41 / 80.85 ±1.13 / 82.80 ms │                77.10 / 77.49 ±0.56 / 78.60 ms │     no change │
│ QQuery 50 │        59.30 / 59.62 ±0.23 / 59.95 ms │                59.03 / 59.57 ±0.35 / 59.94 ms │     no change │
│ QQuery 51 │       93.01 / 95.31 ±2.97 / 101.08 ms │               95.54 / 98.92 ±3.89 / 106.17 ms │     no change │
│ QQuery 52 │        23.97 / 24.18 ±0.29 / 24.75 ms │                23.72 / 24.49 ±0.51 / 25.15 ms │     no change │
│ QQuery 53 │        29.01 / 29.24 ±0.14 / 29.43 ms │                29.22 / 29.63 ±0.37 / 30.11 ms │     no change │
│ QQuery 54 │        53.53 / 54.13 ±0.32 / 54.47 ms │                53.87 / 54.20 ±0.26 / 54.65 ms │     no change │
│ QQuery 55 │        23.35 / 23.57 ±0.22 / 23.97 ms │                23.51 / 24.59 ±0.92 / 26.30 ms │     no change │
│ QQuery 56 │        38.50 / 40.05 ±1.82 / 43.50 ms │                38.59 / 39.03 ±0.24 / 39.26 ms │     no change │
│ QQuery 57 │     175.22 / 176.64 ±1.37 / 178.76 ms │             176.76 / 179.54 ±3.78 / 186.98 ms │     no change │
│ QQuery 58 │     116.12 / 117.74 ±2.02 / 121.65 ms │             117.22 / 117.85 ±0.36 / 118.30 ms │     no change │
│ QQuery 59 │     117.45 / 118.28 ±1.02 / 120.24 ms │             117.39 / 118.61 ±1.85 / 122.30 ms │     no change │
│ QQuery 60 │        39.15 / 39.89 ±0.54 / 40.79 ms │                38.88 / 39.49 ±0.49 / 40.31 ms │     no change │
│ QQuery 61 │        12.42 / 12.60 ±0.21 / 13.01 ms │                12.30 / 12.46 ±0.21 / 12.85 ms │     no change │
│ QQuery 62 │        45.66 / 45.99 ±0.35 / 46.58 ms │                45.62 / 46.29 ±0.79 / 47.79 ms │     no change │
│ QQuery 63 │        29.28 / 29.54 ±0.34 / 30.20 ms │                29.20 / 29.42 ±0.24 / 29.85 ms │     no change │
│ QQuery 64 │     463.04 / 471.73 ±7.22 / 481.13 ms │            462.70 / 473.02 ±10.06 / 490.33 ms │     no change │
│ QQuery 65 │     143.45 / 149.88 ±3.66 / 154.89 ms │             147.13 / 151.14 ±2.40 / 153.88 ms │     no change │
│ QQuery 66 │        80.04 / 83.98 ±3.44 / 89.16 ms │                78.97 / 81.99 ±4.67 / 91.29 ms │     no change │
│ QQuery 67 │     247.04 / 250.24 ±2.58 / 254.78 ms │             242.02 / 251.88 ±6.17 / 259.32 ms │     no change │
│ QQuery 68 │        12.84 / 13.00 ±0.22 / 13.44 ms │                12.79 / 13.00 ±0.21 / 13.35 ms │     no change │
│ QQuery 69 │        76.77 / 78.94 ±3.82 / 86.56 ms │                77.73 / 82.93 ±5.95 / 91.68 ms │  1.05x slower │
│ QQuery 70 │    106.05 / 112.61 ±10.12 / 132.69 ms │             108.14 / 110.97 ±3.22 / 117.28 ms │     no change │
│ QQuery 71 │        35.22 / 35.54 ±0.35 / 36.16 ms │                35.50 / 35.86 ±0.27 / 36.31 ms │     no change │
│ QQuery 72 │ 2049.37 / 2140.21 ±77.60 / 2275.42 ms │         2065.78 / 2111.55 ±34.80 / 2160.61 ms │     no change │
│ QQuery 73 │           9.09 / 9.25 ±0.21 / 9.68 ms │                   9.04 / 9.29 ±0.18 / 9.60 ms │     no change │
│ QQuery 74 │     176.91 / 183.26 ±7.09 / 195.59 ms │             178.73 / 181.10 ±2.12 / 184.82 ms │     no change │
│ QQuery 75 │     145.64 / 148.25 ±2.32 / 151.82 ms │             145.08 / 151.46 ±9.59 / 170.41 ms │     no change │
│ QQuery 76 │        35.97 / 36.39 ±0.26 / 36.70 ms │                35.42 / 35.99 ±0.31 / 36.37 ms │     no change │
│ QQuery 77 │        59.53 / 59.93 ±0.26 / 60.29 ms │                59.61 / 59.92 ±0.16 / 60.06 ms │     no change │
│ QQuery 78 │     190.55 / 193.84 ±3.04 / 197.85 ms │             187.88 / 193.06 ±4.68 / 200.50 ms │     no change │
│ QQuery 79 │        66.87 / 67.30 ±0.36 / 67.96 ms │                67.05 / 67.20 ±0.14 / 67.46 ms │     no change │
│ QQuery 80 │      98.62 / 102.91 ±5.50 / 113.73 ms │             101.09 / 104.32 ±3.43 / 110.78 ms │     no change │
│ QQuery 81 │        23.81 / 24.10 ±0.27 / 24.59 ms │                24.27 / 24.45 ±0.16 / 24.72 ms │     no change │
│ QQuery 82 │        16.33 / 16.85 ±0.76 / 18.35 ms │                16.21 / 16.50 ±0.36 / 17.18 ms │     no change │
│ QQuery 83 │        35.85 / 36.32 ±0.33 / 36.71 ms │                35.84 / 36.54 ±0.55 / 37.53 ms │     no change │
│ QQuery 84 │        42.58 / 46.36 ±4.55 / 52.46 ms │                42.71 / 44.97 ±3.66 / 52.28 ms │     no change │
│ QQuery 85 │     136.55 / 138.04 ±1.13 / 139.41 ms │             136.10 / 138.64 ±2.51 / 143.02 ms │     no change │
│ QQuery 86 │        24.55 / 25.01 ±0.33 / 25.41 ms │                25.14 / 25.48 ±0.21 / 25.77 ms │     no change │
│ QQuery 87 │        68.29 / 69.20 ±0.68 / 70.27 ms │                69.05 / 71.47 ±2.27 / 75.66 ms │     no change │
│ QQuery 88 │        60.92 / 61.56 ±0.43 / 62.13 ms │                60.98 / 61.41 ±0.49 / 62.35 ms │     no change │
│ QQuery 89 │        35.68 / 36.08 ±0.41 / 36.85 ms │                35.56 / 35.79 ±0.20 / 36.13 ms │     no change │
│ QQuery 90 │        16.58 / 16.77 ±0.17 / 17.01 ms │                16.45 / 16.66 ±0.18 / 16.99 ms │     no change │
│ QQuery 91 │        51.38 / 52.51 ±1.69 / 55.86 ms │                51.69 / 53.44 ±3.21 / 59.85 ms │     no change │
│ QQuery 92 │        29.87 / 31.58 ±2.89 / 37.33 ms │                29.74 / 31.22 ±2.84 / 36.90 ms │     no change │
│ QQuery 93 │        50.53 / 51.69 ±0.80 / 52.72 ms │                50.16 / 51.90 ±1.23 / 53.95 ms │     no change │
│ QQuery 94 │        37.36 / 37.83 ±0.33 / 38.29 ms │                37.29 / 37.79 ±0.28 / 38.04 ms │     no change │
│ QQuery 95 │        83.99 / 86.78 ±4.25 / 95.22 ms │                84.59 / 85.77 ±1.35 / 88.31 ms │     no change │
│ QQuery 96 │        23.99 / 24.20 ±0.29 / 24.79 ms │                23.73 / 24.72 ±1.51 / 27.69 ms │     no change │
│ QQuery 97 │        46.64 / 46.88 ±0.21 / 47.20 ms │                46.04 / 46.96 ±1.02 / 48.86 ms │     no change │
│ QQuery 98 │        42.40 / 43.40 ±0.58 / 44.16 ms │                41.74 / 42.60 ±0.51 / 43.26 ms │     no change │
│ QQuery 99 │        70.56 / 70.98 ±0.43 / 71.62 ms │                69.52 / 70.40 ±1.61 / 73.61 ms │     no change │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                                            ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                                            │ 10438.47ms │
│ Total Time (neilc_eliminate-outer-join-through-projection)   │ 10448.29ms │
│ Average Time (HEAD)                                          │   105.44ms │
│ Average Time (neilc_eliminate-outer-join-through-projection) │   105.54ms │
│ Queries Faster                                               │          1 │
│ Queries Slower                                               │          2 │
│ Queries with No Change                                       │         96 │
│ Queries with Failure                                         │          0 │
└──────────────────────────────────────────────────────────────┴────────────┘

Resource Usage

tpcds — base (merge-base)

Metric Value
Wall time 55.0s
Peak memory 7.0 GiB
Avg memory 6.2 GiB
CPU user 232.5s
CPU sys 6.7s
Peak spill 0 B

tpcds — branch

Metric Value
Wall time 55.0s
Peak memory 7.0 GiB
Avg memory 6.2 GiB
CPU user 231.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_eliminate-outer-join-through-projection
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃ neilc_eliminate-outer-join-through-projection ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0  │          1.16 / 4.67 ±6.93 / 18.53 ms │                  1.13 / 4.66 ±6.92 / 18.49 ms │     no change │
│ QQuery 1  │        12.62 / 12.87 ±0.16 / 13.12 ms │                12.39 / 12.79 ±0.22 / 13.06 ms │     no change │
│ QQuery 2  │        35.47 / 35.87 ±0.29 / 36.20 ms │                36.28 / 36.72 ±0.75 / 38.22 ms │     no change │
│ QQuery 3  │        30.63 / 31.17 ±0.51 / 32.05 ms │                30.53 / 31.18 ±0.76 / 32.64 ms │     no change │
│ QQuery 4  │     223.39 / 226.49 ±2.77 / 229.97 ms │             227.49 / 228.41 ±0.61 / 229.28 ms │     no change │
│ QQuery 5  │     273.33 / 275.85 ±3.29 / 282.24 ms │             271.66 / 275.17 ±3.12 / 279.53 ms │     no change │
│ QQuery 6  │           1.16 / 1.31 ±0.22 / 1.75 ms │                   1.18 / 1.33 ±0.23 / 1.78 ms │     no change │
│ QQuery 7  │        13.55 / 13.86 ±0.20 / 14.18 ms │                13.65 / 13.75 ±0.08 / 13.84 ms │     no change │
│ QQuery 8  │     319.90 / 324.63 ±3.30 / 329.92 ms │             324.71 / 327.66 ±2.55 / 330.87 ms │     no change │
│ QQuery 9  │     456.91 / 464.13 ±4.31 / 468.78 ms │             458.24 / 464.67 ±6.38 / 474.75 ms │     no change │
│ QQuery 10 │        68.76 / 69.33 ±0.56 / 70.28 ms │                69.70 / 70.32 ±0.35 / 70.71 ms │     no change │
│ QQuery 11 │        80.43 / 83.85 ±3.92 / 91.14 ms │                81.03 / 82.94 ±1.25 / 84.88 ms │     no change │
│ QQuery 12 │     268.96 / 272.20 ±3.29 / 277.43 ms │             266.33 / 271.67 ±4.46 / 278.06 ms │     no change │
│ QQuery 13 │    364.32 / 379.58 ±10.62 / 396.03 ms │             370.23 / 382.08 ±9.86 / 395.92 ms │     no change │
│ QQuery 14 │     282.61 / 288.61 ±4.85 / 294.70 ms │             280.75 / 285.25 ±4.92 / 294.81 ms │     no change │
│ QQuery 15 │     270.45 / 279.51 ±6.39 / 286.53 ms │            267.31 / 283.69 ±14.76 / 304.81 ms │     no change │
│ QQuery 16 │     616.63 / 625.63 ±5.61 / 633.39 ms │             619.80 / 631.11 ±7.65 / 642.06 ms │     no change │
│ QQuery 17 │     622.37 / 630.13 ±5.67 / 638.96 ms │             623.97 / 629.54 ±4.71 / 637.81 ms │     no change │
│ QQuery 18 │ 1271.70 / 1300.72 ±26.89 / 1345.38 ms │         1271.61 / 1310.71 ±23.97 / 1330.58 ms │     no change │
│ QQuery 19 │        27.22 / 29.70 ±4.72 / 39.13 ms │                27.25 / 27.48 ±0.13 / 27.63 ms │ +1.08x faster │
│ QQuery 20 │     516.88 / 526.97 ±7.87 / 539.28 ms │            514.99 / 529.10 ±15.06 / 558.22 ms │     no change │
│ QQuery 21 │     591.77 / 599.42 ±5.42 / 605.47 ms │             595.65 / 603.49 ±7.66 / 617.74 ms │     no change │
│ QQuery 22 │  1066.75 / 1077.62 ±9.87 / 1091.71 ms │          1065.07 / 1070.79 ±5.40 / 1080.41 ms │     no change │
│ QQuery 23 │ 3195.38 / 3214.47 ±11.88 / 3228.53 ms │         3242.01 / 3269.24 ±23.95 / 3308.94 ms │     no change │
│ QQuery 24 │        41.02 / 41.86 ±1.17 / 44.14 ms │                41.06 / 42.01 ±0.85 / 43.44 ms │     no change │
│ QQuery 25 │     110.94 / 111.87 ±0.74 / 112.79 ms │             111.86 / 112.28 ±0.39 / 112.94 ms │     no change │
│ QQuery 26 │        41.21 / 42.39 ±0.89 / 43.41 ms │                41.48 / 44.48 ±3.15 / 50.42 ms │     no change │
│ QQuery 27 │     674.53 / 682.14 ±7.72 / 696.99 ms │             671.54 / 684.19 ±9.59 / 701.10 ms │     no change │
│ QQuery 28 │ 3043.71 / 3065.78 ±16.56 / 3094.31 ms │          3051.88 / 3060.78 ±5.46 / 3067.35 ms │     no change │
│ QQuery 29 │       40.12 / 49.62 ±13.13 / 73.74 ms │               40.94 / 50.62 ±17.32 / 85.22 ms │     no change │
│ QQuery 30 │     298.14 / 307.37 ±8.47 / 322.02 ms │             303.96 / 308.28 ±4.59 / 313.90 ms │     no change │
│ QQuery 31 │     294.19 / 297.77 ±2.80 / 302.25 ms │             288.23 / 296.31 ±5.45 / 303.99 ms │     no change │
│ QQuery 32 │    941.99 / 961.56 ±16.18 / 982.14 ms │            944.22 / 964.65 ±11.59 / 977.97 ms │     no change │
│ QQuery 33 │ 1446.01 / 1477.89 ±25.27 / 1514.28 ms │         1449.10 / 1488.31 ±28.15 / 1531.22 ms │     no change │
│ QQuery 34 │ 1455.86 / 1514.74 ±39.27 / 1567.33 ms │         1463.69 / 1498.00 ±30.18 / 1534.10 ms │     no change │
│ QQuery 35 │    286.55 / 306.71 ±13.82 / 320.72 ms │            289.48 / 319.53 ±37.70 / 387.28 ms │     no change │
│ QQuery 36 │        63.12 / 67.65 ±3.14 / 72.36 ms │                65.76 / 70.60 ±3.19 / 75.36 ms │     no change │
│ QQuery 37 │        35.35 / 36.66 ±1.40 / 38.75 ms │                35.30 / 37.74 ±2.95 / 43.51 ms │     no change │
│ QQuery 38 │        39.78 / 43.64 ±2.90 / 48.56 ms │                40.36 / 45.74 ±4.87 / 54.69 ms │     no change │
│ QQuery 39 │     142.00 / 150.68 ±6.26 / 157.06 ms │             133.73 / 149.65 ±8.94 / 159.89 ms │     no change │
│ QQuery 40 │        13.79 / 14.03 ±0.16 / 14.28 ms │                13.75 / 14.09 ±0.45 / 14.95 ms │     no change │
│ QQuery 41 │        13.42 / 13.58 ±0.10 / 13.74 ms │                13.85 / 14.15 ±0.34 / 14.81 ms │     no change │
│ QQuery 42 │        13.07 / 18.20 ±7.39 / 32.08 ms │                12.92 / 13.19 ±0.20 / 13.43 ms │ +1.38x faster │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                                            ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                                            │ 19972.74ms │
│ Total Time (neilc_eliminate-outer-join-through-projection)   │ 20058.36ms │
│ Average Time (HEAD)                                          │   464.48ms │
│ Average Time (neilc_eliminate-outer-join-through-projection) │   466.47ms │
│ Queries Faster                                               │          2 │
│ Queries Slower                                               │          0 │
│ Queries with No Change                                       │         41 │
│ Queries with Failure                                         │          0 │
└──────────────────────────────────────────────────────────────┴────────────┘

Resource Usage

clickbench_partitioned — base (merge-base)

Metric Value
Wall time 105.0s
Peak memory 29.8 GiB
Avg memory 22.9 GiB
CPU user 1031.3s
CPU sys 71.5s
Peak spill 0 B

clickbench_partitioned — branch

Metric Value
Wall time 105.0s
Peak memory 31.0 GiB
Avg memory 23.1 GiB
CPU user 1030.7s
CPU sys 73.2s
Peak spill 0 B

File an issue against this benchmark runner

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

Labels

optimizer Optimizer rules sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EliminateOuterJoin should descend through Projection

2 participants