You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "Dandandan (via GitHub)" <gi...@apache.org> on 2026/08/18 12:49:23 UTC
[PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Dandandan opened a new pull request, #24456:
URL: https://github.com/apache/datafusion/pull/24456
## Which issue does this PR close?
- Related to #7000 (join reordering / cost based optimizer). Happy to file a dedicated issue if preferred.
## Rationale for this change
`JoinSelection` only makes *local* decisions: for one join at a time it picks the build side and the partition mode. The shape of the join tree stays whatever the logical planner produced, which for a query written as a flat list of relations is a left-deep tree in `FROM`-clause order. That order ignores how much each join reduces or inflates its inputs, so DataFusion can materialise millions of rows only to throw them away one join later.
TPC-H q18 is the clearest case. The semi join sits at the *top* of the tree, so all 6,001,215 `customer ⋈ orders ⋈ lineitem` rows are built before it filters `orders` down to 57 rows.
## What changes are included in this PR?
A dynamic programming join order enumerator, run at the start of `JoinSelection`:
1. **Extract** a maximal subtree of reorderable joins into a graph of opaque relations plus the predicates between them. Column-pruning `ProjectionExec`s between joins are seen through, since `ProjectionPushdown` has not folded them into the joins yet at this point.
2. **Enumerate** all connected orders with a `O(3^n)` DP over relation subsets — bushy shapes as well as left-deep — scored by a `C_out` cost model (the sum of intermediate cardinalities) built from the same estimates `estimate_inner_join_cardinality` uses. Graphs larger than the limit fall back to a greedy search.
3. **Rebuild** the subtree, re-deriving each join key and filter against the new schemas and setting join projections so intermediate results stay as narrow as before.
Three kinds of predicate take part, which is what makes reordering sound: a tree of inner joins is equivalent to the cross product of its relations filtered by the conjunction of all its predicates, so any tree applying every predicate exactly once, where the columns it needs are available, computes the same rows.
- **Equi-join edges** are applied at the node whose inputs separate their endpoints.
- **Non-equi join filters** are re-attached at their lowest common ancestor, so a join carrying one no longer blocks reordering.
- **Semi and anti joins** participate as *reducers*: they are filters on their output side, so the quantified side becomes a relation applicable at any node covering the columns its keys reference. This is what fixes q18.
The rewrite is only applied when the winning order is strictly cheaper than the planner's, so already-optimal plans stay byte-identical. Subtrees whose inputs lack row-count statistics are left alone entirely.
New config: `datafusion.optimizer.join_enumeration` (default `true`) and `datafusion.optimizer.join_enumeration_limit` (default `12`).
### Performance
TPC-H SF1, parquet, best of 5 interleaved runs. q1 and q6 have no joins and serve as controls for this machine's noise floor (±3%):
| Query | enumeration off | on | ratio |
| --- | --- | --- | --- |
| q18 | 96.2 ms | 64.5 ms | **0.67x** |
| q7 | 67.3 ms | 48.7 ms | **0.72x** |
| q2 | 20.8 ms | 18.0 ms | **0.87x** |
| q21 | 93.9 ms | 81.6 ms | **0.87x** |
| q8 | 53.2 ms | 50.1 ms | 0.94x |
| q9 | 70.3 ms | 65.8 ms | 0.94x |
| q5 | 59.2 ms | 61.0 ms | 1.03x (median; within control noise) |
| q11 | 15.8 ms | 15.8 ms | 1.00x |
| q1 *(control)* | 64.0 ms | 66.1 ms | 1.03x |
| q6 *(control)* | 25.4 ms | 24.6 ms | 0.97x |
8 of 22 queries change plan; nothing regressed beyond the noise floor.
q18, before and after — the `RightSemi` moves from the top of the tree to the bottom:
```
# before
HashJoinExec: join_type=RightSemi, on=[(l_orderkey@0, o_orderkey@2)]
HashJoinExec: join_type=Inner, on=[(o_orderkey@2, l_orderkey@0)]
HashJoinExec: join_type=Inner, on=[(c_custkey@0, o_custkey@1)]
# after
HashJoinExec: join_type=Inner, on=[(o_orderkey@0, l_orderkey@0)]
HashJoinExec: join_type=Inner, on=[(c_custkey@0, o_custkey@0)]
HashJoinExec: join_type=RightSemi, on=[(l_orderkey@0, o_orderkey@0)]
```
Planning cost is not measurable at these sizes: a 12-relation chain join (the DP limit, 531k splits) adds ~0.3 ms.
## Are these changes tested?
Yes.
- 10 new tests in `datafusion/core/tests/physical_optimizer/join_enumeration.rs`: plan snapshots for a late reducer, a semi join, an anti join and a non-equi filter; the config flag; missing statistics; an already-optimal order; and end-to-end row-equality checks with the flag on and off.
- A new section in `statistics_registry.slt` covering the reordered plan. That file's existing cases keep testing build-side selection with enumeration disabled, since with it on both cases settle on the same order.
- All 22 TPC-H SF1 queries return byte-identical results with the flag on and off (20,108 rows compared).
- `sqllogictests` (including `INCLUDE_TPCH=true`) and the extended test suite pass.
## Are there any user-facing changes?
Two new config options, and query plans change where a cheaper join order exists. `datafusion.optimizer.join_enumeration = false` restores the previous behaviour.
`joins::utils::max_distinct_count` is now `pub` so the enumerator can share one NDV estimate with the join cardinality code.
### Known limitations (follow-ups)
- No transitive closure of equalities, so `a = b ∧ b = c` never yields `a = c` and some orders are unreachable.
- The cost model is `C_out` only: blind to build/probe asymmetry, exchange cost, and to `CollectLeft` serialising the build. Enumeration creates small build sides, so it trips the `CollectLeft` threshold more often than before — worth a look for q5, which changes plan substantially without converting that into a win.
- Distinct counts still fall back to `max - min + 1` (no NDV), which caps the accuracy of every estimate above.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5338921936
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5338739851)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (636b45559c959d6b90c854c52f176a50a7695a60) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..636b45559c959d6b90c854c52f176a50a7695a60)
<details><summary>Run configuration</summary>
```yaml
run benchmark clickbench_partitioned
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0 │ 1.25 ms │ 1.35 ms │ 1.08x slower │
│ QQuery 1 │ 11.92 ms │ 12.23 ms │ no change │
│ QQuery 2 │ 37.68 ms │ 38.36 ms │ no change │
│ QQuery 3 │ 30.64 ms │ 33.40 ms │ 1.09x slower │
│ QQuery 4 │ 226.20 ms │ 224.05 ms │ no change │
│ QQuery 5 │ 269.93 ms │ 281.03 ms │ no change │
│ QQuery 6 │ 1.29 ms │ 1.33 ms │ no change │
│ QQuery 7 │ 13.61 ms │ 13.88 ms │ no change │
│ QQuery 8 │ 333.58 ms │ 334.79 ms │ no change │
│ QQuery 9 │ 463.84 ms │ 474.26 ms │ no change │
│ QQuery 10 │ 69.72 ms │ 71.20 ms │ no change │
│ QQuery 11 │ 82.15 ms │ 82.13 ms │ no change │
│ QQuery 12 │ 272.51 ms │ 274.84 ms │ no change │
│ QQuery 13 │ 395.73 ms │ 381.17 ms │ no change │
│ QQuery 14 │ 288.15 ms │ 289.18 ms │ no change │
│ QQuery 15 │ 319.82 ms │ 289.10 ms │ +1.11x faster │
│ QQuery 16 │ 720.01 ms │ 623.09 ms │ +1.16x faster │
│ QQuery 17 │ 628.19 ms │ 621.72 ms │ no change │
│ QQuery 18 │ 1289.55 ms │ 1268.71 ms │ no change │
│ QQuery 19 │ 29.72 ms │ 27.55 ms │ +1.08x faster │
│ QQuery 20 │ 518.90 ms │ 535.28 ms │ no change │
│ QQuery 21 │ 507.82 ms │ 536.40 ms │ 1.06x slower │
│ QQuery 22 │ 980.37 ms │ 994.48 ms │ no change │
│ QQuery 23 │ 3054.53 ms │ 3084.18 ms │ no change │
│ QQuery 24 │ 40.84 ms │ 40.97 ms │ no change │
│ QQuery 25 │ 109.65 ms │ 110.70 ms │ no change │
│ QQuery 26 │ 41.11 ms │ 41.32 ms │ no change │
│ QQuery 27 │ 512.82 ms │ 514.91 ms │ no change │
│ QQuery 28 │ 2906.26 ms │ 2943.92 ms │ no change │
│ QQuery 29 │ 42.98 ms │ 43.58 ms │ no change │
│ QQuery 30 │ 345.63 ms │ 313.16 ms │ +1.10x faster │
│ QQuery 31 │ 309.77 ms │ 284.57 ms │ +1.09x faster │
│ QQuery 32 │ 981.19 ms │ 934.84 ms │ no change │
│ QQuery 33 │ 1507.93 ms │ 1453.91 ms │ no change │
│ QQuery 34 │ 1486.24 ms │ 1560.70 ms │ 1.05x slower │
│ QQuery 35 │ 291.45 ms │ 293.51 ms │ no change │
│ QQuery 36 │ 66.12 ms │ 67.66 ms │ no change │
│ QQuery 37 │ 35.72 ms │ 36.02 ms │ no change │
│ QQuery 38 │ 41.31 ms │ 41.10 ms │ no change │
│ QQuery 39 │ 141.19 ms │ 148.94 ms │ 1.05x slower │
│ QQuery 40 │ 14.10 ms │ 14.61 ms │ no change │
│ QQuery 41 │ 14.05 ms │ 13.92 ms │ no change │
│ QQuery 42 │ 13.42 ms │ 13.77 ms │ no change │
└───────────┴────────────┴─────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD) │ 19448.87ms │
│ Total Time (perf_join-order-enumeration) │ 19365.81ms │
│ Average Time (HEAD) │ 452.30ms │
│ Average Time (perf_join-order-enumeration) │ 450.37ms │
│ Queries Faster │ 5 │
│ Queries Slower │ 5 │
│ Queries with No Change │ 33 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴────────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0 │ 1.25 / 4.23 ±5.74 / 15.71 ms │ 1.35 / 4.39 ±5.82 / 16.02 ms │ no change │
│ QQuery 1 │ 11.92 / 12.43 ±0.27 / 12.66 ms │ 12.23 / 12.95 ±0.40 / 13.39 ms │ no change │
│ QQuery 2 │ 37.68 / 38.14 ±0.39 / 38.67 ms │ 38.36 / 38.82 ±0.26 / 39.15 ms │ no change │
│ QQuery 3 │ 30.64 / 31.46 ±0.96 / 33.16 ms │ 33.40 / 34.40 ±1.05 / 36.39 ms │ 1.09x slower │
│ QQuery 4 │ 226.20 / 235.76 ±7.22 / 246.48 ms │ 224.05 / 235.48 ±14.43 / 263.97 ms │ no change │
│ QQuery 5 │ 269.93 / 278.08 ±4.81 / 283.95 ms │ 281.03 / 284.92 ±3.68 / 289.47 ms │ no change │
│ QQuery 6 │ 1.29 / 1.48 ±0.30 / 2.07 ms │ 1.33 / 1.48 ±0.24 / 1.94 ms │ no change │
│ QQuery 7 │ 13.61 / 13.95 ±0.24 / 14.32 ms │ 13.88 / 13.98 ±0.08 / 14.05 ms │ no change │
│ QQuery 8 │ 333.58 / 335.38 ±1.31 / 336.63 ms │ 334.79 / 347.36 ±7.36 / 356.11 ms │ no change │
│ QQuery 9 │ 463.84 / 475.69 ±9.87 / 486.67 ms │ 474.26 / 480.83 ±5.15 / 488.12 ms │ no change │
│ QQuery 10 │ 69.72 / 71.11 ±1.11 / 73.04 ms │ 71.20 / 75.09 ±7.35 / 89.80 ms │ 1.06x slower │
│ QQuery 11 │ 82.15 / 82.48 ±0.25 / 82.82 ms │ 82.13 / 83.50 ±1.23 / 85.71 ms │ no change │
│ QQuery 12 │ 272.51 / 276.11 ±3.74 / 282.83 ms │ 274.84 / 286.79 ±9.13 / 300.80 ms │ no change │
│ QQuery 13 │ 395.73 / 404.48 ±7.89 / 415.29 ms │ 381.17 / 400.87 ±11.24 / 416.14 ms │ no change │
│ QQuery 14 │ 288.15 / 314.03 ±23.28 / 348.06 ms │ 289.18 / 309.39 ±20.65 / 335.04 ms │ no change │
│ QQuery 15 │ 319.82 / 332.85 ±8.62 / 344.30 ms │ 289.10 / 312.97 ±17.78 / 332.47 ms │ +1.06x faster │
│ QQuery 16 │ 720.01 / 730.77 ±6.82 / 740.41 ms │ 623.09 / 635.14 ±13.54 / 656.20 ms │ +1.15x faster │
│ QQuery 17 │ 628.19 / 657.36 ±35.27 / 725.13 ms │ 621.72 / 635.44 ±10.27 / 652.43 ms │ no change │
│ QQuery 18 │ 1289.55 / 1335.94 ±49.27 / 1427.80 ms │ 1268.71 / 1305.39 ±23.85 / 1337.82 ms │ no change │
│ QQuery 19 │ 29.72 / 37.11 ±9.06 / 52.78 ms │ 27.55 / 37.49 ±17.37 / 72.02 ms │ no change │
│ QQuery 20 │ 518.90 / 537.52 ±18.96 / 561.67 ms │ 535.28 / 543.78 ±7.39 / 557.21 ms │ no change │
│ QQuery 21 │ 507.82 / 517.83 ±8.25 / 528.98 ms │ 536.40 / 542.12 ±4.30 / 548.45 ms │ no change │
│ QQuery 22 │ 980.37 / 998.95 ±16.29 / 1024.82 ms │ 994.48 / 1062.69 ±39.93 / 1111.98 ms │ 1.06x slower │
│ QQuery 23 │ 3054.53 / 3126.85 ±53.51 / 3200.88 ms │ 3084.18 / 3144.07 ±63.17 / 3263.99 ms │ no change │
│ QQuery 24 │ 40.84 / 44.33 ±4.32 / 52.34 ms │ 40.97 / 41.64 ±0.56 / 42.39 ms │ +1.06x faster │
│ QQuery 25 │ 109.65 / 115.59 ±8.52 / 132.45 ms │ 110.70 / 112.38 ±1.89 / 115.97 ms │ no change │
│ QQuery 26 │ 41.11 / 42.20 ±0.63 / 42.83 ms │ 41.32 / 41.61 ±0.35 / 42.23 ms │ no change │
│ QQuery 27 │ 512.82 / 520.43 ±5.46 / 527.40 ms │ 514.91 / 526.35 ±8.16 / 538.16 ms │ no change │
│ QQuery 28 │ 2906.26 / 2943.69 ±33.16 / 2987.04 ms │ 2943.92 / 2970.13 ±24.63 / 3012.96 ms │ no change │
│ QQuery 29 │ 42.98 / 43.75 ±0.87 / 45.45 ms │ 43.58 / 61.54 ±19.11 / 95.62 ms │ 1.41x slower │
│ QQuery 30 │ 345.63 / 354.25 ±4.92 / 359.93 ms │ 313.16 / 347.85 ±24.79 / 380.97 ms │ no change │
│ QQuery 31 │ 309.77 / 325.63 ±11.13 / 340.77 ms │ 284.57 / 297.92 ±11.04 / 318.12 ms │ +1.09x faster │
│ QQuery 32 │ 981.19 / 1071.93 ±62.83 / 1147.74 ms │ 934.84 / 958.40 ±13.48 / 976.13 ms │ +1.12x faster │
│ QQuery 33 │ 1507.93 / 1533.76 ±37.64 / 1607.90 ms │ 1453.91 / 1518.30 ±55.65 / 1621.36 ms │ no change │
│ QQuery 34 │ 1486.24 / 1543.35 ±35.34 / 1589.83 ms │ 1560.70 / 1713.71 ±102.12 / 1844.45 ms │ 1.11x slower │
│ QQuery 35 │ 291.45 / 327.84 ±37.77 / 387.00 ms │ 293.51 / 327.63 ±28.31 / 366.24 ms │ no change │
│ QQuery 36 │ 66.12 / 69.62 ±2.85 / 73.90 ms │ 67.66 / 77.38 ±8.48 / 89.93 ms │ 1.11x slower │
│ QQuery 37 │ 35.72 / 39.88 ±2.62 / 42.59 ms │ 36.02 / 40.91 ±4.94 / 47.71 ms │ no change │
│ QQuery 38 │ 41.31 / 47.94 ±4.78 / 55.64 ms │ 41.10 / 45.72 ±4.79 / 52.88 ms │ no change │
│ QQuery 39 │ 141.19 / 151.94 ±8.43 / 163.39 ms │ 148.94 / 156.04 ±4.48 / 162.43 ms │ no change │
│ QQuery 40 │ 14.10 / 15.87 ±1.74 / 19.01 ms │ 14.61 / 14.91 ±0.21 / 15.17 ms │ +1.06x faster │
│ QQuery 41 │ 14.05 / 15.64 ±2.92 / 21.48 ms │ 13.92 / 15.18 ±2.21 / 19.59 ms │ no change │
│ QQuery 42 │ 13.42 / 17.51 ±4.68 / 24.18 ms │ 13.77 / 15.25 ±2.58 / 20.39 ms │ +1.15x faster │
└───────────┴───────────────────────────────────────┴────────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD) │ 20075.15ms │
│ Total Time (perf_join-order-enumeration) │ 20112.18ms │
│ Average Time (HEAD) │ 466.86ms │
│ Average Time (perf_join-order-enumeration) │ 467.73ms │
│ Queries Faster │ 7 │
│ Queries Slower │ 6 │
│ Queries with No Change │ 30 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴────────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**clickbench_partitioned — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 105.0s |
| Peak memory | 11.6 GiB |
| Avg memory | 4.4 GiB |
| CPU user | 1029.0s |
| CPU sys | 72.2s |
| Peak spill | 0 B |
**clickbench_partitioned — branch**
| Metric | Value |
|--------|-------|
| Wall time | 105.0s |
| Peak memory | 12.3 GiB |
| Avg memory | 4.7 GiB |
| CPU user | 1021.6s |
| CPU sys | 74.5s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5373579607
@asolimando, perhaps once we have an API proposed a good test would be "could we implement [DpHyp](https://www.researchgate.net/publication/47862092_Dynamic_Programming_Strikes_Back) using it"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5373597962
BTW I plan to finish up the DF 55 release blog first, but then I hope to spend some time wiht this PR making some API proposals
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "2010YOUY01 (via GitHub)" <gi...@apache.org>.
2010YOUY01 commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-6384950446
I'm currently prototyping a different implementation independently before reviewing this PR. (tbh I can't understand it if I don't build something first)
Also I feel this feature is quite challenging, with probably 10 major design decisions to make. I'd like to explore the design space freely first to avoid being anchored by a reference solution.
Once my prototype is ready, I'll review this PR and see how the two approaches can converge.
This is a really exciting project, hope to share some progress soon, and see what to do next.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5328658397
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5328427832)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (a329cf31232aa58729328b8783225cd7060dced9) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..a329cf31232aa58729328b8783225cd7060dced9)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpcds
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 5.66 ms │ 5.71 ms │ no change │
│ QQuery 2 │ 80.37 ms │ 80.45 ms │ no change │
│ QQuery 3 │ 29.22 ms │ 25.92 ms │ +1.13x faster │
│ QQuery 4 │ 479.65 ms │ 484.73 ms │ no change │
│ QQuery 5 │ 52.15 ms │ 52.43 ms │ no change │
│ QQuery 6 │ 36.26 ms │ 53.22 ms │ 1.47x slower │
│ QQuery 7 │ 93.58 ms │ 80.52 ms │ +1.16x faster │
│ QQuery 8 │ 36.93 ms │ 36.68 ms │ no change │
│ QQuery 9 │ 52.30 ms │ 50.72 ms │ no change │
│ QQuery 10 │ 62.62 ms │ 62.33 ms │ no change │
│ QQuery 11 │ 299.17 ms │ 236.90 ms │ +1.26x faster │
│ QQuery 12 │ 31.37 ms │ 18.19 ms │ +1.73x faster │
│ QQuery 13 │ 123.57 ms │ 117.18 ms │ +1.05x faster │
│ QQuery 14 │ 441.75 ms │ 354.59 ms │ +1.25x faster │
│ QQuery 15 │ 63.14 ms │ 20.87 ms │ +3.03x faster │
│ QQuery 16 │ 7.26 ms │ 6.83 ms │ +1.06x faster │
│ QQuery 17 │ 82.71 ms │ 91.04 ms │ 1.10x slower │
│ QQuery 18 │ 123.87 ms │ 109.04 ms │ +1.14x faster │
│ QQuery 19 │ 41.26 ms │ 42.17 ms │ no change │
│ QQuery 20 │ 35.54 ms │ 23.93 ms │ +1.49x faster │
│ QQuery 21 │ 17.25 ms │ 14.51 ms │ +1.19x faster │
│ QQuery 22 │ 63.07 ms │ 71.77 ms │ 1.14x slower │
│ QQuery 23 │ 339.64 ms │ 336.43 ms │ no change │
│ QQuery 24 │ 222.52 ms │ 166.73 ms │ +1.33x faster │
│ QQuery 25 │ 109.60 ms │ 81.30 ms │ +1.35x faster │
│ QQuery 26 │ 57.03 ms │ 58.66 ms │ no change │
│ QQuery 27 │ 6.29 ms │ 6.59 ms │ no change │
│ QQuery 28 │ 56.11 ms │ 57.81 ms │ no change │
│ QQuery 29 │ 96.38 ms │ 65.23 ms │ +1.48x faster │
│ QQuery 30 │ 32.28 ms │ 32.06 ms │ no change │
│ QQuery 31 │ 110.20 ms │ 110.57 ms │ no change │
│ QQuery 32 │ 20.03 ms │ 19.91 ms │ no change │
│ QQuery 33 │ 38.04 ms │ 38.07 ms │ no change │
│ QQuery 34 │ 9.87 ms │ 9.75 ms │ no change │
│ QQuery 35 │ 72.89 ms │ 76.10 ms │ no change │
│ QQuery 36 │ 6.04 ms │ 6.40 ms │ 1.06x slower │
│ QQuery 37 │ 6.91 ms │ 6.53 ms │ +1.06x faster │
│ QQuery 38 │ 61.76 ms │ 61.55 ms │ no change │
│ QQuery 39 │ 90.05 ms │ 78.49 ms │ +1.15x faster │
│ QQuery 40 │ 23.24 ms │ 22.22 ms │ no change │
│ QQuery 41 │ 11.37 ms │ 11.32 ms │ no change │
│ QQuery 42 │ 24.02 ms │ 25.98 ms │ 1.08x slower │
│ QQuery 43 │ 5.13 ms │ 5.18 ms │ no change │
│ QQuery 44 │ 10.14 ms │ 9.42 ms │ +1.08x faster │
│ QQuery 45 │ 46.75 ms │ 23.38 ms │ +2.00x faster │
│ QQuery 46 │ 13.41 ms │ 14.44 ms │ 1.08x slower │
│ QQuery 47 │ 275.67 ms │ 226.57 ms │ +1.22x faster │
│ QQuery 48 │ 100.82 ms │ 94.38 ms │ +1.07x faster │
│ QQuery 49 │ 82.24 ms │ 72.12 ms │ +1.14x faster │
│ QQuery 50 │ 61.76 ms │ 53.80 ms │ +1.15x faster │
│ QQuery 51 │ 92.68 ms │ 90.45 ms │ no change │
│ QQuery 52 │ 23.93 ms │ 26.40 ms │ 1.10x slower │
│ QQuery 53 │ 29.39 ms │ 29.38 ms │ no change │
│ QQuery 54 │ 56.87 ms │ 25.14 ms │ +2.26x faster │
│ QQuery 55 │ 24.36 ms │ 24.99 ms │ no change │
│ QQuery 56 │ 40.63 ms │ 38.01 ms │ +1.07x faster │
│ QQuery 57 │ 174.91 ms │ 173.44 ms │ no change │
│ QQuery 58 │ 113.03 ms │ 52.03 ms │ +2.17x faster │
│ QQuery 59 │ 117.07 ms │ 116.38 ms │ no change │
│ QQuery 60 │ 39.48 ms │ 38.29 ms │ no change │
│ QQuery 61 │ 12.23 ms │ 10.72 ms │ +1.14x faster │
│ QQuery 62 │ 46.22 ms │ 30.53 ms │ +1.51x faster │
│ QQuery 63 │ 29.26 ms │ 29.38 ms │ no change │
│ QQuery 64 │ 404.50 ms │ 362.28 ms │ +1.12x faster │
│ QQuery 65 │ 121.76 ms │ 124.46 ms │ no change │
│ QQuery 66 │ 81.29 ms │ 69.19 ms │ +1.17x faster │
│ QQuery 67 │ 239.42 ms │ 286.69 ms │ 1.20x slower │
│ QQuery 68 │ 11.83 ms │ 15.70 ms │ 1.33x slower │
│ QQuery 69 │ 56.99 ms │ 65.75 ms │ 1.15x slower │
│ QQuery 70 │ 105.87 ms │ 82.56 ms │ +1.28x faster │
│ QQuery 71 │ 34.91 ms │ 35.38 ms │ no change │
│ QQuery 72 │ 2017.69 ms │ 79.77 ms │ +25.29x faster │
│ QQuery 73 │ 9.81 ms │ 9.72 ms │ no change │
│ QQuery 74 │ 168.69 ms │ 180.65 ms │ 1.07x slower │
│ QQuery 75 │ 149.42 ms │ 109.37 ms │ +1.37x faster │
│ QQuery 76 │ 35.17 ms │ 35.33 ms │ no change │
│ QQuery 77 │ 61.52 ms │ 61.57 ms │ no change │
│ QQuery 78 │ 195.32 ms │ 194.76 ms │ no change │
│ QQuery 79 │ 66.71 ms │ 80.64 ms │ 1.21x slower │
│ QQuery 80 │ 99.01 ms │ 98.68 ms │ no change │
│ QQuery 81 │ 25.78 ms │ 25.31 ms │ no change │
│ QQuery 82 │ 16.21 ms │ 17.82 ms │ 1.10x slower │
│ QQuery 83 │ 39.92 ms │ 26.74 ms │ +1.49x faster │
│ QQuery 84 │ 29.99 ms │ 37.97 ms │ 1.27x slower │
│ QQuery 85 │ 105.72 ms │ 102.64 ms │ no change │
│ QQuery 86 │ 25.64 ms │ 25.42 ms │ no change │
│ QQuery 87 │ 63.04 ms │ 62.17 ms │ no change │
│ QQuery 88 │ 63.78 ms │ 58.87 ms │ +1.08x faster │
│ QQuery 89 │ 35.43 ms │ 31.77 ms │ +1.12x faster │
│ QQuery 90 │ 17.17 ms │ 14.66 ms │ +1.17x faster │
│ QQuery 91 │ 46.14 ms │ 41.04 ms │ +1.12x faster │
│ QQuery 92 │ 29.52 ms │ 29.47 ms │ no change │
│ QQuery 93 │ 49.74 ms │ 49.69 ms │ no change │
│ QQuery 94 │ 37.76 ms │ 37.60 ms │ no change │
│ QQuery 95 │ 79.83 ms │ 79.29 ms │ no change │
│ QQuery 96 │ 24.00 ms │ 20.74 ms │ +1.16x faster │
│ QQuery 97 │ 46.95 ms │ 46.98 ms │ no change │
│ QQuery 98 │ 43.18 ms │ 27.49 ms │ +1.57x faster │
│ QQuery 99 │ 71.12 ms │ 44.88 ms │ +1.58x faster │
└───────────┴────────────┴─────────────────────────────┴────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD) │ 9759.80ms │
│ Total Time (perf_join-order-enumeration) │ 7168.88ms │
│ Average Time (HEAD) │ 98.58ms │
│ Average Time (perf_join-order-enumeration) │ 72.41ms │
│ Queries Faster │ 40 │
│ Queries Slower │ 14 │
│ Queries with No Change │ 45 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴───────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 5.66 / 6.12 ±0.82 / 7.76 ms │ 5.71 / 6.23 ±0.89 / 8.01 ms │ no change │
│ QQuery 2 │ 80.37 / 80.75 ±0.32 / 81.31 ms │ 80.45 / 80.76 ±0.18 / 80.99 ms │ no change │
│ QQuery 3 │ 29.22 / 29.33 ±0.11 / 29.53 ms │ 25.92 / 26.16 ±0.23 / 26.60 ms │ +1.12x faster │
│ QQuery 4 │ 479.65 / 486.70 ±5.62 / 495.66 ms │ 484.73 / 489.67 ±4.44 / 495.66 ms │ no change │
│ QQuery 5 │ 52.15 / 52.80 ±0.45 / 53.46 ms │ 52.43 / 52.99 ±0.33 / 53.44 ms │ no change │
│ QQuery 6 │ 36.26 / 36.96 ±0.39 / 37.38 ms │ 53.22 / 54.44 ±0.64 / 54.91 ms │ 1.47x slower │
│ QQuery 7 │ 93.58 / 94.45 ±0.56 / 95.13 ms │ 80.52 / 80.84 ±0.26 / 81.18 ms │ +1.17x faster │
│ QQuery 8 │ 36.93 / 38.42 ±2.21 / 42.82 ms │ 36.68 / 37.36 ±0.70 / 38.60 ms │ no change │
│ QQuery 9 │ 52.30 / 54.23 ±1.05 / 55.34 ms │ 50.72 / 52.07 ±1.42 / 54.43 ms │ no change │
│ QQuery 10 │ 62.62 / 63.03 ±0.25 / 63.33 ms │ 62.33 / 62.76 ±0.34 / 63.31 ms │ no change │
│ QQuery 11 │ 299.17 / 308.03 ±7.38 / 318.64 ms │ 236.90 / 239.24 ±1.76 / 242.26 ms │ +1.29x faster │
│ QQuery 12 │ 31.37 / 31.74 ±0.27 / 31.98 ms │ 18.19 / 18.42 ±0.32 / 19.05 ms │ +1.72x faster │
│ QQuery 13 │ 123.57 / 125.49 ±1.81 / 128.51 ms │ 117.18 / 118.61 ±2.46 / 123.53 ms │ +1.06x faster │
│ QQuery 14 │ 441.75 / 443.53 ±2.25 / 447.90 ms │ 354.59 / 357.90 ±2.39 / 361.62 ms │ +1.24x faster │
│ QQuery 15 │ 63.14 / 64.90 ±1.11 / 66.61 ms │ 20.87 / 21.19 ±0.21 / 21.45 ms │ +3.06x faster │
│ QQuery 16 │ 7.26 / 7.41 ±0.20 / 7.80 ms │ 6.83 / 6.99 ±0.18 / 7.33 ms │ +1.06x faster │
│ QQuery 17 │ 82.71 / 84.53 ±1.84 / 87.21 ms │ 91.04 / 93.67 ±2.09 / 96.32 ms │ 1.11x slower │
│ QQuery 18 │ 123.87 / 125.91 ±1.31 / 127.40 ms │ 109.04 / 110.49 ±1.68 / 113.78 ms │ +1.14x faster │
│ QQuery 19 │ 41.26 / 42.15 ±0.93 / 43.75 ms │ 42.17 / 42.84 ±0.64 / 44.01 ms │ no change │
│ QQuery 20 │ 35.54 / 36.43 ±1.05 / 37.89 ms │ 23.93 / 25.50 ±1.97 / 29.31 ms │ +1.43x faster │
│ QQuery 21 │ 17.25 / 17.48 ±0.26 / 17.97 ms │ 14.51 / 14.75 ±0.22 / 15.12 ms │ +1.19x faster │
│ QQuery 22 │ 63.07 / 63.75 ±0.53 / 64.49 ms │ 71.77 / 72.76 ±0.95 / 74.13 ms │ 1.14x slower │
│ QQuery 23 │ 339.64 / 351.00 ±11.89 / 373.57 ms │ 336.43 / 343.88 ±3.84 / 346.89 ms │ no change │
│ QQuery 24 │ 222.52 / 224.61 ±1.76 / 227.16 ms │ 166.73 / 171.51 ±2.80 / 175.28 ms │ +1.31x faster │
│ QQuery 25 │ 109.60 / 110.28 ±0.57 / 111.28 ms │ 81.30 / 82.02 ±0.53 / 82.72 ms │ +1.34x faster │
│ QQuery 26 │ 57.03 / 57.65 ±0.58 / 58.51 ms │ 58.66 / 59.19 ±0.33 / 59.54 ms │ no change │
│ QQuery 27 │ 6.29 / 6.45 ±0.17 / 6.77 ms │ 6.59 / 6.66 ±0.07 / 6.79 ms │ no change │
│ QQuery 28 │ 56.11 / 59.36 ±2.39 / 61.61 ms │ 57.81 / 61.38 ±2.91 / 65.90 ms │ no change │
│ QQuery 29 │ 96.38 / 98.81 ±3.13 / 104.85 ms │ 65.23 / 66.06 ±0.96 / 67.92 ms │ +1.50x faster │
│ QQuery 30 │ 32.28 / 33.26 ±0.96 / 35.06 ms │ 32.06 / 32.50 ±0.39 / 33.03 ms │ no change │
│ QQuery 31 │ 110.20 / 111.26 ±0.78 / 112.42 ms │ 110.57 / 112.28 ±2.08 / 116.13 ms │ no change │
│ QQuery 32 │ 20.03 / 20.28 ±0.25 / 20.71 ms │ 19.91 / 20.66 ±0.68 / 21.85 ms │ no change │
│ QQuery 33 │ 38.04 / 39.06 ±1.03 / 40.90 ms │ 38.07 / 38.60 ±0.34 / 38.99 ms │ no change │
│ QQuery 34 │ 9.87 / 10.34 ±0.48 / 11.27 ms │ 9.75 / 10.13 ±0.44 / 10.91 ms │ no change │
│ QQuery 35 │ 72.89 / 73.41 ±0.30 / 73.81 ms │ 76.10 / 76.78 ±0.41 / 77.25 ms │ no change │
│ QQuery 36 │ 6.04 / 6.16 ±0.16 / 6.48 ms │ 6.40 / 6.55 ±0.17 / 6.88 ms │ 1.06x slower │
│ QQuery 37 │ 6.91 / 6.98 ±0.05 / 7.05 ms │ 6.53 / 6.77 ±0.21 / 7.08 ms │ no change │
│ QQuery 38 │ 61.76 / 62.07 ±0.28 / 62.60 ms │ 61.55 / 63.41 ±2.05 / 67.15 ms │ no change │
│ QQuery 39 │ 90.05 / 91.63 ±1.79 / 95.10 ms │ 78.49 / 79.22 ±0.78 / 80.72 ms │ +1.16x faster │
│ QQuery 40 │ 23.24 / 23.51 ±0.19 / 23.77 ms │ 22.22 / 22.40 ±0.19 / 22.75 ms │ no change │
│ QQuery 41 │ 11.37 / 11.57 ±0.20 / 11.94 ms │ 11.32 / 11.48 ±0.13 / 11.71 ms │ no change │
│ QQuery 42 │ 24.02 / 24.25 ±0.17 / 24.53 ms │ 25.98 / 26.48 ±0.35 / 26.95 ms │ 1.09x slower │
│ QQuery 43 │ 5.13 / 5.37 ±0.20 / 5.64 ms │ 5.18 / 5.29 ±0.16 / 5.60 ms │ no change │
│ QQuery 44 │ 10.14 / 10.23 ±0.05 / 10.26 ms │ 9.42 / 10.69 ±2.45 / 15.58 ms │ no change │
│ QQuery 45 │ 46.75 / 49.31 ±2.73 / 54.41 ms │ 23.38 / 23.93 ±0.39 / 24.61 ms │ +2.06x faster │
│ QQuery 46 │ 13.41 / 13.88 ±0.42 / 14.47 ms │ 14.44 / 14.87 ±0.43 / 15.66 ms │ 1.07x slower │
│ QQuery 47 │ 275.67 / 283.53 ±5.17 / 290.28 ms │ 226.57 / 231.95 ±6.37 / 243.48 ms │ +1.22x faster │
│ QQuery 48 │ 100.82 / 101.03 ±0.19 / 101.29 ms │ 94.38 / 95.06 ±0.35 / 95.32 ms │ +1.06x faster │
│ QQuery 49 │ 82.24 / 83.04 ±0.52 / 83.52 ms │ 72.12 / 73.40 ±1.33 / 75.91 ms │ +1.13x faster │
│ QQuery 50 │ 61.76 / 62.31 ±0.58 / 63.17 ms │ 53.80 / 53.94 ±0.15 / 54.18 ms │ +1.16x faster │
│ QQuery 51 │ 92.68 / 94.89 ±1.78 / 97.04 ms │ 90.45 / 92.02 ±1.07 / 93.66 ms │ no change │
│ QQuery 52 │ 23.93 / 24.48 ±0.46 / 25.29 ms │ 26.40 / 27.14 ±0.72 / 28.46 ms │ 1.11x slower │
│ QQuery 53 │ 29.39 / 30.03 ±0.37 / 30.39 ms │ 29.38 / 29.79 ±0.38 / 30.48 ms │ no change │
│ QQuery 54 │ 56.87 / 57.10 ±0.15 / 57.34 ms │ 25.14 / 25.26 ±0.19 / 25.65 ms │ +2.26x faster │
│ QQuery 55 │ 24.36 / 24.72 ±0.28 / 25.22 ms │ 24.99 / 25.39 ±0.27 / 25.71 ms │ no change │
│ QQuery 56 │ 40.63 / 41.10 ±0.46 / 41.80 ms │ 38.01 / 38.56 ±0.46 / 39.33 ms │ +1.07x faster │
│ QQuery 57 │ 174.91 / 176.75 ±3.19 / 183.12 ms │ 173.44 / 177.50 ±3.07 / 182.95 ms │ no change │
│ QQuery 58 │ 113.03 / 114.86 ±2.98 / 120.80 ms │ 52.03 / 52.56 ±0.43 / 53.19 ms │ +2.19x faster │
│ QQuery 59 │ 117.07 / 119.10 ±2.15 / 122.88 ms │ 116.38 / 117.98 ±1.44 / 120.54 ms │ no change │
│ QQuery 60 │ 39.48 / 39.91 ±0.36 / 40.39 ms │ 38.29 / 39.20 ±0.53 / 39.67 ms │ no change │
│ QQuery 61 │ 12.23 / 12.39 ±0.18 / 12.72 ms │ 10.72 / 10.91 ±0.16 / 11.14 ms │ +1.14x faster │
│ QQuery 62 │ 46.22 / 46.79 ±0.38 / 47.22 ms │ 30.53 / 30.76 ±0.17 / 30.96 ms │ +1.52x faster │
│ QQuery 63 │ 29.26 / 29.50 ±0.28 / 30.04 ms │ 29.38 / 29.54 ±0.14 / 29.76 ms │ no change │
│ QQuery 64 │ 404.50 / 410.07 ±4.70 / 416.15 ms │ 362.28 / 366.70 ±2.67 / 370.61 ms │ +1.12x faster │
│ QQuery 65 │ 121.76 / 125.70 ±3.05 / 130.96 ms │ 124.46 / 130.73 ±5.41 / 138.32 ms │ no change │
│ QQuery 66 │ 81.29 / 81.75 ±0.40 / 82.36 ms │ 69.19 / 69.90 ±0.44 / 70.53 ms │ +1.17x faster │
│ QQuery 67 │ 239.42 / 242.92 ±3.69 / 248.42 ms │ 286.69 / 293.79 ±5.81 / 300.47 ms │ 1.21x slower │
│ QQuery 68 │ 11.83 / 12.17 ±0.26 / 12.60 ms │ 15.70 / 16.08 ±0.29 / 16.49 ms │ 1.32x slower │
│ QQuery 69 │ 56.99 / 57.39 ±0.62 / 58.61 ms │ 65.75 / 66.01 ±0.27 / 66.53 ms │ 1.15x slower │
│ QQuery 70 │ 105.87 / 108.42 ±2.07 / 112.05 ms │ 82.56 / 84.85 ±4.27 / 93.38 ms │ +1.28x faster │
│ QQuery 71 │ 34.91 / 37.84 ±4.85 / 47.52 ms │ 35.38 / 36.38 ±0.86 / 37.48 ms │ no change │
│ QQuery 72 │ 2017.69 / 2135.68 ±97.20 / 2252.91 ms │ 79.77 / 80.76 ±1.02 / 82.64 ms │ +26.45x faster │
│ QQuery 73 │ 9.81 / 9.97 ±0.19 / 10.32 ms │ 9.72 / 10.05 ±0.23 / 10.28 ms │ no change │
│ QQuery 74 │ 168.69 / 172.70 ±3.12 / 177.70 ms │ 180.65 / 196.37 ±8.69 / 206.25 ms │ 1.14x slower │
│ QQuery 75 │ 149.42 / 152.38 ±4.92 / 162.18 ms │ 109.37 / 113.76 ±5.40 / 124.02 ms │ +1.34x faster │
│ QQuery 76 │ 35.17 / 35.73 ±0.48 / 36.32 ms │ 35.33 / 35.65 ±0.22 / 36.01 ms │ no change │
│ QQuery 77 │ 61.52 / 62.21 ±0.50 / 63.04 ms │ 61.57 / 62.03 ±0.35 / 62.36 ms │ no change │
│ QQuery 78 │ 195.32 / 197.88 ±1.94 / 199.96 ms │ 194.76 / 199.53 ±4.59 / 208.10 ms │ no change │
│ QQuery 79 │ 66.71 / 68.31 ±1.33 / 70.26 ms │ 80.64 / 83.01 ±3.00 / 88.76 ms │ 1.22x slower │
│ QQuery 80 │ 99.01 / 100.81 ±1.64 / 103.18 ms │ 98.68 / 100.49 ±1.24 / 102.56 ms │ no change │
│ QQuery 81 │ 25.78 / 25.97 ±0.17 / 26.27 ms │ 25.31 / 25.65 ±0.17 / 25.78 ms │ no change │
│ QQuery 82 │ 16.21 / 17.52 ±2.13 / 21.76 ms │ 17.82 / 18.38 ±0.69 / 19.70 ms │ no change │
│ QQuery 83 │ 39.92 / 41.78 ±2.23 / 45.68 ms │ 26.74 / 27.38 ±0.61 / 28.44 ms │ +1.53x faster │
│ QQuery 84 │ 29.99 / 30.21 ±0.19 / 30.55 ms │ 37.97 / 40.98 ±3.37 / 47.01 ms │ 1.36x slower │
│ QQuery 85 │ 105.72 / 106.77 ±1.03 / 108.59 ms │ 102.64 / 103.35 ±0.87 / 105.07 ms │ no change │
│ QQuery 86 │ 25.64 / 27.19 ±2.36 / 31.87 ms │ 25.42 / 25.53 ±0.14 / 25.81 ms │ +1.06x faster │
│ QQuery 87 │ 63.04 / 63.96 ±0.93 / 65.46 ms │ 62.17 / 65.03 ±3.41 / 71.65 ms │ no change │
│ QQuery 88 │ 63.78 / 64.47 ±0.58 / 65.52 ms │ 58.87 / 59.30 ±0.46 / 60.01 ms │ +1.09x faster │
│ QQuery 89 │ 35.43 / 35.57 ±0.12 / 35.76 ms │ 31.77 / 32.16 ±0.24 / 32.45 ms │ +1.11x faster │
│ QQuery 90 │ 17.17 / 17.37 ±0.19 / 17.72 ms │ 14.66 / 14.88 ±0.16 / 15.07 ms │ +1.17x faster │
│ QQuery 91 │ 46.14 / 47.37 ±1.83 / 51.00 ms │ 41.04 / 41.29 ±0.22 / 41.68 ms │ +1.15x faster │
│ QQuery 92 │ 29.52 / 30.40 ±0.66 / 31.53 ms │ 29.47 / 29.69 ±0.21 / 30.08 ms │ no change │
│ QQuery 93 │ 49.74 / 50.92 ±1.03 / 52.40 ms │ 49.69 / 51.63 ±2.73 / 56.98 ms │ no change │
│ QQuery 94 │ 37.76 / 38.23 ±0.59 / 39.35 ms │ 37.60 / 38.07 ±0.27 / 38.33 ms │ no change │
│ QQuery 95 │ 79.83 / 81.88 ±2.71 / 87.15 ms │ 79.29 / 80.30 ±0.57 / 80.81 ms │ no change │
│ QQuery 96 │ 24.00 / 24.65 ±1.00 / 26.60 ms │ 20.74 / 20.93 ±0.15 / 21.17 ms │ +1.18x faster │
│ QQuery 97 │ 46.95 / 47.40 ±0.31 / 47.86 ms │ 46.98 / 49.43 ±2.73 / 54.48 ms │ no change │
│ QQuery 98 │ 43.18 / 43.72 ±0.59 / 44.80 ms │ 27.49 / 27.85 ±0.23 / 28.08 ms │ +1.57x faster │
│ QQuery 99 │ 71.12 / 75.18 ±3.92 / 82.38 ms │ 44.88 / 45.41 ±0.48 / 46.17 ms │ +1.66x faster │
└───────────┴───────────────────────────────────────┴───────────────────────────────────┴────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD) │ 10018.87ms │
│ Total Time (perf_join-order-enumeration) │ 7312.59ms │
│ Average Time (HEAD) │ 101.20ms │
│ Average Time (perf_join-order-enumeration) │ 73.86ms │
│ Queries Faster │ 39 │
│ Queries Slower │ 13 │
│ Queries with No Change │ 47 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴────────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpcds — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 55.0s |
| Peak memory | 2.2 GiB |
| Avg memory | 1.5 GiB |
| CPU user | 224.2s |
| CPU sys | 6.2s |
| Peak spill | 0 B |
**tpcds — branch**
| Metric | Value |
|--------|-------|
| Wall time | 40.0s |
| Peak memory | 2.1 GiB |
| Avg memory | 1.3 GiB |
| CPU user | 102.2s |
| CPU sys | 5.2s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "Dandandan (via GitHub) via github" <gi...@datafusion.apache.org>.
Dandandan commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-7079546969
The enumerator can now use an implied equality to join a selective dimension earlier. In TPC-H Q5, the original predicates imply that customer and nation share a nation key through supplier. This makes it possible to use the region filter to narrow customers and orders before joining lineitem. The query SQL is unchanged.
I compared the previous PR head (`a3e100b2d`) with this update on local TPC-H SF1 Parquet, with join enumeration enabled in both binaries and 10 target partitions. I alternated binary order across nine pairs. Each observation is the median of five warm executions after one warm-up. Q5 improved from **35 ms to 31 ms** (11% lower latency) and was faster in all nine pairs. The median was unchanged on Q3, Q7, Q8, Q9, Q11 and Q18, and moved from 62 to 61 ms on Q10. Both binaries returned matching rows on all eight queries. These timings cover the listed queries on one machine.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5345493017
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5345293493)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (4c344867b2cf5edb1ec55ccf6fa138009a7609a7) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..4c344867b2cf5edb1ec55ccf6fa138009a7609a7)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 38.66 ms │ 38.91 ms │ no change │
│ QQuery 2 │ 19.21 ms │ 16.72 ms │ +1.15x faster │
│ QQuery 3 │ 30.74 ms │ 28.56 ms │ +1.08x faster │
│ QQuery 4 │ 17.45 ms │ 17.57 ms │ no change │
│ QQuery 5 │ 37.79 ms │ 32.18 ms │ +1.17x faster │
│ QQuery 6 │ 16.01 ms │ 16.25 ms │ no change │
│ QQuery 7 │ 44.11 ms │ 33.88 ms │ +1.30x faster │
│ QQuery 8 │ 42.11 ms │ 39.96 ms │ +1.05x faster │
│ QQuery 9 │ 49.72 ms │ 47.12 ms │ +1.06x faster │
│ QQuery 10 │ 42.46 ms │ 42.81 ms │ no change │
│ QQuery 11 │ 13.45 ms │ 13.85 ms │ no change │
│ QQuery 12 │ 23.93 ms │ 23.12 ms │ no change │
│ QQuery 13 │ 32.19 ms │ 31.77 ms │ no change │
│ QQuery 14 │ 23.34 ms │ 24.45 ms │ no change │
│ QQuery 15 │ 31.07 ms │ 30.91 ms │ no change │
│ QQuery 16 │ 13.77 ms │ 13.75 ms │ no change │
│ QQuery 17 │ 71.90 ms │ 71.24 ms │ no change │
│ QQuery 18 │ 59.74 ms │ 59.19 ms │ no change │
│ QQuery 19 │ 32.81 ms │ 34.32 ms │ no change │
│ QQuery 20 │ 31.93 ms │ 31.66 ms │ no change │
│ QQuery 21 │ 55.65 ms │ 52.67 ms │ +1.06x faster │
│ QQuery 22 │ 13.96 ms │ 13.88 ms │ no change │
└───────────┴──────────┴─────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD) │ 742.00ms │
│ Total Time (perf_join-order-enumeration) │ 714.76ms │
│ Average Time (HEAD) │ 33.73ms │
│ Average Time (perf_join-order-enumeration) │ 32.49ms │
│ Queries Faster │ 7 │
│ Queries Slower │ 0 │
│ Queries with No Change │ 15 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴──────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 38.66 / 40.08 ±1.38 / 41.96 ms │ 38.91 / 41.17 ±2.10 / 44.53 ms │ no change │
│ QQuery 2 │ 19.21 / 19.55 ±0.26 / 19.84 ms │ 16.72 / 17.05 ±0.21 / 17.39 ms │ +1.15x faster │
│ QQuery 3 │ 30.74 / 32.54 ±1.22 / 33.89 ms │ 28.56 / 28.95 ±0.31 / 29.38 ms │ +1.12x faster │
│ QQuery 4 │ 17.45 / 18.13 ±0.60 / 19.19 ms │ 17.57 / 18.10 ±0.41 / 18.65 ms │ no change │
│ QQuery 5 │ 37.79 / 39.73 ±0.99 / 40.43 ms │ 32.18 / 32.52 ±0.28 / 32.91 ms │ +1.22x faster │
│ QQuery 6 │ 16.01 / 16.11 ±0.07 / 16.24 ms │ 16.25 / 16.47 ±0.25 / 16.96 ms │ no change │
│ QQuery 7 │ 44.11 / 45.87 ±1.52 / 48.47 ms │ 33.88 / 34.26 ±0.21 / 34.48 ms │ +1.34x faster │
│ QQuery 8 │ 42.11 / 42.61 ±0.27 / 42.87 ms │ 39.96 / 41.98 ±1.44 / 43.94 ms │ no change │
│ QQuery 9 │ 49.72 / 50.83 ±0.73 / 51.96 ms │ 47.12 / 48.63 ±0.86 / 49.33 ms │ no change │
│ QQuery 10 │ 42.46 / 42.70 ±0.19 / 42.97 ms │ 42.81 / 43.44 ±0.73 / 44.85 ms │ no change │
│ QQuery 11 │ 13.45 / 13.79 ±0.21 / 14.09 ms │ 13.85 / 14.05 ±0.14 / 14.26 ms │ no change │
│ QQuery 12 │ 23.93 / 24.10 ±0.20 / 24.43 ms │ 23.12 / 23.45 ±0.19 / 23.72 ms │ no change │
│ QQuery 13 │ 32.19 / 34.52 ±2.05 / 37.60 ms │ 31.77 / 33.16 ±1.12 / 34.44 ms │ no change │
│ QQuery 14 │ 23.34 / 23.90 ±0.58 / 24.79 ms │ 24.45 / 24.65 ±0.16 / 24.87 ms │ no change │
│ QQuery 15 │ 31.07 / 31.50 ±0.34 / 32.08 ms │ 30.91 / 31.57 ±0.63 / 32.75 ms │ no change │
│ QQuery 16 │ 13.77 / 14.05 ±0.15 / 14.22 ms │ 13.75 / 14.30 ±0.38 / 14.78 ms │ no change │
│ QQuery 17 │ 71.90 / 73.07 ±1.18 / 75.30 ms │ 71.24 / 72.31 ±1.10 / 74.20 ms │ no change │
│ QQuery 18 │ 59.74 / 60.94 ±1.06 / 62.66 ms │ 59.19 / 60.82 ±1.29 / 62.86 ms │ no change │
│ QQuery 19 │ 32.81 / 32.96 ±0.19 / 33.33 ms │ 34.32 / 35.28 ±1.52 / 38.31 ms │ 1.07x slower │
│ QQuery 20 │ 31.93 / 32.46 ±0.45 / 32.97 ms │ 31.66 / 32.29 ±0.69 / 33.26 ms │ no change │
│ QQuery 21 │ 55.65 / 57.32 ±1.25 / 59.19 ms │ 52.67 / 53.47 ±0.79 / 54.94 ms │ +1.07x faster │
│ QQuery 22 │ 13.96 / 14.22 ±0.15 / 14.43 ms │ 13.88 / 14.08 ±0.12 / 14.22 ms │ no change │
└───────────┴────────────────────────────────┴────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD) │ 760.97ms │
│ Total Time (perf_join-order-enumeration) │ 732.00ms │
│ Average Time (HEAD) │ 34.59ms │
│ Average Time (perf_join-order-enumeration) │ 33.27ms │
│ Queries Faster │ 5 │
│ Queries Slower │ 1 │
│ Queries with No Change │ 16 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴──────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpch — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 1.2 GiB |
| Avg memory | 526.3 MiB |
| CPU user | 21.9s |
| CPU sys | 1.7s |
| Peak spill | 0 B |
**tpch — branch**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 1.3 GiB |
| Avg memory | 511.1 MiB |
| CPU user | 20.4s |
| CPU sys | 1.6s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on code in PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#discussion_r3824504729
##########
datafusion/common/src/config.rs:
##########
@@ -1672,6 +1672,22 @@ config_namespace! {
/// query is used.
pub join_reordering: bool, default = true
+ /// When set to true, the physical plan optimizer enumerates join orders for
+ /// subtrees of joins and picks the cheapest from cardinality estimates,
+ /// considering bushy shapes as well as left-deep ones. Subtrees whose inputs
+ /// lack row count statistics are left untouched.
+ pub join_enumeration: bool, default = true
+
+ /// How much cheaper an enumerated join order must be, in percent, before it
Review Comment:
Yeah - my goal would be to mostly bring this down as well (i.e. remove or accept the regression).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5381031070
> > On my machine with the join ordering, DataFusion beats DuckDB on TPC-H at least (didn't check TPC-DS). It would make a nice blog post if that's a robust result...
>
> In case you want further coverage beyond TPC-* benchmarks, I can suggest the join-ordering-benchmark/JOB ([original paper](https://www.vldb.org/pvldb/vol9/p204-leis.pdf), [implementation](https://github.com/gregrahn/join-order-benchmark)).
Thanks for the suggestion - current draft is implements DPHyp, and I benchmarked the implementation against JOB.
It seems quite a bit faster in planning and now supports outer / mark joins as well, improving some queries that use them. Ill probably compare plans against DuckDB and or calcite and see if query plans are significantly different.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5381206041
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5381129576)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (b8acd17fb6a2a1b307edd71e3c7bb9d75db04e9d) to fc15e25 (merge-base) [diff](https://github.com/apache/datafusion/compare/fc15e25cbb49d457c319dbf522f2982d32c794cb..b8acd17fb6a2a1b307edd71e3c7bb9d75db04e9d)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch10
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf10.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 310.18 ms │ 309.61 ms │ no change │
│ QQuery 2 │ 103.09 ms │ 69.50 ms │ +1.48x faster │
│ QQuery 3 │ 234.57 ms │ 214.93 ms │ +1.09x faster │
│ QQuery 4 │ 115.29 ms │ 116.85 ms │ no change │
│ QQuery 5 │ 354.09 ms │ 277.52 ms │ +1.28x faster │
│ QQuery 6 │ 122.81 ms │ 122.78 ms │ no change │
│ QQuery 7 │ 479.19 ms │ 247.15 ms │ +1.94x faster │
│ QQuery 8 │ 376.93 ms │ 411.44 ms │ 1.09x slower │
│ QQuery 9 │ 555.30 ms │ 507.19 ms │ +1.09x faster │
│ QQuery 10 │ 296.05 ms │ 302.19 ms │ no change │
│ QQuery 11 │ 85.83 ms │ 57.11 ms │ +1.50x faster │
│ QQuery 12 │ 178.78 ms │ 164.46 ms │ +1.09x faster │
│ QQuery 13 │ 292.01 ms │ 296.42 ms │ no change │
│ QQuery 14 │ 169.32 ms │ 171.60 ms │ no change │
│ QQuery 15 │ 302.07 ms │ 299.63 ms │ no change │
│ QQuery 16 │ 63.24 ms │ 57.47 ms │ +1.10x faster │
│ QQuery 17 │ 627.64 ms │ 575.13 ms │ +1.09x faster │
│ QQuery 18 │ 692.31 ms │ 355.60 ms │ +1.95x faster │
│ QQuery 19 │ 243.69 ms │ 253.48 ms │ no change │
│ QQuery 20 │ 269.88 ms │ 269.85 ms │ no change │
│ QQuery 21 │ 656.79 ms │ 625.27 ms │ no change │
│ QQuery 22 │ 57.49 ms │ 61.62 ms │ 1.07x slower │
└───────────┴───────────┴─────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD) │ 6586.55ms │
│ Total Time (perf_join-order-enumeration) │ 5766.79ms │
│ Average Time (HEAD) │ 299.39ms │
│ Average Time (perf_join-order-enumeration) │ 262.13ms │
│ Queries Faster │ 10 │
│ Queries Slower │ 2 │
│ Queries with No Change │ 10 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴───────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf10.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 310.18 / 312.10 ±1.25 / 313.79 ms │ 309.61 / 310.89 ±0.85 / 311.88 ms │ no change │
│ QQuery 2 │ 103.09 / 105.47 ±2.30 / 108.45 ms │ 69.50 / 71.61 ±1.38 / 73.45 ms │ +1.47x faster │
│ QQuery 3 │ 234.57 / 238.14 ±3.08 / 242.33 ms │ 214.93 / 220.73 ±4.38 / 227.16 ms │ +1.08x faster │
│ QQuery 4 │ 115.29 / 116.15 ±0.78 / 117.52 ms │ 116.85 / 118.44 ±1.34 / 120.42 ms │ no change │
│ QQuery 5 │ 354.09 / 361.48 ±4.28 / 367.13 ms │ 277.52 / 281.96 ±4.00 / 287.71 ms │ +1.28x faster │
│ QQuery 6 │ 122.81 / 125.90 ±4.00 / 133.81 ms │ 122.78 / 124.02 ±0.72 / 124.99 ms │ no change │
│ QQuery 7 │ 479.19 / 484.90 ±5.58 / 492.45 ms │ 247.15 / 248.37 ±0.90 / 249.57 ms │ +1.95x faster │
│ QQuery 8 │ 376.93 / 384.71 ±5.11 / 390.61 ms │ 411.44 / 415.01 ±3.72 / 420.41 ms │ 1.08x slower │
│ QQuery 9 │ 555.30 / 571.22 ±10.10 / 583.92 ms │ 507.19 / 545.98 ±34.45 / 600.48 ms │ no change │
│ QQuery 10 │ 296.05 / 303.10 ±5.21 / 310.48 ms │ 302.19 / 307.82 ±5.15 / 317.36 ms │ no change │
│ QQuery 11 │ 85.83 / 91.29 ±8.00 / 106.79 ms │ 57.11 / 58.99 ±1.41 / 61.35 ms │ +1.55x faster │
│ QQuery 12 │ 178.78 / 180.92 ±1.72 / 183.61 ms │ 164.46 / 171.20 ±6.84 / 183.24 ms │ +1.06x faster │
│ QQuery 13 │ 292.01 / 304.83 ±13.50 / 330.71 ms │ 296.42 / 301.53 ±4.86 / 308.30 ms │ no change │
│ QQuery 14 │ 169.32 / 175.59 ±5.80 / 183.77 ms │ 171.60 / 176.12 ±4.68 / 184.22 ms │ no change │
│ QQuery 15 │ 302.07 / 305.29 ±2.96 / 309.76 ms │ 299.63 / 303.02 ±2.17 / 306.14 ms │ no change │
│ QQuery 16 │ 63.24 / 68.81 ±5.67 / 79.15 ms │ 57.47 / 58.70 ±0.81 / 59.84 ms │ +1.17x faster │
│ QQuery 17 │ 627.64 / 638.06 ±8.70 / 651.19 ms │ 575.13 / 587.23 ±9.23 / 603.00 ms │ +1.09x faster │
│ QQuery 18 │ 692.31 / 714.74 ±14.74 / 735.46 ms │ 355.60 / 367.18 ±7.24 / 374.75 ms │ +1.95x faster │
│ QQuery 19 │ 243.69 / 253.03 ±9.57 / 266.21 ms │ 253.48 / 263.31 ±8.68 / 278.29 ms │ no change │
│ QQuery 20 │ 269.88 / 288.21 ±10.31 / 300.13 ms │ 269.85 / 277.57 ±11.66 / 300.62 ms │ no change │
│ QQuery 21 │ 656.79 / 661.22 ±4.00 / 667.25 ms │ 625.27 / 638.31 ±9.57 / 652.91 ms │ no change │
│ QQuery 22 │ 57.49 / 61.51 ±3.01 / 65.75 ms │ 61.62 / 63.03 ±1.36 / 65.28 ms │ no change │
└───────────┴────────────────────────────────────┴────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD) │ 6746.67ms │
│ Total Time (perf_join-order-enumeration) │ 5911.01ms │
│ Average Time (HEAD) │ 306.67ms │
│ Average Time (perf_join-order-enumeration) │ 268.68ms │
│ Queries Faster │ 9 │
│ Queries Slower │ 1 │
│ Queries with No Change │ 12 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴───────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpch10 — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 35.0s |
| Peak memory | 5.0 GiB |
| Avg memory | 1.5 GiB |
| CPU user | 342.7s |
| CPU sys | 20.3s |
| Peak spill | 0 B |
**tpch10 — branch**
| Metric | Value |
|--------|-------|
| Wall time | 30.0s |
| Peak memory | 3.6 GiB |
| Avg memory | 1.5 GiB |
| CPU user | 281.5s |
| CPU sys | 17.0s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5339139056
Benchmark for [this request](https://github.com/apache/datafusion/pull/24456#issuecomment-5339123862) failed before finishing (Kubernetes reason: `BackoffLimitExceeded`).
Benchmarks requested: `clickbench_partitioned`
<details><summary>Kubernetes message</summary>
```
Job has reached the specified backoff limit
```
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5345335452
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5345293493)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c5345293493-1760-h8wtv 6.12.85+ #1 SMP Wed Jun 17 20:31:55 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (4c344867b2cf5edb1ec55ccf6fa138009a7609a7) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..4c344867b2cf5edb1ec55ccf6fa138009a7609a7)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5345324748
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5345293493)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c5345293493-1759-v4vfp 6.12.85+ #1 SMP Wed Jun 17 20:31:55 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (4c344867b2cf5edb1ec55ccf6fa138009a7609a7) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..4c344867b2cf5edb1ec55ccf6fa138009a7609a7)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpcds
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5345293493
run benchmarks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5345821086
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5345789291)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c5345789291-1767-lsm8c 6.12.85+ #1 SMP Wed Jun 17 20:31:55 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (4c344867b2cf5edb1ec55ccf6fa138009a7609a7) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..4c344867b2cf5edb1ec55ccf6fa138009a7609a7)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch
env:
PREFER_HASH_JOIN: "false"
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5381129576
run benchmark tpch tpcds tpch10
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5345295434
run benchmark tpch10
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5345819705
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5345790381)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c5345790381-1768-97t5g 6.12.85+ #1 SMP Wed Jun 17 20:31:55 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (4c344867b2cf5edb1ec55ccf6fa138009a7609a7) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..4c344867b2cf5edb1ec55ccf6fa138009a7609a7)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch10
env:
PREFER_HASH_JOIN: "false"
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5345790381
run benchmark tpch10
```
env:
PREFER_HASH_JOIN: false
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5338770244
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5338739851)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c5338739851-1725-m8klc 6.12.85+ #1 SMP Wed Jun 17 20:31:55 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (636b45559c959d6b90c854c52f176a50a7695a60) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..636b45559c959d6b90c854c52f176a50a7695a60)
<details><summary>Run configuration</summary>
```yaml
run benchmark clickbench_partitioned
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5330155626
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5330114082)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c5330114082-1652-thpnq 6.12.85+ #1 SMP Wed Jun 17 20:31:55 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (de80dd75426b4b7e87d2314fca8eacfafb06e785) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..de80dd75426b4b7e87d2314fca8eacfafb06e785)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpcds
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5330401127
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5330114082)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (de80dd75426b4b7e87d2314fca8eacfafb06e785) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..de80dd75426b4b7e87d2314fca8eacfafb06e785)
<details><summary>Run configuration</summary>
```yaml
run benchmark clickbench_partitioned
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0 │ 1.24 ms │ 1.24 ms │ no change │
│ QQuery 1 │ 11.72 ms │ 12.11 ms │ no change │
│ QQuery 2 │ 36.29 ms │ 36.91 ms │ no change │
│ QQuery 3 │ 31.09 ms │ 31.38 ms │ no change │
│ QQuery 4 │ 225.70 ms │ 226.63 ms │ no change │
│ QQuery 5 │ 272.53 ms │ 272.10 ms │ no change │
│ QQuery 6 │ 1.27 ms │ 1.27 ms │ no change │
│ QQuery 7 │ 13.13 ms │ 13.62 ms │ no change │
│ QQuery 8 │ 330.82 ms │ 328.04 ms │ no change │
│ QQuery 9 │ 457.91 ms │ 442.77 ms │ no change │
│ QQuery 10 │ 70.08 ms │ 68.68 ms │ no change │
│ QQuery 11 │ 80.71 ms │ 81.34 ms │ no change │
│ QQuery 12 │ 268.95 ms │ 271.10 ms │ no change │
│ QQuery 13 │ 363.57 ms │ 364.64 ms │ no change │
│ QQuery 14 │ 283.71 ms │ 284.19 ms │ no change │
│ QQuery 15 │ 266.43 ms │ 274.67 ms │ no change │
│ QQuery 16 │ 607.26 ms │ 615.60 ms │ no change │
│ QQuery 17 │ 623.73 ms │ 619.71 ms │ no change │
│ QQuery 18 │ 1268.66 ms │ 1257.92 ms │ no change │
│ QQuery 19 │ 27.17 ms │ 27.59 ms │ no change │
│ QQuery 20 │ 509.17 ms │ 515.32 ms │ no change │
│ QQuery 21 │ 509.32 ms │ 513.09 ms │ no change │
│ QQuery 22 │ 980.78 ms │ 981.70 ms │ no change │
│ QQuery 23 │ 3020.82 ms │ 3068.80 ms │ no change │
│ QQuery 24 │ 41.68 ms │ 42.42 ms │ no change │
│ QQuery 25 │ 109.94 ms │ 109.49 ms │ no change │
│ QQuery 26 │ 41.17 ms │ 41.12 ms │ no change │
│ QQuery 27 │ 517.93 ms │ 515.49 ms │ no change │
│ QQuery 28 │ 2899.54 ms │ 2893.11 ms │ no change │
│ QQuery 29 │ 41.26 ms │ 41.19 ms │ no change │
│ QQuery 30 │ 298.96 ms │ 298.72 ms │ no change │
│ QQuery 31 │ 278.44 ms │ 282.48 ms │ no change │
│ QQuery 32 │ 943.44 ms │ 917.20 ms │ no change │
│ QQuery 33 │ 1438.17 ms │ 1453.52 ms │ no change │
│ QQuery 34 │ 1440.23 ms │ 1505.69 ms │ no change │
│ QQuery 35 │ 279.61 ms │ 277.21 ms │ no change │
│ QQuery 36 │ 66.85 ms │ 68.55 ms │ no change │
│ QQuery 37 │ 35.51 ms │ 36.56 ms │ no change │
│ QQuery 38 │ 41.46 ms │ 41.16 ms │ no change │
│ QQuery 39 │ 146.94 ms │ 135.13 ms │ +1.09x faster │
│ QQuery 40 │ 14.31 ms │ 14.42 ms │ no change │
│ QQuery 41 │ 13.96 ms │ 13.89 ms │ no change │
│ QQuery 42 │ 13.32 ms │ 13.23 ms │ no change │
└───────────┴────────────┴─────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD) │ 18924.80ms │
│ Total Time (perf_join-order-enumeration) │ 19010.99ms │
│ Average Time (HEAD) │ 440.11ms │
│ Average Time (perf_join-order-enumeration) │ 442.12ms │
│ Queries Faster │ 1 │
│ Queries Slower │ 0 │
│ Queries with No Change │ 42 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴────────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0 │ 1.24 / 3.95 ±5.33 / 14.62 ms │ 1.24 / 4.06 ±5.53 / 15.11 ms │ no change │
│ QQuery 1 │ 11.72 / 12.29 ±0.31 / 12.57 ms │ 12.11 / 12.26 ±0.13 / 12.44 ms │ no change │
│ QQuery 2 │ 36.29 / 36.58 ±0.26 / 37.06 ms │ 36.91 / 37.17 ±0.14 / 37.32 ms │ no change │
│ QQuery 3 │ 31.09 / 31.53 ±0.72 / 32.97 ms │ 31.38 / 31.65 ±0.16 / 31.88 ms │ no change │
│ QQuery 4 │ 225.70 / 228.07 ±1.40 / 229.56 ms │ 226.63 / 228.83 ±1.32 / 230.75 ms │ no change │
│ QQuery 5 │ 272.53 / 276.31 ±3.41 / 282.50 ms │ 272.10 / 274.82 ±2.09 / 278.46 ms │ no change │
│ QQuery 6 │ 1.27 / 1.41 ±0.22 / 1.83 ms │ 1.27 / 1.40 ±0.21 / 1.80 ms │ no change │
│ QQuery 7 │ 13.13 / 13.40 ±0.17 / 13.62 ms │ 13.62 / 13.77 ±0.18 / 14.12 ms │ no change │
│ QQuery 8 │ 330.82 / 333.62 ±2.28 / 337.41 ms │ 328.04 / 330.83 ±2.07 / 333.91 ms │ no change │
│ QQuery 9 │ 457.91 / 471.79 ±12.84 / 496.09 ms │ 442.77 / 469.39 ±15.41 / 490.32 ms │ no change │
│ QQuery 10 │ 70.08 / 70.62 ±0.40 / 71.23 ms │ 68.68 / 71.67 ±3.18 / 77.79 ms │ no change │
│ QQuery 11 │ 80.71 / 85.05 ±5.54 / 95.86 ms │ 81.34 / 83.41 ±3.49 / 90.36 ms │ no change │
│ QQuery 12 │ 268.95 / 274.42 ±4.28 / 280.42 ms │ 271.10 / 277.29 ±4.90 / 285.51 ms │ no change │
│ QQuery 13 │ 363.57 / 372.83 ±8.20 / 383.40 ms │ 364.64 / 377.50 ±7.89 / 386.85 ms │ no change │
│ QQuery 14 │ 283.71 / 286.61 ±3.54 / 293.28 ms │ 284.19 / 288.80 ±5.13 / 297.21 ms │ no change │
│ QQuery 15 │ 266.43 / 275.37 ±5.85 / 282.09 ms │ 274.67 / 283.83 ±7.41 / 295.08 ms │ no change │
│ QQuery 16 │ 607.26 / 623.81 ±13.07 / 646.37 ms │ 615.60 / 622.12 ±5.45 / 632.09 ms │ no change │
│ QQuery 17 │ 623.73 / 629.73 ±4.02 / 636.41 ms │ 619.71 / 630.71 ±9.62 / 645.75 ms │ no change │
│ QQuery 18 │ 1268.66 / 1299.60 ±24.95 / 1340.26 ms │ 1257.92 / 1286.00 ±30.14 / 1338.02 ms │ no change │
│ QQuery 19 │ 27.17 / 36.05 ±16.70 / 69.45 ms │ 27.59 / 35.86 ±16.15 / 68.16 ms │ no change │
│ QQuery 20 │ 509.17 / 521.18 ±10.89 / 541.62 ms │ 515.32 / 527.42 ±13.34 / 552.81 ms │ no change │
│ QQuery 21 │ 509.32 / 514.28 ±3.10 / 517.18 ms │ 513.09 / 518.64 ±4.80 / 526.47 ms │ no change │
│ QQuery 22 │ 980.78 / 992.43 ±9.25 / 1002.03 ms │ 981.70 / 984.17 ±1.84 / 986.11 ms │ no change │
│ QQuery 23 │ 3020.82 / 3068.05 ±39.92 / 3126.76 ms │ 3068.80 / 3120.05 ±49.36 / 3203.16 ms │ no change │
│ QQuery 24 │ 41.68 / 42.70 ±1.12 / 44.54 ms │ 42.42 / 47.01 ±5.04 / 53.67 ms │ 1.10x slower │
│ QQuery 25 │ 109.94 / 111.57 ±1.53 / 114.19 ms │ 109.49 / 110.09 ±0.38 / 110.42 ms │ no change │
│ QQuery 26 │ 41.17 / 41.82 ±0.59 / 42.77 ms │ 41.12 / 41.59 ±0.57 / 42.57 ms │ no change │
│ QQuery 27 │ 517.93 / 522.84 ±4.74 / 531.36 ms │ 515.49 / 523.20 ±6.49 / 532.62 ms │ no change │
│ QQuery 28 │ 2899.54 / 2919.73 ±17.96 / 2948.32 ms │ 2893.11 / 2926.19 ±26.92 / 2967.90 ms │ no change │
│ QQuery 29 │ 41.26 / 52.43 ±9.42 / 63.06 ms │ 41.19 / 41.62 ±0.50 / 42.46 ms │ +1.26x faster │
│ QQuery 30 │ 298.96 / 309.52 ±6.23 / 317.31 ms │ 298.72 / 310.08 ±10.75 / 329.38 ms │ no change │
│ QQuery 31 │ 278.44 / 292.90 ±13.30 / 316.05 ms │ 282.48 / 302.05 ±12.18 / 320.81 ms │ no change │
│ QQuery 32 │ 943.44 / 967.21 ±19.23 / 990.08 ms │ 917.20 / 952.54 ±28.91 / 1000.33 ms │ no change │
│ QQuery 33 │ 1438.17 / 1464.75 ±16.98 / 1487.26 ms │ 1453.52 / 1500.79 ±30.91 / 1536.53 ms │ no change │
│ QQuery 34 │ 1440.23 / 1492.51 ±44.63 / 1572.01 ms │ 1505.69 / 1544.74 ±23.40 / 1572.77 ms │ no change │
│ QQuery 35 │ 279.61 / 320.38 ±64.38 / 448.80 ms │ 277.21 / 309.01 ±39.40 / 384.73 ms │ no change │
│ QQuery 36 │ 66.85 / 72.38 ±6.67 / 85.42 ms │ 68.55 / 70.49 ±1.54 / 73.10 ms │ no change │
│ QQuery 37 │ 35.51 / 38.61 ±3.80 / 44.70 ms │ 36.56 / 43.21 ±5.86 / 52.45 ms │ 1.12x slower │
│ QQuery 38 │ 41.46 / 47.00 ±4.32 / 52.27 ms │ 41.16 / 43.52 ±1.45 / 44.85 ms │ +1.08x faster │
│ QQuery 39 │ 146.94 / 152.59 ±4.86 / 160.81 ms │ 135.13 / 158.26 ±15.01 / 173.14 ms │ no change │
│ QQuery 40 │ 14.31 / 15.01 ±1.22 / 17.45 ms │ 14.42 / 14.89 ±0.37 / 15.25 ms │ no change │
│ QQuery 41 │ 13.96 / 17.11 ±5.37 / 27.82 ms │ 13.89 / 14.20 ±0.34 / 14.74 ms │ +1.20x faster │
│ QQuery 42 │ 13.32 / 13.43 ±0.10 / 13.54 ms │ 13.23 / 13.44 ±0.16 / 13.62 ms │ no change │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD) │ 19353.48ms │
│ Total Time (perf_join-order-enumeration) │ 19478.56ms │
│ Average Time (HEAD) │ 450.08ms │
│ Average Time (perf_join-order-enumeration) │ 452.99ms │
│ Queries Faster │ 3 │
│ Queries Slower │ 2 │
│ Queries with No Change │ 38 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴────────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**clickbench_partitioned — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 100.0s |
| Peak memory | 10.6 GiB |
| Avg memory | 4.1 GiB |
| CPU user | 995.3s |
| CPU sys | 68.2s |
| Peak spill | 0 B |
**clickbench_partitioned — branch**
| Metric | Value |
|--------|-------|
| Wall time | 100.0s |
| Peak memory | 12.0 GiB |
| Avg memory | 4.3 GiB |
| CPU user | 992.9s |
| CPU sys | 71.2s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5339274634
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5339123862)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (636b45559c959d6b90c854c52f176a50a7695a60) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..636b45559c959d6b90c854c52f176a50a7695a60)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpcds
env:
PREFER_HASH_JOIN: "false"
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 24.12 ms │ 24.35 ms │ no change │
│ QQuery 2 │ 80.57 ms │ 79.96 ms │ no change │
│ QQuery 3 │ 51.27 ms │ 44.64 ms │ +1.15x faster │
│ QQuery 4 │ 811.09 ms │ 595.43 ms │ +1.36x faster │
│ QQuery 5 │ 104.83 ms │ 101.94 ms │ no change │
│ QQuery 6 │ 70.35 ms │ 69.68 ms │ no change │
│ QQuery 7 │ 121.86 ms │ 127.19 ms │ no change │
│ QQuery 8 │ 67.17 ms │ 66.15 ms │ no change │
│ QQuery 9 │ 53.06 ms │ 52.11 ms │ no change │
│ QQuery 10 │ 136.31 ms │ 135.02 ms │ no change │
│ QQuery 11 │ 421.23 ms │ 293.74 ms │ +1.43x faster │
│ QQuery 12 │ 33.54 ms │ 32.48 ms │ no change │
│ QQuery 13 │ 125.60 ms │ 121.89 ms │ no change │
│ QQuery 14 │ 833.57 ms │ 667.13 ms │ +1.25x faster │
│ QQuery 15 │ 55.49 ms │ 40.87 ms │ +1.36x faster │
│ QQuery 16 │ 79.25 ms │ 77.83 ms │ no change │
│ QQuery 17 │ 169.19 ms │ 158.77 ms │ +1.07x faster │
│ QQuery 18 │ 153.06 ms │ 173.13 ms │ 1.13x slower │
│ QQuery 19 │ 76.99 ms │ 72.30 ms │ +1.06x faster │
│ QQuery 20 │ 45.53 ms │ 45.19 ms │ no change │
│ QQuery 21 │ 398.91 ms │ 81.99 ms │ +4.87x faster │
│ QQuery 22 │ 99.82 ms │ 99.39 ms │ no change │
│ QQuery 23 │ 557.34 ms │ 477.73 ms │ +1.17x faster │
│ QQuery 24 │ 350.81 ms │ 398.06 ms │ 1.13x slower │
│ QQuery 25 │ 188.48 ms │ 158.24 ms │ +1.19x faster │
│ QQuery 26 │ 103.01 ms │ 100.43 ms │ no change │
│ QQuery 27 │ 123.46 ms │ 121.31 ms │ no change │
│ QQuery 28 │ 58.23 ms │ 57.96 ms │ no change │
│ QQuery 29 │ 166.69 ms │ 136.83 ms │ +1.22x faster │
│ QQuery 30 │ 47.78 ms │ 47.17 ms │ no change │
│ QQuery 31 │ 240.04 ms │ 237.04 ms │ no change │
│ QQuery 32 │ 68.51 ms │ 67.74 ms │ no change │
│ QQuery 33 │ 69.85 ms │ 71.39 ms │ no change │
│ QQuery 34 │ 69.63 ms │ 69.47 ms │ no change │
│ QQuery 35 │ 124.35 ms │ 124.00 ms │ no change │
│ QQuery 36 │ 87.18 ms │ 86.36 ms │ no change │
│ QQuery 37 │ 32.86 ms │ 32.71 ms │ no change │
│ QQuery 38 │ 98.02 ms │ 97.64 ms │ no change │
│ QQuery 39 │ 1638.11 ms │ 340.37 ms │ +4.81x faster │
│ QQuery 40 │ 106.63 ms │ 68.03 ms │ +1.57x faster │
│ QQuery 41 │ 11.47 ms │ 11.54 ms │ no change │
│ QQuery 42 │ 50.62 ms │ 45.57 ms │ +1.11x faster │
│ QQuery 43 │ 56.52 ms │ 56.39 ms │ no change │
│ QQuery 44 │ 12.96 ms │ 12.75 ms │ no change │
│ QQuery 45 │ 48.38 ms │ 37.45 ms │ +1.29x faster │
│ QQuery 46 │ 119.82 ms │ 118.70 ms │ no change │
│ QQuery 47 │ 363.73 ms │ 361.63 ms │ no change │
│ QQuery 48 │ 123.84 ms │ 121.63 ms │ no change │
│ QQuery 49 │ 80.53 ms │ 81.31 ms │ no change │
│ QQuery 50 │ 87.63 ms │ 91.91 ms │ no change │
│ QQuery 51 │ 122.15 ms │ 122.10 ms │ no change │
│ QQuery 52 │ 50.12 ms │ 45.66 ms │ +1.10x faster │
│ QQuery 53 │ 54.66 ms │ 54.12 ms │ no change │
│ QQuery 54 │ 97.81 ms │ 98.77 ms │ no change │
│ QQuery 55 │ 47.31 ms │ 45.29 ms │ no change │
│ QQuery 56 │ 73.77 ms │ 77.46 ms │ 1.05x slower │
│ QQuery 57 │ 223.80 ms │ 222.17 ms │ no change │
│ QQuery 58 │ 190.90 ms │ 120.14 ms │ +1.59x faster │
│ QQuery 59 │ 121.61 ms │ 120.54 ms │ no change │
│ QQuery 60 │ 72.68 ms │ 71.68 ms │ no change │
│ QQuery 61 │ 102.49 ms │ 92.85 ms │ +1.10x faster │
│ QQuery 62 │ 66.75 ms │ 39.15 ms │ +1.71x faster │
│ QQuery 63 │ 54.60 ms │ 54.10 ms │ no change │
│ QQuery 64 │ 658.62 ms │ 718.22 ms │ 1.09x slower │
│ QQuery 65 │ 112.66 ms │ 111.68 ms │ no change │
│ QQuery 66 │ 172.17 ms │ 111.03 ms │ +1.55x faster │
│ QQuery 67 │ 136.91 ms │ 135.95 ms │ no change │
│ QQuery 68 │ 127.15 ms │ 127.30 ms │ no change │
│ QQuery 69 │ 128.74 ms │ 127.63 ms │ no change │
│ QQuery 70 │ 204.33 ms │ 177.74 ms │ +1.15x faster │
│ QQuery 71 │ 67.04 ms │ 65.94 ms │ no change │
│ QQuery 72 │ 6623.82 ms │ 188.46 ms │ +35.15x faster │
│ QQuery 73 │ 68.68 ms │ 69.30 ms │ no change │
│ QQuery 74 │ 280.70 ms │ 206.41 ms │ +1.36x faster │
│ QQuery 75 │ 212.94 ms │ 207.52 ms │ no change │
│ QQuery 76 │ 39.38 ms │ 38.24 ms │ no change │
│ QQuery 77 │ 107.64 ms │ 101.67 ms │ +1.06x faster │
│ QQuery 78 │ 289.21 ms │ 268.81 ms │ +1.08x faster │
│ QQuery 79 │ 121.42 ms │ 114.97 ms │ +1.06x faster │
│ QQuery 80 │ 236.91 ms │ 232.68 ms │ no change │
│ QQuery 81 │ 45.36 ms │ 45.37 ms │ no change │
│ QQuery 82 │ 46.03 ms │ 45.07 ms │ no change │
│ QQuery 83 │ 54.63 ms │ 48.01 ms │ +1.14x faster │
│ QQuery 84 │ 45.46 ms │ 44.10 ms │ no change │
│ QQuery 85 │ 129.41 ms │ 128.85 ms │ no change │
│ QQuery 86 │ 27.57 ms │ 26.84 ms │ no change │
│ QQuery 87 │ 99.01 ms │ 97.43 ms │ no change │
│ QQuery 88 │ 166.20 ms │ 158.14 ms │ no change │
│ QQuery 89 │ 60.55 ms │ 59.65 ms │ no change │
│ QQuery 90 │ 26.70 ms │ 25.34 ms │ +1.05x faster │
│ QQuery 91 │ 53.33 ms │ 49.21 ms │ +1.08x faster │
│ QQuery 92 │ 50.21 ms │ 46.95 ms │ +1.07x faster │
│ QQuery 93 │ 220.83 ms │ 204.59 ms │ +1.08x faster │
│ QQuery 94 │ 60.38 ms │ 59.37 ms │ no change │
│ QQuery 95 │ 167.36 ms │ 150.65 ms │ +1.11x faster │
│ QQuery 96 │ 46.09 ms │ 45.25 ms │ no change │
│ QQuery 97 │ 80.53 ms │ 78.86 ms │ no change │
│ QQuery 98 │ 66.82 ms │ 64.44 ms │ no change │
│ QQuery 99 │ 141.44 ms │ 66.88 ms │ +2.11x faster │
└───────────┴────────────┴─────────────────────────────┴────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD) │ 21554.20ms │
│ Total Time (perf_join-order-enumeration) │ 12405.07ms │
│ Average Time (HEAD) │ 217.72ms │
│ Average Time (perf_join-order-enumeration) │ 125.30ms │
│ Queries Faster │ 33 │
│ Queries Slower │ 4 │
│ Queries with No Change │ 62 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴────────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 24.12 / 24.81 ±1.07 / 26.92 ms │ 24.35 / 25.12 ±0.97 / 27.00 ms │ no change │
│ QQuery 2 │ 80.57 / 81.34 ±1.05 / 83.37 ms │ 79.96 / 80.51 ±0.49 / 81.42 ms │ no change │
│ QQuery 3 │ 51.27 / 51.65 ±0.32 / 52.14 ms │ 44.64 / 44.85 ±0.19 / 45.13 ms │ +1.15x faster │
│ QQuery 4 │ 811.09 / 821.67 ±11.17 / 842.48 ms │ 595.43 / 601.31 ±5.03 / 608.84 ms │ +1.37x faster │
│ QQuery 5 │ 104.83 / 108.48 ±2.53 / 112.30 ms │ 101.94 / 105.28 ±3.43 / 111.73 ms │ no change │
│ QQuery 6 │ 70.35 / 70.84 ±0.36 / 71.41 ms │ 69.68 / 70.20 ±0.31 / 70.60 ms │ no change │
│ QQuery 7 │ 121.86 / 130.11 ±9.36 / 148.13 ms │ 127.19 / 131.12 ±3.99 / 135.99 ms │ no change │
│ QQuery 8 │ 67.17 / 67.52 ±0.21 / 67.76 ms │ 66.15 / 66.66 ±0.40 / 67.30 ms │ no change │
│ QQuery 9 │ 53.06 / 54.17 ±0.85 / 55.31 ms │ 52.11 / 53.27 ±1.69 / 56.59 ms │ no change │
│ QQuery 10 │ 136.31 / 143.01 ±11.00 / 164.93 ms │ 135.02 / 139.80 ±3.93 / 145.03 ms │ no change │
│ QQuery 11 │ 421.23 / 436.80 ±11.70 / 453.39 ms │ 293.74 / 296.98 ±2.80 / 301.41 ms │ +1.47x faster │
│ QQuery 12 │ 33.54 / 38.67 ±5.32 / 46.24 ms │ 32.48 / 32.64 ±0.13 / 32.87 ms │ +1.18x faster │
│ QQuery 13 │ 125.60 / 126.39 ±0.77 / 127.70 ms │ 121.89 / 123.33 ±0.90 / 124.68 ms │ no change │
│ QQuery 14 │ 833.57 / 839.34 ±5.10 / 847.42 ms │ 667.13 / 670.13 ±1.76 / 671.89 ms │ +1.25x faster │
│ QQuery 15 │ 55.49 / 61.25 ±5.99 / 70.02 ms │ 40.87 / 41.06 ±0.18 / 41.37 ms │ +1.49x faster │
│ QQuery 16 │ 79.25 / 81.45 ±1.74 / 84.59 ms │ 77.83 / 80.34 ±4.48 / 89.28 ms │ no change │
│ QQuery 17 │ 169.19 / 173.07 ±2.59 / 176.95 ms │ 158.77 / 161.73 ±2.23 / 164.95 ms │ +1.07x faster │
│ QQuery 18 │ 153.06 / 156.39 ±2.67 / 159.90 ms │ 173.13 / 176.85 ±3.39 / 180.97 ms │ 1.13x slower │
│ QQuery 19 │ 76.99 / 77.57 ±0.52 / 78.35 ms │ 72.30 / 73.12 ±0.76 / 74.18 ms │ +1.06x faster │
│ QQuery 20 │ 45.53 / 45.91 ±0.30 / 46.28 ms │ 45.19 / 45.66 ±0.28 / 45.99 ms │ no change │
│ QQuery 21 │ 398.91 / 409.08 ±6.51 / 419.42 ms │ 81.99 / 82.80 ±0.60 / 83.78 ms │ +4.94x faster │
│ QQuery 22 │ 99.82 / 104.46 ±5.18 / 113.29 ms │ 99.39 / 103.69 ±4.73 / 111.78 ms │ no change │
│ QQuery 23 │ 557.34 / 577.09 ±12.06 / 589.98 ms │ 477.73 / 487.00 ±9.41 / 503.78 ms │ +1.18x faster │
│ QQuery 24 │ 350.81 / 358.40 ±6.10 / 366.47 ms │ 398.06 / 403.50 ±3.90 / 410.25 ms │ 1.13x slower │
│ QQuery 25 │ 188.48 / 191.60 ±2.17 / 195.18 ms │ 158.24 / 161.58 ±5.64 / 172.84 ms │ +1.19x faster │
│ QQuery 26 │ 103.01 / 106.57 ±3.48 / 112.55 ms │ 100.43 / 101.51 ±0.79 / 102.77 ms │ no change │
│ QQuery 27 │ 123.46 / 127.75 ±4.18 / 133.91 ms │ 121.31 / 123.53 ±2.99 / 129.33 ms │ no change │
│ QQuery 28 │ 58.23 / 61.56 ±1.68 / 62.70 ms │ 57.96 / 61.26 ±1.73 / 63.08 ms │ no change │
│ QQuery 29 │ 166.69 / 172.74 ±4.86 / 179.22 ms │ 136.83 / 140.95 ±4.83 / 149.95 ms │ +1.23x faster │
│ QQuery 30 │ 47.78 / 48.33 ±0.59 / 49.41 ms │ 47.17 / 48.50 ±1.51 / 51.40 ms │ no change │
│ QQuery 31 │ 240.04 / 243.94 ±6.44 / 256.78 ms │ 237.04 / 241.37 ±3.22 / 246.18 ms │ no change │
│ QQuery 32 │ 68.51 / 71.39 ±2.23 / 74.13 ms │ 67.74 / 68.36 ±0.43 / 68.97 ms │ no change │
│ QQuery 33 │ 69.85 / 72.79 ±1.75 / 75.28 ms │ 71.39 / 73.05 ±1.10 / 74.42 ms │ no change │
│ QQuery 34 │ 69.63 / 70.92 ±1.13 / 72.98 ms │ 69.47 / 71.88 ±3.48 / 78.80 ms │ no change │
│ QQuery 35 │ 124.35 / 128.42 ±4.40 / 136.93 ms │ 124.00 / 124.97 ±1.12 / 127.06 ms │ no change │
│ QQuery 36 │ 87.18 / 89.27 ±3.14 / 95.42 ms │ 86.36 / 89.68 ±3.39 / 94.51 ms │ no change │
│ QQuery 37 │ 32.86 / 34.90 ±2.52 / 39.83 ms │ 32.71 / 33.09 ±0.63 / 34.33 ms │ +1.05x faster │
│ QQuery 38 │ 98.02 / 98.52 ±0.36 / 99.06 ms │ 97.64 / 97.93 ±0.17 / 98.12 ms │ no change │
│ QQuery 39 │ 1638.11 / 1642.94 ±5.61 / 1653.67 ms │ 340.37 / 346.63 ±7.58 / 361.50 ms │ +4.74x faster │
│ QQuery 40 │ 106.63 / 112.18 ±5.31 / 121.77 ms │ 68.03 / 69.20 ±0.73 / 70.35 ms │ +1.62x faster │
│ QQuery 41 │ 11.47 / 11.67 ±0.20 / 12.01 ms │ 11.54 / 11.72 ±0.24 / 12.17 ms │ no change │
│ QQuery 42 │ 50.62 / 51.25 ±0.54 / 52.24 ms │ 45.57 / 49.36 ±4.74 / 58.63 ms │ no change │
│ QQuery 43 │ 56.52 / 56.85 ±0.25 / 57.26 ms │ 56.39 / 56.96 ±0.41 / 57.49 ms │ no change │
│ QQuery 44 │ 12.96 / 16.28 ±4.40 / 24.42 ms │ 12.75 / 13.06 ±0.37 / 13.80 ms │ +1.25x faster │
│ QQuery 45 │ 48.38 / 49.39 ±0.91 / 50.95 ms │ 37.45 / 38.08 ±0.34 / 38.40 ms │ +1.30x faster │
│ QQuery 46 │ 119.82 / 123.73 ±4.50 / 132.00 ms │ 118.70 / 121.24 ±2.86 / 126.72 ms │ no change │
│ QQuery 47 │ 363.73 / 376.31 ±10.07 / 394.55 ms │ 361.63 / 363.22 ±1.71 / 365.93 ms │ no change │
│ QQuery 48 │ 123.84 / 130.40 ±7.52 / 144.32 ms │ 121.63 / 131.63 ±5.44 / 138.04 ms │ no change │
│ QQuery 49 │ 80.53 / 82.25 ±1.51 / 84.10 ms │ 81.31 / 85.31 ±7.35 / 99.98 ms │ no change │
│ QQuery 50 │ 87.63 / 91.33 ±5.93 / 103.13 ms │ 91.91 / 93.22 ±1.25 / 95.61 ms │ no change │
│ QQuery 51 │ 122.15 / 122.98 ±0.49 / 123.59 ms │ 122.10 / 124.38 ±1.64 / 127.20 ms │ no change │
│ QQuery 52 │ 50.12 / 53.77 ±5.55 / 64.77 ms │ 45.66 / 46.05 ±0.30 / 46.57 ms │ +1.17x faster │
│ QQuery 53 │ 54.66 / 55.42 ±0.57 / 55.93 ms │ 54.12 / 54.63 ±0.52 / 55.45 ms │ no change │
│ QQuery 54 │ 97.81 / 97.96 ±0.09 / 98.06 ms │ 98.77 / 101.94 ±4.51 / 110.86 ms │ no change │
│ QQuery 55 │ 47.31 / 50.16 ±3.36 / 56.72 ms │ 45.29 / 45.72 ±0.42 / 46.48 ms │ +1.10x faster │
│ QQuery 56 │ 73.77 / 75.35 ±1.66 / 77.91 ms │ 77.46 / 81.15 ±2.63 / 84.29 ms │ 1.08x slower │
│ QQuery 57 │ 223.80 / 229.95 ±8.75 / 247.27 ms │ 222.17 / 225.51 ±2.83 / 230.07 ms │ no change │
│ QQuery 58 │ 190.90 / 193.68 ±2.43 / 196.76 ms │ 120.14 / 122.05 ±2.45 / 126.84 ms │ +1.59x faster │
│ QQuery 59 │ 121.61 / 126.31 ±6.60 / 139.31 ms │ 120.54 / 123.26 ±4.05 / 131.29 ms │ no change │
│ QQuery 60 │ 72.68 / 73.71 ±1.17 / 76.01 ms │ 71.68 / 74.18 ±2.11 / 77.53 ms │ no change │
│ QQuery 61 │ 102.49 / 109.50 ±9.16 / 127.52 ms │ 92.85 / 95.70 ±3.29 / 100.52 ms │ +1.14x faster │
│ QQuery 62 │ 66.75 / 67.80 ±1.06 / 69.76 ms │ 39.15 / 39.80 ±0.64 / 40.86 ms │ +1.70x faster │
│ QQuery 63 │ 54.60 / 54.88 ±0.24 / 55.27 ms │ 54.10 / 54.29 ±0.17 / 54.58 ms │ no change │
│ QQuery 64 │ 658.62 / 683.51 ±16.86 / 706.49 ms │ 718.22 / 731.37 ±11.70 / 752.72 ms │ 1.07x slower │
│ QQuery 65 │ 112.66 / 113.87 ±0.95 / 115.48 ms │ 111.68 / 112.09 ±0.32 / 112.61 ms │ no change │
│ QQuery 66 │ 172.17 / 175.20 ±2.83 / 179.79 ms │ 111.03 / 115.39 ±6.22 / 127.54 ms │ +1.52x faster │
│ QQuery 67 │ 136.91 / 141.68 ±6.64 / 154.69 ms │ 135.95 / 139.77 ±5.30 / 150.08 ms │ no change │
│ QQuery 68 │ 127.15 / 129.99 ±2.77 / 135.24 ms │ 127.30 / 130.36 ±4.07 / 138.25 ms │ no change │
│ QQuery 69 │ 128.74 / 134.43 ±7.97 / 149.52 ms │ 127.63 / 131.13 ±3.26 / 135.88 ms │ no change │
│ QQuery 70 │ 204.33 / 212.20 ±8.00 / 226.25 ms │ 177.74 / 182.28 ±4.67 / 191.17 ms │ +1.16x faster │
│ QQuery 71 │ 67.04 / 70.55 ±3.10 / 74.64 ms │ 65.94 / 67.82 ±1.51 / 70.53 ms │ no change │
│ QQuery 72 │ 6623.82 / 6828.56 ±179.34 / 7088.12 ms │ 188.46 / 190.17 ±1.02 / 191.48 ms │ +35.91x faster │
│ QQuery 73 │ 68.68 / 150.62 ±114.26 / 369.95 ms │ 69.30 / 70.34 ±1.41 / 73.05 ms │ +2.14x faster │
│ QQuery 74 │ 280.70 / 341.71 ±96.13 / 531.30 ms │ 206.41 / 214.53 ±10.54 / 234.92 ms │ +1.59x faster │
│ QQuery 75 │ 212.94 / 224.92 ±10.61 / 240.25 ms │ 207.52 / 211.75 ±3.83 / 218.57 ms │ +1.06x faster │
│ QQuery 76 │ 39.38 / 39.82 ±0.46 / 40.41 ms │ 38.24 / 38.48 ±0.19 / 38.79 ms │ no change │
│ QQuery 77 │ 107.64 / 112.08 ±4.50 / 120.67 ms │ 101.67 / 104.52 ±2.19 / 108.34 ms │ +1.07x faster │
│ QQuery 78 │ 289.21 / 301.52 ±9.25 / 313.30 ms │ 268.81 / 278.20 ±10.54 / 296.87 ms │ +1.08x faster │
│ QQuery 79 │ 121.42 / 124.80 ±2.27 / 127.08 ms │ 114.97 / 116.17 ±1.80 / 119.72 ms │ +1.07x faster │
│ QQuery 80 │ 236.91 / 246.68 ±9.36 / 262.23 ms │ 232.68 / 238.47 ±5.18 / 245.28 ms │ no change │
│ QQuery 81 │ 45.36 / 47.12 ±1.98 / 50.98 ms │ 45.37 / 52.29 ±8.34 / 66.11 ms │ 1.11x slower │
│ QQuery 82 │ 46.03 / 49.23 ±4.41 / 57.97 ms │ 45.07 / 45.91 ±1.14 / 48.15 ms │ +1.07x faster │
│ QQuery 83 │ 54.63 / 57.01 ±3.77 / 64.50 ms │ 48.01 / 48.51 ±0.40 / 49.03 ms │ +1.18x faster │
│ QQuery 84 │ 45.46 / 50.07 ±6.37 / 62.55 ms │ 44.10 / 44.51 ±0.23 / 44.71 ms │ +1.13x faster │
│ QQuery 85 │ 129.41 / 137.02 ±5.01 / 143.02 ms │ 128.85 / 134.99 ±6.94 / 148.42 ms │ no change │
│ QQuery 86 │ 27.57 / 28.10 ±0.45 / 28.89 ms │ 26.84 / 27.59 ±0.51 / 28.26 ms │ no change │
│ QQuery 87 │ 99.01 / 104.43 ±5.90 / 115.85 ms │ 97.43 / 102.59 ±4.27 / 108.83 ms │ no change │
│ QQuery 88 │ 166.20 / 170.26 ±3.59 / 176.42 ms │ 158.14 / 160.34 ±2.30 / 164.68 ms │ +1.06x faster │
│ QQuery 89 │ 60.55 / 63.74 ±2.75 / 67.44 ms │ 59.65 / 64.43 ±5.30 / 71.58 ms │ no change │
│ QQuery 90 │ 26.70 / 28.25 ±2.55 / 33.35 ms │ 25.34 / 25.61 ±0.27 / 26.13 ms │ +1.10x faster │
│ QQuery 91 │ 53.33 / 54.08 ±0.77 / 55.51 ms │ 49.21 / 49.62 ±0.27 / 49.91 ms │ +1.09x faster │
│ QQuery 92 │ 50.21 / 59.46 ±13.82 / 86.98 ms │ 46.95 / 47.26 ±0.29 / 47.69 ms │ +1.26x faster │
│ QQuery 93 │ 220.83 / 233.38 ±8.82 / 246.74 ms │ 204.59 / 209.77 ±6.35 / 221.89 ms │ +1.11x faster │
│ QQuery 94 │ 60.38 / 63.62 ±3.13 / 69.36 ms │ 59.37 / 65.50 ±5.69 / 75.07 ms │ no change │
│ QQuery 95 │ 167.36 / 174.46 ±5.97 / 181.12 ms │ 150.65 / 161.22 ±5.94 / 167.15 ms │ +1.08x faster │
│ QQuery 96 │ 46.09 / 47.29 ±1.29 / 49.65 ms │ 45.25 / 46.24 ±1.58 / 49.37 ms │ no change │
│ QQuery 97 │ 80.53 / 84.83 ±4.05 / 91.54 ms │ 78.86 / 79.16 ±0.27 / 79.67 ms │ +1.07x faster │
│ QQuery 98 │ 66.82 / 70.18 ±3.00 / 75.61 ms │ 64.44 / 66.19 ±2.15 / 70.15 ms │ +1.06x faster │
│ QQuery 99 │ 141.44 / 147.65 ±8.31 / 163.52 ms │ 66.88 / 67.44 ±0.37 / 67.85 ms │ +2.19x faster │
└───────────┴────────────────────────────────────────┴────────────────────────────────────┴────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD) │ 22316.55ms │
│ Total Time (perf_join-order-enumeration) │ 12674.92ms │
│ Average Time (HEAD) │ 225.42ms │
│ Average Time (perf_join-order-enumeration) │ 128.03ms │
│ Queries Faster │ 43 │
│ Queries Slower │ 5 │
│ Queries with No Change │ 51 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴────────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpcds — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 115.0s |
| Peak memory | 24.9 GiB |
| Avg memory | 3.9 GiB |
| CPU user | 622.5s |
| CPU sys | 30.8s |
| Peak spill | 0 B |
**tpcds — branch**
| Metric | Value |
|--------|-------|
| Wall time | 65.0s |
| Peak memory | 2.4 GiB |
| Avg memory | 1.7 GiB |
| CPU user | 302.6s |
| CPU sys | 10.5s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5339250651
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5339123862)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (636b45559c959d6b90c854c52f176a50a7695a60) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..636b45559c959d6b90c854c52f176a50a7695a60)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch
env:
PREFER_HASH_JOIN: "false"
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 38.71 ms │ 38.18 ms │ no change │
│ QQuery 2 │ 19.45 ms │ 16.84 ms │ +1.16x faster │
│ QQuery 3 │ 33.32 ms │ 31.19 ms │ +1.07x faster │
│ QQuery 4 │ 17.48 ms │ 17.61 ms │ no change │
│ QQuery 5 │ 37.70 ms │ 39.81 ms │ 1.06x slower │
│ QQuery 6 │ 16.02 ms │ 16.10 ms │ no change │
│ QQuery 7 │ 43.49 ms │ 35.89 ms │ +1.21x faster │
│ QQuery 8 │ 42.11 ms │ 39.33 ms │ +1.07x faster │
│ QQuery 9 │ 48.34 ms │ 48.23 ms │ no change │
│ QQuery 10 │ 42.29 ms │ 41.97 ms │ no change │
│ QQuery 11 │ 13.47 ms │ 13.47 ms │ no change │
│ QQuery 12 │ 24.10 ms │ 23.09 ms │ no change │
│ QQuery 13 │ 31.78 ms │ 32.52 ms │ no change │
│ QQuery 14 │ 23.44 ms │ 23.33 ms │ no change │
│ QQuery 15 │ 30.88 ms │ 30.73 ms │ no change │
│ QQuery 16 │ 13.78 ms │ 13.79 ms │ no change │
│ QQuery 17 │ 70.72 ms │ 70.91 ms │ no change │
│ QQuery 18 │ 59.39 ms │ 41.92 ms │ +1.42x faster │
│ QQuery 19 │ 32.78 ms │ 33.90 ms │ no change │
│ QQuery 20 │ 31.35 ms │ 31.79 ms │ no change │
│ QQuery 21 │ 55.36 ms │ 51.81 ms │ +1.07x faster │
│ QQuery 22 │ 13.81 ms │ 13.83 ms │ no change │
└───────────┴──────────┴─────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD) │ 739.79ms │
│ Total Time (perf_join-order-enumeration) │ 706.23ms │
│ Average Time (HEAD) │ 33.63ms │
│ Average Time (perf_join-order-enumeration) │ 32.10ms │
│ Queries Faster │ 6 │
│ Queries Slower │ 1 │
│ Queries with No Change │ 15 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴──────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 38.71 / 39.43 ±0.74 / 40.77 ms │ 38.18 / 38.86 ±0.99 / 40.83 ms │ no change │
│ QQuery 2 │ 19.45 / 19.61 ±0.20 / 20.00 ms │ 16.84 / 17.09 ±0.21 / 17.32 ms │ +1.15x faster │
│ QQuery 3 │ 33.32 / 33.48 ±0.13 / 33.72 ms │ 31.19 / 33.67 ±1.85 / 36.90 ms │ no change │
│ QQuery 4 │ 17.48 / 17.62 ±0.14 / 17.87 ms │ 17.61 / 18.12 ±0.65 / 19.39 ms │ no change │
│ QQuery 5 │ 37.70 / 40.26 ±2.51 / 44.51 ms │ 39.81 / 42.40 ±2.23 / 46.18 ms │ 1.05x slower │
│ QQuery 6 │ 16.02 / 16.17 ±0.16 / 16.42 ms │ 16.10 / 16.33 ±0.14 / 16.52 ms │ no change │
│ QQuery 7 │ 43.49 / 44.55 ±1.10 / 46.59 ms │ 35.89 / 37.57 ±1.63 / 39.90 ms │ +1.19x faster │
│ QQuery 8 │ 42.11 / 42.69 ±0.41 / 43.20 ms │ 39.33 / 40.07 ±0.47 / 40.82 ms │ +1.07x faster │
│ QQuery 9 │ 48.34 / 50.08 ±1.21 / 51.90 ms │ 48.23 / 49.42 ±1.35 / 51.91 ms │ no change │
│ QQuery 10 │ 42.29 / 42.79 ±0.60 / 43.81 ms │ 41.97 / 42.30 ±0.21 / 42.56 ms │ no change │
│ QQuery 11 │ 13.47 / 13.72 ±0.17 / 13.93 ms │ 13.47 / 13.93 ±0.43 / 14.72 ms │ no change │
│ QQuery 12 │ 24.10 / 24.71 ±0.46 / 25.33 ms │ 23.09 / 23.26 ±0.12 / 23.45 ms │ +1.06x faster │
│ QQuery 13 │ 31.78 / 34.26 ±3.40 / 40.57 ms │ 32.52 / 35.13 ±1.69 / 37.15 ms │ no change │
│ QQuery 14 │ 23.44 / 23.70 ±0.22 / 24.05 ms │ 23.33 / 23.47 ±0.10 / 23.61 ms │ no change │
│ QQuery 15 │ 30.88 / 32.47 ±2.19 / 36.76 ms │ 30.73 / 31.17 ±0.60 / 32.36 ms │ no change │
│ QQuery 16 │ 13.78 / 14.02 ±0.15 / 14.23 ms │ 13.79 / 14.01 ±0.19 / 14.25 ms │ no change │
│ QQuery 17 │ 70.72 / 71.16 ±0.34 / 71.58 ms │ 70.91 / 72.92 ±1.65 / 75.11 ms │ no change │
│ QQuery 18 │ 59.39 / 61.18 ±1.09 / 62.76 ms │ 41.92 / 43.17 ±0.83 / 44.51 ms │ +1.42x faster │
│ QQuery 19 │ 32.78 / 33.95 ±1.64 / 37.15 ms │ 33.90 / 34.97 ±1.68 / 38.30 ms │ no change │
│ QQuery 20 │ 31.35 / 31.79 ±0.33 / 32.34 ms │ 31.79 / 32.13 ±0.47 / 33.06 ms │ no change │
│ QQuery 21 │ 55.36 / 56.14 ±0.69 / 57.27 ms │ 51.81 / 52.98 ±0.99 / 54.61 ms │ +1.06x faster │
│ QQuery 22 │ 13.81 / 14.04 ±0.17 / 14.32 ms │ 13.83 / 14.09 ±0.14 / 14.21 ms │ no change │
└───────────┴────────────────────────────────┴────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD) │ 757.82ms │
│ Total Time (perf_join-order-enumeration) │ 727.08ms │
│ Average Time (HEAD) │ 34.45ms │
│ Average Time (perf_join-order-enumeration) │ 33.05ms │
│ Queries Faster │ 6 │
│ Queries Slower │ 1 │
│ Queries with No Change │ 15 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴──────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpch — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 1.2 GiB |
| Avg memory | 520.2 MiB |
| CPU user | 21.6s |
| CPU sys | 1.7s |
| Peak spill | 0 B |
**tpch — branch**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 1.1 GiB |
| Avg memory | 479.1 MiB |
| CPU user | 19.9s |
| CPU sys | 1.7s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "2010YOUY01 (via GitHub)" <gi...@apache.org>.
2010YOUY01 commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5508919921
> I just wanted to say the more I talk to people at VLDB the more excited I am about this PR -- I think it will finally unlock more sophisticated join ordering
Fanscinating! 🚀 I'm curious what the final implementation/algorithm looks like in your mind. Any reading recommendations?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5330115270
run benchmark tpcds
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5339125287
run benchmark tpch10
```
env:
PREFER_HASH_JOIN: false
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5347556113
run benchmarks run tpch tpcds tpch10
```
env:
PREFER_HASH_JOIN: false
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5345334143
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5345295434)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c5345295434-1761-np92x 6.12.85+ #1 SMP Wed Jun 17 20:31:55 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (4c344867b2cf5edb1ec55ccf6fa138009a7609a7) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..4c344867b2cf5edb1ec55ccf6fa138009a7609a7)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch10
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5345956960
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5345789291)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (4c344867b2cf5edb1ec55ccf6fa138009a7609a7) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..4c344867b2cf5edb1ec55ccf6fa138009a7609a7)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpcds
env:
PREFER_HASH_JOIN: "false"
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 24.63 ms │ 24.61 ms │ no change │
│ QQuery 2 │ 80.94 ms │ 80.07 ms │ no change │
│ QQuery 3 │ 51.70 ms │ 44.75 ms │ +1.16x faster │
│ QQuery 4 │ 803.44 ms │ 597.87 ms │ +1.34x faster │
│ QQuery 5 │ 104.05 ms │ 102.31 ms │ no change │
│ QQuery 6 │ 70.16 ms │ 69.68 ms │ no change │
│ QQuery 7 │ 121.95 ms │ 128.14 ms │ 1.05x slower │
│ QQuery 8 │ 66.45 ms │ 66.34 ms │ no change │
│ QQuery 9 │ 51.69 ms │ 50.92 ms │ no change │
│ QQuery 10 │ 134.84 ms │ 136.14 ms │ no change │
│ QQuery 11 │ 419.85 ms │ 297.38 ms │ +1.41x faster │
│ QQuery 12 │ 32.41 ms │ 32.60 ms │ no change │
│ QQuery 13 │ 124.70 ms │ 123.92 ms │ no change │
│ QQuery 14 │ 821.14 ms │ 656.94 ms │ +1.25x faster │
│ QQuery 15 │ 55.89 ms │ 40.58 ms │ +1.38x faster │
│ QQuery 16 │ 80.32 ms │ 78.04 ms │ no change │
│ QQuery 17 │ 170.96 ms │ 160.29 ms │ +1.07x faster │
│ QQuery 18 │ 154.68 ms │ 173.54 ms │ 1.12x slower │
│ QQuery 19 │ 76.99 ms │ 72.11 ms │ +1.07x faster │
│ QQuery 20 │ 46.46 ms │ 45.63 ms │ no change │
│ QQuery 21 │ 406.86 ms │ 81.79 ms │ +4.97x faster │
│ QQuery 22 │ 100.56 ms │ 99.88 ms │ no change │
│ QQuery 23 │ 568.09 ms │ 471.77 ms │ +1.20x faster │
│ QQuery 24 │ 350.88 ms │ 396.42 ms │ 1.13x slower │
│ QQuery 25 │ 189.10 ms │ 157.26 ms │ +1.20x faster │
│ QQuery 26 │ 101.04 ms │ 101.59 ms │ no change │
│ QQuery 27 │ 123.60 ms │ 122.63 ms │ no change │
│ QQuery 28 │ 57.32 ms │ 58.06 ms │ no change │
│ QQuery 29 │ 168.06 ms │ 138.29 ms │ +1.22x faster │
│ QQuery 30 │ 46.66 ms │ 47.10 ms │ no change │
│ QQuery 31 │ 239.14 ms │ 240.20 ms │ no change │
│ QQuery 32 │ 68.13 ms │ 67.64 ms │ no change │
│ QQuery 33 │ 72.45 ms │ 71.58 ms │ no change │
│ QQuery 34 │ 69.76 ms │ 70.14 ms │ no change │
│ QQuery 35 │ 124.60 ms │ 124.29 ms │ no change │
│ QQuery 36 │ 87.12 ms │ 86.03 ms │ no change │
│ QQuery 37 │ 32.62 ms │ 33.01 ms │ no change │
│ QQuery 38 │ 97.32 ms │ 98.41 ms │ no change │
│ QQuery 39 │ 1624.97 ms │ 340.49 ms │ +4.77x faster │
│ QQuery 40 │ 105.39 ms │ 67.77 ms │ +1.56x faster │
│ QQuery 41 │ 11.27 ms │ 11.61 ms │ no change │
│ QQuery 42 │ 49.89 ms │ 46.70 ms │ +1.07x faster │
│ QQuery 43 │ 56.45 ms │ 57.03 ms │ no change │
│ QQuery 44 │ 12.40 ms │ 13.11 ms │ 1.06x slower │
│ QQuery 45 │ 47.65 ms │ 37.70 ms │ +1.26x faster │
│ QQuery 46 │ 119.22 ms │ 118.70 ms │ no change │
│ QQuery 47 │ 362.67 ms │ 362.96 ms │ no change │
│ QQuery 48 │ 121.39 ms │ 130.87 ms │ 1.08x slower │
│ QQuery 49 │ 80.78 ms │ 81.82 ms │ no change │
│ QQuery 50 │ 87.14 ms │ 92.18 ms │ 1.06x slower │
│ QQuery 51 │ 121.17 ms │ 123.34 ms │ no change │
│ QQuery 52 │ 50.86 ms │ 45.75 ms │ +1.11x faster │
│ QQuery 53 │ 54.02 ms │ 54.03 ms │ no change │
│ QQuery 54 │ 97.33 ms │ 98.35 ms │ no change │
│ QQuery 55 │ 47.36 ms │ 45.31 ms │ no change │
│ QQuery 56 │ 72.75 ms │ 79.86 ms │ 1.10x slower │
│ QQuery 57 │ 219.41 ms │ 220.89 ms │ no change │
│ QQuery 58 │ 189.78 ms │ 121.69 ms │ +1.56x faster │
│ QQuery 59 │ 121.02 ms │ 121.22 ms │ no change │
│ QQuery 60 │ 73.51 ms │ 71.35 ms │ no change │
│ QQuery 61 │ 101.64 ms │ 94.02 ms │ +1.08x faster │
│ QQuery 62 │ 66.76 ms │ 39.30 ms │ +1.70x faster │
│ QQuery 63 │ 54.52 ms │ 54.55 ms │ no change │
│ QQuery 64 │ 663.23 ms │ 735.20 ms │ 1.11x slower │
│ QQuery 65 │ 111.74 ms │ 111.45 ms │ no change │
│ QQuery 66 │ 171.09 ms │ 109.87 ms │ +1.56x faster │
│ QQuery 67 │ 136.03 ms │ 135.76 ms │ no change │
│ QQuery 68 │ 127.09 ms │ 128.31 ms │ no change │
│ QQuery 69 │ 128.24 ms │ 128.81 ms │ no change │
│ QQuery 70 │ 204.56 ms │ 181.61 ms │ +1.13x faster │
│ QQuery 71 │ 66.14 ms │ 65.12 ms │ no change │
│ QQuery 72 │ 6518.32 ms │ 188.90 ms │ +34.51x faster │
│ QQuery 73 │ 73.59 ms │ 70.11 ms │ no change │
│ QQuery 74 │ 283.95 ms │ 206.57 ms │ +1.37x faster │
│ QQuery 75 │ 211.21 ms │ 209.51 ms │ no change │
│ QQuery 76 │ 38.33 ms │ 38.52 ms │ no change │
│ QQuery 77 │ 105.49 ms │ 101.78 ms │ no change │
│ QQuery 78 │ 294.99 ms │ 267.65 ms │ +1.10x faster │
│ QQuery 79 │ 124.72 ms │ 115.39 ms │ +1.08x faster │
│ QQuery 80 │ 228.29 ms │ 234.98 ms │ no change │
│ QQuery 81 │ 44.42 ms │ 44.40 ms │ no change │
│ QQuery 82 │ 45.45 ms │ 44.60 ms │ no change │
│ QQuery 83 │ 55.34 ms │ 48.24 ms │ +1.15x faster │
│ QQuery 84 │ 45.54 ms │ 44.54 ms │ no change │
│ QQuery 85 │ 136.99 ms │ 130.35 ms │ no change │
│ QQuery 86 │ 27.22 ms │ 26.94 ms │ no change │
│ QQuery 87 │ 101.10 ms │ 98.55 ms │ no change │
│ QQuery 88 │ 167.50 ms │ 160.91 ms │ no change │
│ QQuery 89 │ 59.38 ms │ 58.84 ms │ no change │
│ QQuery 90 │ 26.79 ms │ 25.49 ms │ no change │
│ QQuery 91 │ 54.30 ms │ 49.50 ms │ +1.10x faster │
│ QQuery 92 │ 49.55 ms │ 49.49 ms │ no change │
│ QQuery 93 │ 226.26 ms │ 202.42 ms │ +1.12x faster │
│ QQuery 94 │ 59.21 ms │ 59.40 ms │ no change │
│ QQuery 95 │ 163.44 ms │ 159.96 ms │ no change │
│ QQuery 96 │ 46.19 ms │ 45.03 ms │ no change │
│ QQuery 97 │ 81.38 ms │ 78.32 ms │ no change │
│ QQuery 98 │ 67.21 ms │ 64.51 ms │ no change │
│ QQuery 99 │ 144.81 ms │ 67.18 ms │ +2.16x faster │
└───────────┴────────────┴─────────────────────────────┴────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD) │ 21435.02ms │
│ Total Time (perf_join-order-enumeration) │ 12466.74ms │
│ Average Time (HEAD) │ 216.52ms │
│ Average Time (perf_join-order-enumeration) │ 125.93ms │
│ Queries Faster │ 29 │
│ Queries Slower │ 8 │
│ Queries with No Change │ 62 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴────────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 24.63 / 25.30 ±0.99 / 27.28 ms │ 24.61 / 25.43 ±1.39 / 28.21 ms │ no change │
│ QQuery 2 │ 80.94 / 81.46 ±0.42 / 82.16 ms │ 80.07 / 80.54 ±0.39 / 81.04 ms │ no change │
│ QQuery 3 │ 51.70 / 52.41 ±0.49 / 53.16 ms │ 44.75 / 45.03 ±0.23 / 45.32 ms │ +1.16x faster │
│ QQuery 4 │ 803.44 / 822.01 ±16.81 / 849.24 ms │ 597.87 / 603.49 ±3.16 / 607.62 ms │ +1.36x faster │
│ QQuery 5 │ 104.05 / 110.89 ±7.93 / 125.47 ms │ 102.31 / 106.49 ±2.78 / 109.39 ms │ no change │
│ QQuery 6 │ 70.16 / 70.55 ±0.22 / 70.86 ms │ 69.68 / 70.27 ±0.39 / 70.77 ms │ no change │
│ QQuery 7 │ 121.95 / 131.58 ±8.55 / 146.51 ms │ 128.14 / 129.81 ±2.18 / 133.96 ms │ no change │
│ QQuery 8 │ 66.45 / 67.11 ±0.62 / 68.15 ms │ 66.34 / 66.63 ±0.17 / 66.83 ms │ no change │
│ QQuery 9 │ 51.69 / 57.15 ±4.96 / 63.76 ms │ 50.92 / 53.86 ±2.46 / 57.78 ms │ +1.06x faster │
│ QQuery 10 │ 134.84 / 141.57 ±5.45 / 149.18 ms │ 136.14 / 139.56 ±3.27 / 145.41 ms │ no change │
│ QQuery 11 │ 419.85 / 435.76 ±11.24 / 453.09 ms │ 297.38 / 299.10 ±1.94 / 301.98 ms │ +1.46x faster │
│ QQuery 12 │ 32.41 / 36.48 ±5.69 / 47.62 ms │ 32.60 / 33.14 ±0.53 / 34.14 ms │ +1.10x faster │
│ QQuery 13 │ 124.70 / 125.54 ±0.67 / 126.28 ms │ 123.92 / 124.56 ±0.92 / 126.38 ms │ no change │
│ QQuery 14 │ 821.14 / 831.06 ±8.82 / 847.10 ms │ 656.94 / 668.69 ±6.05 / 673.19 ms │ +1.24x faster │
│ QQuery 15 │ 55.89 / 57.05 ±0.90 / 58.45 ms │ 40.58 / 40.78 ±0.19 / 41.07 ms │ +1.40x faster │
│ QQuery 16 │ 80.32 / 84.04 ±2.86 / 87.99 ms │ 78.04 / 79.67 ±2.30 / 84.09 ms │ +1.05x faster │
│ QQuery 17 │ 170.96 / 174.15 ±2.07 / 176.70 ms │ 160.29 / 163.81 ±3.10 / 169.21 ms │ +1.06x faster │
│ QQuery 18 │ 154.68 / 160.92 ±3.61 / 165.56 ms │ 173.54 / 176.65 ±2.97 / 180.58 ms │ 1.10x slower │
│ QQuery 19 │ 76.99 / 78.95 ±2.06 / 82.71 ms │ 72.11 / 74.76 ±4.20 / 83.11 ms │ +1.06x faster │
│ QQuery 20 │ 46.46 / 46.85 ±0.44 / 47.62 ms │ 45.63 / 46.08 ±0.56 / 47.16 ms │ no change │
│ QQuery 21 │ 406.86 / 415.70 ±7.33 / 428.15 ms │ 81.79 / 82.41 ±0.52 / 83.28 ms │ +5.04x faster │
│ QQuery 22 │ 100.56 / 102.35 ±1.33 / 104.66 ms │ 99.88 / 102.89 ±3.87 / 110.22 ms │ no change │
│ QQuery 23 │ 568.09 / 584.63 ±11.96 / 600.67 ms │ 471.77 / 477.19 ±5.14 / 486.12 ms │ +1.23x faster │
│ QQuery 24 │ 350.88 / 358.98 ±7.97 / 373.55 ms │ 396.42 / 401.34 ±4.15 / 407.65 ms │ 1.12x slower │
│ QQuery 25 │ 189.10 / 192.44 ±3.31 / 198.52 ms │ 157.26 / 161.30 ±4.77 / 170.38 ms │ +1.19x faster │
│ QQuery 26 │ 101.04 / 103.08 ±2.91 / 108.68 ms │ 101.59 / 102.75 ±0.71 / 103.58 ms │ no change │
│ QQuery 27 │ 123.60 / 129.81 ±9.13 / 147.90 ms │ 122.63 / 125.22 ±3.02 / 130.87 ms │ no change │
│ QQuery 28 │ 57.32 / 59.19 ±1.91 / 61.72 ms │ 58.06 / 60.70 ±2.13 / 63.27 ms │ no change │
│ QQuery 29 │ 168.06 / 173.35 ±4.45 / 179.81 ms │ 138.29 / 142.96 ±4.41 / 150.97 ms │ +1.21x faster │
│ QQuery 30 │ 46.66 / 47.64 ±0.67 / 48.60 ms │ 47.10 / 48.23 ±1.28 / 50.71 ms │ no change │
│ QQuery 31 │ 239.14 / 244.01 ±5.57 / 253.95 ms │ 240.20 / 243.94 ±3.53 / 248.25 ms │ no change │
│ QQuery 32 │ 68.13 / 71.09 ±2.77 / 76.07 ms │ 67.64 / 68.87 ±0.67 / 69.53 ms │ no change │
│ QQuery 33 │ 72.45 / 74.23 ±1.65 / 76.23 ms │ 71.58 / 72.73 ±1.38 / 75.43 ms │ no change │
│ QQuery 34 │ 69.76 / 70.64 ±0.86 / 72.26 ms │ 70.14 / 73.68 ±4.24 / 80.02 ms │ no change │
│ QQuery 35 │ 124.60 / 127.35 ±3.59 / 134.40 ms │ 124.29 / 126.34 ±1.69 / 129.01 ms │ no change │
│ QQuery 36 │ 87.12 / 87.85 ±0.76 / 89.22 ms │ 86.03 / 87.54 ±1.16 / 88.89 ms │ no change │
│ QQuery 37 │ 32.62 / 33.58 ±0.92 / 34.91 ms │ 33.01 / 33.34 ±0.36 / 34.05 ms │ no change │
│ QQuery 38 │ 97.32 / 97.81 ±0.29 / 98.12 ms │ 98.41 / 98.96 ±0.44 / 99.64 ms │ no change │
│ QQuery 39 │ 1624.97 / 1638.47 ±12.08 / 1659.02 ms │ 340.49 / 345.27 ±5.76 / 356.61 ms │ +4.75x faster │
│ QQuery 40 │ 105.39 / 111.94 ±9.47 / 130.57 ms │ 67.77 / 68.27 ±0.50 / 69.20 ms │ +1.64x faster │
│ QQuery 41 │ 11.27 / 11.47 ±0.23 / 11.90 ms │ 11.61 / 15.14 ±6.63 / 28.39 ms │ 1.32x slower │
│ QQuery 42 │ 49.89 / 50.27 ±0.28 / 50.72 ms │ 46.70 / 48.80 ±3.56 / 55.92 ms │ no change │
│ QQuery 43 │ 56.45 / 58.92 ±4.73 / 68.37 ms │ 57.03 / 57.66 ±0.41 / 58.15 ms │ no change │
│ QQuery 44 │ 12.40 / 12.65 ±0.30 / 13.23 ms │ 13.11 / 13.31 ±0.15 / 13.52 ms │ 1.05x slower │
│ QQuery 45 │ 47.65 / 49.25 ±2.02 / 52.91 ms │ 37.70 / 38.17 ±0.40 / 38.83 ms │ +1.29x faster │
│ QQuery 46 │ 119.22 / 121.87 ±3.16 / 127.75 ms │ 118.70 / 120.68 ±1.72 / 123.64 ms │ no change │
│ QQuery 47 │ 362.67 / 375.28 ±15.36 / 404.86 ms │ 362.96 / 373.96 ±12.32 / 392.70 ms │ no change │
│ QQuery 48 │ 121.39 / 134.18 ±8.02 / 145.31 ms │ 130.87 / 133.38 ±2.84 / 138.44 ms │ no change │
│ QQuery 49 │ 80.78 / 82.74 ±2.63 / 87.91 ms │ 81.82 / 86.70 ±6.11 / 98.62 ms │ no change │
│ QQuery 50 │ 87.14 / 90.44 ±3.43 / 96.92 ms │ 92.18 / 94.39 ±1.44 / 96.59 ms │ no change │
│ QQuery 51 │ 121.17 / 122.69 ±1.49 / 125.40 ms │ 123.34 / 124.41 ±1.69 / 127.77 ms │ no change │
│ QQuery 52 │ 50.86 / 53.42 ±2.43 / 56.40 ms │ 45.75 / 46.10 ±0.32 / 46.59 ms │ +1.16x faster │
│ QQuery 53 │ 54.02 / 55.17 ±1.02 / 57.01 ms │ 54.03 / 54.56 ±0.44 / 55.37 ms │ no change │
│ QQuery 54 │ 97.33 / 97.56 ±0.22 / 97.98 ms │ 98.35 / 99.46 ±1.35 / 101.99 ms │ no change │
│ QQuery 55 │ 47.36 / 52.28 ±6.80 / 65.66 ms │ 45.31 / 45.77 ±0.39 / 46.34 ms │ +1.14x faster │
│ QQuery 56 │ 72.75 / 73.73 ±1.03 / 75.41 ms │ 79.86 / 82.70 ±2.87 / 88.18 ms │ 1.12x slower │
│ QQuery 57 │ 219.41 / 225.05 ±5.82 / 236.10 ms │ 220.89 / 225.78 ±7.50 / 240.65 ms │ no change │
│ QQuery 58 │ 189.78 / 194.25 ±3.53 / 199.14 ms │ 121.69 / 122.10 ±0.34 / 122.62 ms │ +1.59x faster │
│ QQuery 59 │ 121.02 / 122.52 ±1.90 / 126.23 ms │ 121.22 / 125.36 ±6.40 / 138.02 ms │ no change │
│ QQuery 60 │ 73.51 / 73.90 ±0.49 / 74.87 ms │ 71.35 / 73.56 ±2.26 / 77.49 ms │ no change │
│ QQuery 61 │ 101.64 / 111.56 ±13.15 / 137.48 ms │ 94.02 / 98.24 ±2.27 / 100.64 ms │ +1.14x faster │
│ QQuery 62 │ 66.76 / 67.50 ±0.40 / 67.97 ms │ 39.30 / 39.73 ±0.34 / 40.31 ms │ +1.70x faster │
│ QQuery 63 │ 54.52 / 54.86 ±0.42 / 55.68 ms │ 54.55 / 54.90 ±0.26 / 55.35 ms │ no change │
│ QQuery 64 │ 663.23 / 669.58 ±4.24 / 676.57 ms │ 735.20 / 750.10 ±12.52 / 770.88 ms │ 1.12x slower │
│ QQuery 65 │ 111.74 / 113.35 ±1.44 / 115.51 ms │ 111.45 / 114.67 ±3.69 / 121.02 ms │ no change │
│ QQuery 66 │ 171.09 / 176.91 ±5.83 / 187.02 ms │ 109.87 / 111.16 ±1.04 / 113.07 ms │ +1.59x faster │
│ QQuery 67 │ 136.03 / 140.42 ±4.22 / 146.78 ms │ 135.76 / 139.45 ±2.90 / 143.54 ms │ no change │
│ QQuery 68 │ 127.09 / 128.44 ±0.82 / 129.47 ms │ 128.31 / 129.99 ±2.71 / 135.38 ms │ no change │
│ QQuery 69 │ 128.24 / 136.43 ±13.87 / 164.07 ms │ 128.81 / 133.93 ±7.88 / 149.51 ms │ no change │
│ QQuery 70 │ 204.56 / 208.51 ±3.30 / 214.13 ms │ 181.61 / 186.46 ±7.45 / 201.19 ms │ +1.12x faster │
│ QQuery 71 │ 66.14 / 68.45 ±2.66 / 73.65 ms │ 65.12 / 67.18 ±1.15 / 68.32 ms │ no change │
│ QQuery 72 │ 6518.32 / 6794.81 ±145.56 / 6910.75 ms │ 188.90 / 192.51 ±4.31 / 200.48 ms │ +35.30x faster │
│ QQuery 73 │ 73.59 / 143.58 ±70.59 / 266.14 ms │ 70.11 / 78.15 ±9.21 / 91.75 ms │ +1.84x faster │
│ QQuery 74 │ 283.95 / 336.04 ±83.22 / 502.01 ms │ 206.57 / 209.03 ±1.45 / 210.51 ms │ +1.61x faster │
│ QQuery 75 │ 211.21 / 220.21 ±4.83 / 225.67 ms │ 209.51 / 219.20 ±8.54 / 233.43 ms │ no change │
│ QQuery 76 │ 38.33 / 39.40 ±0.70 / 40.12 ms │ 38.52 / 39.00 ±0.26 / 39.28 ms │ no change │
│ QQuery 77 │ 105.49 / 112.57 ±5.79 / 119.52 ms │ 101.78 / 106.79 ±4.34 / 114.85 ms │ +1.05x faster │
│ QQuery 78 │ 294.99 / 300.20 ±5.02 / 309.03 ms │ 267.65 / 272.58 ±4.57 / 278.06 ms │ +1.10x faster │
│ QQuery 79 │ 124.72 / 127.98 ±2.76 / 131.01 ms │ 115.39 / 115.99 ±0.64 / 117.15 ms │ +1.10x faster │
│ QQuery 80 │ 228.29 / 240.40 ±7.39 / 249.08 ms │ 234.98 / 248.14 ±9.34 / 262.37 ms │ no change │
│ QQuery 81 │ 44.42 / 45.78 ±1.63 / 48.85 ms │ 44.40 / 48.85 ±8.36 / 65.56 ms │ 1.07x slower │
│ QQuery 82 │ 45.45 / 47.68 ±3.00 / 53.62 ms │ 44.60 / 45.36 ±0.57 / 46.26 ms │ no change │
│ QQuery 83 │ 55.34 / 59.01 ±3.48 / 64.82 ms │ 48.24 / 48.44 ±0.25 / 48.93 ms │ +1.22x faster │
│ QQuery 84 │ 45.54 / 50.03 ±2.45 / 52.30 ms │ 44.54 / 46.43 ±1.82 / 49.85 ms │ +1.08x faster │
│ QQuery 85 │ 136.99 / 142.01 ±3.70 / 147.15 ms │ 130.35 / 132.26 ±1.12 / 133.75 ms │ +1.07x faster │
│ QQuery 86 │ 27.22 / 29.56 ±1.76 / 31.41 ms │ 26.94 / 27.22 ±0.24 / 27.65 ms │ +1.09x faster │
│ QQuery 87 │ 101.10 / 103.39 ±3.20 / 109.59 ms │ 98.55 / 101.28 ±4.15 / 109.38 ms │ no change │
│ QQuery 88 │ 167.50 / 169.93 ±2.00 / 172.38 ms │ 160.91 / 166.41 ±6.21 / 177.71 ms │ no change │
│ QQuery 89 │ 59.38 / 62.99 ±2.35 / 65.60 ms │ 58.84 / 61.47 ±4.17 / 69.72 ms │ no change │
│ QQuery 90 │ 26.79 / 27.35 ±0.54 / 28.36 ms │ 25.49 / 25.64 ±0.09 / 25.78 ms │ +1.07x faster │
│ QQuery 91 │ 54.30 / 59.55 ±4.81 / 68.55 ms │ 49.50 / 49.99 ±0.50 / 50.81 ms │ +1.19x faster │
│ QQuery 92 │ 49.55 / 54.71 ±6.71 / 67.53 ms │ 49.49 / 53.58 ±6.24 / 65.97 ms │ no change │
│ QQuery 93 │ 226.26 / 233.30 ±6.73 / 244.94 ms │ 202.42 / 212.35 ±6.82 / 219.84 ms │ +1.10x faster │
│ QQuery 94 │ 59.21 / 62.93 ±4.23 / 70.56 ms │ 59.40 / 61.83 ±2.34 / 64.95 ms │ no change │
│ QQuery 95 │ 163.44 / 172.75 ±7.20 / 180.67 ms │ 159.96 / 167.00 ±4.69 / 171.45 ms │ no change │
│ QQuery 96 │ 46.19 / 47.20 ±0.76 / 47.97 ms │ 45.03 / 45.75 ±0.62 / 46.89 ms │ no change │
│ QQuery 97 │ 81.38 / 82.71 ±1.09 / 84.70 ms │ 78.32 / 78.82 ±0.37 / 79.42 ms │ no change │
│ QQuery 98 │ 67.21 / 70.32 ±2.67 / 74.59 ms │ 64.51 / 67.72 ±5.05 / 77.72 ms │ no change │
│ QQuery 99 │ 144.81 / 151.73 ±8.68 / 168.60 ms │ 67.18 / 70.59 ±5.92 / 82.41 ms │ +2.15x faster │
└───────────┴────────────────────────────────────────┴────────────────────────────────────┴────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD) │ 22236.70ms │
│ Total Time (perf_join-order-enumeration) │ 12752.50ms │
│ Average Time (HEAD) │ 224.61ms │
│ Average Time (perf_join-order-enumeration) │ 128.81ms │
│ Queries Faster │ 38 │
│ Queries Slower │ 7 │
│ Queries with No Change │ 54 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴────────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpcds — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 115.0s |
| Peak memory | 26.6 GiB |
| Avg memory | 4.0 GiB |
| CPU user | 623.6s |
| CPU sys | 30.1s |
| Peak spill | 0 B |
**tpcds — branch**
| Metric | Value |
|--------|-------|
| Wall time | 65.0s |
| Peak memory | 2.5 GiB |
| Avg memory | 1.7 GiB |
| CPU user | 302.2s |
| CPU sys | 10.4s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5339263119
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5339125287)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (636b45559c959d6b90c854c52f176a50a7695a60) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..636b45559c959d6b90c854c52f176a50a7695a60)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch10
env:
PREFER_HASH_JOIN: "false"
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf10.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 309.44 ms │ 307.61 ms │ no change │
│ QQuery 2 │ 100.61 ms │ 70.59 ms │ +1.43x faster │
│ QQuery 3 │ 225.10 ms │ 224.93 ms │ no change │
│ QQuery 4 │ 111.02 ms │ 114.88 ms │ no change │
│ QQuery 5 │ 346.53 ms │ 332.23 ms │ no change │
│ QQuery 6 │ 123.42 ms │ 121.16 ms │ no change │
│ QQuery 7 │ 462.29 ms │ 292.18 ms │ +1.58x faster │
│ QQuery 8 │ 375.61 ms │ 418.84 ms │ 1.12x slower │
│ QQuery 9 │ 565.82 ms │ 560.51 ms │ no change │
│ QQuery 10 │ 307.86 ms │ 297.28 ms │ no change │
│ QQuery 11 │ 84.75 ms │ 58.64 ms │ +1.45x faster │
│ QQuery 12 │ 180.22 ms │ 162.25 ms │ +1.11x faster │
│ QQuery 13 │ 297.13 ms │ 289.84 ms │ no change │
│ QQuery 14 │ 168.53 ms │ 167.96 ms │ no change │
│ QQuery 15 │ 297.38 ms │ 296.62 ms │ no change │
│ QQuery 16 │ 64.85 ms │ 56.80 ms │ +1.14x faster │
│ QQuery 17 │ 623.92 ms │ 612.46 ms │ no change │
│ QQuery 18 │ 686.28 ms │ 385.68 ms │ +1.78x faster │
│ QQuery 19 │ 247.03 ms │ 252.41 ms │ no change │
│ QQuery 20 │ 275.71 ms │ 270.87 ms │ no change │
│ QQuery 21 │ 646.03 ms │ 538.36 ms │ +1.20x faster │
│ QQuery 22 │ 57.43 ms │ 59.04 ms │ no change │
└───────────┴───────────┴─────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD) │ 6556.95ms │
│ Total Time (perf_join-order-enumeration) │ 5891.12ms │
│ Average Time (HEAD) │ 298.04ms │
│ Average Time (perf_join-order-enumeration) │ 267.78ms │
│ Queries Faster │ 7 │
│ Queries Slower │ 1 │
│ Queries with No Change │ 14 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴───────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf10.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 309.44 / 311.85 ±1.99 / 314.21 ms │ 307.61 / 310.39 ±2.11 / 313.69 ms │ no change │
│ QQuery 2 │ 100.61 / 107.57 ±4.28 / 112.58 ms │ 70.59 / 72.91 ±1.90 / 75.93 ms │ +1.48x faster │
│ QQuery 3 │ 225.10 / 231.59 ±5.29 / 240.67 ms │ 224.93 / 228.11 ±2.63 / 231.70 ms │ no change │
│ QQuery 4 │ 111.02 / 112.76 ±1.11 / 114.21 ms │ 114.88 / 116.71 ±1.02 / 117.93 ms │ no change │
│ QQuery 5 │ 346.53 / 353.66 ±6.47 / 363.39 ms │ 332.23 / 338.08 ±3.52 / 342.01 ms │ no change │
│ QQuery 6 │ 123.42 / 126.21 ±4.01 / 133.86 ms │ 121.16 / 122.31 ±1.09 / 124.03 ms │ no change │
│ QQuery 7 │ 462.29 / 480.13 ±13.25 / 500.83 ms │ 292.18 / 300.64 ±5.43 / 306.18 ms │ +1.60x faster │
│ QQuery 8 │ 375.61 / 383.49 ±7.43 / 392.92 ms │ 418.84 / 424.93 ±3.91 / 430.98 ms │ 1.11x slower │
│ QQuery 9 │ 565.82 / 585.28 ±10.09 / 594.25 ms │ 560.51 / 571.78 ±13.49 / 596.67 ms │ no change │
│ QQuery 10 │ 307.86 / 312.42 ±3.80 / 316.44 ms │ 297.28 / 301.21 ±3.05 / 304.99 ms │ no change │
│ QQuery 11 │ 84.75 / 91.07 ±5.33 / 100.48 ms │ 58.64 / 64.03 ±9.01 / 81.96 ms │ +1.42x faster │
│ QQuery 12 │ 180.22 / 181.99 ±1.56 / 183.91 ms │ 162.25 / 166.58 ±5.43 / 177.05 ms │ +1.09x faster │
│ QQuery 13 │ 297.13 / 315.34 ±14.21 / 339.52 ms │ 289.84 / 294.53 ±3.95 / 300.63 ms │ +1.07x faster │
│ QQuery 14 │ 168.53 / 171.92 ±2.88 / 176.52 ms │ 167.96 / 177.24 ±10.41 / 195.65 ms │ no change │
│ QQuery 15 │ 297.38 / 300.96 ±2.80 / 305.63 ms │ 296.62 / 298.05 ±0.77 / 298.63 ms │ no change │
│ QQuery 16 │ 64.85 / 66.44 ±2.27 / 70.92 ms │ 56.80 / 60.98 ±5.31 / 71.45 ms │ +1.09x faster │
│ QQuery 17 │ 623.92 / 629.98 ±4.27 / 636.99 ms │ 612.46 / 661.26 ±35.12 / 708.06 ms │ no change │
│ QQuery 18 │ 686.28 / 730.49 ±35.20 / 788.94 ms │ 385.68 / 406.79 ±12.60 / 423.47 ms │ +1.80x faster │
│ QQuery 19 │ 247.03 / 258.96 ±10.24 / 272.91 ms │ 252.41 / 263.71 ±13.72 / 290.73 ms │ no change │
│ QQuery 20 │ 275.71 / 299.28 ±12.92 / 315.21 ms │ 270.87 / 278.16 ±5.50 / 287.86 ms │ +1.08x faster │
│ QQuery 21 │ 646.03 / 656.67 ±9.49 / 669.64 ms │ 538.36 / 546.68 ±7.28 / 559.50 ms │ +1.20x faster │
│ QQuery 22 │ 57.43 / 60.47 ±2.05 / 63.87 ms │ 59.04 / 62.17 ±3.40 / 68.53 ms │ no change │
└───────────┴────────────────────────────────────┴────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD) │ 6768.52ms │
│ Total Time (perf_join-order-enumeration) │ 6067.23ms │
│ Average Time (HEAD) │ 307.66ms │
│ Average Time (perf_join-order-enumeration) │ 275.78ms │
│ Queries Faster │ 9 │
│ Queries Slower │ 1 │
│ Queries with No Change │ 12 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴───────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpch10 — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 35.0s |
| Peak memory | 4.8 GiB |
| Avg memory | 1.4 GiB |
| CPU user | 341.9s |
| CPU sys | 19.6s |
| Peak spill | 0 B |
**tpch10 — branch**
| Metric | Value |
|--------|-------|
| Wall time | 35.0s |
| Peak memory | 3.2 GiB |
| Avg memory | 1.1 GiB |
| CPU user | 305.6s |
| CPU sys | 17.9s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5381200775
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5381129576)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (b8acd17fb6a2a1b307edd71e3c7bb9d75db04e9d) to fc15e25 (merge-base) [diff](https://github.com/apache/datafusion/compare/fc15e25cbb49d457c319dbf522f2982d32c794cb..b8acd17fb6a2a1b307edd71e3c7bb9d75db04e9d)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 38.42 ms │ 38.13 ms │ no change │
│ QQuery 2 │ 19.38 ms │ 16.36 ms │ +1.18x faster │
│ QQuery 3 │ 31.39 ms │ 28.08 ms │ +1.12x faster │
│ QQuery 4 │ 17.38 ms │ 17.30 ms │ no change │
│ QQuery 5 │ 37.65 ms │ 32.00 ms │ +1.18x faster │
│ QQuery 6 │ 15.99 ms │ 15.99 ms │ no change │
│ QQuery 7 │ 43.83 ms │ 33.73 ms │ +1.30x faster │
│ QQuery 8 │ 43.84 ms │ 45.93 ms │ no change │
│ QQuery 9 │ 51.25 ms │ 47.09 ms │ +1.09x faster │
│ QQuery 10 │ 45.31 ms │ 41.31 ms │ +1.10x faster │
│ QQuery 11 │ 14.30 ms │ 13.24 ms │ +1.08x faster │
│ QQuery 12 │ 24.93 ms │ 22.81 ms │ +1.09x faster │
│ QQuery 13 │ 33.50 ms │ 32.75 ms │ no change │
│ QQuery 14 │ 24.21 ms │ 23.76 ms │ no change │
│ QQuery 15 │ 31.58 ms │ 30.42 ms │ no change │
│ QQuery 16 │ 13.38 ms │ 13.60 ms │ no change │
│ QQuery 17 │ 70.62 ms │ 68.85 ms │ no change │
│ QQuery 18 │ 59.55 ms │ 38.68 ms │ +1.54x faster │
│ QQuery 19 │ 32.11 ms │ 33.60 ms │ no change │
│ QQuery 20 │ 31.28 ms │ 31.03 ms │ no change │
│ QQuery 21 │ 55.09 ms │ 52.10 ms │ +1.06x faster │
│ QQuery 22 │ 14.22 ms │ 14.01 ms │ no change │
└───────────┴──────────┴─────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD) │ 749.24ms │
│ Total Time (perf_join-order-enumeration) │ 690.77ms │
│ Average Time (HEAD) │ 34.06ms │
│ Average Time (perf_join-order-enumeration) │ 31.40ms │
│ Queries Faster │ 10 │
│ Queries Slower │ 0 │
│ Queries with No Change │ 12 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴──────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 38.42 / 39.43 ±1.03 / 40.80 ms │ 38.13 / 39.49 ±1.28 / 41.09 ms │ no change │
│ QQuery 2 │ 19.38 / 20.09 ±0.77 / 21.21 ms │ 16.36 / 16.72 ±0.26 / 17.17 ms │ +1.20x faster │
│ QQuery 3 │ 31.39 / 32.05 ±0.80 / 33.38 ms │ 28.08 / 29.22 ±1.10 / 31.31 ms │ +1.10x faster │
│ QQuery 4 │ 17.38 / 17.52 ±0.13 / 17.70 ms │ 17.30 / 18.03 ±0.82 / 19.11 ms │ no change │
│ QQuery 5 │ 37.65 / 39.03 ±1.14 / 40.22 ms │ 32.00 / 32.13 ±0.13 / 32.35 ms │ +1.21x faster │
│ QQuery 6 │ 15.99 / 16.11 ±0.12 / 16.34 ms │ 15.99 / 16.19 ±0.19 / 16.52 ms │ no change │
│ QQuery 7 │ 43.83 / 46.41 ±1.98 / 49.40 ms │ 33.73 / 34.29 ±0.68 / 35.61 ms │ +1.35x faster │
│ QQuery 8 │ 43.84 / 44.23 ±0.41 / 44.97 ms │ 45.93 / 47.90 ±1.54 / 49.46 ms │ 1.08x slower │
│ QQuery 9 │ 51.25 / 52.64 ±0.99 / 54.24 ms │ 47.09 / 48.05 ±0.82 / 49.21 ms │ +1.10x faster │
│ QQuery 10 │ 45.31 / 46.26 ±0.70 / 47.42 ms │ 41.31 / 42.22 ±1.01 / 43.94 ms │ +1.10x faster │
│ QQuery 11 │ 14.30 / 14.45 ±0.13 / 14.69 ms │ 13.24 / 13.85 ±0.56 / 14.65 ms │ no change │
│ QQuery 12 │ 24.93 / 25.32 ±0.26 / 25.70 ms │ 22.81 / 23.05 ±0.22 / 23.32 ms │ +1.10x faster │
│ QQuery 13 │ 33.50 / 34.13 ±0.94 / 35.99 ms │ 32.75 / 34.66 ±1.63 / 37.09 ms │ no change │
│ QQuery 14 │ 24.21 / 25.09 ±0.99 / 27.02 ms │ 23.76 / 24.02 ±0.25 / 24.46 ms │ no change │
│ QQuery 15 │ 31.58 / 32.52 ±0.52 / 32.92 ms │ 30.42 / 31.12 ±0.72 / 32.19 ms │ no change │
│ QQuery 16 │ 13.38 / 13.75 ±0.25 / 14.14 ms │ 13.60 / 14.05 ±0.31 / 14.52 ms │ no change │
│ QQuery 17 │ 70.62 / 75.86 ±2.75 / 78.73 ms │ 68.85 / 70.52 ±1.22 / 72.46 ms │ +1.08x faster │
│ QQuery 18 │ 59.55 / 60.64 ±1.20 / 62.78 ms │ 38.68 / 40.12 ±0.96 / 41.40 ms │ +1.51x faster │
│ QQuery 19 │ 32.11 / 32.45 ±0.33 / 33.03 ms │ 33.60 / 34.89 ±1.86 / 38.57 ms │ 1.08x slower │
│ QQuery 20 │ 31.28 / 31.57 ±0.17 / 31.81 ms │ 31.03 / 31.78 ±0.74 / 33.18 ms │ no change │
│ QQuery 21 │ 55.09 / 56.43 ±1.32 / 58.77 ms │ 52.10 / 55.55 ±1.89 / 57.17 ms │ no change │
│ QQuery 22 │ 14.22 / 14.43 ±0.15 / 14.67 ms │ 14.01 / 14.19 ±0.09 / 14.27 ms │ no change │
└───────────┴────────────────────────────────┴────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD) │ 770.40ms │
│ Total Time (perf_join-order-enumeration) │ 712.05ms │
│ Average Time (HEAD) │ 35.02ms │
│ Average Time (perf_join-order-enumeration) │ 32.37ms │
│ Queries Faster │ 9 │
│ Queries Slower │ 2 │
│ Queries with No Change │ 11 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴──────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpch — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 1.2 GiB |
| Avg memory | 506.5 MiB |
| CPU user | 22.0s |
| CPU sys | 1.9s |
| Peak spill | 0 B |
**tpch — branch**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 1.0 GiB |
| Avg memory | 445.5 MiB |
| CPU user | 19.3s |
| CPU sys | 1.6s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "TheDarkLightX (via GitHub) via github" <gi...@datafusion.apache.org>.
TheDarkLightX commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-7072954563
I have a small three-table repro for the plan round-trip. On a3e100b, the optimizer reports a cost of 58, but the plan it rebuilds costs 60 under the same model. The parent was priced using a partitioned child; solution() picks cheapest(child) instead. That child is cheaper on its own, but the parent then has to repartition its output.
I have a regression test and a two-file patch that records the selected child partitionings and uses them when rebuilding the plan.
[24456-reconstruction.patch](https://github.com/user-attachments/files/35224248/24456-reconstruction.patch)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub) via github" <gi...@datafusion.apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-7079750400
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-7079548586)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (ce527a1033f46265773a6407acaa2dee3bbc7a5b) to 60e3d5c (merge-base) [diff](https://github.com/apache/datafusion/compare/60e3d5c40487f600f6a7aa0a9f0b042d63930b8f..ce527a1033f46265773a6407acaa2dee3bbc7a5b)
<details><summary>Run configuration</summary>
```yaml
run benchmark clickbench_partitioned
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ QQuery 0 │ 1.17 ms │ 1.17 ms │ no change │
│ QQuery 1 │ 11.77 ms │ 11.81 ms │ no change │
│ QQuery 2 │ 34.52 ms │ 34.99 ms │ no change │
│ QQuery 3 │ 30.62 ms │ 30.78 ms │ no change │
│ QQuery 4 │ 233.91 ms │ 236.01 ms │ no change │
│ QQuery 5 │ 272.23 ms │ 269.71 ms │ no change │
│ QQuery 6 │ 1.21 ms │ 1.21 ms │ no change │
│ QQuery 7 │ 13.04 ms │ 12.91 ms │ no change │
│ QQuery 8 │ 327.11 ms │ 328.22 ms │ no change │
│ QQuery 9 │ 466.21 ms │ 461.52 ms │ no change │
│ QQuery 10 │ 65.69 ms │ 63.96 ms │ no change │
│ QQuery 11 │ 77.21 ms │ 75.44 ms │ no change │
│ QQuery 12 │ 258.15 ms │ 264.67 ms │ no change │
│ QQuery 13 │ 361.55 ms │ 360.47 ms │ no change │
│ QQuery 14 │ 277.85 ms │ 276.73 ms │ no change │
│ QQuery 15 │ 280.15 ms │ 279.74 ms │ no change │
│ QQuery 16 │ 619.52 ms │ 609.45 ms │ no change │
│ QQuery 17 │ 620.60 ms │ 619.74 ms │ no change │
│ QQuery 18 │ 1206.31 ms │ 1187.76 ms │ no change │
│ QQuery 19 │ 27.79 ms │ 27.56 ms │ no change │
│ QQuery 20 │ 513.88 ms │ 519.87 ms │ no change │
│ QQuery 21 │ 507.35 ms │ 512.46 ms │ no change │
│ QQuery 22 │ 980.07 ms │ 985.92 ms │ no change │
│ QQuery 23 │ 3072.33 ms │ 3056.57 ms │ no change │
│ QQuery 24 │ 41.59 ms │ 40.60 ms │ no change │
│ QQuery 25 │ 106.35 ms │ 105.36 ms │ no change │
│ QQuery 26 │ 41.46 ms │ 41.07 ms │ no change │
│ QQuery 27 │ 509.28 ms │ 510.92 ms │ no change │
│ QQuery 28 │ 2854.23 ms │ 2911.28 ms │ no change │
│ QQuery 29 │ 38.18 ms │ 38.24 ms │ no change │
│ QQuery 30 │ 302.54 ms │ 310.96 ms │ no change │
│ QQuery 31 │ 274.65 ms │ 284.60 ms │ no change │
│ QQuery 32 │ 950.63 ms │ 953.79 ms │ no change │
│ QQuery 33 │ 1411.31 ms │ 1455.30 ms │ no change │
│ QQuery 34 │ 1451.05 ms │ 1491.35 ms │ no change │
│ QQuery 35 │ 293.07 ms │ 299.68 ms │ no change │
│ QQuery 36 │ 63.54 ms │ 65.12 ms │ no change │
│ QQuery 37 │ 34.10 ms │ 34.28 ms │ no change │
│ QQuery 38 │ 39.15 ms │ 39.09 ms │ no change │
│ QQuery 39 │ 136.90 ms │ 142.56 ms │ no change │
│ QQuery 40 │ 13.02 ms │ 13.57 ms │ no change │
│ QQuery 41 │ 12.44 ms │ 12.81 ms │ no change │
│ QQuery 42 │ 11.94 ms │ 12.42 ms │ no change │
└───────────┴────────────┴─────────────────────────────┴───────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD) │ 18845.69ms │
│ Total Time (perf_join-order-enumeration) │ 18991.67ms │
│ Average Time (HEAD) │ 438.27ms │
│ Average Time (perf_join-order-enumeration) │ 441.67ms │
│ Queries Faster │ 0 │
│ Queries Slower │ 0 │
│ Queries with No Change │ 43 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴────────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0 │ 1.17 / 1.81 ±1.12 / 4.03 ms │ 1.17 / 1.82 ±1.15 / 4.11 ms │ no change │
│ QQuery 1 │ 11.77 / 11.90 ±0.08 / 12.02 ms │ 11.81 / 11.93 ±0.11 / 12.12 ms │ no change │
│ QQuery 2 │ 34.52 / 34.86 ±0.32 / 35.47 ms │ 34.99 / 35.20 ±0.20 / 35.53 ms │ no change │
│ QQuery 3 │ 30.62 / 31.49 ±0.73 / 32.43 ms │ 30.78 / 31.10 ±0.20 / 31.29 ms │ no change │
│ QQuery 4 │ 233.91 / 241.44 ±3.93 / 245.38 ms │ 236.01 / 238.92 ±2.36 / 242.01 ms │ no change │
│ QQuery 5 │ 272.23 / 276.50 ±2.57 / 279.98 ms │ 269.71 / 277.40 ±5.88 / 286.60 ms │ no change │
│ QQuery 6 │ 1.21 / 1.37 ±0.24 / 1.85 ms │ 1.21 / 1.37 ±0.26 / 1.89 ms │ no change │
│ QQuery 7 │ 13.04 / 13.21 ±0.12 / 13.35 ms │ 12.91 / 13.02 ±0.08 / 13.12 ms │ no change │
│ QQuery 8 │ 327.11 / 328.30 ±0.94 / 329.72 ms │ 328.22 / 332.94 ±3.76 / 338.27 ms │ no change │
│ QQuery 9 │ 466.21 / 477.85 ±10.48 / 495.99 ms │ 461.52 / 475.89 ±10.73 / 493.16 ms │ no change │
│ QQuery 10 │ 65.69 / 66.84 ±0.98 / 68.52 ms │ 63.96 / 72.22 ±14.64 / 101.44 ms │ 1.08x slower │
│ QQuery 11 │ 77.21 / 77.79 ±0.34 / 78.24 ms │ 75.44 / 78.80 ±5.53 / 89.84 ms │ no change │
│ QQuery 12 │ 258.15 / 266.83 ±5.28 / 273.60 ms │ 264.67 / 270.17 ±4.30 / 275.35 ms │ no change │
│ QQuery 13 │ 361.55 / 373.13 ±11.66 / 392.65 ms │ 360.47 / 370.52 ±6.25 / 378.61 ms │ no change │
│ QQuery 14 │ 277.85 / 284.27 ±5.73 / 293.10 ms │ 276.73 / 284.61 ±6.59 / 293.02 ms │ no change │
│ QQuery 15 │ 280.15 / 289.84 ±11.92 / 313.29 ms │ 279.74 / 285.88 ±8.24 / 302.05 ms │ no change │
│ QQuery 16 │ 619.52 / 625.24 ±4.40 / 630.43 ms │ 609.45 / 618.82 ±8.20 / 629.49 ms │ no change │
│ QQuery 17 │ 620.60 / 635.67 ±17.84 / 670.37 ms │ 619.74 / 628.59 ±6.06 / 636.51 ms │ no change │
│ QQuery 18 │ 1206.31 / 1240.13 ±23.76 / 1272.66 ms │ 1187.76 / 1227.35 ±23.20 / 1255.59 ms │ no change │
│ QQuery 19 │ 27.79 / 29.92 ±3.39 / 36.62 ms │ 27.56 / 29.47 ±2.75 / 34.73 ms │ no change │
│ QQuery 20 │ 513.88 / 524.33 ±10.93 / 545.32 ms │ 519.87 / 533.17 ±15.07 / 561.33 ms │ no change │
│ QQuery 21 │ 507.35 / 517.75 ±6.15 / 526.25 ms │ 512.46 / 515.55 ±2.50 / 518.24 ms │ no change │
│ QQuery 22 │ 980.07 / 993.38 ±9.32 / 1008.19 ms │ 985.92 / 995.76 ±7.90 / 1009.63 ms │ no change │
│ QQuery 23 │ 3072.33 / 3105.06 ±31.90 / 3152.46 ms │ 3056.57 / 3081.02 ±23.08 / 3116.39 ms │ no change │
│ QQuery 24 │ 41.59 / 54.55 ±14.42 / 80.12 ms │ 40.60 / 43.71 ±4.12 / 51.13 ms │ +1.25x faster │
│ QQuery 25 │ 106.35 / 107.56 ±0.99 / 109.18 ms │ 105.36 / 110.21 ±5.93 / 120.91 ms │ no change │
│ QQuery 26 │ 41.46 / 44.30 ±3.25 / 50.46 ms │ 41.07 / 41.37 ±0.38 / 42.10 ms │ +1.07x faster │
│ QQuery 27 │ 509.28 / 512.19 ±2.62 / 516.70 ms │ 510.92 / 520.14 ±7.00 / 528.68 ms │ no change │
│ QQuery 28 │ 2854.23 / 2879.18 ±17.29 / 2901.66 ms │ 2911.28 / 2927.24 ±10.87 / 2942.22 ms │ no change │
│ QQuery 29 │ 38.18 / 63.54 ±32.00 / 124.55 ms │ 38.24 / 49.20 ±20.77 / 90.71 ms │ +1.29x faster │
│ QQuery 30 │ 302.54 / 316.44 ±8.89 / 326.55 ms │ 310.96 / 325.30 ±15.35 / 353.44 ms │ no change │
│ QQuery 31 │ 274.65 / 288.59 ±12.65 / 308.29 ms │ 284.60 / 297.51 ±12.79 / 320.86 ms │ no change │
│ QQuery 32 │ 950.63 / 961.90 ±14.69 / 990.27 ms │ 953.79 / 990.99 ±39.40 / 1067.13 ms │ no change │
│ QQuery 33 │ 1411.31 / 1466.05 ±48.13 / 1547.36 ms │ 1455.30 / 1505.84 ±43.37 / 1570.73 ms │ no change │
│ QQuery 34 │ 1451.05 / 1473.36 ±12.69 / 1490.23 ms │ 1491.35 / 1558.29 ±64.76 / 1679.13 ms │ 1.06x slower │
│ QQuery 35 │ 293.07 / 330.32 ±50.88 / 425.60 ms │ 299.68 / 346.31 ±84.17 / 514.48 ms │ no change │
│ QQuery 36 │ 63.54 / 68.70 ±3.73 / 74.90 ms │ 65.12 / 73.23 ±9.57 / 91.62 ms │ 1.07x slower │
│ QQuery 37 │ 34.10 / 36.00 ±2.44 / 40.79 ms │ 34.28 / 34.93 ±0.62 / 36.07 ms │ no change │
│ QQuery 38 │ 39.15 / 42.73 ±4.51 / 51.39 ms │ 39.09 / 42.83 ±3.38 / 48.18 ms │ no change │
│ QQuery 39 │ 136.90 / 151.54 ±7.70 / 158.44 ms │ 142.56 / 154.55 ±11.78 / 176.12 ms │ no change │
│ QQuery 40 │ 13.02 / 13.75 ±0.62 / 14.52 ms │ 13.57 / 14.29 ±0.69 / 15.35 ms │ no change │
│ QQuery 41 │ 12.44 / 15.16 ±4.25 / 23.61 ms │ 12.81 / 18.27 ±9.86 / 37.96 ms │ 1.21x slower │
│ QQuery 42 │ 11.94 / 12.13 ±0.21 / 12.45 ms │ 12.42 / 13.10 ±1.00 / 15.07 ms │ 1.08x slower │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD) │ 19286.92ms │
│ Total Time (perf_join-order-enumeration) │ 19478.87ms │
│ Average Time (HEAD) │ 448.53ms │
│ Average Time (perf_join-order-enumeration) │ 453.00ms │
│ Queries Faster │ 3 │
│ Queries Slower │ 5 │
│ Queries with No Change │ 35 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴────────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**clickbench_partitioned — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 100.0s |
| Peak memory | 10.3 GiB |
| Avg memory | 4.1 GiB |
| CPU user | 988.0s |
| CPU sys | 69.4s |
| Peak spill | 0 B |
**clickbench_partitioned — branch**
| Metric | Value |
|--------|-------|
| Wall time | 100.0s |
| Peak memory | 12.5 GiB |
| Avg memory | 4.7 GiB |
| CPU user | 989.4s |
| CPU sys | 71.8s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub) via github" <gi...@datafusion.apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-7079703963
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-7079548586)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (ce527a1033f46265773a6407acaa2dee3bbc7a5b) to 60e3d5c (merge-base) [diff](https://github.com/apache/datafusion/compare/60e3d5c40487f600f6a7aa0a9f0b042d63930b8f..ce527a1033f46265773a6407acaa2dee3bbc7a5b)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpcds
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 5.18 ms │ 5.57 ms │ 1.08x slower │
│ QQuery 2 │ 79.61 ms │ 80.50 ms │ no change │
│ QQuery 3 │ 28.74 ms │ 25.72 ms │ +1.12x faster │
│ QQuery 4 │ 437.58 ms │ 444.90 ms │ no change │
│ QQuery 5 │ 50.05 ms │ 49.93 ms │ no change │
│ QQuery 6 │ 34.85 ms │ 35.17 ms │ no change │
│ QQuery 7 │ 71.97 ms │ 73.77 ms │ no change │
│ QQuery 8 │ 36.11 ms │ 36.44 ms │ no change │
│ QQuery 9 │ 51.74 ms │ 53.57 ms │ no change │
│ QQuery 10 │ 61.08 ms │ 54.57 ms │ +1.12x faster │
│ QQuery 11 │ 271.33 ms │ 215.42 ms │ +1.26x faster │
│ QQuery 12 │ 28.54 ms │ 29.02 ms │ no change │
│ QQuery 13 │ 112.38 ms │ 112.09 ms │ no change │
│ QQuery 14 │ 381.61 ms │ 319.32 ms │ +1.20x faster │
│ QQuery 15 │ 53.85 ms │ 47.94 ms │ +1.12x faster │
│ QQuery 16 │ 5.77 ms │ 6.22 ms │ 1.08x slower │
│ QQuery 17 │ 77.24 ms │ 86.56 ms │ 1.12x slower │
│ QQuery 18 │ 105.60 ms │ 106.91 ms │ no change │
│ QQuery 19 │ 41.77 ms │ 41.87 ms │ no change │
│ QQuery 20 │ 36.01 ms │ 35.40 ms │ no change │
│ QQuery 21 │ 17.34 ms │ 13.50 ms │ +1.28x faster │
│ QQuery 22 │ 63.67 ms │ 62.63 ms │ no change │
│ QQuery 23 │ 295.29 ms │ 239.29 ms │ +1.23x faster │
│ QQuery 24 │ 197.57 ms │ 161.64 ms │ +1.22x faster │
│ QQuery 25 │ 105.56 ms │ 91.95 ms │ +1.15x faster │
│ QQuery 26 │ 46.71 ms │ 49.41 ms │ 1.06x slower │
│ QQuery 27 │ 4.85 ms │ 5.00 ms │ no change │
│ QQuery 28 │ 61.87 ms │ 61.77 ms │ no change │
│ QQuery 29 │ 91.82 ms │ 69.18 ms │ +1.33x faster │
│ QQuery 30 │ 33.18 ms │ 32.15 ms │ no change │
│ QQuery 31 │ 107.88 ms │ 107.04 ms │ no change │
│ QQuery 32 │ 20.21 ms │ 19.86 ms │ no change │
│ QQuery 33 │ 37.20 ms │ 36.65 ms │ no change │
│ QQuery 34 │ 5.52 ms │ 5.59 ms │ no change │
│ QQuery 35 │ 72.19 ms │ 63.02 ms │ +1.15x faster │
│ QQuery 36 │ 5.66 ms │ 5.45 ms │ no change │
│ QQuery 37 │ 7.08 ms │ 6.75 ms │ no change │
│ QQuery 38 │ 61.47 ms │ 60.99 ms │ no change │
│ QQuery 39 │ 73.62 ms │ 61.79 ms │ +1.19x faster │
│ QQuery 40 │ 22.96 ms │ 19.35 ms │ +1.19x faster │
│ QQuery 41 │ 12.74 ms │ 12.58 ms │ no change │
│ QQuery 42 │ 23.81 ms │ 25.37 ms │ 1.07x slower │
│ QQuery 43 │ 4.42 ms │ 4.31 ms │ no change │
│ QQuery 44 │ 5.26 ms │ 5.55 ms │ 1.05x slower │
│ QQuery 45 │ 35.88 ms │ 23.12 ms │ +1.55x faster │
│ QQuery 46 │ 11.53 ms │ 13.86 ms │ 1.20x slower │
│ QQuery 47 │ 219.90 ms │ 220.12 ms │ no change │
│ QQuery 48 │ 90.42 ms │ 90.65 ms │ no change │
│ QQuery 49 │ 69.50 ms │ 69.58 ms │ no change │
│ QQuery 50 │ 56.31 ms │ 50.10 ms │ +1.12x faster │
│ QQuery 51 │ 92.88 ms │ 93.37 ms │ no change │
│ QQuery 52 │ 23.91 ms │ 26.40 ms │ 1.10x slower │
│ QQuery 53 │ 29.31 ms │ 29.18 ms │ no change │
│ QQuery 54 │ 53.29 ms │ 24.27 ms │ +2.20x faster │
│ QQuery 55 │ 23.86 ms │ 25.17 ms │ 1.06x slower │
│ QQuery 56 │ 37.85 ms │ 40.24 ms │ 1.06x slower │
│ QQuery 57 │ 166.09 ms │ 166.94 ms │ no change │
│ QQuery 58 │ 105.04 ms │ 50.88 ms │ +2.06x faster │
│ QQuery 59 │ 113.40 ms │ 113.98 ms │ no change │
│ QQuery 60 │ 38.20 ms │ 41.40 ms │ 1.08x slower │
│ QQuery 61 │ 8.99 ms │ 8.99 ms │ no change │
│ QQuery 62 │ 43.56 ms │ 30.14 ms │ +1.44x faster │
│ QQuery 63 │ 29.15 ms │ 29.52 ms │ no change │
│ QQuery 64 │ 348.47 ms │ 331.22 ms │ no change │
│ QQuery 65 │ 73.56 ms │ 72.95 ms │ no change │
│ QQuery 66 │ 72.95 ms │ 59.97 ms │ +1.22x faster │
│ QQuery 67 │ 249.51 ms │ 245.41 ms │ no change │
│ QQuery 68 │ 6.38 ms │ 6.49 ms │ no change │
│ QQuery 69 │ 56.33 ms │ 60.11 ms │ 1.07x slower │
│ QQuery 70 │ 102.20 ms │ 76.97 ms │ +1.33x faster │
│ QQuery 71 │ 34.64 ms │ 34.86 ms │ no change │
│ QQuery 72 │ 1596.89 ms │ 74.69 ms │ +21.38x faster │
│ QQuery 73 │ 5.27 ms │ 5.66 ms │ 1.07x slower │
│ QQuery 74 │ 191.89 ms │ 130.48 ms │ +1.47x faster │
│ QQuery 75 │ 137.60 ms │ 94.96 ms │ +1.45x faster │
│ QQuery 76 │ 33.94 ms │ 34.05 ms │ no change │
│ QQuery 77 │ 59.36 ms │ 59.85 ms │ no change │
│ QQuery 78 │ 266.62 ms │ 261.45 ms │ no change │
│ QQuery 79 │ 65.47 ms │ 78.97 ms │ 1.21x slower │
│ QQuery 80 │ 93.34 ms │ 74.02 ms │ +1.26x faster │
│ QQuery 81 │ 25.86 ms │ 25.14 ms │ no change │
│ QQuery 82 │ 16.42 ms │ 17.74 ms │ 1.08x slower │
│ QQuery 83 │ 32.62 ms │ 26.47 ms │ +1.23x faster │
│ QQuery 84 │ 29.21 ms │ 37.30 ms │ 1.28x slower │
│ QQuery 85 │ 98.28 ms │ 90.06 ms │ +1.09x faster │
│ QQuery 86 │ 25.02 ms │ 24.75 ms │ no change │
│ QQuery 87 │ 60.70 ms │ 59.87 ms │ no change │
│ QQuery 88 │ 60.22 ms │ 55.45 ms │ +1.09x faster │
│ QQuery 89 │ 35.21 ms │ 31.81 ms │ +1.11x faster │
│ QQuery 90 │ 16.45 ms │ 14.17 ms │ +1.16x faster │
│ QQuery 91 │ 40.71 ms │ 39.12 ms │ no change │
│ QQuery 92 │ 28.94 ms │ 28.69 ms │ no change │
│ QQuery 93 │ 48.80 ms │ 48.27 ms │ no change │
│ QQuery 94 │ 38.37 ms │ 37.84 ms │ no change │
│ QQuery 95 │ 78.55 ms │ 78.04 ms │ no change │
│ QQuery 96 │ 23.93 ms │ 20.36 ms │ +1.18x faster │
│ QQuery 97 │ 50.87 ms │ 50.42 ms │ no change │
│ QQuery 98 │ 41.90 ms │ 42.50 ms │ no change │
│ QQuery 99 │ 64.29 ms │ 44.21 ms │ +1.45x faster │
└───────────┴────────────┴─────────────────────────────┴────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD) │ 8808.74ms │
│ Total Time (perf_join-order-enumeration) │ 6703.97ms │
│ Average Time (HEAD) │ 88.98ms │
│ Average Time (perf_join-order-enumeration) │ 67.72ms │
│ Queries Faster │ 31 │
│ Queries Slower │ 16 │
│ Queries with No Change │ 52 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴───────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 5.18 / 5.83 ±1.06 / 7.96 ms │ 5.57 / 6.16 ±1.05 / 8.25 ms │ 1.06x slower │
│ QQuery 2 │ 79.61 / 79.93 ±0.25 / 80.20 ms │ 80.50 / 80.83 ±0.24 / 81.11 ms │ no change │
│ QQuery 3 │ 28.74 / 28.87 ±0.09 / 29.01 ms │ 25.72 / 25.84 ±0.08 / 25.97 ms │ +1.12x faster │
│ QQuery 4 │ 437.58 / 440.61 ±2.42 / 443.74 ms │ 444.90 / 445.46 ±0.81 / 447.07 ms │ no change │
│ QQuery 5 │ 50.05 / 50.19 ±0.08 / 50.27 ms │ 49.93 / 52.11 ±3.93 / 59.97 ms │ no change │
│ QQuery 6 │ 34.85 / 35.41 ±0.42 / 36.10 ms │ 35.17 / 35.91 ±0.88 / 37.45 ms │ no change │
│ QQuery 7 │ 71.97 / 72.51 ±0.32 / 72.84 ms │ 73.77 / 74.42 ±0.41 / 74.88 ms │ no change │
│ QQuery 8 │ 36.11 / 36.24 ±0.14 / 36.46 ms │ 36.44 / 36.81 ±0.24 / 37.10 ms │ no change │
│ QQuery 9 │ 51.74 / 54.03 ±1.91 / 57.01 ms │ 53.57 / 56.83 ±3.36 / 63.26 ms │ 1.05x slower │
│ QQuery 10 │ 61.08 / 61.28 ±0.16 / 61.53 ms │ 54.57 / 55.12 ±0.33 / 55.45 ms │ +1.11x faster │
│ QQuery 11 │ 271.33 / 275.69 ±2.37 / 278.50 ms │ 215.42 / 220.11 ±3.95 / 225.80 ms │ +1.25x faster │
│ QQuery 12 │ 28.54 / 28.73 ±0.11 / 28.83 ms │ 29.02 / 29.31 ±0.26 / 29.66 ms │ no change │
│ QQuery 13 │ 112.38 / 112.87 ±0.61 / 114.05 ms │ 112.09 / 112.22 ±0.13 / 112.42 ms │ no change │
│ QQuery 14 │ 381.61 / 383.34 ±1.43 / 385.46 ms │ 319.32 / 321.24 ±1.19 / 322.85 ms │ +1.19x faster │
│ QQuery 15 │ 53.85 / 55.67 ±2.67 / 60.94 ms │ 47.94 / 48.34 ±0.36 / 48.87 ms │ +1.15x faster │
│ QQuery 16 │ 5.77 / 5.90 ±0.22 / 6.34 ms │ 6.22 / 7.42 ±1.98 / 11.37 ms │ 1.26x slower │
│ QQuery 17 │ 77.24 / 78.34 ±1.35 / 80.94 ms │ 86.56 / 87.91 ±1.62 / 91.06 ms │ 1.12x slower │
│ QQuery 18 │ 105.60 / 106.34 ±0.65 / 107.40 ms │ 106.91 / 107.22 ±0.26 / 107.66 ms │ no change │
│ QQuery 19 │ 41.77 / 42.02 ±0.22 / 42.36 ms │ 41.87 / 42.35 ±0.32 / 42.74 ms │ no change │
│ QQuery 20 │ 36.01 / 36.48 ±0.32 / 36.84 ms │ 35.40 / 35.81 ±0.34 / 36.35 ms │ no change │
│ QQuery 21 │ 17.34 / 17.44 ±0.08 / 17.53 ms │ 13.50 / 14.01 ±0.66 / 15.32 ms │ +1.25x faster │
│ QQuery 22 │ 63.67 / 64.45 ±0.59 / 65.45 ms │ 62.63 / 63.29 ±0.94 / 65.14 ms │ no change │
│ QQuery 23 │ 295.29 / 300.01 ±5.22 / 306.96 ms │ 239.29 / 241.35 ±1.27 / 242.78 ms │ +1.24x faster │
│ QQuery 24 │ 197.57 / 199.40 ±2.35 / 203.94 ms │ 161.64 / 163.19 ±1.26 / 165.15 ms │ +1.22x faster │
│ QQuery 25 │ 105.56 / 106.63 ±0.93 / 108.29 ms │ 91.95 / 93.46 ±1.13 / 95.39 ms │ +1.14x faster │
│ QQuery 26 │ 46.71 / 48.52 ±2.19 / 52.75 ms │ 49.41 / 50.30 ±1.54 / 53.37 ms │ no change │
│ QQuery 27 │ 4.85 / 5.04 ±0.23 / 5.47 ms │ 5.00 / 5.13 ±0.20 / 5.54 ms │ no change │
│ QQuery 28 │ 61.87 / 62.32 ±0.37 / 62.84 ms │ 61.77 / 62.48 ±0.64 / 63.67 ms │ no change │
│ QQuery 29 │ 91.82 / 93.55 ±1.47 / 96.21 ms │ 69.18 / 69.77 ±0.52 / 70.56 ms │ +1.34x faster │
│ QQuery 30 │ 33.18 / 34.04 ±0.56 / 34.94 ms │ 32.15 / 32.62 ±0.30 / 32.91 ms │ no change │
│ QQuery 31 │ 107.88 / 108.85 ±0.75 / 109.83 ms │ 107.04 / 109.06 ±2.64 / 113.74 ms │ no change │
│ QQuery 32 │ 20.21 / 20.45 ±0.18 / 20.70 ms │ 19.86 / 20.01 ±0.13 / 20.22 ms │ no change │
│ QQuery 33 │ 37.20 / 39.03 ±3.27 / 45.57 ms │ 36.65 / 37.35 ±1.07 / 39.47 ms │ no change │
│ QQuery 34 │ 5.52 / 5.67 ±0.23 / 6.13 ms │ 5.59 / 5.76 ±0.27 / 6.29 ms │ no change │
│ QQuery 35 │ 72.19 / 73.63 ±0.83 / 74.48 ms │ 63.02 / 64.42 ±1.59 / 67.40 ms │ +1.14x faster │
│ QQuery 36 │ 5.66 / 5.80 ±0.19 / 6.18 ms │ 5.45 / 5.60 ±0.22 / 6.02 ms │ no change │
│ QQuery 37 │ 7.08 / 7.18 ±0.07 / 7.27 ms │ 6.75 / 6.91 ±0.08 / 6.98 ms │ no change │
│ QQuery 38 │ 61.47 / 62.15 ±0.39 / 62.59 ms │ 60.99 / 61.65 ±0.53 / 62.44 ms │ no change │
│ QQuery 39 │ 73.62 / 73.88 ±0.24 / 74.20 ms │ 61.79 / 62.30 ±0.48 / 62.99 ms │ +1.19x faster │
│ QQuery 40 │ 22.96 / 23.90 ±0.64 / 24.67 ms │ 19.35 / 19.57 ±0.17 / 19.86 ms │ +1.22x faster │
│ QQuery 41 │ 12.74 / 12.85 ±0.10 / 13.00 ms │ 12.58 / 12.72 ±0.16 / 13.00 ms │ no change │
│ QQuery 42 │ 23.81 / 24.16 ±0.38 / 24.90 ms │ 25.37 / 27.19 ±2.26 / 31.63 ms │ 1.13x slower │
│ QQuery 43 │ 4.42 / 4.59 ±0.24 / 5.07 ms │ 4.31 / 4.47 ±0.22 / 4.89 ms │ no change │
│ QQuery 44 │ 5.26 / 5.37 ±0.10 / 5.51 ms │ 5.55 / 5.63 ±0.09 / 5.80 ms │ no change │
│ QQuery 45 │ 35.88 / 37.22 ±1.33 / 39.74 ms │ 23.12 / 23.44 ±0.26 / 23.80 ms │ +1.59x faster │
│ QQuery 46 │ 11.53 / 11.85 ±0.37 / 12.58 ms │ 13.86 / 14.35 ±0.38 / 14.93 ms │ 1.21x slower │
│ QQuery 47 │ 219.90 / 223.15 ±3.16 / 229.00 ms │ 220.12 / 222.79 ±1.74 / 224.62 ms │ no change │
│ QQuery 48 │ 90.42 / 92.43 ±2.19 / 96.65 ms │ 90.65 / 91.05 ±0.31 / 91.59 ms │ no change │
│ QQuery 49 │ 69.50 / 70.09 ±0.39 / 70.70 ms │ 69.58 / 71.37 ±2.03 / 75.24 ms │ no change │
│ QQuery 50 │ 56.31 / 56.68 ±0.33 / 57.20 ms │ 50.10 / 50.64 ±0.34 / 51.15 ms │ +1.12x faster │
│ QQuery 51 │ 92.88 / 95.66 ±3.33 / 101.90 ms │ 93.37 / 94.30 ±1.08 / 96.28 ms │ no change │
│ QQuery 52 │ 23.91 / 24.10 ±0.20 / 24.42 ms │ 26.40 / 27.01 ±0.78 / 28.55 ms │ 1.12x slower │
│ QQuery 53 │ 29.31 / 29.73 ±0.49 / 30.67 ms │ 29.18 / 29.39 ±0.18 / 29.69 ms │ no change │
│ QQuery 54 │ 53.29 / 53.65 ±0.30 / 54.08 ms │ 24.27 / 24.40 ±0.15 / 24.65 ms │ +2.20x faster │
│ QQuery 55 │ 23.86 / 25.93 ±2.91 / 31.60 ms │ 25.17 / 25.39 ±0.13 / 25.57 ms │ no change │
│ QQuery 56 │ 37.85 / 38.22 ±0.28 / 38.67 ms │ 40.24 / 40.86 ±0.57 / 41.92 ms │ 1.07x slower │
│ QQuery 57 │ 166.09 / 170.12 ±4.02 / 177.38 ms │ 166.94 / 169.07 ±1.70 / 171.85 ms │ no change │
│ QQuery 58 │ 105.04 / 106.85 ±1.65 / 109.78 ms │ 50.88 / 51.61 ±0.77 / 53.08 ms │ +2.07x faster │
│ QQuery 59 │ 113.40 / 115.52 ±1.98 / 119.27 ms │ 113.98 / 115.67 ±1.67 / 118.64 ms │ no change │
│ QQuery 60 │ 38.20 / 38.77 ±0.34 / 39.11 ms │ 41.40 / 42.44 ±1.19 / 44.73 ms │ 1.09x slower │
│ QQuery 61 │ 8.99 / 9.12 ±0.17 / 9.43 ms │ 8.99 / 9.52 ±0.70 / 10.86 ms │ no change │
│ QQuery 62 │ 43.56 / 44.02 ±0.68 / 45.36 ms │ 30.14 / 30.50 ±0.24 / 30.80 ms │ +1.44x faster │
│ QQuery 63 │ 29.15 / 29.52 ±0.28 / 29.96 ms │ 29.52 / 29.76 ±0.15 / 29.99 ms │ no change │
│ QQuery 64 │ 348.47 / 354.22 ±3.47 / 359.30 ms │ 331.22 / 337.07 ±3.36 / 341.50 ms │ no change │
│ QQuery 65 │ 73.56 / 74.32 ±0.65 / 75.42 ms │ 72.95 / 73.32 ±0.30 / 73.74 ms │ no change │
│ QQuery 66 │ 72.95 / 73.77 ±0.47 / 74.41 ms │ 59.97 / 60.37 ±0.33 / 60.80 ms │ +1.22x faster │
│ QQuery 67 │ 249.51 / 253.05 ±2.21 / 256.49 ms │ 245.41 / 249.56 ±2.84 / 253.61 ms │ no change │
│ QQuery 68 │ 6.38 / 6.86 ±0.44 / 7.58 ms │ 6.49 / 6.66 ±0.23 / 7.11 ms │ no change │
│ QQuery 69 │ 56.33 / 58.71 ±3.45 / 65.58 ms │ 60.11 / 60.51 ±0.28 / 60.95 ms │ no change │
│ QQuery 70 │ 102.20 / 105.50 ±5.06 / 115.35 ms │ 76.97 / 80.19 ±4.96 / 90.01 ms │ +1.32x faster │
│ QQuery 71 │ 34.64 / 35.10 ±0.34 / 35.52 ms │ 34.86 / 35.76 ±0.64 / 36.70 ms │ no change │
│ QQuery 72 │ 1596.89 / 1680.92 ±79.11 / 1785.54 ms │ 74.69 / 75.85 ±0.87 / 77.30 ms │ +22.16x faster │
│ QQuery 73 │ 5.27 / 5.41 ±0.19 / 5.77 ms │ 5.66 / 5.87 ±0.28 / 6.38 ms │ 1.09x slower │
│ QQuery 74 │ 191.89 / 195.73 ±2.82 / 199.20 ms │ 130.48 / 132.68 ±1.69 / 135.60 ms │ +1.48x faster │
│ QQuery 75 │ 137.60 / 138.32 ±0.99 / 140.24 ms │ 94.96 / 95.53 ±0.75 / 96.98 ms │ +1.45x faster │
│ QQuery 76 │ 33.94 / 34.45 ±0.50 / 35.36 ms │ 34.05 / 36.57 ±4.20 / 44.94 ms │ 1.06x slower │
│ QQuery 77 │ 59.36 / 60.32 ±0.97 / 62.11 ms │ 59.85 / 60.39 ±0.38 / 60.79 ms │ no change │
│ QQuery 78 │ 266.62 / 280.00 ±13.51 / 301.44 ms │ 261.45 / 272.75 ±12.07 / 288.36 ms │ no change │
│ QQuery 79 │ 65.47 / 66.21 ±0.40 / 66.68 ms │ 78.97 / 81.22 ±2.96 / 87.05 ms │ 1.23x slower │
│ QQuery 80 │ 93.34 / 97.17 ±4.55 / 105.04 ms │ 74.02 / 74.56 ±0.35 / 75.02 ms │ +1.30x faster │
│ QQuery 81 │ 25.86 / 26.21 ±0.31 / 26.68 ms │ 25.14 / 25.85 ±1.13 / 28.10 ms │ no change │
│ QQuery 82 │ 16.42 / 16.99 ±0.60 / 17.73 ms │ 17.74 / 18.43 ±0.96 / 20.31 ms │ 1.08x slower │
│ QQuery 83 │ 32.62 / 32.92 ±0.26 / 33.38 ms │ 26.47 / 26.81 ±0.23 / 27.07 ms │ +1.23x faster │
│ QQuery 84 │ 29.21 / 29.43 ±0.13 / 29.56 ms │ 37.30 / 39.55 ±3.87 / 47.28 ms │ 1.34x slower │
│ QQuery 85 │ 98.28 / 100.64 ±3.16 / 106.78 ms │ 90.06 / 90.53 ±0.33 / 90.81 ms │ +1.11x faster │
│ QQuery 86 │ 25.02 / 25.48 ±0.40 / 26.22 ms │ 24.75 / 25.44 ±0.51 / 26.20 ms │ no change │
│ QQuery 87 │ 60.70 / 61.27 ±0.44 / 61.84 ms │ 59.87 / 60.82 ±0.92 / 62.52 ms │ no change │
│ QQuery 88 │ 60.22 / 62.02 ±2.40 / 66.69 ms │ 55.45 / 56.82 ±1.55 / 59.73 ms │ +1.09x faster │
│ QQuery 89 │ 35.21 / 36.06 ±0.43 / 36.35 ms │ 31.81 / 32.26 ±0.46 / 33.09 ms │ +1.12x faster │
│ QQuery 90 │ 16.45 / 16.65 ±0.15 / 16.89 ms │ 14.17 / 14.33 ±0.15 / 14.52 ms │ +1.16x faster │
│ QQuery 91 │ 40.71 / 41.60 ±0.74 / 42.87 ms │ 39.12 / 39.65 ±0.66 / 40.94 ms │ no change │
│ QQuery 92 │ 28.94 / 29.66 ±0.57 / 30.70 ms │ 28.69 / 29.12 ±0.37 / 29.59 ms │ no change │
│ QQuery 93 │ 48.80 / 50.33 ±1.17 / 52.19 ms │ 48.27 / 51.21 ±4.11 / 59.33 ms │ no change │
│ QQuery 94 │ 38.37 / 38.44 ±0.06 / 38.54 ms │ 37.84 / 38.37 ±0.42 / 38.87 ms │ no change │
│ QQuery 95 │ 78.55 / 78.84 ±0.25 / 79.15 ms │ 78.04 / 78.32 ±0.35 / 78.79 ms │ no change │
│ QQuery 96 │ 23.93 / 24.19 ±0.18 / 24.43 ms │ 20.36 / 20.63 ±0.22 / 20.97 ms │ +1.17x faster │
│ QQuery 97 │ 50.87 / 53.03 ±3.60 / 60.21 ms │ 50.42 / 52.96 ±3.45 / 59.71 ms │ no change │
│ QQuery 98 │ 41.90 / 43.02 ±0.74 / 44.03 ms │ 42.50 / 43.25 ±0.67 / 44.27 ms │ no change │
│ QQuery 99 │ 64.29 / 64.85 ±0.37 / 65.44 ms │ 44.21 / 44.37 ±0.14 / 44.55 ms │ +1.46x faster │
└───────────┴───────────────────────────────────────┴────────────────────────────────────┴────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD) │ 9013.52ms │
│ Total Time (perf_join-order-enumeration) │ 6810.75ms │
│ Average Time (HEAD) │ 91.05ms │
│ Average Time (perf_join-order-enumeration) │ 68.80ms │
│ Queries Faster │ 31 │
│ Queries Slower │ 14 │
│ Queries with No Change │ 54 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴───────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpcds — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 50.0s |
| Peak memory | 2.2 GiB |
| Avg memory | 1.5 GiB |
| CPU user | 187.3s |
| CPU sys | 5.5s |
| Peak spill | 0 B |
**tpcds — branch**
| Metric | Value |
|--------|-------|
| Wall time | 35.0s |
| Peak memory | 2.0 GiB |
| Avg memory | 1.3 GiB |
| CPU user | 92.0s |
| CPU sys | 4.7s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "Dandandan (via GitHub) via github" <gi...@datafusion.apache.org>.
Dandandan commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-7079548586
run benchmarks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5330155360
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5330115270)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c5330115270-1654-8qh9g 6.12.85+ #1 SMP Wed Jun 17 20:31:55 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (de80dd75426b4b7e87d2314fca8eacfafb06e785) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..de80dd75426b4b7e87d2314fca8eacfafb06e785)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpcds
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5330480037
run benchmark tpch10
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5338769256
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5338739851)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c5338739851-1726-jh25t 6.12.85+ #1 SMP Wed Jun 17 20:31:55 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (636b45559c959d6b90c854c52f176a50a7695a60) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..636b45559c959d6b90c854c52f176a50a7695a60)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpcds
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5339139063
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5339123862)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c5339123862-1736-564b7 6.12.85+ #1 SMP Wed Jun 17 20:31:55 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (636b45559c959d6b90c854c52f176a50a7695a60) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..636b45559c959d6b90c854c52f176a50a7695a60)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpcds
env:
PREFER_HASH_JOIN: "false"
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5330354630
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5330114082)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (de80dd75426b4b7e87d2314fca8eacfafb06e785) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..de80dd75426b4b7e87d2314fca8eacfafb06e785)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpcds
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 5.55 ms │ 5.78 ms │ no change │
│ QQuery 2 │ 79.93 ms │ 80.39 ms │ no change │
│ QQuery 3 │ 28.97 ms │ 25.92 ms │ +1.12x faster │
│ QQuery 4 │ 476.37 ms │ 483.94 ms │ no change │
│ QQuery 5 │ 52.10 ms │ 52.47 ms │ no change │
│ QQuery 6 │ 36.47 ms │ 36.84 ms │ no change │
│ QQuery 7 │ 94.27 ms │ 80.90 ms │ +1.17x faster │
│ QQuery 8 │ 36.35 ms │ 36.87 ms │ no change │
│ QQuery 9 │ 52.17 ms │ 51.34 ms │ no change │
│ QQuery 10 │ 62.26 ms │ 63.12 ms │ no change │
│ QQuery 11 │ 293.73 ms │ 237.69 ms │ +1.24x faster │
│ QQuery 12 │ 28.45 ms │ 28.40 ms │ no change │
│ QQuery 13 │ 117.70 ms │ 118.39 ms │ no change │
│ QQuery 14 │ 415.83 ms │ 368.55 ms │ +1.13x faster │
│ QQuery 15 │ 57.10 ms │ 20.78 ms │ +2.75x faster │
│ QQuery 16 │ 6.72 ms │ 7.03 ms │ no change │
│ QQuery 17 │ 79.46 ms │ 60.33 ms │ +1.32x faster │
│ QQuery 18 │ 123.31 ms │ 118.64 ms │ no change │
│ QQuery 19 │ 41.39 ms │ 42.40 ms │ no change │
│ QQuery 20 │ 35.33 ms │ 35.61 ms │ no change │
│ QQuery 21 │ 17.31 ms │ 13.21 ms │ +1.31x faster │
│ QQuery 22 │ 62.93 ms │ 62.62 ms │ no change │
│ QQuery 23 │ 343.32 ms │ 289.55 ms │ +1.19x faster │
│ QQuery 24 │ 222.55 ms │ 162.12 ms │ +1.37x faster │
│ QQuery 25 │ 109.29 ms │ 78.65 ms │ +1.39x faster │
│ QQuery 26 │ 57.38 ms │ 57.14 ms │ no change │
│ QQuery 27 │ 6.33 ms │ 6.46 ms │ no change │
│ QQuery 28 │ 58.25 ms │ 57.23 ms │ no change │
│ QQuery 29 │ 96.89 ms │ 66.07 ms │ +1.47x faster │
│ QQuery 30 │ 32.22 ms │ 33.08 ms │ no change │
│ QQuery 31 │ 111.05 ms │ 111.34 ms │ no change │
│ QQuery 32 │ 19.93 ms │ 20.54 ms │ no change │
│ QQuery 33 │ 37.49 ms │ 38.42 ms │ no change │
│ QQuery 34 │ 9.94 ms │ 6.15 ms │ +1.62x faster │
│ QQuery 35 │ 71.96 ms │ 73.79 ms │ no change │
│ QQuery 36 │ 5.88 ms │ 5.92 ms │ no change │
│ QQuery 37 │ 6.81 ms │ 6.89 ms │ no change │
│ QQuery 38 │ 61.40 ms │ 62.20 ms │ no change │
│ QQuery 39 │ 90.45 ms │ 78.67 ms │ +1.15x faster │
│ QQuery 40 │ 23.34 ms │ 22.19 ms │ no change │
│ QQuery 41 │ 11.25 ms │ 11.21 ms │ no change │
│ QQuery 42 │ 23.63 ms │ 26.56 ms │ 1.12x slower │
│ QQuery 43 │ 5.15 ms │ 5.09 ms │ no change │
│ QQuery 44 │ 9.33 ms │ 9.59 ms │ no change │
│ QQuery 45 │ 37.57 ms │ 23.16 ms │ +1.62x faster │
│ QQuery 46 │ 11.86 ms │ 8.24 ms │ +1.44x faster │
│ QQuery 47 │ 225.14 ms │ 228.81 ms │ no change │
│ QQuery 48 │ 94.79 ms │ 97.10 ms │ no change │
│ QQuery 49 │ 76.32 ms │ 72.56 ms │ no change │
│ QQuery 50 │ 58.18 ms │ 53.81 ms │ +1.08x faster │
│ QQuery 51 │ 91.87 ms │ 91.11 ms │ no change │
│ QQuery 52 │ 24.10 ms │ 26.57 ms │ 1.10x slower │
│ QQuery 53 │ 28.96 ms │ 29.27 ms │ no change │
│ QQuery 54 │ 54.22 ms │ 24.74 ms │ +2.19x faster │
│ QQuery 55 │ 23.54 ms │ 25.75 ms │ 1.09x slower │
│ QQuery 56 │ 39.50 ms │ 41.78 ms │ 1.06x slower │
│ QQuery 57 │ 176.96 ms │ 177.33 ms │ no change │
│ QQuery 58 │ 111.60 ms │ 51.64 ms │ +2.16x faster │
│ QQuery 59 │ 117.01 ms │ 116.96 ms │ no change │
│ QQuery 60 │ 39.18 ms │ 39.81 ms │ no change │
│ QQuery 61 │ 12.14 ms │ 10.82 ms │ +1.12x faster │
│ QQuery 62 │ 46.11 ms │ 30.62 ms │ +1.51x faster │
│ QQuery 63 │ 29.25 ms │ 29.18 ms │ no change │
│ QQuery 64 │ 406.30 ms │ 237.03 ms │ +1.71x faster │
│ QQuery 65 │ 124.84 ms │ 122.97 ms │ no change │
│ QQuery 66 │ 81.86 ms │ 67.68 ms │ +1.21x faster │
│ QQuery 67 │ 240.77 ms │ 240.35 ms │ no change │
│ QQuery 68 │ 11.95 ms │ 7.83 ms │ +1.53x faster │
│ QQuery 69 │ 56.64 ms │ 62.03 ms │ 1.10x slower │
│ QQuery 70 │ 106.02 ms │ 77.63 ms │ +1.37x faster │
│ QQuery 71 │ 34.97 ms │ 34.85 ms │ no change │
│ QQuery 72 │ 2022.39 ms │ 80.16 ms │ +25.23x faster │
│ QQuery 73 │ 9.55 ms │ 6.07 ms │ +1.57x faster │
│ QQuery 74 │ 167.40 ms │ 171.82 ms │ no change │
│ QQuery 75 │ 149.61 ms │ 148.91 ms │ no change │
│ QQuery 76 │ 35.31 ms │ 35.51 ms │ no change │
│ QQuery 77 │ 61.86 ms │ 62.21 ms │ no change │
│ QQuery 78 │ 197.76 ms │ 196.10 ms │ no change │
│ QQuery 79 │ 66.60 ms │ 69.02 ms │ no change │
│ QQuery 80 │ 99.83 ms │ 99.70 ms │ no change │
│ QQuery 81 │ 26.12 ms │ 25.60 ms │ no change │
│ QQuery 82 │ 16.44 ms │ 16.37 ms │ no change │
│ QQuery 83 │ 40.20 ms │ 23.09 ms │ +1.74x faster │
│ QQuery 84 │ 30.12 ms │ 37.89 ms │ 1.26x slower │
│ QQuery 85 │ 106.59 ms │ 104.87 ms │ no change │
│ QQuery 86 │ 25.45 ms │ 25.00 ms │ no change │
│ QQuery 87 │ 62.95 ms │ 61.61 ms │ no change │
│ QQuery 88 │ 62.62 ms │ 57.80 ms │ +1.08x faster │
│ QQuery 89 │ 35.28 ms │ 35.43 ms │ no change │
│ QQuery 90 │ 17.10 ms │ 14.69 ms │ +1.16x faster │
│ QQuery 91 │ 45.44 ms │ 40.89 ms │ +1.11x faster │
│ QQuery 92 │ 29.37 ms │ 28.81 ms │ no change │
│ QQuery 93 │ 49.20 ms │ 49.61 ms │ no change │
│ QQuery 94 │ 37.09 ms │ 38.25 ms │ no change │
│ QQuery 95 │ 79.20 ms │ 81.50 ms │ no change │
│ QQuery 96 │ 23.82 ms │ 21.34 ms │ +1.12x faster │
│ QQuery 97 │ 46.98 ms │ 47.05 ms │ no change │
│ QQuery 98 │ 42.58 ms │ 42.51 ms │ no change │
│ QQuery 99 │ 70.02 ms │ 45.25 ms │ +1.55x faster │
└───────────┴────────────┴─────────────────────────────┴────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD) │ 9636.10ms │
│ Total Time (perf_join-order-enumeration) │ 6956.74ms │
│ Average Time (HEAD) │ 97.33ms │
│ Average Time (perf_join-order-enumeration) │ 70.27ms │
│ Queries Faster │ 32 │
│ Queries Slower │ 6 │
│ Queries with No Change │ 61 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴───────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 5.55 / 6.10 ±0.95 / 8.00 ms │ 5.78 / 6.26 ±0.90 / 8.06 ms │ no change │
│ QQuery 2 │ 79.93 / 80.18 ±0.38 / 80.94 ms │ 80.39 / 80.63 ±0.26 / 81.11 ms │ no change │
│ QQuery 3 │ 28.97 / 29.26 ±0.15 / 29.41 ms │ 25.92 / 26.31 ±0.27 / 26.56 ms │ +1.11x faster │
│ QQuery 4 │ 476.37 / 483.55 ±4.04 / 488.82 ms │ 483.94 / 486.75 ±2.17 / 489.15 ms │ no change │
│ QQuery 5 │ 52.10 / 55.27 ±4.48 / 64.15 ms │ 52.47 / 54.66 ±2.98 / 60.54 ms │ no change │
│ QQuery 6 │ 36.47 / 36.97 ±0.42 / 37.68 ms │ 36.84 / 37.13 ±0.29 / 37.69 ms │ no change │
│ QQuery 7 │ 94.27 / 94.75 ±0.57 / 95.85 ms │ 80.90 / 81.35 ±0.31 / 81.84 ms │ +1.16x faster │
│ QQuery 8 │ 36.35 / 37.75 ±2.08 / 41.87 ms │ 36.87 / 38.53 ±2.28 / 43.07 ms │ no change │
│ QQuery 9 │ 52.17 / 53.68 ±1.60 / 56.56 ms │ 51.34 / 53.43 ±1.47 / 55.87 ms │ no change │
│ QQuery 10 │ 62.26 / 62.65 ±0.35 / 63.31 ms │ 63.12 / 63.78 ±0.41 / 64.22 ms │ no change │
│ QQuery 11 │ 293.73 / 299.46 ±6.05 / 310.78 ms │ 237.69 / 242.99 ±4.42 / 249.55 ms │ +1.23x faster │
│ QQuery 12 │ 28.45 / 29.20 ±0.52 / 29.96 ms │ 28.40 / 28.83 ±0.37 / 29.39 ms │ no change │
│ QQuery 13 │ 117.70 / 118.33 ±0.66 / 119.57 ms │ 118.39 / 119.86 ±1.50 / 122.73 ms │ no change │
│ QQuery 14 │ 415.83 / 420.26 ±3.87 / 426.78 ms │ 368.55 / 371.52 ±2.91 / 376.35 ms │ +1.13x faster │
│ QQuery 15 │ 57.10 / 58.06 ±0.79 / 59.00 ms │ 20.78 / 21.01 ±0.19 / 21.25 ms │ +2.76x faster │
│ QQuery 16 │ 6.72 / 6.93 ±0.20 / 7.30 ms │ 7.03 / 7.17 ±0.14 / 7.43 ms │ no change │
│ QQuery 17 │ 79.46 / 80.38 ±0.69 / 81.26 ms │ 60.33 / 61.84 ±1.70 / 65.14 ms │ +1.30x faster │
│ QQuery 18 │ 123.31 / 126.53 ±2.90 / 130.37 ms │ 118.64 / 121.17 ±2.39 / 124.62 ms │ no change │
│ QQuery 19 │ 41.39 / 41.55 ±0.15 / 41.78 ms │ 42.40 / 43.19 ±1.16 / 45.50 ms │ no change │
│ QQuery 20 │ 35.33 / 36.13 ±0.47 / 36.52 ms │ 35.61 / 36.64 ±0.73 / 37.88 ms │ no change │
│ QQuery 21 │ 17.31 / 17.53 ±0.13 / 17.69 ms │ 13.21 / 13.60 ±0.41 / 14.25 ms │ +1.29x faster │
│ QQuery 22 │ 62.93 / 63.63 ±0.62 / 64.55 ms │ 62.62 / 63.40 ±0.97 / 65.23 ms │ no change │
│ QQuery 23 │ 343.32 / 346.29 ±2.30 / 349.86 ms │ 289.55 / 291.59 ±1.69 / 293.69 ms │ +1.19x faster │
│ QQuery 24 │ 222.55 / 224.09 ±1.30 / 226.18 ms │ 162.12 / 163.37 ±0.93 / 164.46 ms │ +1.37x faster │
│ QQuery 25 │ 109.29 / 110.60 ±1.51 / 113.49 ms │ 78.65 / 80.41 ±2.65 / 85.68 ms │ +1.38x faster │
│ QQuery 26 │ 57.38 / 58.89 ±1.98 / 62.76 ms │ 57.14 / 57.78 ±0.86 / 59.49 ms │ no change │
│ QQuery 27 │ 6.33 / 6.48 ±0.17 / 6.81 ms │ 6.46 / 6.63 ±0.19 / 6.99 ms │ no change │
│ QQuery 28 │ 58.25 / 61.00 ±1.71 / 63.54 ms │ 57.23 / 60.48 ±2.29 / 62.93 ms │ no change │
│ QQuery 29 │ 96.89 / 97.76 ±1.19 / 100.11 ms │ 66.07 / 67.72 ±2.34 / 72.36 ms │ +1.44x faster │
│ QQuery 30 │ 32.22 / 33.82 ±2.99 / 39.81 ms │ 33.08 / 34.24 ±1.03 / 36.03 ms │ no change │
│ QQuery 31 │ 111.05 / 112.25 ±0.86 / 113.71 ms │ 111.34 / 112.02 ±0.54 / 112.80 ms │ no change │
│ QQuery 32 │ 19.93 / 20.27 ±0.32 / 20.85 ms │ 20.54 / 21.44 ±1.50 / 24.42 ms │ 1.06x slower │
│ QQuery 33 │ 37.49 / 37.93 ±0.26 / 38.17 ms │ 38.42 / 39.22 ±0.67 / 40.41 ms │ no change │
│ QQuery 34 │ 9.94 / 10.15 ±0.15 / 10.38 ms │ 6.15 / 6.29 ±0.20 / 6.70 ms │ +1.61x faster │
│ QQuery 35 │ 71.96 / 73.14 ±1.20 / 75.27 ms │ 73.79 / 74.63 ±0.98 / 76.49 ms │ no change │
│ QQuery 36 │ 5.88 / 6.05 ±0.18 / 6.40 ms │ 5.92 / 6.09 ±0.19 / 6.45 ms │ no change │
│ QQuery 37 │ 6.81 / 6.89 ±0.06 / 6.96 ms │ 6.89 / 7.05 ±0.11 / 7.20 ms │ no change │
│ QQuery 38 │ 61.40 / 62.38 ±0.77 / 63.67 ms │ 62.20 / 62.83 ±0.46 / 63.43 ms │ no change │
│ QQuery 39 │ 90.45 / 92.58 ±1.96 / 95.51 ms │ 78.67 / 80.05 ±1.80 / 83.58 ms │ +1.16x faster │
│ QQuery 40 │ 23.34 / 24.53 ±1.23 / 26.83 ms │ 22.19 / 22.51 ±0.32 / 23.07 ms │ +1.09x faster │
│ QQuery 41 │ 11.25 / 11.36 ±0.12 / 11.59 ms │ 11.21 / 11.35 ±0.15 / 11.61 ms │ no change │
│ QQuery 42 │ 23.63 / 24.50 ±0.71 / 25.72 ms │ 26.56 / 26.73 ±0.16 / 26.93 ms │ 1.09x slower │
│ QQuery 43 │ 5.15 / 5.24 ±0.08 / 5.39 ms │ 5.09 / 5.27 ±0.17 / 5.59 ms │ no change │
│ QQuery 44 │ 9.33 / 9.52 ±0.14 / 9.72 ms │ 9.59 / 9.67 ±0.07 / 9.74 ms │ no change │
│ QQuery 45 │ 37.57 / 38.08 ±0.40 / 38.61 ms │ 23.16 / 23.60 ±0.32 / 23.97 ms │ +1.61x faster │
│ QQuery 46 │ 11.86 / 12.33 ±0.58 / 13.44 ms │ 8.24 / 8.36 ±0.14 / 8.63 ms │ +1.48x faster │
│ QQuery 47 │ 225.14 / 229.06 ±2.66 / 232.76 ms │ 228.81 / 233.64 ±4.42 / 240.20 ms │ no change │
│ QQuery 48 │ 94.79 / 96.03 ±0.97 / 97.42 ms │ 97.10 / 97.96 ±0.87 / 99.52 ms │ no change │
│ QQuery 49 │ 76.32 / 77.30 ±0.55 / 77.92 ms │ 72.56 / 73.16 ±0.42 / 73.68 ms │ +1.06x faster │
│ QQuery 50 │ 58.18 / 60.41 ±3.06 / 66.42 ms │ 53.81 / 55.53 ±2.20 / 59.68 ms │ +1.09x faster │
│ QQuery 51 │ 91.87 / 94.06 ±1.47 / 96.36 ms │ 91.11 / 94.00 ±2.78 / 99.12 ms │ no change │
│ QQuery 52 │ 24.10 / 24.33 ±0.21 / 24.64 ms │ 26.57 / 26.87 ±0.18 / 27.11 ms │ 1.10x slower │
│ QQuery 53 │ 28.96 / 29.13 ±0.11 / 29.30 ms │ 29.27 / 29.34 ±0.08 / 29.49 ms │ no change │
│ QQuery 54 │ 54.22 / 56.82 ±4.58 / 65.98 ms │ 24.74 / 26.14 ±2.25 / 30.63 ms │ +2.17x faster │
│ QQuery 55 │ 23.54 / 24.04 ±0.50 / 24.78 ms │ 25.75 / 26.17 ±0.42 / 26.79 ms │ 1.09x slower │
│ QQuery 56 │ 39.50 / 39.94 ±0.39 / 40.62 ms │ 41.78 / 42.89 ±1.61 / 46.07 ms │ 1.07x slower │
│ QQuery 57 │ 176.96 / 178.84 ±2.78 / 184.28 ms │ 177.33 / 178.94 ±1.19 / 180.58 ms │ no change │
│ QQuery 58 │ 111.60 / 113.51 ±1.11 / 114.87 ms │ 51.64 / 52.82 ±0.98 / 54.63 ms │ +2.15x faster │
│ QQuery 59 │ 117.01 / 118.74 ±1.47 / 120.87 ms │ 116.96 / 118.39 ±1.97 / 122.24 ms │ no change │
│ QQuery 60 │ 39.18 / 39.61 ±0.28 / 40.05 ms │ 39.81 / 40.96 ±1.04 / 42.88 ms │ no change │
│ QQuery 61 │ 12.14 / 12.35 ±0.16 / 12.59 ms │ 10.82 / 11.01 ±0.23 / 11.44 ms │ +1.12x faster │
│ QQuery 62 │ 46.11 / 46.36 ±0.30 / 46.88 ms │ 30.62 / 30.79 ±0.11 / 30.90 ms │ +1.51x faster │
│ QQuery 63 │ 29.25 / 31.03 ±2.68 / 36.36 ms │ 29.18 / 29.48 ±0.29 / 29.89 ms │ no change │
│ QQuery 64 │ 406.30 / 408.83 ±1.70 / 411.43 ms │ 237.03 / 240.77 ±2.80 / 244.47 ms │ +1.70x faster │
│ QQuery 65 │ 124.84 / 127.20 ±2.34 / 131.49 ms │ 122.97 / 125.67 ±2.30 / 129.20 ms │ no change │
│ QQuery 66 │ 81.86 / 83.81 ±3.21 / 90.22 ms │ 67.68 / 68.12 ±0.36 / 68.71 ms │ +1.23x faster │
│ QQuery 67 │ 240.77 / 244.62 ±4.25 / 252.30 ms │ 240.35 / 243.49 ±2.56 / 247.55 ms │ no change │
│ QQuery 68 │ 11.95 / 12.10 ±0.20 / 12.50 ms │ 7.83 / 8.10 ±0.33 / 8.74 ms │ +1.49x faster │
│ QQuery 69 │ 56.64 / 56.81 ±0.19 / 57.16 ms │ 62.03 / 64.76 ±4.00 / 72.55 ms │ 1.14x slower │
│ QQuery 70 │ 106.02 / 112.51 ±8.46 / 128.81 ms │ 77.63 / 78.13 ±0.43 / 78.64 ms │ +1.44x faster │
│ QQuery 71 │ 34.97 / 35.34 ±0.31 / 35.78 ms │ 34.85 / 35.84 ±1.43 / 38.68 ms │ no change │
│ QQuery 72 │ 2022.39 / 2052.21 ±17.50 / 2075.36 ms │ 80.16 / 82.12 ±1.98 / 85.43 ms │ +24.99x faster │
│ QQuery 73 │ 9.55 / 9.83 ±0.26 / 10.31 ms │ 6.07 / 6.18 ±0.19 / 6.55 ms │ +1.59x faster │
│ QQuery 74 │ 167.40 / 170.70 ±2.45 / 174.96 ms │ 171.82 / 173.51 ±2.02 / 177.07 ms │ no change │
│ QQuery 75 │ 149.61 / 152.69 ±4.27 / 160.91 ms │ 148.91 / 151.37 ±2.93 / 156.88 ms │ no change │
│ QQuery 76 │ 35.31 / 35.75 ±0.35 / 36.28 ms │ 35.51 / 36.27 ±1.35 / 38.96 ms │ no change │
│ QQuery 77 │ 61.86 / 62.39 ±0.33 / 62.71 ms │ 62.21 / 62.61 ±0.26 / 63.02 ms │ no change │
│ QQuery 78 │ 197.76 / 200.79 ±3.01 / 204.46 ms │ 196.10 / 198.98 ±2.32 / 202.45 ms │ no change │
│ QQuery 79 │ 66.60 / 68.63 ±2.62 / 73.80 ms │ 69.02 / 69.64 ±0.46 / 70.44 ms │ no change │
│ QQuery 80 │ 99.83 / 100.60 ±0.91 / 102.18 ms │ 99.70 / 101.96 ±2.02 / 105.07 ms │ no change │
│ QQuery 81 │ 26.12 / 26.39 ±0.15 / 26.59 ms │ 25.60 / 25.83 ±0.17 / 26.10 ms │ no change │
│ QQuery 82 │ 16.44 / 17.98 ±2.08 / 22.09 ms │ 16.37 / 16.66 ±0.21 / 16.87 ms │ +1.08x faster │
│ QQuery 83 │ 40.20 / 43.82 ±4.58 / 52.04 ms │ 23.09 / 23.28 ±0.16 / 23.56 ms │ +1.88x faster │
│ QQuery 84 │ 30.12 / 30.70 ±0.59 / 31.79 ms │ 37.89 / 38.10 ±0.29 / 38.67 ms │ 1.24x slower │
│ QQuery 85 │ 106.59 / 107.19 ±0.58 / 107.93 ms │ 104.87 / 108.41 ±2.62 / 112.37 ms │ no change │
│ QQuery 86 │ 25.45 / 25.84 ±0.28 / 26.17 ms │ 25.00 / 25.35 ±0.22 / 25.65 ms │ no change │
│ QQuery 87 │ 62.95 / 64.13 ±1.21 / 66.33 ms │ 61.61 / 62.54 ±0.85 / 63.97 ms │ no change │
│ QQuery 88 │ 62.62 / 63.27 ±0.47 / 64.06 ms │ 57.80 / 58.88 ±0.57 / 59.41 ms │ +1.07x faster │
│ QQuery 89 │ 35.28 / 35.86 ±0.30 / 36.08 ms │ 35.43 / 36.44 ±0.80 / 37.48 ms │ no change │
│ QQuery 90 │ 17.10 / 17.36 ±0.24 / 17.73 ms │ 14.69 / 14.90 ±0.19 / 15.22 ms │ +1.17x faster │
│ QQuery 91 │ 45.44 / 47.13 ±2.75 / 52.61 ms │ 40.89 / 41.25 ±0.23 / 41.58 ms │ +1.14x faster │
│ QQuery 92 │ 29.37 / 30.42 ±0.63 / 31.32 ms │ 28.81 / 29.34 ±0.37 / 29.95 ms │ no change │
│ QQuery 93 │ 49.20 / 50.98 ±1.12 / 52.18 ms │ 49.61 / 51.11 ±2.24 / 55.57 ms │ no change │
│ QQuery 94 │ 37.09 / 37.90 ±0.49 / 38.34 ms │ 38.25 / 39.06 ±0.77 / 40.27 ms │ no change │
│ QQuery 95 │ 79.20 / 81.50 ±2.40 / 86.05 ms │ 81.50 / 82.55 ±0.94 / 84.01 ms │ no change │
│ QQuery 96 │ 23.82 / 24.83 ±1.29 / 27.37 ms │ 21.34 / 21.45 ±0.08 / 21.58 ms │ +1.16x faster │
│ QQuery 97 │ 46.98 / 47.77 ±0.79 / 49.24 ms │ 47.05 / 48.02 ±0.95 / 49.84 ms │ no change │
│ QQuery 98 │ 42.58 / 42.99 ±0.30 / 43.46 ms │ 42.51 / 43.59 ±0.77 / 44.50 ms │ no change │
│ QQuery 99 │ 70.02 / 72.37 ±3.67 / 79.67 ms │ 45.25 / 45.80 ±0.59 / 46.87 ms │ +1.58x faster │
└───────────┴───────────────────────────────────────┴───────────────────────────────────┴────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD) │ 9799.08ms │
│ Total Time (perf_join-order-enumeration) │ 7067.59ms │
│ Average Time (HEAD) │ 98.98ms │
│ Average Time (perf_join-order-enumeration) │ 71.39ms │
│ Queries Faster │ 35 │
│ Queries Slower │ 7 │
│ Queries with No Change │ 57 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴───────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpcds — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 50.0s |
| Peak memory | 1.9 GiB |
| Avg memory | 1.4 GiB |
| CPU user | 216.8s |
| CPU sys | 6.0s |
| Peak spill | 0 B |
**tpcds — branch**
| Metric | Value |
|--------|-------|
| Wall time | 40.0s |
| Peak memory | 2.4 GiB |
| Avg memory | 1.4 GiB |
| CPU user | 100.2s |
| CPU sys | 4.9s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5338878346
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5338739851)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (636b45559c959d6b90c854c52f176a50a7695a60) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..636b45559c959d6b90c854c52f176a50a7695a60)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 38.32 ms │ 38.48 ms │ no change │
│ QQuery 2 │ 19.16 ms │ 16.60 ms │ +1.15x faster │
│ QQuery 3 │ 31.26 ms │ 31.77 ms │ no change │
│ QQuery 4 │ 17.26 ms │ 17.34 ms │ no change │
│ QQuery 5 │ 36.71 ms │ 39.23 ms │ 1.07x slower │
│ QQuery 6 │ 15.72 ms │ 16.26 ms │ no change │
│ QQuery 7 │ 45.09 ms │ 35.52 ms │ +1.27x faster │
│ QQuery 8 │ 41.89 ms │ 39.70 ms │ +1.06x faster │
│ QQuery 9 │ 48.48 ms │ 47.78 ms │ no change │
│ QQuery 10 │ 41.92 ms │ 41.89 ms │ no change │
│ QQuery 11 │ 13.23 ms │ 13.60 ms │ no change │
│ QQuery 12 │ 23.49 ms │ 23.00 ms │ no change │
│ QQuery 13 │ 32.21 ms │ 32.12 ms │ no change │
│ QQuery 14 │ 22.93 ms │ 23.06 ms │ no change │
│ QQuery 15 │ 30.43 ms │ 30.81 ms │ no change │
│ QQuery 16 │ 13.49 ms │ 13.78 ms │ no change │
│ QQuery 17 │ 68.81 ms │ 71.25 ms │ no change │
│ QQuery 18 │ 58.51 ms │ 42.71 ms │ +1.37x faster │
│ QQuery 19 │ 32.19 ms │ 33.82 ms │ 1.05x slower │
│ QQuery 20 │ 31.15 ms │ 31.59 ms │ no change │
│ QQuery 21 │ 53.67 ms │ 52.11 ms │ no change │
│ QQuery 22 │ 13.87 ms │ 14.08 ms │ no change │
└───────────┴──────────┴─────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD) │ 729.81ms │
│ Total Time (perf_join-order-enumeration) │ 706.50ms │
│ Average Time (HEAD) │ 33.17ms │
│ Average Time (perf_join-order-enumeration) │ 32.11ms │
│ Queries Faster │ 4 │
│ Queries Slower │ 2 │
│ Queries with No Change │ 16 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴──────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 38.32 / 39.13 ±0.94 / 40.83 ms │ 38.48 / 40.44 ±1.10 / 41.59 ms │ no change │
│ QQuery 2 │ 19.16 / 19.36 ±0.18 / 19.57 ms │ 16.60 / 16.86 ±0.23 / 17.21 ms │ +1.15x faster │
│ QQuery 3 │ 31.26 / 32.92 ±0.92 / 33.90 ms │ 31.77 / 33.09 ±0.67 / 33.57 ms │ no change │
│ QQuery 4 │ 17.26 / 17.69 ±0.40 / 18.44 ms │ 17.34 / 17.73 ±0.49 / 18.69 ms │ no change │
│ QQuery 5 │ 36.71 / 38.54 ±1.35 / 40.18 ms │ 39.23 / 41.41 ±1.69 / 43.95 ms │ 1.07x slower │
│ QQuery 6 │ 15.72 / 15.96 ±0.27 / 16.49 ms │ 16.26 / 16.36 ±0.06 / 16.41 ms │ no change │
│ QQuery 7 │ 45.09 / 46.24 ±0.65 / 46.96 ms │ 35.52 / 36.26 ±0.58 / 37.23 ms │ +1.28x faster │
│ QQuery 8 │ 41.89 / 42.58 ±1.14 / 44.85 ms │ 39.70 / 40.21 ±0.60 / 41.36 ms │ +1.06x faster │
│ QQuery 9 │ 48.48 / 51.80 ±2.89 / 57.05 ms │ 47.78 / 49.00 ±1.02 / 50.83 ms │ +1.06x faster │
│ QQuery 10 │ 41.92 / 42.07 ±0.22 / 42.49 ms │ 41.89 / 42.29 ±0.48 / 43.20 ms │ no change │
│ QQuery 11 │ 13.23 / 13.61 ±0.63 / 14.87 ms │ 13.60 / 13.70 ±0.08 / 13.84 ms │ no change │
│ QQuery 12 │ 23.49 / 23.79 ±0.22 / 24.16 ms │ 23.00 / 23.82 ±0.85 / 25.24 ms │ no change │
│ QQuery 13 │ 32.21 / 33.23 ±0.86 / 34.30 ms │ 32.12 / 32.76 ±0.74 / 34.17 ms │ no change │
│ QQuery 14 │ 22.93 / 23.19 ±0.25 / 23.64 ms │ 23.06 / 23.66 ±0.82 / 25.30 ms │ no change │
│ QQuery 15 │ 30.43 / 31.86 ±0.77 / 32.78 ms │ 30.81 / 31.33 ±0.77 / 32.86 ms │ no change │
│ QQuery 16 │ 13.49 / 13.63 ±0.13 / 13.85 ms │ 13.78 / 13.92 ±0.11 / 14.08 ms │ no change │
│ QQuery 17 │ 68.81 / 70.36 ±1.02 / 71.81 ms │ 71.25 / 72.31 ±0.96 / 73.79 ms │ no change │
│ QQuery 18 │ 58.51 / 60.27 ±1.35 / 61.83 ms │ 42.71 / 43.86 ±0.93 / 45.31 ms │ +1.37x faster │
│ QQuery 19 │ 32.19 / 32.43 ±0.26 / 32.92 ms │ 33.82 / 34.66 ±0.92 / 36.45 ms │ 1.07x slower │
│ QQuery 20 │ 31.15 / 31.35 ±0.15 / 31.59 ms │ 31.59 / 31.85 ±0.18 / 32.11 ms │ no change │
│ QQuery 21 │ 53.67 / 54.93 ±1.21 / 57.01 ms │ 52.11 / 54.25 ±1.59 / 56.37 ms │ no change │
│ QQuery 22 │ 13.87 / 13.93 ±0.07 / 14.06 ms │ 14.08 / 14.15 ±0.09 / 14.33 ms │ no change │
└───────────┴────────────────────────────────┴────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD) │ 748.87ms │
│ Total Time (perf_join-order-enumeration) │ 723.91ms │
│ Average Time (HEAD) │ 34.04ms │
│ Average Time (perf_join-order-enumeration) │ 32.91ms │
│ Queries Faster │ 5 │
│ Queries Slower │ 2 │
│ Queries with No Change │ 15 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴──────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpch — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 1.2 GiB |
| Avg memory | 518.6 MiB |
| CPU user | 21.1s |
| CPU sys | 1.7s |
| Peak spill | 0 B |
**tpch — branch**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 1.0 GiB |
| Avg memory | 473.1 MiB |
| CPU user | 20.0s |
| CPU sys | 1.6s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5345928962
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5345789291)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (4c344867b2cf5edb1ec55ccf6fa138009a7609a7) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..4c344867b2cf5edb1ec55ccf6fa138009a7609a7)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch
env:
PREFER_HASH_JOIN: "false"
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 38.88 ms │ 38.43 ms │ no change │
│ QQuery 2 │ 19.35 ms │ 16.60 ms │ +1.17x faster │
│ QQuery 3 │ 31.77 ms │ 28.09 ms │ +1.13x faster │
│ QQuery 4 │ 17.58 ms │ 17.42 ms │ no change │
│ QQuery 5 │ 37.03 ms │ 31.59 ms │ +1.17x faster │
│ QQuery 6 │ 15.85 ms │ 16.03 ms │ no change │
│ QQuery 7 │ 43.57 ms │ 33.86 ms │ +1.29x faster │
│ QQuery 8 │ 42.30 ms │ 39.60 ms │ +1.07x faster │
│ QQuery 9 │ 49.75 ms │ 48.34 ms │ no change │
│ QQuery 10 │ 41.98 ms │ 41.89 ms │ no change │
│ QQuery 11 │ 13.24 ms │ 13.35 ms │ no change │
│ QQuery 12 │ 23.77 ms │ 23.05 ms │ no change │
│ QQuery 13 │ 31.82 ms │ 31.81 ms │ no change │
│ QQuery 14 │ 23.21 ms │ 24.15 ms │ no change │
│ QQuery 15 │ 30.76 ms │ 30.78 ms │ no change │
│ QQuery 16 │ 13.86 ms │ 13.99 ms │ no change │
│ QQuery 17 │ 69.75 ms │ 69.66 ms │ no change │
│ QQuery 18 │ 58.93 ms │ 59.20 ms │ no change │
│ QQuery 19 │ 32.41 ms │ 34.95 ms │ 1.08x slower │
│ QQuery 20 │ 31.56 ms │ 34.20 ms │ 1.08x slower │
│ QQuery 21 │ 55.24 ms │ 58.10 ms │ 1.05x slower │
│ QQuery 22 │ 13.53 ms │ 15.23 ms │ 1.13x slower │
└───────────┴──────────┴─────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD) │ 736.14ms │
│ Total Time (perf_join-order-enumeration) │ 720.32ms │
│ Average Time (HEAD) │ 33.46ms │
│ Average Time (perf_join-order-enumeration) │ 32.74ms │
│ Queries Faster │ 5 │
│ Queries Slower │ 4 │
│ Queries with No Change │ 13 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴──────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 38.88 / 40.19 ±0.99 / 41.41 ms │ 38.43 / 39.70 ±2.23 / 44.15 ms │ no change │
│ QQuery 2 │ 19.35 / 19.85 ±0.35 / 20.38 ms │ 16.60 / 16.96 ±0.36 / 17.64 ms │ +1.17x faster │
│ QQuery 3 │ 31.77 / 33.35 ±0.86 / 34.35 ms │ 28.09 / 28.51 ±0.37 / 29.19 ms │ +1.17x faster │
│ QQuery 4 │ 17.58 / 17.74 ±0.12 / 17.89 ms │ 17.42 / 17.54 ±0.08 / 17.65 ms │ no change │
│ QQuery 5 │ 37.03 / 39.57 ±1.30 / 40.64 ms │ 31.59 / 32.01 ±0.35 / 32.47 ms │ +1.24x faster │
│ QQuery 6 │ 15.85 / 16.45 ±0.73 / 17.88 ms │ 16.03 / 16.26 ±0.29 / 16.82 ms │ no change │
│ QQuery 7 │ 43.57 / 45.01 ±1.68 / 47.62 ms │ 33.86 / 34.66 ±0.99 / 36.33 ms │ +1.30x faster │
│ QQuery 8 │ 42.30 / 42.44 ±0.09 / 42.57 ms │ 39.60 / 40.49 ±1.04 / 42.04 ms │ no change │
│ QQuery 9 │ 49.75 / 50.49 ±1.15 / 52.76 ms │ 48.34 / 49.06 ±0.41 / 49.48 ms │ no change │
│ QQuery 10 │ 41.98 / 42.24 ±0.28 / 42.79 ms │ 41.89 / 42.41 ±0.53 / 43.43 ms │ no change │
│ QQuery 11 │ 13.24 / 13.52 ±0.17 / 13.74 ms │ 13.35 / 13.64 ±0.23 / 13.99 ms │ no change │
│ QQuery 12 │ 23.77 / 24.10 ±0.19 / 24.31 ms │ 23.05 / 24.09 ±1.02 / 25.46 ms │ no change │
│ QQuery 13 │ 31.82 / 33.21 ±1.32 / 35.70 ms │ 31.81 / 32.81 ±0.84 / 33.94 ms │ no change │
│ QQuery 14 │ 23.21 / 24.02 ±1.25 / 26.51 ms │ 24.15 / 24.87 ±1.15 / 27.16 ms │ no change │
│ QQuery 15 │ 30.76 / 31.26 ±0.57 / 32.38 ms │ 30.78 / 31.61 ±1.10 / 33.77 ms │ no change │
│ QQuery 16 │ 13.86 / 14.05 ±0.17 / 14.29 ms │ 13.99 / 14.19 ±0.18 / 14.43 ms │ no change │
│ QQuery 17 │ 69.75 / 70.98 ±1.19 / 73.01 ms │ 69.66 / 70.58 ±0.61 / 71.54 ms │ no change │
│ QQuery 18 │ 58.93 / 60.09 ±1.01 / 61.57 ms │ 59.20 / 59.81 ±0.70 / 61.02 ms │ no change │
│ QQuery 19 │ 32.41 / 32.82 ±0.33 / 33.29 ms │ 34.95 / 36.07 ±0.61 / 36.80 ms │ 1.10x slower │
│ QQuery 20 │ 31.56 / 31.92 ±0.23 / 32.14 ms │ 34.20 / 34.45 ±0.17 / 34.67 ms │ 1.08x slower │
│ QQuery 21 │ 55.24 / 57.47 ±1.90 / 60.19 ms │ 58.10 / 59.64 ±1.31 / 61.60 ms │ no change │
│ QQuery 22 │ 13.53 / 13.95 ±0.25 / 14.20 ms │ 15.23 / 15.41 ±0.22 / 15.83 ms │ 1.10x slower │
└───────────┴────────────────────────────────┴────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD) │ 754.72ms │
│ Total Time (perf_join-order-enumeration) │ 734.77ms │
│ Average Time (HEAD) │ 34.31ms │
│ Average Time (perf_join-order-enumeration) │ 33.40ms │
│ Queries Faster │ 4 │
│ Queries Slower │ 3 │
│ Queries with No Change │ 15 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴──────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpch — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 1.2 GiB |
| Avg memory | 533.2 MiB |
| CPU user | 21.6s |
| CPU sys | 1.7s |
| Peak spill | 0 B |
**tpch — branch**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 1.1 GiB |
| Avg memory | 477.8 MiB |
| CPU user | 20.3s |
| CPU sys | 1.6s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5347720280
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5347556113)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (cf466cab6fbd6e728914b060d932a8bebc6ec8dd) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..cf466cab6fbd6e728914b060d932a8bebc6ec8dd)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpcds
env:
PREFER_HASH_JOIN: "false"
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 24.12 ms │ 24.01 ms │ no change │
│ QQuery 2 │ 80.07 ms │ 79.49 ms │ no change │
│ QQuery 3 │ 50.83 ms │ 44.50 ms │ +1.14x faster │
│ QQuery 4 │ 795.61 ms │ 595.34 ms │ +1.34x faster │
│ QQuery 5 │ 106.32 ms │ 104.49 ms │ no change │
│ QQuery 6 │ 70.36 ms │ 70.26 ms │ no change │
│ QQuery 7 │ 123.23 ms │ 122.34 ms │ no change │
│ QQuery 8 │ 66.32 ms │ 66.40 ms │ no change │
│ QQuery 9 │ 53.04 ms │ 51.40 ms │ no change │
│ QQuery 10 │ 135.50 ms │ 136.36 ms │ no change │
│ QQuery 11 │ 421.61 ms │ 295.34 ms │ +1.43x faster │
│ QQuery 12 │ 33.11 ms │ 32.46 ms │ no change │
│ QQuery 13 │ 124.61 ms │ 122.44 ms │ no change │
│ QQuery 14 │ 831.76 ms │ 659.24 ms │ +1.26x faster │
│ QQuery 15 │ 57.58 ms │ 40.81 ms │ +1.41x faster │
│ QQuery 16 │ 78.32 ms │ 78.13 ms │ no change │
│ QQuery 17 │ 169.83 ms │ 159.92 ms │ +1.06x faster │
│ QQuery 18 │ 154.57 ms │ 173.37 ms │ 1.12x slower │
│ QQuery 19 │ 76.13 ms │ 75.16 ms │ no change │
│ QQuery 20 │ 45.53 ms │ 45.62 ms │ no change │
│ QQuery 21 │ 405.58 ms │ 81.08 ms │ +5.00x faster │
│ QQuery 22 │ 100.46 ms │ 99.71 ms │ no change │
│ QQuery 23 │ 557.52 ms │ 471.25 ms │ +1.18x faster │
│ QQuery 24 │ 347.41 ms │ 399.63 ms │ 1.15x slower │
│ QQuery 25 │ 190.01 ms │ 155.95 ms │ +1.22x faster │
│ QQuery 26 │ 103.21 ms │ 101.96 ms │ no change │
│ QQuery 27 │ 124.22 ms │ 123.10 ms │ no change │
│ QQuery 28 │ 57.39 ms │ 58.38 ms │ no change │
│ QQuery 29 │ 168.64 ms │ 137.17 ms │ +1.23x faster │
│ QQuery 30 │ 47.32 ms │ 46.24 ms │ no change │
│ QQuery 31 │ 239.03 ms │ 237.84 ms │ no change │
│ QQuery 32 │ 67.99 ms │ 67.77 ms │ no change │
│ QQuery 33 │ 71.86 ms │ 69.62 ms │ no change │
│ QQuery 34 │ 69.68 ms │ 69.52 ms │ no change │
│ QQuery 35 │ 124.48 ms │ 124.57 ms │ no change │
│ QQuery 36 │ 86.25 ms │ 86.46 ms │ no change │
│ QQuery 37 │ 32.76 ms │ 32.69 ms │ no change │
│ QQuery 38 │ 97.88 ms │ 97.56 ms │ no change │
│ QQuery 39 │ 1618.09 ms │ 340.25 ms │ +4.76x faster │
│ QQuery 40 │ 106.21 ms │ 67.84 ms │ +1.57x faster │
│ QQuery 41 │ 11.42 ms │ 11.37 ms │ no change │
│ QQuery 42 │ 50.14 ms │ 50.37 ms │ no change │
│ QQuery 43 │ 56.60 ms │ 56.61 ms │ no change │
│ QQuery 44 │ 12.62 ms │ 12.35 ms │ no change │
│ QQuery 45 │ 47.27 ms │ 37.14 ms │ +1.27x faster │
│ QQuery 46 │ 119.98 ms │ 121.23 ms │ no change │
│ QQuery 47 │ 361.95 ms │ 359.61 ms │ no change │
│ QQuery 48 │ 123.95 ms │ 127.43 ms │ no change │
│ QQuery 49 │ 80.65 ms │ 81.64 ms │ no change │
│ QQuery 50 │ 89.76 ms │ 91.51 ms │ no change │
│ QQuery 51 │ 122.13 ms │ 123.57 ms │ no change │
│ QQuery 52 │ 49.65 ms │ 49.90 ms │ no change │
│ QQuery 53 │ 54.25 ms │ 54.27 ms │ no change │
│ QQuery 54 │ 97.44 ms │ 97.82 ms │ no change │
│ QQuery 55 │ 47.45 ms │ 47.67 ms │ no change │
│ QQuery 56 │ 72.81 ms │ 74.07 ms │ no change │
│ QQuery 57 │ 223.86 ms │ 221.88 ms │ no change │
│ QQuery 58 │ 188.14 ms │ 120.45 ms │ +1.56x faster │
│ QQuery 59 │ 121.31 ms │ 121.15 ms │ no change │
│ QQuery 60 │ 73.05 ms │ 72.07 ms │ no change │
│ QQuery 61 │ 100.60 ms │ 93.60 ms │ +1.07x faster │
│ QQuery 62 │ 66.79 ms │ 38.91 ms │ +1.72x faster │
│ QQuery 63 │ 54.59 ms │ 54.46 ms │ no change │
│ QQuery 64 │ 675.44 ms │ 695.86 ms │ no change │
│ QQuery 65 │ 111.87 ms │ 112.04 ms │ no change │
│ QQuery 66 │ 172.54 ms │ 109.92 ms │ +1.57x faster │
│ QQuery 67 │ 135.52 ms │ 137.07 ms │ no change │
│ QQuery 68 │ 126.81 ms │ 128.85 ms │ no change │
│ QQuery 69 │ 129.87 ms │ 128.42 ms │ no change │
│ QQuery 70 │ 204.78 ms │ 179.37 ms │ +1.14x faster │
│ QQuery 71 │ 65.39 ms │ 66.80 ms │ no change │
│ QQuery 72 │ 6531.20 ms │ 188.92 ms │ +34.57x faster │
│ QQuery 73 │ 69.59 ms │ 67.17 ms │ no change │
│ QQuery 74 │ 280.14 ms │ 206.31 ms │ +1.36x faster │
│ QQuery 75 │ 217.84 ms │ 206.70 ms │ +1.05x faster │
│ QQuery 76 │ 38.84 ms │ 38.02 ms │ no change │
│ QQuery 77 │ 104.80 ms │ 104.30 ms │ no change │
│ QQuery 78 │ 301.98 ms │ 268.35 ms │ +1.13x faster │
│ QQuery 79 │ 118.73 ms │ 115.14 ms │ no change │
│ QQuery 80 │ 235.09 ms │ 221.53 ms │ +1.06x faster │
│ QQuery 81 │ 45.06 ms │ 44.40 ms │ no change │
│ QQuery 82 │ 45.25 ms │ 45.30 ms │ no change │
│ QQuery 83 │ 54.95 ms │ 47.96 ms │ +1.15x faster │
│ QQuery 84 │ 45.82 ms │ 44.44 ms │ no change │
│ QQuery 85 │ 135.14 ms │ 127.61 ms │ +1.06x faster │
│ QQuery 86 │ 26.88 ms │ 26.84 ms │ no change │
│ QQuery 87 │ 100.34 ms │ 98.24 ms │ no change │
│ QQuery 88 │ 166.58 ms │ 159.84 ms │ no change │
│ QQuery 89 │ 61.18 ms │ 59.75 ms │ no change │
│ QQuery 90 │ 27.06 ms │ 25.17 ms │ +1.07x faster │
│ QQuery 91 │ 53.70 ms │ 48.49 ms │ +1.11x faster │
│ QQuery 92 │ 49.11 ms │ 47.10 ms │ no change │
│ QQuery 93 │ 222.60 ms │ 203.57 ms │ +1.09x faster │
│ QQuery 94 │ 61.78 ms │ 59.15 ms │ no change │
│ QQuery 95 │ 163.40 ms │ 159.54 ms │ no change │
│ QQuery 96 │ 45.50 ms │ 45.31 ms │ no change │
│ QQuery 97 │ 79.81 ms │ 78.23 ms │ no change │
│ QQuery 98 │ 66.77 ms │ 64.15 ms │ no change │
│ QQuery 99 │ 142.17 ms │ 66.32 ms │ +2.14x faster │
└───────────┴────────────┴─────────────────────────────┴────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD) │ 21454.34ms │
│ Total Time (perf_join-order-enumeration) │ 12390.92ms │
│ Average Time (HEAD) │ 216.71ms │
│ Average Time (perf_join-order-enumeration) │ 125.16ms │
│ Queries Faster │ 29 │
│ Queries Slower │ 2 │
│ Queries with No Change │ 68 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴────────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 24.12 / 25.11 ±1.07 / 27.18 ms │ 24.01 / 24.69 ±0.98 / 26.64 ms │ no change │
│ QQuery 2 │ 80.07 / 80.62 ±0.64 / 81.87 ms │ 79.49 / 80.06 ±0.52 / 80.93 ms │ no change │
│ QQuery 3 │ 50.83 / 51.35 ±0.37 / 51.92 ms │ 44.50 / 44.92 ±0.24 / 45.23 ms │ +1.14x faster │
│ QQuery 4 │ 795.61 / 811.78 ±10.19 / 824.27 ms │ 595.34 / 601.09 ±4.68 / 606.25 ms │ +1.35x faster │
│ QQuery 5 │ 106.32 / 114.16 ±4.84 / 118.59 ms │ 104.49 / 109.55 ±5.41 / 116.92 ms │ no change │
│ QQuery 6 │ 70.36 / 70.49 ±0.19 / 70.85 ms │ 70.26 / 70.51 ±0.19 / 70.83 ms │ no change │
│ QQuery 7 │ 123.23 / 125.75 ±2.49 / 129.26 ms │ 122.34 / 123.80 ±2.40 / 128.59 ms │ no change │
│ QQuery 8 │ 66.32 / 66.67 ±0.31 / 67.16 ms │ 66.40 / 66.78 ±0.39 / 67.51 ms │ no change │
│ QQuery 9 │ 53.04 / 54.43 ±1.26 / 56.50 ms │ 51.40 / 52.52 ±0.65 / 53.24 ms │ no change │
│ QQuery 10 │ 135.50 / 142.62 ±7.98 / 157.98 ms │ 136.36 / 139.25 ±2.32 / 142.68 ms │ no change │
│ QQuery 11 │ 421.61 / 433.39 ±8.45 / 444.27 ms │ 295.34 / 297.71 ±1.22 / 298.68 ms │ +1.46x faster │
│ QQuery 12 │ 33.11 / 37.91 ±5.24 / 47.50 ms │ 32.46 / 32.96 ±0.41 / 33.60 ms │ +1.15x faster │
│ QQuery 13 │ 124.61 / 126.19 ±1.23 / 127.97 ms │ 122.44 / 122.99 ±0.30 / 123.27 ms │ no change │
│ QQuery 14 │ 831.76 / 842.29 ±8.51 / 854.18 ms │ 659.24 / 666.16 ±4.75 / 671.78 ms │ +1.26x faster │
│ QQuery 15 │ 57.58 / 62.21 ±3.57 / 67.09 ms │ 40.81 / 41.09 ±0.47 / 42.03 ms │ +1.51x faster │
│ QQuery 16 │ 78.32 / 81.76 ±2.17 / 84.17 ms │ 78.13 / 80.75 ±5.02 / 90.78 ms │ no change │
│ QQuery 17 │ 169.83 / 172.96 ±2.82 / 176.40 ms │ 159.92 / 161.54 ±1.49 / 163.88 ms │ +1.07x faster │
│ QQuery 18 │ 154.57 / 161.58 ±7.33 / 174.51 ms │ 173.37 / 175.64 ±1.24 / 176.72 ms │ 1.09x slower │
│ QQuery 19 │ 76.13 / 77.40 ±1.37 / 79.92 ms │ 75.16 / 76.93 ±1.84 / 79.64 ms │ no change │
│ QQuery 20 │ 45.53 / 46.60 ±1.13 / 48.51 ms │ 45.62 / 46.10 ±0.29 / 46.42 ms │ no change │
│ QQuery 21 │ 405.58 / 412.30 ±7.12 / 424.30 ms │ 81.08 / 81.99 ±0.74 / 82.97 ms │ +5.03x faster │
│ QQuery 22 │ 100.46 / 103.62 ±3.68 / 110.03 ms │ 99.71 / 102.56 ±5.07 / 112.69 ms │ no change │
│ QQuery 23 │ 557.52 / 574.02 ±12.52 / 594.00 ms │ 471.25 / 482.42 ±7.55 / 494.49 ms │ +1.19x faster │
│ QQuery 24 │ 347.41 / 354.50 ±6.39 / 365.83 ms │ 399.63 / 406.43 ±4.88 / 414.12 ms │ 1.15x slower │
│ QQuery 25 │ 190.01 / 195.92 ±9.50 / 214.84 ms │ 155.95 / 163.07 ±4.58 / 169.88 ms │ +1.20x faster │
│ QQuery 26 │ 103.21 / 108.54 ±5.52 / 119.02 ms │ 101.96 / 102.47 ±0.53 / 103.29 ms │ +1.06x faster │
│ QQuery 27 │ 124.22 / 128.39 ±3.97 / 135.95 ms │ 123.10 / 125.46 ±3.44 / 132.28 ms │ no change │
│ QQuery 28 │ 57.39 / 59.62 ±2.50 / 63.01 ms │ 58.38 / 60.22 ±2.10 / 62.79 ms │ no change │
│ QQuery 29 │ 168.64 / 175.50 ±8.64 / 191.95 ms │ 137.17 / 139.24 ±3.22 / 145.64 ms │ +1.26x faster │
│ QQuery 30 │ 47.32 / 48.51 ±1.14 / 50.29 ms │ 46.24 / 47.34 ±0.66 / 48.11 ms │ no change │
│ QQuery 31 │ 239.03 / 241.13 ±2.75 / 246.44 ms │ 237.84 / 240.29 ±4.62 / 249.53 ms │ no change │
│ QQuery 32 │ 67.99 / 73.52 ±5.57 / 83.52 ms │ 67.77 / 68.87 ±0.78 / 69.97 ms │ +1.07x faster │
│ QQuery 33 │ 71.86 / 74.91 ±2.10 / 77.29 ms │ 69.62 / 72.29 ±2.04 / 75.60 ms │ no change │
│ QQuery 34 │ 69.68 / 70.43 ±0.57 / 71.43 ms │ 69.52 / 73.61 ±3.98 / 79.69 ms │ no change │
│ QQuery 35 │ 124.48 / 128.90 ±4.18 / 135.70 ms │ 124.57 / 125.29 ±1.15 / 127.58 ms │ no change │
│ QQuery 36 │ 86.25 / 88.07 ±1.68 / 90.88 ms │ 86.46 / 87.03 ±0.43 / 87.75 ms │ no change │
│ QQuery 37 │ 32.76 / 35.17 ±3.80 / 42.73 ms │ 32.69 / 33.36 ±0.72 / 34.62 ms │ +1.05x faster │
│ QQuery 38 │ 97.88 / 98.35 ±0.29 / 98.76 ms │ 97.56 / 98.33 ±0.51 / 98.99 ms │ no change │
│ QQuery 39 │ 1618.09 / 1639.54 ±14.72 / 1658.59 ms │ 340.25 / 344.34 ±5.85 / 355.61 ms │ +4.76x faster │
│ QQuery 40 │ 106.21 / 111.59 ±7.65 / 126.55 ms │ 67.84 / 68.19 ±0.23 / 68.43 ms │ +1.64x faster │
│ QQuery 41 │ 11.42 / 11.63 ±0.29 / 12.20 ms │ 11.37 / 11.63 ±0.25 / 12.05 ms │ no change │
│ QQuery 42 │ 50.14 / 50.57 ±0.33 / 51.02 ms │ 50.37 / 54.09 ±5.95 / 65.91 ms │ 1.07x slower │
│ QQuery 43 │ 56.60 / 56.98 ±0.49 / 57.93 ms │ 56.61 / 57.44 ±1.13 / 59.64 ms │ no change │
│ QQuery 44 │ 12.62 / 12.90 ±0.30 / 13.47 ms │ 12.35 / 12.74 ±0.38 / 13.40 ms │ no change │
│ QQuery 45 │ 47.27 / 50.22 ±2.56 / 54.27 ms │ 37.14 / 37.46 ±0.32 / 37.94 ms │ +1.34x faster │
│ QQuery 46 │ 119.98 / 122.47 ±3.38 / 129.06 ms │ 121.23 / 122.99 ±1.35 / 125.40 ms │ no change │
│ QQuery 47 │ 361.95 / 375.10 ±12.40 / 395.47 ms │ 359.61 / 372.69 ±12.06 / 389.04 ms │ no change │
│ QQuery 48 │ 123.95 / 134.84 ±9.12 / 151.71 ms │ 127.43 / 130.84 ±2.86 / 134.81 ms │ no change │
│ QQuery 49 │ 80.65 / 82.65 ±2.31 / 87.13 ms │ 81.64 / 85.79 ±5.83 / 97.30 ms │ no change │
│ QQuery 50 │ 89.76 / 93.56 ±5.53 / 104.29 ms │ 91.51 / 92.77 ±0.72 / 93.50 ms │ no change │
│ QQuery 51 │ 122.13 / 123.35 ±0.70 / 124.04 ms │ 123.57 / 126.42 ±3.33 / 132.76 ms │ no change │
│ QQuery 52 │ 49.65 / 52.78 ±3.45 / 58.24 ms │ 49.90 / 50.35 ±0.37 / 50.89 ms │ no change │
│ QQuery 53 │ 54.25 / 55.48 ±0.71 / 56.18 ms │ 54.27 / 54.79 ±0.50 / 55.63 ms │ no change │
│ QQuery 54 │ 97.44 / 98.87 ±1.06 / 100.20 ms │ 97.82 / 99.72 ±2.34 / 104.12 ms │ no change │
│ QQuery 55 │ 47.45 / 50.49 ±4.49 / 59.20 ms │ 47.67 / 47.87 ±0.31 / 48.49 ms │ +1.05x faster │
│ QQuery 56 │ 72.81 / 74.08 ±1.37 / 76.09 ms │ 74.07 / 75.61 ±1.29 / 77.64 ms │ no change │
│ QQuery 57 │ 223.86 / 228.92 ±7.73 / 244.26 ms │ 221.88 / 230.15 ±12.25 / 254.29 ms │ no change │
│ QQuery 58 │ 188.14 / 194.38 ±5.56 / 203.16 ms │ 120.45 / 121.74 ±0.98 / 123.49 ms │ +1.60x faster │
│ QQuery 59 │ 121.31 / 124.13 ±3.70 / 131.24 ms │ 121.15 / 124.93 ±4.36 / 132.95 ms │ no change │
│ QQuery 60 │ 73.05 / 74.42 ±1.12 / 75.51 ms │ 72.07 / 73.09 ±0.77 / 74.40 ms │ no change │
│ QQuery 61 │ 100.60 / 112.96 ±13.43 / 138.78 ms │ 93.60 / 99.63 ±6.53 / 110.68 ms │ +1.13x faster │
│ QQuery 62 │ 66.79 / 67.40 ±0.52 / 68.21 ms │ 38.91 / 39.84 ±0.79 / 41.31 ms │ +1.69x faster │
│ QQuery 63 │ 54.59 / 55.30 ±0.45 / 55.97 ms │ 54.46 / 55.07 ±0.51 / 55.97 ms │ no change │
│ QQuery 64 │ 675.44 / 684.83 ±13.99 / 712.21 ms │ 695.86 / 709.47 ±10.31 / 726.10 ms │ no change │
│ QQuery 65 │ 111.87 / 113.01 ±0.74 / 113.84 ms │ 112.04 / 112.34 ±0.24 / 112.76 ms │ no change │
│ QQuery 66 │ 172.54 / 176.98 ±5.44 / 187.17 ms │ 109.92 / 118.64 ±13.65 / 145.83 ms │ +1.49x faster │
│ QQuery 67 │ 135.52 / 140.80 ±4.73 / 148.25 ms │ 137.07 / 140.42 ±4.04 / 148.19 ms │ no change │
│ QQuery 68 │ 126.81 / 128.95 ±1.53 / 131.47 ms │ 128.85 / 130.55 ±2.07 / 134.58 ms │ no change │
│ QQuery 69 │ 129.87 / 140.11 ±16.36 / 172.63 ms │ 128.42 / 138.34 ±12.48 / 161.68 ms │ no change │
│ QQuery 70 │ 204.78 / 208.44 ±4.27 / 215.97 ms │ 179.37 / 183.12 ±4.35 / 191.11 ms │ +1.14x faster │
│ QQuery 71 │ 65.39 / 66.65 ±0.98 / 68.19 ms │ 66.80 / 67.57 ±0.50 / 68.16 ms │ no change │
│ QQuery 72 │ 6531.20 / 6783.20 ±170.02 / 6989.68 ms │ 188.92 / 193.54 ±5.20 / 203.05 ms │ +35.05x faster │
│ QQuery 73 │ 69.59 / 194.27 ±127.72 / 376.46 ms │ 67.17 / 73.45 ±10.50 / 94.23 ms │ +2.64x faster │
│ QQuery 74 │ 280.14 / 288.17 ±6.28 / 296.92 ms │ 206.31 / 212.37 ±6.81 / 223.08 ms │ +1.36x faster │
│ QQuery 75 │ 217.84 / 223.91 ±6.00 / 234.09 ms │ 206.70 / 217.41 ±10.86 / 237.82 ms │ no change │
│ QQuery 76 │ 38.84 / 39.51 ±0.46 / 40.28 ms │ 38.02 / 38.51 ±0.32 / 38.87 ms │ no change │
│ QQuery 77 │ 104.80 / 112.36 ±4.65 / 119.23 ms │ 104.30 / 107.26 ±2.08 / 110.34 ms │ no change │
│ QQuery 78 │ 301.98 / 311.07 ±9.99 / 330.02 ms │ 268.35 / 278.43 ±12.89 / 303.40 ms │ +1.12x faster │
│ QQuery 79 │ 118.73 / 124.56 ±6.27 / 136.00 ms │ 115.14 / 115.86 ±0.62 / 116.91 ms │ +1.08x faster │
│ QQuery 80 │ 235.09 / 241.34 ±5.05 / 247.28 ms │ 221.53 / 232.08 ±9.40 / 246.67 ms │ no change │
│ QQuery 81 │ 45.06 / 46.86 ±2.57 / 51.94 ms │ 44.40 / 52.54 ±9.92 / 71.35 ms │ 1.12x slower │
│ QQuery 82 │ 45.25 / 48.73 ±3.62 / 54.85 ms │ 45.30 / 45.88 ±0.64 / 47.08 ms │ +1.06x faster │
│ QQuery 83 │ 54.95 / 56.07 ±1.28 / 58.54 ms │ 47.96 / 48.75 ±0.52 / 49.50 ms │ +1.15x faster │
│ QQuery 84 │ 45.82 / 50.05 ±4.37 / 58.46 ms │ 44.44 / 44.75 ±0.24 / 45.16 ms │ +1.12x faster │
│ QQuery 85 │ 135.14 / 138.75 ±2.77 / 143.10 ms │ 127.61 / 132.53 ±4.06 / 138.49 ms │ no change │
│ QQuery 86 │ 26.88 / 28.13 ±1.08 / 30.07 ms │ 26.84 / 27.47 ±0.50 / 28.10 ms │ no change │
│ QQuery 87 │ 100.34 / 105.16 ±3.86 / 111.83 ms │ 98.24 / 100.98 ±3.81 / 108.48 ms │ no change │
│ QQuery 88 │ 166.58 / 171.26 ±3.85 / 177.14 ms │ 159.84 / 162.05 ±2.00 / 165.79 ms │ +1.06x faster │
│ QQuery 89 │ 61.18 / 63.07 ±2.31 / 67.58 ms │ 59.75 / 67.62 ±13.70 / 94.98 ms │ 1.07x slower │
│ QQuery 90 │ 27.06 / 28.48 ±1.99 / 32.42 ms │ 25.17 / 25.44 ±0.17 / 25.64 ms │ +1.12x faster │
│ QQuery 91 │ 53.70 / 58.86 ±6.57 / 70.76 ms │ 48.49 / 48.75 ±0.19 / 49.08 ms │ +1.21x faster │
│ QQuery 92 │ 49.11 / 52.05 ±3.38 / 58.31 ms │ 47.10 / 48.15 ±0.57 / 48.64 ms │ +1.08x faster │
│ QQuery 93 │ 222.60 / 233.74 ±11.04 / 252.58 ms │ 203.57 / 206.55 ±2.28 / 210.21 ms │ +1.13x faster │
│ QQuery 94 │ 61.78 / 68.27 ±4.37 / 75.25 ms │ 59.15 / 66.45 ±7.66 / 80.29 ms │ no change │
│ QQuery 95 │ 163.40 / 181.43 ±15.56 / 208.08 ms │ 159.54 / 164.71 ±4.47 / 171.67 ms │ +1.10x faster │
│ QQuery 96 │ 45.50 / 47.11 ±1.49 / 49.45 ms │ 45.31 / 46.32 ±1.46 / 49.19 ms │ no change │
│ QQuery 97 │ 79.81 / 82.90 ±3.53 / 89.75 ms │ 78.23 / 79.12 ±0.46 / 79.47 ms │ no change │
│ QQuery 98 │ 66.77 / 70.25 ±2.28 / 73.40 ms │ 64.15 / 65.65 ±1.37 / 68.13 ms │ +1.07x faster │
│ QQuery 99 │ 142.17 / 150.38 ±11.08 / 172.00 ms │ 66.32 / 66.97 ±0.43 / 67.50 ms │ +2.25x faster │
└───────────┴────────────────────────────────────────┴────────────────────────────────────┴────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD) │ 22271.01ms │
│ Total Time (perf_join-order-enumeration) │ 12685.53ms │
│ Average Time (HEAD) │ 224.96ms │
│ Average Time (perf_join-order-enumeration) │ 128.14ms │
│ Queries Faster │ 39 │
│ Queries Slower │ 5 │
│ Queries with No Change │ 55 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴────────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpcds — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 115.0s |
| Peak memory | 22.7 GiB |
| Avg memory | 3.7 GiB |
| CPU user | 622.5s |
| CPU sys | 31.2s |
| Peak spill | 0 B |
**tpcds — branch**
| Metric | Value |
|--------|-------|
| Wall time | 65.0s |
| Peak memory | 2.3 GiB |
| Avg memory | 1.5 GiB |
| CPU user | 298.7s |
| CPU sys | 11.1s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-6384176349
Thank you for looking into this @jayzhan211 !
I'll try to address it soon 😀
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5375647462
> > On my machine with the join ordering, DataFusion beats DuckDB on TPC-H at least (didn't check TPC-DS). It would make a nice blog post if that's a robust result...
>
> In case you want further coverage beyond TPC-* benchmarks, I can suggest the join-ordering-benchmark/JOB ([original paper](https://www.vldb.org/pvldb/vol9/p204-leis.pdf), [implementation](https://github.com/gregrahn/join-order-benchmark)).
Good one - I think
> implementation
Thanks for reminding - I think we also have it in here (or at least a version). https://github.com/apache/datafusion/tree/58150eac882b65c3d137e0dedb34b018e1605d3a/benchmarks/sql_benchmarks/imdb
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5338739851
run benchmarks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "stuhood (via GitHub) via github" <gi...@datafusion.apache.org>.
stuhood commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-6773050000
@Dandandan : Let us know how we can help with this one!
We have a few unique join plans that we would love to be able to enumerate costs on. Would itegrating this and experimenting with it be helpful?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub) via github" <gi...@datafusion.apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-7079691589
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-7079548586)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (ce527a1033f46265773a6407acaa2dee3bbc7a5b) to 60e3d5c (merge-base) [diff](https://github.com/apache/datafusion/compare/60e3d5c40487f600f6a7aa0a9f0b042d63930b8f..ce527a1033f46265773a6407acaa2dee3bbc7a5b)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 41.01 ms │ 40.47 ms │ no change │
│ QQuery 2 │ 18.54 ms │ 18.44 ms │ no change │
│ QQuery 3 │ 28.93 ms │ 28.44 ms │ no change │
│ QQuery 4 │ 17.62 ms │ 17.57 ms │ no change │
│ QQuery 5 │ 35.26 ms │ 31.83 ms │ +1.11x faster │
│ QQuery 6 │ 13.79 ms │ 13.87 ms │ no change │
│ QQuery 7 │ 41.33 ms │ 34.13 ms │ +1.21x faster │
│ QQuery 8 │ 40.63 ms │ 46.68 ms │ 1.15x slower │
│ QQuery 9 │ 49.30 ms │ 48.73 ms │ no change │
│ QQuery 10 │ 40.42 ms │ 40.43 ms │ no change │
│ QQuery 11 │ 13.55 ms │ 13.72 ms │ no change │
│ QQuery 12 │ 17.88 ms │ 16.55 ms │ +1.08x faster │
│ QQuery 13 │ 39.35 ms │ 32.15 ms │ +1.22x faster │
│ QQuery 14 │ 24.40 ms │ 24.11 ms │ no change │
│ QQuery 15 │ 31.20 ms │ 31.16 ms │ no change │
│ QQuery 16 │ 13.53 ms │ 13.55 ms │ no change │
│ QQuery 17 │ 68.60 ms │ 69.60 ms │ no change │
│ QQuery 18 │ 40.72 ms │ 34.29 ms │ +1.19x faster │
│ QQuery 19 │ 32.31 ms │ 32.07 ms │ no change │
│ QQuery 20 │ 31.82 ms │ 31.95 ms │ no change │
│ QQuery 21 │ 55.60 ms │ 56.00 ms │ no change │
│ QQuery 22 │ 13.49 ms │ 13.88 ms │ no change │
└───────────┴──────────┴─────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD) │ 709.25ms │
│ Total Time (perf_join-order-enumeration) │ 689.61ms │
│ Average Time (HEAD) │ 32.24ms │
│ Average Time (perf_join-order-enumeration) │ 31.35ms │
│ Queries Faster │ 5 │
│ Queries Slower │ 1 │
│ Queries with No Change │ 16 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴──────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 41.01 / 42.23 ±1.10 / 43.78 ms │ 40.47 / 41.40 ±1.06 / 43.25 ms │ no change │
│ QQuery 2 │ 18.54 / 18.82 ±0.28 / 19.35 ms │ 18.44 / 18.74 ±0.23 / 19.09 ms │ no change │
│ QQuery 3 │ 28.93 / 29.42 ±0.55 / 30.44 ms │ 28.44 / 28.69 ±0.23 / 29.10 ms │ no change │
│ QQuery 4 │ 17.62 / 17.87 ±0.20 / 18.16 ms │ 17.57 / 17.84 ±0.16 / 18.05 ms │ no change │
│ QQuery 5 │ 35.26 / 35.64 ±0.35 / 36.19 ms │ 31.83 / 32.89 ±1.16 / 35.11 ms │ +1.08x faster │
│ QQuery 6 │ 13.79 / 14.17 ±0.69 / 15.55 ms │ 13.87 / 14.06 ±0.24 / 14.53 ms │ no change │
│ QQuery 7 │ 41.33 / 42.46 ±1.02 / 44.02 ms │ 34.13 / 34.30 ±0.15 / 34.55 ms │ +1.24x faster │
│ QQuery 8 │ 40.63 / 41.31 ±0.74 / 42.73 ms │ 46.68 / 49.60 ±3.15 / 53.67 ms │ 1.20x slower │
│ QQuery 9 │ 49.30 / 49.76 ±0.29 / 50.10 ms │ 48.73 / 49.73 ±0.69 / 50.71 ms │ no change │
│ QQuery 10 │ 40.42 / 41.56 ±1.19 / 43.78 ms │ 40.43 / 40.67 ±0.34 / 41.34 ms │ no change │
│ QQuery 11 │ 13.55 / 13.94 ±0.45 / 14.79 ms │ 13.72 / 14.15 ±0.58 / 15.28 ms │ no change │
│ QQuery 12 │ 17.88 / 18.30 ±0.37 / 18.93 ms │ 16.55 / 16.73 ±0.18 / 17.04 ms │ +1.09x faster │
│ QQuery 13 │ 39.35 / 39.85 ±0.40 / 40.29 ms │ 32.15 / 33.16 ±0.97 / 34.89 ms │ +1.20x faster │
│ QQuery 14 │ 24.40 / 24.49 ±0.07 / 24.59 ms │ 24.11 / 25.16 ±1.15 / 27.32 ms │ no change │
│ QQuery 15 │ 31.20 / 32.42 ±1.25 / 34.66 ms │ 31.16 / 32.11 ±1.01 / 33.93 ms │ no change │
│ QQuery 16 │ 13.53 / 13.73 ±0.14 / 13.91 ms │ 13.55 / 13.68 ±0.09 / 13.82 ms │ no change │
│ QQuery 17 │ 68.60 / 69.85 ±1.09 / 71.51 ms │ 69.60 / 70.20 ±0.72 / 71.61 ms │ no change │
│ QQuery 18 │ 40.72 / 41.27 ±0.41 / 41.83 ms │ 34.29 / 34.92 ±0.38 / 35.35 ms │ +1.18x faster │
│ QQuery 19 │ 32.31 / 33.55 ±1.75 / 36.81 ms │ 32.07 / 33.19 ±1.00 / 34.81 ms │ no change │
│ QQuery 20 │ 31.82 / 32.27 ±0.54 / 33.29 ms │ 31.95 / 32.88 ±0.95 / 34.32 ms │ no change │
│ QQuery 21 │ 55.60 / 56.75 ±1.26 / 59.01 ms │ 56.00 / 57.27 ±1.02 / 59.01 ms │ no change │
│ QQuery 22 │ 13.49 / 13.86 ±0.25 / 14.20 ms │ 13.88 / 14.04 ±0.10 / 14.15 ms │ no change │
└───────────┴────────────────────────────────┴────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD) │ 723.53ms │
│ Total Time (perf_join-order-enumeration) │ 705.38ms │
│ Average Time (HEAD) │ 32.89ms │
│ Average Time (perf_join-order-enumeration) │ 32.06ms │
│ Queries Faster │ 5 │
│ Queries Slower │ 1 │
│ Queries with No Change │ 16 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴──────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpch — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 1.2 GiB |
| Avg memory | 482.1 MiB |
| CPU user | 19.4s |
| CPU sys | 1.6s |
| Peak spill | 0 B |
**tpch — branch**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 1.2 GiB |
| Avg memory | 517.2 MiB |
| CPU user | 18.9s |
| CPU sys | 1.6s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5328427832
run benchmarks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5328635708
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5328427832)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (a329cf31232aa58729328b8783225cd7060dced9) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..a329cf31232aa58729328b8783225cd7060dced9)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 38.03 ms │ 38.16 ms │ no change │
│ QQuery 2 │ 19.34 ms │ 16.47 ms │ +1.17x faster │
│ QQuery 3 │ 30.84 ms │ 30.55 ms │ no change │
│ QQuery 4 │ 17.48 ms │ 17.34 ms │ no change │
│ QQuery 5 │ 37.31 ms │ 39.07 ms │ no change │
│ QQuery 6 │ 15.99 ms │ 15.79 ms │ no change │
│ QQuery 7 │ 45.22 ms │ 33.03 ms │ +1.37x faster │
│ QQuery 8 │ 42.10 ms │ 39.53 ms │ +1.07x faster │
│ QQuery 9 │ 49.60 ms │ 47.57 ms │ no change │
│ QQuery 10 │ 41.92 ms │ 42.27 ms │ no change │
│ QQuery 11 │ 13.21 ms │ 13.42 ms │ no change │
│ QQuery 12 │ 24.04 ms │ 23.43 ms │ no change │
│ QQuery 13 │ 32.07 ms │ 32.02 ms │ no change │
│ QQuery 14 │ 22.95 ms │ 22.89 ms │ no change │
│ QQuery 15 │ 30.55 ms │ 30.16 ms │ no change │
│ QQuery 16 │ 13.68 ms │ 13.58 ms │ no change │
│ QQuery 17 │ 68.98 ms │ 68.86 ms │ no change │
│ QQuery 18 │ 57.55 ms │ 41.16 ms │ +1.40x faster │
│ QQuery 19 │ 32.40 ms │ 32.25 ms │ no change │
│ QQuery 20 │ 31.39 ms │ 31.28 ms │ no change │
│ QQuery 21 │ 55.44 ms │ 52.03 ms │ +1.07x faster │
│ QQuery 22 │ 13.79 ms │ 13.65 ms │ no change │
└───────────┴──────────┴─────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD) │ 733.89ms │
│ Total Time (perf_join-order-enumeration) │ 694.54ms │
│ Average Time (HEAD) │ 33.36ms │
│ Average Time (perf_join-order-enumeration) │ 31.57ms │
│ Queries Faster │ 5 │
│ Queries Slower │ 0 │
│ Queries with No Change │ 17 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴──────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 38.03 / 38.76 ±0.97 / 40.67 ms │ 38.16 / 38.88 ±0.75 / 40.34 ms │ no change │
│ QQuery 2 │ 19.34 / 20.11 ±0.93 / 21.80 ms │ 16.47 / 16.58 ±0.13 / 16.81 ms │ +1.21x faster │
│ QQuery 3 │ 30.84 / 32.42 ±1.10 / 33.60 ms │ 30.55 / 32.61 ±1.04 / 33.31 ms │ no change │
│ QQuery 4 │ 17.48 / 17.84 ±0.47 / 18.74 ms │ 17.34 / 17.86 ±0.61 / 18.92 ms │ no change │
│ QQuery 5 │ 37.31 / 38.90 ±1.26 / 40.30 ms │ 39.07 / 41.86 ±1.84 / 44.82 ms │ 1.08x slower │
│ QQuery 6 │ 15.99 / 16.35 ±0.40 / 17.12 ms │ 15.79 / 16.31 ±0.90 / 18.10 ms │ no change │
│ QQuery 7 │ 45.22 / 45.90 ±0.63 / 47.02 ms │ 33.03 / 34.46 ±0.88 / 35.79 ms │ +1.33x faster │
│ QQuery 8 │ 42.10 / 42.25 ±0.20 / 42.63 ms │ 39.53 / 40.67 ±1.62 / 43.83 ms │ no change │
│ QQuery 9 │ 49.60 / 49.98 ±0.36 / 50.61 ms │ 47.57 / 49.40 ±1.57 / 51.18 ms │ no change │
│ QQuery 10 │ 41.92 / 42.83 ±1.43 / 45.69 ms │ 42.27 / 43.85 ±1.34 / 45.98 ms │ no change │
│ QQuery 11 │ 13.21 / 13.44 ±0.22 / 13.85 ms │ 13.42 / 13.63 ±0.14 / 13.82 ms │ no change │
│ QQuery 12 │ 24.04 / 24.38 ±0.45 / 25.26 ms │ 23.43 / 24.25 ±0.77 / 25.72 ms │ no change │
│ QQuery 13 │ 32.07 / 34.55 ±2.09 / 37.82 ms │ 32.02 / 33.72 ±1.04 / 34.78 ms │ no change │
│ QQuery 14 │ 22.95 / 23.19 ±0.17 / 23.40 ms │ 22.89 / 23.26 ±0.26 / 23.59 ms │ no change │
│ QQuery 15 │ 30.55 / 30.84 ±0.27 / 31.27 ms │ 30.16 / 30.65 ±0.27 / 30.98 ms │ no change │
│ QQuery 16 │ 13.68 / 13.82 ±0.18 / 14.17 ms │ 13.58 / 13.82 ±0.18 / 14.02 ms │ no change │
│ QQuery 17 │ 68.98 / 70.68 ±1.67 / 73.04 ms │ 68.86 / 69.62 ±0.42 / 70.15 ms │ no change │
│ QQuery 18 │ 57.55 / 59.61 ±1.42 / 61.74 ms │ 41.16 / 43.35 ±1.12 / 44.15 ms │ +1.38x faster │
│ QQuery 19 │ 32.40 / 32.88 ±0.52 / 33.79 ms │ 32.25 / 33.26 ±1.39 / 35.99 ms │ no change │
│ QQuery 20 │ 31.39 / 31.82 ±0.38 / 32.41 ms │ 31.28 / 31.47 ±0.18 / 31.78 ms │ no change │
│ QQuery 21 │ 55.44 / 56.75 ±1.16 / 58.60 ms │ 52.03 / 53.40 ±0.78 / 54.44 ms │ +1.06x faster │
│ QQuery 22 │ 13.79 / 13.93 ±0.14 / 14.12 ms │ 13.65 / 13.87 ±0.15 / 14.09 ms │ no change │
└───────────┴────────────────────────────────┴────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD) │ 751.22ms │
│ Total Time (perf_join-order-enumeration) │ 716.79ms │
│ Average Time (HEAD) │ 34.15ms │
│ Average Time (perf_join-order-enumeration) │ 32.58ms │
│ Queries Faster │ 4 │
│ Queries Slower │ 1 │
│ Queries with No Change │ 17 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴──────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpch — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 1.2 GiB |
| Avg memory | 525.8 MiB |
| CPU user | 21.4s |
| CPU sys | 1.6s |
| Peak spill | 0 B |
**tpch — branch**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 1.1 GiB |
| Avg memory | 479.0 MiB |
| CPU user | 19.6s |
| CPU sys | 1.7s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5330339721
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5330114082)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (de80dd75426b4b7e87d2314fca8eacfafb06e785) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..de80dd75426b4b7e87d2314fca8eacfafb06e785)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 38.06 ms │ 37.90 ms │ no change │
│ QQuery 2 │ 19.19 ms │ 16.74 ms │ +1.15x faster │
│ QQuery 3 │ 30.55 ms │ 32.70 ms │ 1.07x slower │
│ QQuery 4 │ 17.35 ms │ 17.26 ms │ no change │
│ QQuery 5 │ 39.23 ms │ 39.72 ms │ no change │
│ QQuery 6 │ 15.84 ms │ 16.00 ms │ no change │
│ QQuery 7 │ 44.19 ms │ 32.52 ms │ +1.36x faster │
│ QQuery 8 │ 41.68 ms │ 39.30 ms │ +1.06x faster │
│ QQuery 9 │ 48.52 ms │ 47.89 ms │ no change │
│ QQuery 10 │ 41.78 ms │ 41.80 ms │ no change │
│ QQuery 11 │ 12.98 ms │ 13.52 ms │ no change │
│ QQuery 12 │ 23.68 ms │ 22.86 ms │ no change │
│ QQuery 13 │ 31.43 ms │ 32.41 ms │ no change │
│ QQuery 14 │ 22.79 ms │ 23.04 ms │ no change │
│ QQuery 15 │ 30.26 ms │ 30.25 ms │ no change │
│ QQuery 16 │ 13.64 ms │ 13.71 ms │ no change │
│ QQuery 17 │ 69.61 ms │ 69.21 ms │ no change │
│ QQuery 18 │ 58.75 ms │ 43.43 ms │ +1.35x faster │
│ QQuery 19 │ 32.30 ms │ 33.55 ms │ no change │
│ QQuery 20 │ 30.84 ms │ 31.51 ms │ no change │
│ QQuery 21 │ 55.14 ms │ 51.99 ms │ +1.06x faster │
│ QQuery 22 │ 13.71 ms │ 13.94 ms │ no change │
└───────────┴──────────┴─────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD) │ 731.54ms │
│ Total Time (perf_join-order-enumeration) │ 701.25ms │
│ Average Time (HEAD) │ 33.25ms │
│ Average Time (perf_join-order-enumeration) │ 31.87ms │
│ Queries Faster │ 5 │
│ Queries Slower │ 1 │
│ Queries with No Change │ 16 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴──────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 38.06 / 39.13 ±1.67 / 42.42 ms │ 37.90 / 38.60 ±1.22 / 41.04 ms │ no change │
│ QQuery 2 │ 19.19 / 19.83 ±0.71 / 21.07 ms │ 16.74 / 17.09 ±0.61 / 18.30 ms │ +1.16x faster │
│ QQuery 3 │ 30.55 / 31.81 ±1.18 / 33.50 ms │ 32.70 / 33.22 ±0.37 / 33.66 ms │ no change │
│ QQuery 4 │ 17.35 / 18.27 ±0.77 / 19.43 ms │ 17.26 / 17.48 ±0.24 / 17.89 ms │ no change │
│ QQuery 5 │ 39.23 / 39.91 ±0.40 / 40.45 ms │ 39.72 / 42.50 ±1.94 / 45.80 ms │ 1.06x slower │
│ QQuery 6 │ 15.84 / 16.64 ±0.90 / 18.30 ms │ 16.00 / 16.66 ±0.54 / 17.49 ms │ no change │
│ QQuery 7 │ 44.19 / 45.20 ±0.85 / 46.60 ms │ 32.52 / 32.76 ±0.14 / 32.97 ms │ +1.38x faster │
│ QQuery 8 │ 41.68 / 42.02 ±0.19 / 42.17 ms │ 39.30 / 40.01 ±0.90 / 41.71 ms │ no change │
│ QQuery 9 │ 48.52 / 49.90 ±0.87 / 51.11 ms │ 47.89 / 50.13 ±1.35 / 51.97 ms │ no change │
│ QQuery 10 │ 41.78 / 41.95 ±0.13 / 42.10 ms │ 41.80 / 42.13 ±0.26 / 42.44 ms │ no change │
│ QQuery 11 │ 12.98 / 13.26 ±0.17 / 13.45 ms │ 13.52 / 13.71 ±0.15 / 13.95 ms │ no change │
│ QQuery 12 │ 23.68 / 24.06 ±0.36 / 24.73 ms │ 22.86 / 23.02 ±0.09 / 23.12 ms │ no change │
│ QQuery 13 │ 31.43 / 33.28 ±1.17 / 34.61 ms │ 32.41 / 33.21 ±1.02 / 35.19 ms │ no change │
│ QQuery 14 │ 22.79 / 23.12 ±0.20 / 23.36 ms │ 23.04 / 23.31 ±0.21 / 23.64 ms │ no change │
│ QQuery 15 │ 30.26 / 31.04 ±0.66 / 31.99 ms │ 30.25 / 30.50 ±0.28 / 31.03 ms │ no change │
│ QQuery 16 │ 13.64 / 13.73 ±0.10 / 13.91 ms │ 13.71 / 13.99 ±0.27 / 14.33 ms │ no change │
│ QQuery 17 │ 69.61 / 70.89 ±1.11 / 72.83 ms │ 69.21 / 70.70 ±1.26 / 72.80 ms │ no change │
│ QQuery 18 │ 58.75 / 59.81 ±0.92 / 61.26 ms │ 43.43 / 43.72 ±0.21 / 44.03 ms │ +1.37x faster │
│ QQuery 19 │ 32.30 / 32.81 ±0.71 / 34.20 ms │ 33.55 / 33.97 ±0.28 / 34.38 ms │ no change │
│ QQuery 20 │ 30.84 / 31.52 ±0.61 / 32.68 ms │ 31.51 / 31.95 ±0.46 / 32.80 ms │ no change │
│ QQuery 21 │ 55.14 / 56.83 ±1.52 / 59.22 ms │ 51.99 / 52.88 ±0.77 / 54.18 ms │ +1.07x faster │
│ QQuery 22 │ 13.71 / 14.10 ±0.45 / 14.97 ms │ 13.94 / 14.14 ±0.20 / 14.52 ms │ no change │
└───────────┴────────────────────────────────┴────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD) │ 749.11ms │
│ Total Time (perf_join-order-enumeration) │ 715.67ms │
│ Average Time (HEAD) │ 34.05ms │
│ Average Time (perf_join-order-enumeration) │ 32.53ms │
│ Queries Faster │ 4 │
│ Queries Slower │ 1 │
│ Queries with No Change │ 17 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴──────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpch — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 1.1 GiB |
| Avg memory | 512.0 MiB |
| CPU user | 21.4s |
| CPU sys | 1.6s |
| Peak spill | 0 B |
**tpch — branch**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 1016.5 MiB |
| Avg memory | 447.2 MiB |
| CPU user | 19.7s |
| CPU sys | 1.6s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5508625818
I just wanted to say the more I talk to people at VLDB the more excited I am about this PR -- I think it will finally unlock more sophisticated join ordering
I am doing research on JoinGraph apis, etc -- and I expect to work on this next week
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "lonless9 (via GitHub)" <gi...@apache.org>.
lonless9 commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5410560448
Hello folks, it's great to see the community getting involved in work related to join order. We at LakeSail have implemented a round-trip join reorder optimizer based on the DPHyp algorithm. https://github.com/lakehq/sail/tree/v0.7.1/crates/sail-physical-optimizer/src/join_reorder As @alamb mentioned, it would be fantastic if the upstream could expose the full set of relevant traits and abstractions. We are happy to participate in discussions and get involved from a downstream perspective.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5424304840
> be fantastic if the upstream could expose the full set of relevant traits and abstractions. We are happy to participate in discussions and get involved from a downstream perspective.
Thank you 🙏
I am out at VLDB next week but then I hope to help try and get the Join traits / machinery sorted out. DataFusion has needed it for a long time
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on code in PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#discussion_r3831868391
##########
datafusion/physical-optimizer/src/join_enumeration.rs:
##########
@@ -0,0 +1,1651 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+//! Cost-based join order enumeration.
+//!
+//! A subtree of joins is flattened into relations plus the predicates between them, a
+//! dynamic program searches the orders (bushy as well as left-deep) under a `C_out` cost
+//! model, and the subtree is rebuilt if the winner is clearly cheaper.
+//!
+//! Reordering is sound because a tree of inner joins equals the cross product of its
+//! relations filtered by all its predicates. Semi and anti joins take part as reducers:
+//! they filter their output side rather than contributing columns.
+
+use std::collections::HashMap;
+use std::sync::Arc;
+
+use crate::PhysicalOptimizerRule;
+use crate::optimizer::{ConfigOnlyContext, PhysicalOptimizerContext};
+
+use arrow::compute::SortOptions;
+use arrow::datatypes::{FieldRef, Schema};
+use datafusion_common::config::ConfigOptions;
+use datafusion_common::error::Result;
+use datafusion_common::tree_node::{Transformed, TransformedResult, TreeNode};
+use datafusion_common::{JoinSide, JoinType, NullEquality, Statistics, internal_err};
+use datafusion_expr_common::operator::Operator;
+use datafusion_physical_expr::PhysicalExprRef;
+use datafusion_physical_expr::expressions::{BinaryExpr, Column};
+use datafusion_physical_expr::projection::ProjectionExpr;
+use datafusion_physical_plan::execution_plan::replace_children_if_necessary;
+use datafusion_physical_plan::joins::utils::{
+ ColumnIndex, JoinFilter, max_distinct_count,
+};
+use datafusion_physical_plan::joins::{
+ CrossJoinExec, HashJoinExec, HashJoinExecBuilder, NestedLoopJoinExec, PartitionMode,
+ SortMergeJoinExec,
+};
+use datafusion_physical_plan::operator_statistics::StatisticsRegistry;
+use datafusion_physical_plan::projection::{ProjectionExec, all_alias_free_columns};
+use datafusion_physical_plan::statistics::{StatisticsArgs, StatisticsContext};
+use datafusion_physical_plan::{ExecutionPlan, ExecutionPlanProperties};
+
+/// Chooses the shape of the join tree, before [`JoinSelection`] decides how each
+/// join runs.
+///
+/// [`JoinSelection`]: crate::join_selection::JoinSelection
+#[derive(Default, Debug)]
+pub struct JoinEnumeration {}
+
+impl JoinEnumeration {
+ #[expect(missing_docs)]
+ pub fn new() -> Self {
+ Self {}
+ }
+}
+
+impl PhysicalOptimizerRule for JoinEnumeration {
+ fn optimize(
+ &self,
+ plan: Arc<dyn ExecutionPlan>,
+ config: &ConfigOptions,
+ ) -> Result<Arc<dyn ExecutionPlan>> {
+ self.optimize_with_context(plan, &ConfigOnlyContext::new(config))
+ }
+
+ fn optimize_with_context(
+ &self,
+ plan: Arc<dyn ExecutionPlan>,
+ context: &dyn PhysicalOptimizerContext,
+ ) -> Result<Arc<dyn ExecutionPlan>> {
+ let config = context.config_options();
+ if !config.optimizer.join_enumeration {
+ return Ok(plan);
+ }
+ let mut default_registry = None;
+ let registry: Option<&StatisticsRegistry> =
+ if config.optimizer.use_statistics_registry {
+ Some(context.statistics_registry().unwrap_or_else(|| {
+ default_registry
+ .insert(StatisticsRegistry::default_with_builtin_providers())
+ }))
+ } else {
+ None
+ };
+ let mut stats = |plan: &dyn ExecutionPlan| {
+ if let Some(registry) = registry {
+ registry
+ .compute(plan)
+ .map(|s| Arc::<Statistics>::clone(s.base_arc()))
+ } else {
+ StatisticsContext::new().compute(plan, &StatisticsArgs::new())
+ }
+ };
+ Ok(enumerate_join_order(&plan, config, &mut stats)?.unwrap_or(plan))
+ }
+
+ fn name(&self) -> &str {
+ "join_enumeration"
+ }
+
+ fn schema_check(&self) -> bool {
+ true
+ }
+}
+
+/// Hard upper bound on the relations in one join graph. The search allocates `2^n` and
+/// visits `3^n`, so larger graphs keep the planner's order regardless of the limit.
+const MAX_RELATIONS: usize = 16;
+
+/// Computes a plan node's statistics, shared with the rest of `JoinSelection`.
+pub(crate) type StatsFn<'a> =
+ dyn FnMut(&dyn ExecutionPlan) -> Result<Arc<Statistics>> + 'a;
+
+/// A bitmask over relation indices.
+type RelSet = u64;
+
+fn bit(rel: usize) -> RelSet {
+ 1u64 << rel
+}
+
+fn iter_rels(mask: RelSet) -> impl Iterator<Item = usize> {
+ std::iter::successors(Some(mask), |m| Some(m & m.wrapping_sub(1)))
+ .take_while(|m| *m != 0)
+ .map(|m| m.trailing_zeros() as usize)
+}
+
+fn covers(mask: RelSet, required: RelSet) -> bool {
+ required & !mask == 0
+}
+
+/// One column of one relation, tracked instead of a plain index because reordering
+/// moves columns to other positions.
+#[derive(Clone, Copy, PartialEq, Eq, Debug)]
+struct ColRef {
+ rel: usize,
+ col: usize,
+}
+
+/// What a relation contributes to the join.
+#[derive(Debug)]
+enum Role {
+ Output,
+ /// The quantified side of a semi or anti join, which filters instead of
+ /// contributing columns.
+ Reducer(Reducer),
+}
+
+#[derive(Debug)]
+struct Reducer {
+ /// `true` for an anti join, which keeps the rows that do *not* match.
+ anti: bool,
+ /// Keys, as `(column of the filtered side, column index here)`.
+ keys: Vec<(ColRef, usize)>,
+ /// Relations the keys reference; this reducer applies only to a set covering them.
+ required: RelSet,
+}
+
+/// One leaf of the join graph: a subplan the enumerator does not look inside.
+#[derive(Debug)]
+struct Relation {
+ plan: Arc<dyn ExecutionPlan>,
+ /// Estimated row count, clamped to at least 1.
+ rows: f64,
+ /// Estimated bytes per row, when the input reports a size.
+ width: Option<f64>,
+ /// Per-column distinct value estimate, clamped to `[1, rows]`.
+ ndv: Vec<f64>,
+ role: Role,
+}
+
+/// An equi-join predicate `left = right` between two distinct relations.
+#[derive(Clone, Copy, Debug)]
+struct Edge {
+ left: ColRef,
+ right: ColRef,
+}
+
+/// A non-equi join predicate, moved along with its column references rewritten.
+#[derive(Debug)]
+struct Filter {
+ filter: JoinFilter,
+ /// The column each entry of the filter's intermediate schema comes from.
+ columns: Vec<ColRef>,
+ /// The relations those columns belong to.
+ required: RelSet,
+}
+
+/// A connected set of joins as relations plus the predicates between them.
+#[derive(Debug)]
+struct JoinGraph {
+ relations: Vec<Relation>,
+ edges: Vec<Edge>,
+ filters: Vec<Filter>,
Review Comment:
need to have a look what makes sense here
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5339137989
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5339123862)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c5339123862-1735-nxx7f 6.12.85+ #1 SMP Wed Jun 17 20:31:55 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (636b45559c959d6b90c854c52f176a50a7695a60) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..636b45559c959d6b90c854c52f176a50a7695a60)
<details><summary>Run configuration</summary>
```yaml
run benchmark clickbench_partitioned
env:
PREFER_HASH_JOIN: "false"
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5345819315
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5345789291)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c5345789291-1765-c5mpw 6.12.85+ #1 SMP Wed Jun 17 20:31:55 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (4c344867b2cf5edb1ec55ccf6fa138009a7609a7) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..4c344867b2cf5edb1ec55ccf6fa138009a7609a7)
<details><summary>Run configuration</summary>
```yaml
run benchmark clickbench_partitioned
env:
PREFER_HASH_JOIN: "false"
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5338769259
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5338739851)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c5338739851-1727-rsxrf 6.12.85+ #1 SMP Wed Jun 17 20:31:55 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (636b45559c959d6b90c854c52f176a50a7695a60) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..636b45559c959d6b90c854c52f176a50a7695a60)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5345789291
run benchmarks
```
env:
PREFER_HASH_JOIN: false
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5381142408
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5381129576)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c5381129576-1873-vr57l 6.12.85+ #1 SMP Sat Jun 27 09:31:30 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (b8acd17fb6a2a1b307edd71e3c7bb9d75db04e9d) to fc15e25 (merge-base) [diff](https://github.com/apache/datafusion/compare/fc15e25cbb49d457c319dbf522f2982d32c794cb..b8acd17fb6a2a1b307edd71e3c7bb9d75db04e9d)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch10
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5591131957
> Any reading recommendations?
I asked around and no one seemed to know of any good writeups on the API design (I asked Thomas Neumann, Goetz Graefe, and Peter Boncz, among others, and they did not know of any)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "asolimando (via GitHub)" <gi...@apache.org>.
asolimando commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5374742265
> On my machine with the join ordering, DataFusion beats DuckDB on TPC-H at least (didn't check TPC-DS). It would make a nice blog post if that's a robust result...
In case you want further coverage beyond TPC-* benchmarks, I can suggest the join-ordering-benchmark/JOB ([original paper](https://www.vldb.org/pvldb/vol9/p204-leis.pdf), [implementation](https://github.com/gregrahn/join-order-benchmark)).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5373701443
> I haven't had time to look into the details of the code, but since this is still a draft I'd like to mention [DpHyp](https://www.researchgate.net/publication/47862092_Dynamic_Programming_Strikes_Back) for the join ordering problem.
I think the current approach is more close to `DPsub` but of course I am open to try `DpHyp` and see differences. I think one shortcoming of the current approach is not supporting non-inner/semi joins, so solving that with some approach would be great and probably improve performance somewhat more!
On my machine with the join ordering, DataFusion beats DuckDB on TPC-H at least (didn't check TPC-DS). It would make a nice blog post if that's a robust result...
I also agree with @alamb if we have a nice API that allows to register a different algorithm, one could just swap the default (although my goal would be to have a great default that works >90% of the time).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5381206051
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5381129576)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (b8acd17fb6a2a1b307edd71e3c7bb9d75db04e9d) to fc15e25 (merge-base) [diff](https://github.com/apache/datafusion/compare/fc15e25cbb49d457c319dbf522f2982d32c794cb..b8acd17fb6a2a1b307edd71e3c7bb9d75db04e9d)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpcds
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 5.93 ms │ 5.83 ms │ no change │
│ QQuery 2 │ 81.88 ms │ 82.07 ms │ no change │
│ QQuery 3 │ 29.07 ms │ 25.91 ms │ +1.12x faster │
│ QQuery 4 │ 492.42 ms │ 483.04 ms │ no change │
│ QQuery 5 │ 52.97 ms │ 52.51 ms │ no change │
│ QQuery 6 │ 36.36 ms │ 36.16 ms │ no change │
│ QQuery 7 │ 95.54 ms │ 77.32 ms │ +1.24x faster │
│ QQuery 8 │ 36.93 ms │ 37.05 ms │ no change │
│ QQuery 9 │ 52.17 ms │ 52.02 ms │ no change │
│ QQuery 10 │ 63.24 ms │ 57.98 ms │ +1.09x faster │
│ QQuery 11 │ 304.48 ms │ 246.92 ms │ +1.23x faster │
│ QQuery 12 │ 28.98 ms │ 29.26 ms │ no change │
│ QQuery 13 │ 118.57 ms │ 119.25 ms │ no change │
│ QQuery 14 │ 420.78 ms │ 346.82 ms │ +1.21x faster │
│ QQuery 15 │ 59.16 ms │ 52.45 ms │ +1.13x faster │
│ QQuery 16 │ 7.00 ms │ 6.86 ms │ no change │
│ QQuery 17 │ 80.69 ms │ 56.46 ms │ +1.43x faster │
│ QQuery 18 │ 121.83 ms │ 119.04 ms │ no change │
│ QQuery 19 │ 41.52 ms │ 42.86 ms │ no change │
│ QQuery 20 │ 35.07 ms │ 35.50 ms │ no change │
│ QQuery 21 │ 17.19 ms │ 13.39 ms │ +1.28x faster │
│ QQuery 22 │ 62.35 ms │ 63.56 ms │ no change │
│ QQuery 23 │ 340.36 ms │ 273.65 ms │ +1.24x faster │
│ QQuery 24 │ 223.44 ms │ 163.01 ms │ +1.37x faster │
│ QQuery 25 │ 109.09 ms │ 96.47 ms │ +1.13x faster │
│ QQuery 26 │ 57.29 ms │ 53.97 ms │ +1.06x faster │
│ QQuery 27 │ 6.22 ms │ 6.01 ms │ no change │
│ QQuery 28 │ 60.51 ms │ 61.99 ms │ no change │
│ QQuery 29 │ 96.16 ms │ 71.55 ms │ +1.34x faster │
│ QQuery 30 │ 32.14 ms │ 32.38 ms │ no change │
│ QQuery 31 │ 110.10 ms │ 111.22 ms │ no change │
│ QQuery 32 │ 19.87 ms │ 20.46 ms │ no change │
│ QQuery 33 │ 37.83 ms │ 38.25 ms │ no change │
│ QQuery 34 │ 9.95 ms │ 6.16 ms │ +1.62x faster │
│ QQuery 35 │ 72.22 ms │ 66.48 ms │ +1.09x faster │
│ QQuery 36 │ 5.82 ms │ 6.58 ms │ 1.13x slower │
│ QQuery 37 │ 6.76 ms │ 6.71 ms │ no change │
│ QQuery 38 │ 61.10 ms │ 62.21 ms │ no change │
│ QQuery 39 │ 90.11 ms │ 78.83 ms │ +1.14x faster │
│ QQuery 40 │ 22.97 ms │ 20.15 ms │ +1.14x faster │
│ QQuery 41 │ 11.24 ms │ 11.45 ms │ no change │
│ QQuery 42 │ 23.56 ms │ 25.93 ms │ 1.10x slower │
│ QQuery 43 │ 5.30 ms │ 5.19 ms │ no change │
│ QQuery 44 │ 9.66 ms │ 9.69 ms │ no change │
│ QQuery 45 │ 37.65 ms │ 23.23 ms │ +1.62x faster │
│ QQuery 46 │ 11.76 ms │ 6.96 ms │ +1.69x faster │
│ QQuery 47 │ 225.49 ms │ 227.36 ms │ no change │
│ QQuery 48 │ 94.98 ms │ 97.31 ms │ no change │
│ QQuery 49 │ 76.29 ms │ 72.25 ms │ +1.06x faster │
│ QQuery 50 │ 59.06 ms │ 52.41 ms │ +1.13x faster │
│ QQuery 51 │ 92.26 ms │ 92.83 ms │ no change │
│ QQuery 52 │ 23.80 ms │ 26.70 ms │ 1.12x slower │
│ QQuery 53 │ 28.76 ms │ 30.01 ms │ no change │
│ QQuery 54 │ 54.23 ms │ 25.36 ms │ +2.14x faster │
│ QQuery 55 │ 23.21 ms │ 25.78 ms │ 1.11x slower │
│ QQuery 56 │ 38.75 ms │ 44.70 ms │ 1.15x slower │
│ QQuery 57 │ 176.62 ms │ 176.96 ms │ no change │
│ QQuery 58 │ 113.24 ms │ 51.34 ms │ +2.21x faster │
│ QQuery 59 │ 118.21 ms │ 118.98 ms │ no change │
│ QQuery 60 │ 39.48 ms │ 42.40 ms │ 1.07x slower │
│ QQuery 61 │ 12.22 ms │ 10.44 ms │ +1.17x faster │
│ QQuery 62 │ 46.29 ms │ 30.97 ms │ +1.49x faster │
│ QQuery 63 │ 29.41 ms │ 29.75 ms │ no change │
│ QQuery 64 │ 407.07 ms │ 230.10 ms │ +1.77x faster │
│ QQuery 65 │ 121.66 ms │ 124.79 ms │ no change │
│ QQuery 66 │ 80.83 ms │ 66.62 ms │ +1.21x faster │
│ QQuery 67 │ 237.90 ms │ 243.44 ms │ no change │
│ QQuery 68 │ 11.83 ms │ 7.72 ms │ +1.53x faster │
│ QQuery 69 │ 56.99 ms │ 62.66 ms │ 1.10x slower │
│ QQuery 70 │ 105.94 ms │ 77.95 ms │ +1.36x faster │
│ QQuery 71 │ 34.71 ms │ 35.53 ms │ no change │
│ QQuery 72 │ 2044.71 ms │ 77.57 ms │ +26.36x faster │
│ QQuery 73 │ 10.04 ms │ 6.16 ms │ +1.63x faster │
│ QQuery 74 │ 169.11 ms │ 174.92 ms │ no change │
│ QQuery 75 │ 147.23 ms │ 109.26 ms │ +1.35x faster │
│ QQuery 76 │ 35.02 ms │ 35.19 ms │ no change │
│ QQuery 77 │ 60.93 ms │ 62.35 ms │ no change │
│ QQuery 78 │ 195.32 ms │ 217.17 ms │ 1.11x slower │
│ QQuery 79 │ 66.42 ms │ 69.94 ms │ 1.05x slower │
│ QQuery 80 │ 98.96 ms │ 77.01 ms │ +1.28x faster │
│ QQuery 81 │ 26.58 ms │ 26.07 ms │ no change │
│ QQuery 82 │ 16.54 ms │ 18.20 ms │ 1.10x slower │
│ QQuery 83 │ 40.16 ms │ 23.27 ms │ +1.73x faster │
│ QQuery 84 │ 29.66 ms │ 38.55 ms │ 1.30x slower │
│ QQuery 85 │ 106.58 ms │ 98.37 ms │ +1.08x faster │
│ QQuery 86 │ 25.71 ms │ 24.88 ms │ no change │
│ QQuery 87 │ 61.81 ms │ 61.36 ms │ no change │
│ QQuery 88 │ 63.41 ms │ 59.11 ms │ +1.07x faster │
│ QQuery 89 │ 35.65 ms │ 32.41 ms │ +1.10x faster │
│ QQuery 90 │ 17.24 ms │ 14.74 ms │ +1.17x faster │
│ QQuery 91 │ 45.70 ms │ 41.80 ms │ +1.09x faster │
│ QQuery 92 │ 29.57 ms │ 29.00 ms │ no change │
│ QQuery 93 │ 49.96 ms │ 50.22 ms │ no change │
│ QQuery 94 │ 37.93 ms │ 37.85 ms │ no change │
│ QQuery 95 │ 79.88 ms │ 80.88 ms │ no change │
│ QQuery 96 │ 23.90 ms │ 20.53 ms │ +1.16x faster │
│ QQuery 97 │ 46.75 ms │ 53.18 ms │ 1.14x slower │
│ QQuery 98 │ 42.27 ms │ 42.51 ms │ no change │
│ QQuery 99 │ 70.47 ms │ 45.71 ms │ +1.54x faster │
└───────────┴────────────┴─────────────────────────────┴────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD) │ 9691.96ms │
│ Total Time (perf_join-order-enumeration) │ 6933.35ms │
│ Average Time (HEAD) │ 97.90ms │
│ Average Time (perf_join-order-enumeration) │ 70.03ms │
│ Queries Faster │ 41 │
│ Queries Slower │ 12 │
│ Queries with No Change │ 46 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴───────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 5.93 / 6.72 ±1.07 / 8.84 ms │ 5.83 / 6.38 ±0.95 / 8.27 ms │ +1.05x faster │
│ QQuery 2 │ 81.88 / 82.71 ±0.53 / 83.36 ms │ 82.07 / 82.45 ±0.38 / 82.94 ms │ no change │
│ QQuery 3 │ 29.07 / 29.41 ±0.30 / 29.91 ms │ 25.91 / 26.14 ±0.29 / 26.68 ms │ +1.12x faster │
│ QQuery 4 │ 492.42 / 494.66 ±1.67 / 497.31 ms │ 483.04 / 490.27 ±7.04 / 501.82 ms │ no change │
│ QQuery 5 │ 52.97 / 53.51 ±0.79 / 55.07 ms │ 52.51 / 53.22 ±0.82 / 54.79 ms │ no change │
│ QQuery 6 │ 36.36 / 36.82 ±0.38 / 37.39 ms │ 36.16 / 36.76 ±0.38 / 37.22 ms │ no change │
│ QQuery 7 │ 95.54 / 96.20 ±0.49 / 96.91 ms │ 77.32 / 77.86 ±0.32 / 78.23 ms │ +1.24x faster │
│ QQuery 8 │ 36.93 / 39.18 ±3.88 / 46.92 ms │ 37.05 / 38.04 ±1.59 / 41.20 ms │ no change │
│ QQuery 9 │ 52.17 / 55.05 ±2.84 / 60.28 ms │ 52.02 / 54.40 ±1.80 / 56.84 ms │ no change │
│ QQuery 10 │ 63.24 / 63.37 ±0.07 / 63.45 ms │ 57.98 / 58.72 ±0.49 / 59.29 ms │ +1.08x faster │
│ QQuery 11 │ 304.48 / 308.14 ±2.60 / 310.80 ms │ 246.92 / 250.78 ±2.16 / 252.92 ms │ +1.23x faster │
│ QQuery 12 │ 28.98 / 29.43 ±0.30 / 29.81 ms │ 29.26 / 31.03 ±2.89 / 36.80 ms │ 1.05x slower │
│ QQuery 13 │ 118.57 / 120.30 ±1.61 / 123.35 ms │ 119.25 / 120.58 ±1.28 / 122.57 ms │ no change │
│ QQuery 14 │ 420.78 / 425.29 ±4.62 / 433.22 ms │ 346.82 / 350.08 ±3.70 / 357.22 ms │ +1.21x faster │
│ QQuery 15 │ 59.16 / 59.80 ±0.42 / 60.23 ms │ 52.45 / 53.87 ±0.72 / 54.39 ms │ +1.11x faster │
│ QQuery 16 │ 7.00 / 7.15 ±0.16 / 7.43 ms │ 6.86 / 7.12 ±0.34 / 7.79 ms │ no change │
│ QQuery 17 │ 80.69 / 81.87 ±1.38 / 84.42 ms │ 56.46 / 56.83 ±0.30 / 57.28 ms │ +1.44x faster │
│ QQuery 18 │ 121.83 / 124.12 ±2.25 / 127.36 ms │ 119.04 / 119.90 ±1.36 / 122.61 ms │ no change │
│ QQuery 19 │ 41.52 / 41.70 ±0.16 / 41.99 ms │ 42.86 / 43.41 ±0.35 / 43.92 ms │ no change │
│ QQuery 20 │ 35.07 / 35.99 ±0.59 / 36.83 ms │ 35.50 / 35.89 ±0.53 / 36.91 ms │ no change │
│ QQuery 21 │ 17.19 / 18.10 ±1.25 / 20.53 ms │ 13.39 / 14.46 ±0.88 / 15.63 ms │ +1.25x faster │
│ QQuery 22 │ 62.35 / 63.60 ±0.87 / 64.63 ms │ 63.56 / 64.33 ±0.53 / 64.92 ms │ no change │
│ QQuery 23 │ 340.36 / 344.99 ±2.58 / 347.39 ms │ 273.65 / 274.97 ±1.06 / 276.34 ms │ +1.25x faster │
│ QQuery 24 │ 223.44 / 226.26 ±3.85 / 233.64 ms │ 163.01 / 165.39 ±2.23 / 168.66 ms │ +1.37x faster │
│ QQuery 25 │ 109.09 / 110.65 ±1.52 / 113.23 ms │ 96.47 / 97.34 ±0.74 / 98.50 ms │ +1.14x faster │
│ QQuery 26 │ 57.29 / 59.59 ±3.07 / 65.61 ms │ 53.97 / 54.36 ±0.28 / 54.69 ms │ +1.10x faster │
│ QQuery 27 │ 6.22 / 6.36 ±0.15 / 6.63 ms │ 6.01 / 6.14 ±0.15 / 6.44 ms │ no change │
│ QQuery 28 │ 60.51 / 61.30 ±0.44 / 61.81 ms │ 61.99 / 62.27 ±0.24 / 62.66 ms │ no change │
│ QQuery 29 │ 96.16 / 97.47 ±1.56 / 100.51 ms │ 71.55 / 71.89 ±0.21 / 72.16 ms │ +1.36x faster │
│ QQuery 30 │ 32.14 / 34.96 ±3.25 / 40.97 ms │ 32.38 / 33.71 ±1.34 / 35.98 ms │ no change │
│ QQuery 31 │ 110.10 / 110.54 ±0.60 / 111.71 ms │ 111.22 / 112.14 ±1.47 / 115.06 ms │ no change │
│ QQuery 32 │ 19.87 / 20.28 ±0.26 / 20.62 ms │ 20.46 / 20.67 ±0.20 / 20.92 ms │ no change │
│ QQuery 33 │ 37.83 / 38.76 ±1.59 / 41.91 ms │ 38.25 / 38.74 ±0.32 / 39.22 ms │ no change │
│ QQuery 34 │ 9.95 / 10.94 ±0.92 / 12.40 ms │ 6.16 / 6.96 ±1.39 / 9.73 ms │ +1.57x faster │
│ QQuery 35 │ 72.22 / 73.19 ±1.20 / 75.44 ms │ 66.48 / 67.11 ±0.86 / 68.72 ms │ +1.09x faster │
│ QQuery 36 │ 5.82 / 5.95 ±0.15 / 6.22 ms │ 6.58 / 6.71 ±0.18 / 7.07 ms │ 1.13x slower │
│ QQuery 37 │ 6.76 / 6.91 ±0.14 / 7.14 ms │ 6.71 / 6.84 ±0.11 / 6.97 ms │ no change │
│ QQuery 38 │ 61.10 / 61.77 ±0.45 / 62.52 ms │ 62.21 / 63.81 ±1.71 / 66.94 ms │ no change │
│ QQuery 39 │ 90.11 / 92.53 ±2.69 / 96.75 ms │ 78.83 / 80.18 ±1.60 / 83.28 ms │ +1.15x faster │
│ QQuery 40 │ 22.97 / 23.57 ±0.47 / 24.16 ms │ 20.15 / 20.54 ±0.21 / 20.74 ms │ +1.15x faster │
│ QQuery 41 │ 11.24 / 11.46 ±0.22 / 11.87 ms │ 11.45 / 11.54 ±0.09 / 11.68 ms │ no change │
│ QQuery 42 │ 23.56 / 24.15 ±0.55 / 25.18 ms │ 25.93 / 26.27 ±0.27 / 26.62 ms │ 1.09x slower │
│ QQuery 43 │ 5.30 / 5.51 ±0.18 / 5.83 ms │ 5.19 / 5.31 ±0.16 / 5.62 ms │ no change │
│ QQuery 44 │ 9.66 / 9.78 ±0.10 / 9.94 ms │ 9.69 / 10.45 ±1.47 / 13.39 ms │ 1.07x slower │
│ QQuery 45 │ 37.65 / 38.25 ±0.48 / 38.78 ms │ 23.23 / 23.74 ±0.48 / 24.65 ms │ +1.61x faster │
│ QQuery 46 │ 11.76 / 12.00 ±0.27 / 12.40 ms │ 6.96 / 7.25 ±0.20 / 7.58 ms │ +1.66x faster │
│ QQuery 47 │ 225.49 / 229.54 ±3.18 / 234.92 ms │ 227.36 / 230.47 ±2.35 / 234.16 ms │ no change │
│ QQuery 48 │ 94.98 / 96.13 ±0.61 / 96.73 ms │ 97.31 / 98.00 ±0.80 / 99.38 ms │ no change │
│ QQuery 49 │ 76.29 / 77.02 ±0.53 / 77.77 ms │ 72.25 / 73.29 ±0.72 / 74.43 ms │ no change │
│ QQuery 50 │ 59.06 / 60.09 ±0.77 / 61.24 ms │ 52.41 / 52.76 ±0.44 / 53.60 ms │ +1.14x faster │
│ QQuery 51 │ 92.26 / 93.88 ±1.15 / 95.64 ms │ 92.83 / 95.20 ±2.18 / 99.19 ms │ no change │
│ QQuery 52 │ 23.80 / 24.20 ±0.24 / 24.44 ms │ 26.70 / 27.20 ±0.38 / 27.65 ms │ 1.12x slower │
│ QQuery 53 │ 28.76 / 28.93 ±0.13 / 29.14 ms │ 30.01 / 30.12 ±0.09 / 30.21 ms │ no change │
│ QQuery 54 │ 54.23 / 56.83 ±2.94 / 62.17 ms │ 25.36 / 25.55 ±0.20 / 25.91 ms │ +2.22x faster │
│ QQuery 55 │ 23.21 / 23.51 ±0.25 / 23.78 ms │ 25.78 / 26.12 ±0.19 / 26.32 ms │ 1.11x slower │
│ QQuery 56 │ 38.75 / 39.20 ±0.51 / 40.09 ms │ 44.70 / 45.22 ±0.68 / 46.53 ms │ 1.15x slower │
│ QQuery 57 │ 176.62 / 177.22 ±0.45 / 177.96 ms │ 176.96 / 179.03 ±1.72 / 182.09 ms │ no change │
│ QQuery 58 │ 113.24 / 113.90 ±0.51 / 114.53 ms │ 51.34 / 52.21 ±0.70 / 53.36 ms │ +2.18x faster │
│ QQuery 59 │ 118.21 / 118.93 ±0.57 / 119.94 ms │ 118.98 / 120.20 ±1.30 / 122.63 ms │ no change │
│ QQuery 60 │ 39.48 / 39.74 ±0.19 / 39.91 ms │ 42.40 / 43.33 ±0.65 / 44.37 ms │ 1.09x slower │
│ QQuery 61 │ 12.22 / 12.38 ±0.26 / 12.89 ms │ 10.44 / 10.62 ±0.21 / 11.02 ms │ +1.17x faster │
│ QQuery 62 │ 46.29 / 47.45 ±1.86 / 51.15 ms │ 30.97 / 31.14 ±0.13 / 31.31 ms │ +1.52x faster │
│ QQuery 63 │ 29.41 / 29.86 ±0.66 / 31.13 ms │ 29.75 / 29.98 ±0.15 / 30.18 ms │ no change │
│ QQuery 64 │ 407.07 / 413.11 ±5.80 / 423.24 ms │ 230.10 / 235.97 ±6.08 / 247.61 ms │ +1.75x faster │
│ QQuery 65 │ 121.66 / 124.45 ±2.58 / 129.06 ms │ 124.79 / 126.37 ±1.22 / 127.69 ms │ no change │
│ QQuery 66 │ 80.83 / 83.26 ±2.78 / 88.37 ms │ 66.62 / 67.47 ±0.81 / 68.98 ms │ +1.23x faster │
│ QQuery 67 │ 237.90 / 246.40 ±6.20 / 255.96 ms │ 243.44 / 248.53 ±3.89 / 253.17 ms │ no change │
│ QQuery 68 │ 11.83 / 12.15 ±0.21 / 12.49 ms │ 7.72 / 7.94 ±0.21 / 8.29 ms │ +1.53x faster │
│ QQuery 69 │ 56.99 / 57.13 ±0.15 / 57.39 ms │ 62.66 / 65.74 ±4.52 / 74.73 ms │ 1.15x slower │
│ QQuery 70 │ 105.94 / 111.03 ±4.88 / 120.02 ms │ 77.95 / 78.63 ±0.53 / 79.38 ms │ +1.41x faster │
│ QQuery 71 │ 34.71 / 35.23 ±0.47 / 35.98 ms │ 35.53 / 35.77 ±0.36 / 36.48 ms │ no change │
│ QQuery 72 │ 2044.71 / 2096.50 ±30.05 / 2133.50 ms │ 77.57 / 79.34 ±2.90 / 85.09 ms │ +26.43x faster │
│ QQuery 73 │ 10.04 / 11.02 ±1.43 / 13.78 ms │ 6.16 / 6.29 ±0.16 / 6.61 ms │ +1.75x faster │
│ QQuery 74 │ 169.11 / 171.85 ±2.78 / 176.65 ms │ 174.92 / 177.79 ±2.92 / 183.33 ms │ no change │
│ QQuery 75 │ 147.23 / 151.48 ±7.01 / 165.48 ms │ 109.26 / 111.15 ±1.19 / 112.72 ms │ +1.36x faster │
│ QQuery 76 │ 35.02 / 35.41 ±0.26 / 35.74 ms │ 35.19 / 35.66 ±0.31 / 36.01 ms │ no change │
│ QQuery 77 │ 60.93 / 64.47 ±4.45 / 72.97 ms │ 62.35 / 64.56 ±2.61 / 69.13 ms │ no change │
│ QQuery 78 │ 195.32 / 200.56 ±5.08 / 209.43 ms │ 217.17 / 223.16 ±5.18 / 230.42 ms │ 1.11x slower │
│ QQuery 79 │ 66.42 / 66.83 ±0.43 / 67.62 ms │ 69.94 / 70.30 ±0.35 / 70.85 ms │ 1.05x slower │
│ QQuery 80 │ 98.96 / 99.82 ±1.09 / 101.96 ms │ 77.01 / 77.56 ±0.65 / 78.78 ms │ +1.29x faster │
│ QQuery 81 │ 26.58 / 30.13 ±6.03 / 42.17 ms │ 26.07 / 29.08 ±3.76 / 36.02 ms │ no change │
│ QQuery 82 │ 16.54 / 17.09 ±0.35 / 17.55 ms │ 18.20 / 18.82 ±0.66 / 20.00 ms │ 1.10x slower │
│ QQuery 83 │ 40.16 / 40.52 ±0.25 / 40.88 ms │ 23.27 / 23.45 ±0.13 / 23.60 ms │ +1.73x faster │
│ QQuery 84 │ 29.66 / 29.86 ±0.19 / 30.19 ms │ 38.55 / 39.36 ±1.19 / 41.73 ms │ 1.32x slower │
│ QQuery 85 │ 106.58 / 110.34 ±5.97 / 122.23 ms │ 98.37 / 99.89 ±1.21 / 101.45 ms │ +1.10x faster │
│ QQuery 86 │ 25.71 / 26.33 ±0.46 / 27.05 ms │ 24.88 / 25.29 ±0.40 / 25.99 ms │ no change │
│ QQuery 87 │ 61.81 / 63.30 ±1.12 / 65.28 ms │ 61.36 / 62.25 ±0.69 / 63.47 ms │ no change │
│ QQuery 88 │ 63.41 / 63.96 ±0.56 / 64.78 ms │ 59.11 / 59.86 ±0.46 / 60.42 ms │ +1.07x faster │
│ QQuery 89 │ 35.65 / 37.10 ±1.85 / 40.74 ms │ 32.41 / 32.63 ±0.17 / 32.92 ms │ +1.14x faster │
│ QQuery 90 │ 17.24 / 17.30 ±0.07 / 17.43 ms │ 14.74 / 15.50 ±1.04 / 17.53 ms │ +1.12x faster │
│ QQuery 91 │ 45.70 / 46.36 ±0.40 / 46.71 ms │ 41.80 / 42.44 ±0.60 / 43.50 ms │ +1.09x faster │
│ QQuery 92 │ 29.57 / 30.00 ±0.39 / 30.70 ms │ 29.00 / 29.78 ±0.71 / 31.04 ms │ no change │
│ QQuery 93 │ 49.96 / 51.11 ±0.94 / 52.64 ms │ 50.22 / 50.91 ±0.50 / 51.64 ms │ no change │
│ QQuery 94 │ 37.93 / 38.62 ±0.72 / 39.95 ms │ 37.85 / 38.60 ±0.45 / 39.13 ms │ no change │
│ QQuery 95 │ 79.88 / 82.75 ±2.97 / 88.38 ms │ 80.88 / 82.63 ±1.95 / 86.38 ms │ no change │
│ QQuery 96 │ 23.90 / 24.20 ±0.16 / 24.37 ms │ 20.53 / 20.90 ±0.40 / 21.60 ms │ +1.16x faster │
│ QQuery 97 │ 46.75 / 47.37 ±0.72 / 48.72 ms │ 53.18 / 54.27 ±0.76 / 55.05 ms │ 1.15x slower │
│ QQuery 98 │ 42.27 / 43.32 ±0.61 / 44.00 ms │ 42.51 / 43.63 ±0.66 / 44.31 ms │ no change │
│ QQuery 99 │ 70.47 / 71.70 ±1.29 / 74.14 ms │ 45.71 / 46.63 ±1.18 / 48.90 ms │ +1.54x faster │
└───────────┴───────────────────────────────────────┴───────────────────────────────────┴────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD) │ 9881.24ms │
│ Total Time (perf_join-order-enumeration) │ 7045.39ms │
│ Average Time (HEAD) │ 99.81ms │
│ Average Time (perf_join-order-enumeration) │ 71.17ms │
│ Queries Faster │ 41 │
│ Queries Slower │ 14 │
│ Queries with No Change │ 44 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴───────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpcds — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 50.0s |
| Peak memory | 2.1 GiB |
| Avg memory | 1.4 GiB |
| CPU user | 219.5s |
| CPU sys | 5.8s |
| Peak spill | 0 B |
**tpcds — branch**
| Metric | Value |
|--------|-------|
| Wall time | 40.0s |
| Peak memory | 2.4 GiB |
| Avg memory | 1.4 GiB |
| CPU user | 99.2s |
| CPU sys | 4.8s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "jayzhan211 (via GitHub)" <gi...@apache.org>.
jayzhan211 commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-6071641567
I'd also like to help with the join order side of things.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "jayzhan211 (via GitHub)" <gi...@apache.org>.
jayzhan211 commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-6092304184
Sure! I've been seeing a lot of join-related issues come up across various posts, so I think joins are an area DataFusion really needs to improve — both spilling joins and join ordering.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5329585490
<!-- semver-check-comment -->
Thank you for opening this pull request!
Reviewer note: [cargo-semver-checks](https://github.com/obi1kenobi/cargo-semver-checks) reported the current version number is not SemVer-compatible with the changes in this pull request (compared against the base branch).
<details>
<summary>Details</summary>
```
Cloning apache/main
Building datafusion v54.1.0 (current)
Built [ 57.037s] (current)
Parsing datafusion v54.1.0 (current)
Parsed [ 0.038s] (current)
Building datafusion v54.1.0 (baseline)
Built [ 56.261s] (baseline)
Parsing datafusion v54.1.0 (baseline)
Parsed [ 0.037s] (baseline)
Checking datafusion v54.1.0 -> v54.1.0 (no change; assume patch)
Checked [ 0.964s] 223 checks: 223 pass, 31 skip
Summary no semver update required
Finished [ 117.304s] datafusion
Building datafusion-common v54.1.0 (current)
Built [ 32.957s] (current)
Parsing datafusion-common v54.1.0 (current)
Parsed [ 0.066s] (current)
Building datafusion-common v54.1.0 (baseline)
Built [ 32.978s] (baseline)
Parsing datafusion-common v54.1.0 (baseline)
Parsed [ 0.065s] (baseline)
Checking datafusion-common v54.1.0 -> v54.1.0 (no change; assume patch)
Checked [ 1.089s] 223 checks: 222 pass, 1 fail, 0 warn, 31 skip
--- failure constructible_struct_adds_field: struct exhaustively constructible through public API adds field ---
Description:
A pub struct that could be exhaustively constructed with a literal using only public API has a new pub field, breaking existing exhaustive literals.
ref: https://doc.rust-lang.org/reference/expressions/struct-expr.html
impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.50.0/src/lints/constructible_struct_adds_field.ron
Failed in:
field OptimizerOptions.join_enumeration in /home/runner/work/datafusion/datafusion/datafusion/common/src/config.rs:1464
field OptimizerOptions.join_enumeration_limit in /home/runner/work/datafusion/datafusion/datafusion/common/src/config.rs:1464
Summary semver requires new major version: 1 major and 0 minor checks failed
Finished [ 68.559s] datafusion-common
Building datafusion-physical-optimizer v54.1.0 (current)
Built [ 39.268s] (current)
Parsing datafusion-physical-optimizer v54.1.0 (current)
Parsed [ 0.027s] (current)
Building datafusion-physical-optimizer v54.1.0 (baseline)
Built [ 39.409s] (baseline)
Parsing datafusion-physical-optimizer v54.1.0 (baseline)
Parsed [ 0.024s] (baseline)
Checking datafusion-physical-optimizer v54.1.0 -> v54.1.0 (no change; assume patch)
Checked [ 0.159s] 223 checks: 223 pass, 31 skip
Summary no semver update required
Finished [ 81.274s] datafusion-physical-optimizer
Building datafusion-physical-plan v54.1.0 (current)
Built [ 37.432s] (current)
Parsing datafusion-physical-plan v54.1.0 (current)
Parsed [ 0.152s] (current)
Building datafusion-physical-plan v54.1.0 (baseline)
Built [ 37.687s] (baseline)
Parsing datafusion-physical-plan v54.1.0 (baseline)
Parsed [ 0.155s] (baseline)
Checking datafusion-physical-plan v54.1.0 -> v54.1.0 (no change; assume patch)
Checked [ 1.028s] 223 checks: 223 pass, 31 skip
Summary no semver update required
Finished [ 77.793s] datafusion-physical-plan
Building datafusion-sqllogictest v54.1.0 (current)
Built [ 99.529s] (current)
Parsing datafusion-sqllogictest v54.1.0 (current)
Parsed [ 0.022s] (current)
Building datafusion-sqllogictest v54.1.0 (baseline)
Built [ 98.367s] (baseline)
Parsing datafusion-sqllogictest v54.1.0 (baseline)
Parsed [ 0.024s] (baseline)
Checking datafusion-sqllogictest v54.1.0 -> v54.1.0 (no change; assume patch)
Checked [ 0.125s] 223 checks: 223 pass, 31 skip
Summary no semver update required
Finished [ 200.780s] datafusion-sqllogictest
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5338740707
run benchmark tpch10
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5345332013
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5345293493)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c5345293493-1758-vblfz 6.12.85+ #1 SMP Wed Jun 17 20:31:55 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (4c344867b2cf5edb1ec55ccf6fa138009a7609a7) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..4c344867b2cf5edb1ec55ccf6fa138009a7609a7)
<details><summary>Run configuration</summary>
```yaml
run benchmark clickbench_partitioned
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5345550873
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5345293493)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (4c344867b2cf5edb1ec55ccf6fa138009a7609a7) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..4c344867b2cf5edb1ec55ccf6fa138009a7609a7)
<details><summary>Run configuration</summary>
```yaml
run benchmark clickbench_partitioned
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0 │ 1.24 ms │ 1.23 ms │ no change │
│ QQuery 1 │ 11.86 ms │ 11.84 ms │ no change │
│ QQuery 2 │ 37.35 ms │ 36.33 ms │ no change │
│ QQuery 3 │ 31.59 ms │ 31.38 ms │ no change │
│ QQuery 4 │ 233.35 ms │ 231.87 ms │ no change │
│ QQuery 5 │ 280.23 ms │ 279.28 ms │ no change │
│ QQuery 6 │ 1.29 ms │ 1.28 ms │ no change │
│ QQuery 7 │ 13.52 ms │ 13.42 ms │ no change │
│ QQuery 8 │ 337.15 ms │ 337.27 ms │ no change │
│ QQuery 9 │ 472.03 ms │ 462.92 ms │ no change │
│ QQuery 10 │ 70.55 ms │ 72.36 ms │ no change │
│ QQuery 11 │ 82.86 ms │ 83.50 ms │ no change │
│ QQuery 12 │ 274.14 ms │ 276.69 ms │ no change │
│ QQuery 13 │ 367.88 ms │ 387.83 ms │ 1.05x slower │
│ QQuery 14 │ 291.19 ms │ 290.42 ms │ no change │
│ QQuery 15 │ 271.15 ms │ 288.80 ms │ 1.07x slower │
│ QQuery 16 │ 713.44 ms │ 637.53 ms │ +1.12x faster │
│ QQuery 17 │ 728.14 ms │ 626.56 ms │ +1.16x faster │
│ QQuery 18 │ 1314.29 ms │ 1296.62 ms │ no change │
│ QQuery 19 │ 28.16 ms │ 27.86 ms │ no change │
│ QQuery 20 │ 517.02 ms │ 526.53 ms │ no change │
│ QQuery 21 │ 516.42 ms │ 542.55 ms │ 1.05x slower │
│ QQuery 22 │ 1004.03 ms │ 1021.52 ms │ no change │
│ QQuery 23 │ 3106.65 ms │ 3196.96 ms │ no change │
│ QQuery 24 │ 43.65 ms │ 42.85 ms │ no change │
│ QQuery 25 │ 113.29 ms │ 119.39 ms │ 1.05x slower │
│ QQuery 26 │ 41.74 ms │ 44.69 ms │ 1.07x slower │
│ QQuery 27 │ 514.88 ms │ 528.81 ms │ no change │
│ QQuery 28 │ 2906.31 ms │ 2958.53 ms │ no change │
│ QQuery 29 │ 42.82 ms │ 41.10 ms │ no change │
│ QQuery 30 │ 355.93 ms │ 309.45 ms │ +1.15x faster │
│ QQuery 31 │ 311.27 ms │ 288.94 ms │ +1.08x faster │
│ QQuery 32 │ 1119.42 ms │ 960.78 ms │ +1.17x faster │
│ QQuery 33 │ 1486.70 ms │ 1499.30 ms │ no change │
│ QQuery 34 │ 1505.10 ms │ 1560.57 ms │ no change │
│ QQuery 35 │ 333.35 ms │ 292.14 ms │ +1.14x faster │
│ QQuery 36 │ 71.34 ms │ 73.88 ms │ no change │
│ QQuery 37 │ 36.33 ms │ 37.22 ms │ no change │
│ QQuery 38 │ 41.75 ms │ 49.79 ms │ 1.19x slower │
│ QQuery 39 │ 141.75 ms │ 171.93 ms │ 1.21x slower │
│ QQuery 40 │ 14.46 ms │ 15.38 ms │ 1.06x slower │
│ QQuery 41 │ 14.30 ms │ 14.21 ms │ no change │
│ QQuery 42 │ 13.79 ms │ 13.80 ms │ no change │
└───────────┴────────────┴─────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD) │ 19813.71ms │
│ Total Time (perf_join-order-enumeration) │ 19705.30ms │
│ Average Time (HEAD) │ 460.78ms │
│ Average Time (perf_join-order-enumeration) │ 458.26ms │
│ Queries Faster │ 6 │
│ Queries Slower │ 8 │
│ Queries with No Change │ 29 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴────────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0 │ 1.24 / 4.08 ±5.54 / 15.16 ms │ 1.23 / 4.01 ±5.44 / 14.89 ms │ no change │
│ QQuery 1 │ 11.86 / 12.56 ±0.35 / 12.78 ms │ 11.84 / 12.34 ±0.28 / 12.66 ms │ no change │
│ QQuery 2 │ 37.35 / 37.61 ±0.23 / 37.92 ms │ 36.33 / 36.68 ±0.24 / 37.03 ms │ no change │
│ QQuery 3 │ 31.59 / 32.31 ±0.72 / 33.61 ms │ 31.38 / 31.54 ±0.15 / 31.78 ms │ no change │
│ QQuery 4 │ 233.35 / 235.17 ±1.30 / 236.36 ms │ 231.87 / 235.71 ±2.04 / 237.69 ms │ no change │
│ QQuery 5 │ 280.23 / 283.40 ±2.96 / 287.76 ms │ 279.28 / 282.76 ±3.06 / 287.92 ms │ no change │
│ QQuery 6 │ 1.29 / 1.43 ±0.21 / 1.85 ms │ 1.28 / 1.45 ±0.24 / 1.94 ms │ no change │
│ QQuery 7 │ 13.52 / 13.81 ±0.15 / 13.94 ms │ 13.42 / 13.73 ±0.17 / 13.93 ms │ no change │
│ QQuery 8 │ 337.15 / 342.25 ±4.23 / 348.32 ms │ 337.27 / 342.81 ±3.12 / 346.46 ms │ no change │
│ QQuery 9 │ 472.03 / 479.00 ±3.80 / 483.22 ms │ 462.92 / 482.59 ±14.75 / 506.38 ms │ no change │
│ QQuery 10 │ 70.55 / 72.21 ±1.21 / 73.89 ms │ 72.36 / 76.24 ±5.35 / 86.78 ms │ 1.06x slower │
│ QQuery 11 │ 82.86 / 85.23 ±3.78 / 92.76 ms │ 83.50 / 84.48 ±0.86 / 86.03 ms │ no change │
│ QQuery 12 │ 274.14 / 279.12 ±4.55 / 287.07 ms │ 276.69 / 282.10 ±5.79 / 292.92 ms │ no change │
│ QQuery 13 │ 367.88 / 383.08 ±11.48 / 402.56 ms │ 387.83 / 434.78 ±31.41 / 478.65 ms │ 1.13x slower │
│ QQuery 14 │ 291.19 / 294.15 ±2.07 / 296.69 ms │ 290.42 / 300.27 ±7.56 / 311.09 ms │ no change │
│ QQuery 15 │ 271.15 / 279.35 ±5.30 / 287.19 ms │ 288.80 / 296.53 ±7.60 / 311.09 ms │ 1.06x slower │
│ QQuery 16 │ 713.44 / 725.73 ±10.23 / 743.21 ms │ 637.53 / 645.55 ±10.17 / 665.18 ms │ +1.12x faster │
│ QQuery 17 │ 728.14 / 739.58 ±8.64 / 751.55 ms │ 626.56 / 649.33 ±12.76 / 665.15 ms │ +1.14x faster │
│ QQuery 18 │ 1314.29 / 1416.00 ±60.45 / 1502.59 ms │ 1296.62 / 1327.58 ±26.05 / 1374.62 ms │ +1.07x faster │
│ QQuery 19 │ 28.16 / 29.14 ±0.68 / 30.30 ms │ 27.86 / 27.98 ±0.12 / 28.18 ms │ no change │
│ QQuery 20 │ 517.02 / 531.54 ±15.47 / 559.24 ms │ 526.53 / 541.61 ±8.29 / 550.02 ms │ no change │
│ QQuery 21 │ 516.42 / 518.40 ±1.38 / 520.14 ms │ 542.55 / 551.74 ±9.08 / 568.19 ms │ 1.06x slower │
│ QQuery 22 │ 1004.03 / 1023.45 ±13.98 / 1040.63 ms │ 1021.52 / 1060.55 ±20.63 / 1082.12 ms │ no change │
│ QQuery 23 │ 3106.65 / 3180.87 ±52.24 / 3250.75 ms │ 3196.96 / 3244.07 ±32.94 / 3298.94 ms │ no change │
│ QQuery 24 │ 43.65 / 45.28 ±2.08 / 49.38 ms │ 42.85 / 45.79 ±3.59 / 52.71 ms │ no change │
│ QQuery 25 │ 113.29 / 117.93 ±2.64 / 120.91 ms │ 119.39 / 123.05 ±3.02 / 128.57 ms │ no change │
│ QQuery 26 │ 41.74 / 42.85 ±0.80 / 44.05 ms │ 44.69 / 45.59 ±0.47 / 46.09 ms │ 1.06x slower │
│ QQuery 27 │ 514.88 / 521.81 ±6.09 / 532.96 ms │ 528.81 / 541.22 ±8.86 / 553.29 ms │ no change │
│ QQuery 28 │ 2906.31 / 2942.63 ±21.32 / 2970.48 ms │ 2958.53 / 2996.06 ±31.10 / 3031.26 ms │ no change │
│ QQuery 29 │ 42.82 / 43.17 ±0.38 / 43.80 ms │ 41.10 / 43.88 ±4.68 / 53.23 ms │ no change │
│ QQuery 30 │ 355.93 / 362.35 ±6.09 / 373.44 ms │ 309.45 / 318.81 ±7.52 / 325.99 ms │ +1.14x faster │
│ QQuery 31 │ 311.27 / 341.84 ±19.89 / 370.25 ms │ 288.94 / 303.49 ±17.99 / 337.65 ms │ +1.13x faster │
│ QQuery 32 │ 1119.42 / 1177.99 ±40.45 / 1223.98 ms │ 960.78 / 987.32 ±20.97 / 1009.66 ms │ +1.19x faster │
│ QQuery 33 │ 1486.70 / 1584.48 ±95.14 / 1738.63 ms │ 1499.30 / 1594.25 ±110.50 / 1807.26 ms │ no change │
│ QQuery 34 │ 1505.10 / 1564.29 ±32.15 / 1594.60 ms │ 1560.57 / 1748.48 ±103.91 / 1847.72 ms │ 1.12x slower │
│ QQuery 35 │ 333.35 / 384.64 ±62.80 / 505.51 ms │ 292.14 / 326.09 ±35.58 / 392.50 ms │ +1.18x faster │
│ QQuery 36 │ 71.34 / 73.97 ±2.33 / 76.97 ms │ 73.88 / 77.97 ±3.58 / 82.26 ms │ 1.05x slower │
│ QQuery 37 │ 36.33 / 40.78 ±6.28 / 52.84 ms │ 37.22 / 42.70 ±3.46 / 46.32 ms │ no change │
│ QQuery 38 │ 41.75 / 46.53 ±3.55 / 51.12 ms │ 49.79 / 56.94 ±7.37 / 70.54 ms │ 1.22x slower │
│ QQuery 39 │ 141.75 / 153.73 ±14.06 / 178.17 ms │ 171.93 / 178.78 ±5.32 / 186.20 ms │ 1.16x slower │
│ QQuery 40 │ 14.46 / 15.08 ±0.45 / 15.68 ms │ 15.38 / 18.33 ±3.69 / 25.32 ms │ 1.22x slower │
│ QQuery 41 │ 14.30 / 16.38 ±3.22 / 22.76 ms │ 14.21 / 16.02 ±3.39 / 22.79 ms │ no change │
│ QQuery 42 │ 13.79 / 18.56 ±9.17 / 36.89 ms │ 13.80 / 17.40 ±4.25 / 22.73 ms │ +1.07x faster │
└───────────┴───────────────────────────────────────┴────────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD) │ 20493.72ms │
│ Total Time (perf_join-order-enumeration) │ 20448.58ms │
│ Average Time (HEAD) │ 476.60ms │
│ Average Time (perf_join-order-enumeration) │ 475.55ms │
│ Queries Faster │ 8 │
│ Queries Slower │ 10 │
│ Queries with No Change │ 25 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴────────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**clickbench_partitioned — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 105.0s |
| Peak memory | 12.2 GiB |
| Avg memory | 4.8 GiB |
| CPU user | 1047.8s |
| CPU sys | 76.6s |
| Peak spill | 0 B |
**clickbench_partitioned — branch**
| Metric | Value |
|--------|-------|
| Wall time | 105.0s |
| Peak memory | 11.4 GiB |
| Avg memory | 4.3 GiB |
| CPU user | 1037.6s |
| CPU sys | 79.6s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5347591473
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5347556113)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c5347556113-1774-lgv6w 6.12.85+ #1 SMP Wed Jun 17 20:31:55 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (cf466cab6fbd6e728914b060d932a8bebc6ec8dd) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..cf466cab6fbd6e728914b060d932a8bebc6ec8dd)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpcds
env:
PREFER_HASH_JOIN: "false"
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5347589751
Benchmark for [this request](https://github.com/apache/datafusion/pull/24456#issuecomment-5347556113) failed before finishing (Kubernetes reason: `BackoffLimitExceeded`).
Benchmarks requested: `run`
<details><summary>Kubernetes message</summary>
```
Job has reached the specified backoff limit
```
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5347706743
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5347556113)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (cf466cab6fbd6e728914b060d932a8bebc6ec8dd) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..cf466cab6fbd6e728914b060d932a8bebc6ec8dd)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch10
env:
PREFER_HASH_JOIN: "false"
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf10.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 310.82 ms │ 309.87 ms │ no change │
│ QQuery 2 │ 106.70 ms │ 70.76 ms │ +1.51x faster │
│ QQuery 3 │ 226.81 ms │ 213.13 ms │ +1.06x faster │
│ QQuery 4 │ 111.79 ms │ 111.54 ms │ no change │
│ QQuery 5 │ 345.49 ms │ 278.30 ms │ +1.24x faster │
│ QQuery 6 │ 120.99 ms │ 121.77 ms │ no change │
│ QQuery 7 │ 465.23 ms │ 248.17 ms │ +1.87x faster │
│ QQuery 8 │ 373.08 ms │ 415.48 ms │ 1.11x slower │
│ QQuery 9 │ 549.18 ms │ 498.53 ms │ +1.10x faster │
│ QQuery 10 │ 300.63 ms │ 294.74 ms │ no change │
│ QQuery 11 │ 91.12 ms │ 57.61 ms │ +1.58x faster │
│ QQuery 12 │ 186.47 ms │ 164.04 ms │ +1.14x faster │
│ QQuery 13 │ 335.20 ms │ 294.03 ms │ +1.14x faster │
│ QQuery 14 │ 179.73 ms │ 168.62 ms │ +1.07x faster │
│ QQuery 15 │ 322.36 ms │ 296.37 ms │ +1.09x faster │
│ QQuery 16 │ 68.18 ms │ 57.38 ms │ +1.19x faster │
│ QQuery 17 │ 618.86 ms │ 555.75 ms │ +1.11x faster │
│ QQuery 18 │ 696.22 ms │ 675.32 ms │ no change │
│ QQuery 19 │ 240.10 ms │ 251.48 ms │ no change │
│ QQuery 20 │ 296.06 ms │ 251.17 ms │ +1.18x faster │
│ QQuery 21 │ 655.25 ms │ 601.07 ms │ +1.09x faster │
│ QQuery 22 │ 60.69 ms │ 58.38 ms │ no change │
└───────────┴───────────┴─────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD) │ 6660.99ms │
│ Total Time (perf_join-order-enumeration) │ 5993.50ms │
│ Average Time (HEAD) │ 302.77ms │
│ Average Time (perf_join-order-enumeration) │ 272.43ms │
│ Queries Faster │ 14 │
│ Queries Slower │ 1 │
│ Queries with No Change │ 7 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴───────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf10.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 310.82 / 314.31 ±5.02 / 323.99 ms │ 309.87 / 310.37 ±0.48 / 311.10 ms │ no change │
│ QQuery 2 │ 106.70 / 108.39 ±1.88 / 111.96 ms │ 70.76 / 71.29 ±0.42 / 71.76 ms │ +1.52x faster │
│ QQuery 3 │ 226.81 / 231.13 ±3.57 / 236.68 ms │ 213.13 / 217.37 ±2.65 / 220.48 ms │ +1.06x faster │
│ QQuery 4 │ 111.79 / 114.05 ±1.32 / 115.47 ms │ 111.54 / 112.00 ±0.38 / 112.46 ms │ no change │
│ QQuery 5 │ 345.49 / 355.08 ±6.32 / 361.97 ms │ 278.30 / 285.07 ±7.36 / 295.00 ms │ +1.25x faster │
│ QQuery 6 │ 120.99 / 122.70 ±3.05 / 128.79 ms │ 121.77 / 123.12 ±2.11 / 127.30 ms │ no change │
│ QQuery 7 │ 465.23 / 470.55 ±4.97 / 478.94 ms │ 248.17 / 250.18 ±2.37 / 254.64 ms │ +1.88x faster │
│ QQuery 8 │ 373.08 / 381.93 ±7.73 / 391.60 ms │ 415.48 / 438.82 ±17.61 / 459.97 ms │ 1.15x slower │
│ QQuery 9 │ 549.18 / 561.13 ±6.53 / 568.55 ms │ 498.53 / 517.19 ±12.32 / 537.38 ms │ +1.08x faster │
│ QQuery 10 │ 300.63 / 316.92 ±16.63 / 345.46 ms │ 294.74 / 306.21 ±9.08 / 315.81 ms │ no change │
│ QQuery 11 │ 91.12 / 100.32 ±8.71 / 114.07 ms │ 57.61 / 61.50 ±6.11 / 73.67 ms │ +1.63x faster │
│ QQuery 12 │ 186.47 / 190.12 ±2.20 / 193.15 ms │ 164.04 / 168.54 ±4.25 / 175.78 ms │ +1.13x faster │
│ QQuery 13 │ 335.20 / 343.58 ±9.19 / 361.05 ms │ 294.03 / 308.47 ±10.44 / 323.39 ms │ +1.11x faster │
│ QQuery 14 │ 179.73 / 184.75 ±5.54 / 195.44 ms │ 168.62 / 173.92 ±4.21 / 180.92 ms │ +1.06x faster │
│ QQuery 15 │ 322.36 / 329.31 ±5.42 / 337.62 ms │ 296.37 / 297.34 ±0.90 / 298.91 ms │ +1.11x faster │
│ QQuery 16 │ 68.18 / 70.71 ±2.09 / 74.06 ms │ 57.38 / 63.11 ±9.17 / 81.37 ms │ +1.12x faster │
│ QQuery 17 │ 618.86 / 649.19 ±36.11 / 715.32 ms │ 555.75 / 561.58 ±6.89 / 575.04 ms │ +1.16x faster │
│ QQuery 18 │ 696.22 / 725.41 ±24.81 / 755.94 ms │ 675.32 / 761.49 ±80.19 / 880.53 ms │ no change │
│ QQuery 19 │ 240.10 / 263.10 ±26.20 / 311.85 ms │ 251.48 / 274.98 ±17.74 / 304.04 ms │ no change │
│ QQuery 20 │ 296.06 / 309.78 ±15.37 / 328.98 ms │ 251.17 / 269.28 ±13.03 / 285.65 ms │ +1.15x faster │
│ QQuery 21 │ 655.25 / 680.09 ±28.51 / 729.76 ms │ 601.07 / 619.32 ±18.61 / 654.43 ms │ +1.10x faster │
│ QQuery 22 │ 60.69 / 61.85 ±0.98 / 63.45 ms │ 58.38 / 60.89 ±1.62 / 62.90 ms │ no change │
└───────────┴────────────────────────────────────┴────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD) │ 6884.39ms │
│ Total Time (perf_join-order-enumeration) │ 6252.04ms │
│ Average Time (HEAD) │ 312.93ms │
│ Average Time (perf_join-order-enumeration) │ 284.18ms │
│ Queries Faster │ 14 │
│ Queries Slower │ 1 │
│ Queries with No Change │ 7 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴───────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpch10 — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 35.0s |
| Peak memory | 4.7 GiB |
| Avg memory | 1.5 GiB |
| CPU user | 345.5s |
| CPU sys | 19.1s |
| Peak spill | 0 B |
**tpch10 — branch**
| Metric | Value |
|--------|-------|
| Wall time | 35.0s |
| Peak memory | 5.3 GiB |
| Avg memory | 1.6 GiB |
| CPU user | 308.4s |
| CPU sys | 16.8s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5373567136
> The benchmark results are very promising and I am very excited to see work in this area!
>
> I haven't had time to look into the details of the code, but since this is still a draft I'd like to mention [DpHyp](https://www.researchgate.net/publication/47862092_Dynamic_Programming_Strikes_Back) for the join ordering problem.
Yes, this kind of observation is exactly why I think we need to have an extensible framework (to be able to swap different implementations in/out)
> I feel that the algorithm itself wouldn't need customization points, as it's mostly cost-agnostic, what we would like to provide is a customization around statistics/cost-model.
Yes, I think in general join optimization algorthms are all:
1. A set of heuristics for choosing candidates / exploring the state space
2. A cost model to pick between them
And there are 50 years of papers about different implementations of the above
I think it is absolutely certain we will not be able to include any implementation in the core that will satisfy all use cases.
> For the former #23651 will probably suffice (paired with the improved version of #21122 which is next on my list).
Great -- thank you. I'll try and look at them later
> For the latter, I think it can be done via a physical planning rule "costing" alternatives coming from the hypergraph, to pick the cheapest, as physical rules are already a known customization point.
yes, I agree -- I will try and propose an API for this
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5328693685
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5328427832)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (a329cf31232aa58729328b8783225cd7060dced9) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..a329cf31232aa58729328b8783225cd7060dced9)
<details><summary>Run configuration</summary>
```yaml
run benchmark clickbench_partitioned
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0 │ 1.27 ms │ 1.32 ms │ no change │
│ QQuery 1 │ 11.84 ms │ 12.31 ms │ no change │
│ QQuery 2 │ 37.28 ms │ 37.26 ms │ no change │
│ QQuery 3 │ 31.35 ms │ 32.12 ms │ no change │
│ QQuery 4 │ 232.77 ms │ 244.64 ms │ 1.05x slower │
│ QQuery 5 │ 279.72 ms │ 295.40 ms │ 1.06x slower │
│ QQuery 6 │ 1.30 ms │ 1.32 ms │ no change │
│ QQuery 7 │ 13.70 ms │ 13.94 ms │ no change │
│ QQuery 8 │ 340.69 ms │ 338.79 ms │ no change │
│ QQuery 9 │ 472.51 ms │ 496.11 ms │ no change │
│ QQuery 10 │ 70.94 ms │ 72.48 ms │ no change │
│ QQuery 11 │ 82.64 ms │ 83.89 ms │ no change │
│ QQuery 12 │ 277.04 ms │ 285.69 ms │ no change │
│ QQuery 13 │ 390.43 ms │ 393.04 ms │ no change │
│ QQuery 14 │ 296.27 ms │ 302.22 ms │ no change │
│ QQuery 15 │ 289.89 ms │ 308.38 ms │ 1.06x slower │
│ QQuery 16 │ 646.89 ms │ 661.06 ms │ no change │
│ QQuery 17 │ 657.87 ms │ 663.87 ms │ no change │
│ QQuery 18 │ 1368.75 ms │ 1367.19 ms │ no change │
│ QQuery 19 │ 28.50 ms │ 29.64 ms │ no change │
│ QQuery 20 │ 527.36 ms │ 526.14 ms │ no change │
│ QQuery 21 │ 526.04 ms │ 525.54 ms │ no change │
│ QQuery 22 │ 1014.69 ms │ 1015.70 ms │ no change │
│ QQuery 23 │ 3175.23 ms │ 3193.14 ms │ no change │
│ QQuery 24 │ 42.08 ms │ 42.50 ms │ no change │
│ QQuery 25 │ 114.20 ms │ 115.00 ms │ no change │
│ QQuery 26 │ 42.12 ms │ 41.48 ms │ no change │
│ QQuery 27 │ 522.90 ms │ 534.30 ms │ no change │
│ QQuery 28 │ 2980.98 ms │ 3002.02 ms │ no change │
│ QQuery 29 │ 42.52 ms │ 42.36 ms │ no change │
│ QQuery 30 │ 314.54 ms │ 319.24 ms │ no change │
│ QQuery 31 │ 295.68 ms │ 307.55 ms │ no change │
│ QQuery 32 │ 1010.57 ms │ 1004.36 ms │ no change │
│ QQuery 33 │ 1582.97 ms │ 1582.34 ms │ no change │
│ QQuery 34 │ 1565.64 ms │ 1624.10 ms │ no change │
│ QQuery 35 │ 306.13 ms │ 327.12 ms │ 1.07x slower │
│ QQuery 36 │ 75.16 ms │ 70.43 ms │ +1.07x faster │
│ QQuery 37 │ 37.34 ms │ 37.27 ms │ no change │
│ QQuery 38 │ 42.54 ms │ 41.57 ms │ no change │
│ QQuery 39 │ 157.43 ms │ 159.10 ms │ no change │
│ QQuery 40 │ 15.10 ms │ 14.89 ms │ no change │
│ QQuery 41 │ 14.55 ms │ 14.85 ms │ no change │
│ QQuery 42 │ 14.08 ms │ 14.41 ms │ no change │
└───────────┴────────────┴─────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD) │ 19951.53ms │
│ Total Time (perf_join-order-enumeration) │ 20196.12ms │
│ Average Time (HEAD) │ 463.99ms │
│ Average Time (perf_join-order-enumeration) │ 469.68ms │
│ Queries Faster │ 1 │
│ Queries Slower │ 4 │
│ Queries with No Change │ 38 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴────────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0 │ 1.27 / 4.09 ±5.50 / 15.08 ms │ 1.32 / 4.34 ±5.83 / 15.99 ms │ 1.06x slower │
│ QQuery 1 │ 11.84 / 12.41 ±0.32 / 12.79 ms │ 12.31 / 12.74 ±0.28 / 13.18 ms │ no change │
│ QQuery 2 │ 37.28 / 37.57 ±0.26 / 38.02 ms │ 37.26 / 37.62 ±0.38 / 38.35 ms │ no change │
│ QQuery 3 │ 31.35 / 32.13 ±0.62 / 33.00 ms │ 32.12 / 32.66 ±0.44 / 33.36 ms │ no change │
│ QQuery 4 │ 232.77 / 237.18 ±3.05 / 241.44 ms │ 244.64 / 247.53 ±2.45 / 251.34 ms │ no change │
│ QQuery 5 │ 279.72 / 286.93 ±4.68 / 292.12 ms │ 295.40 / 297.85 ±2.66 / 301.45 ms │ no change │
│ QQuery 6 │ 1.30 / 1.44 ±0.21 / 1.85 ms │ 1.32 / 1.47 ±0.23 / 1.93 ms │ no change │
│ QQuery 7 │ 13.70 / 14.26 ±0.43 / 14.98 ms │ 13.94 / 14.06 ±0.16 / 14.38 ms │ no change │
│ QQuery 8 │ 340.69 / 350.18 ±7.79 / 364.04 ms │ 338.79 / 359.30 ±16.87 / 381.05 ms │ no change │
│ QQuery 9 │ 472.51 / 488.51 ±11.63 / 507.96 ms │ 496.11 / 505.33 ±6.88 / 515.88 ms │ no change │
│ QQuery 10 │ 70.94 / 71.73 ±0.64 / 72.61 ms │ 72.48 / 73.33 ±0.45 / 73.80 ms │ no change │
│ QQuery 11 │ 82.64 / 84.34 ±1.72 / 86.82 ms │ 83.89 / 85.63 ±2.37 / 90.32 ms │ no change │
│ QQuery 12 │ 277.04 / 285.59 ±9.78 / 303.91 ms │ 285.69 / 309.70 ±17.21 / 335.80 ms │ 1.08x slower │
│ QQuery 13 │ 390.43 / 399.82 ±8.10 / 411.52 ms │ 393.04 / 408.38 ±12.89 / 424.36 ms │ no change │
│ QQuery 14 │ 296.27 / 308.07 ±12.79 / 332.33 ms │ 302.22 / 310.34 ±6.17 / 318.69 ms │ no change │
│ QQuery 15 │ 289.89 / 298.38 ±8.93 / 313.57 ms │ 308.38 / 313.38 ±3.65 / 319.24 ms │ 1.05x slower │
│ QQuery 16 │ 646.89 / 673.00 ±24.96 / 709.45 ms │ 661.06 / 673.65 ±10.13 / 688.06 ms │ no change │
│ QQuery 17 │ 657.87 / 681.46 ±14.19 / 698.50 ms │ 663.87 / 677.24 ±16.68 / 709.49 ms │ no change │
│ QQuery 18 │ 1368.75 / 1388.17 ±15.23 / 1402.52 ms │ 1367.19 / 1384.11 ±18.56 / 1408.91 ms │ no change │
│ QQuery 19 │ 28.50 / 36.71 ±10.66 / 55.15 ms │ 29.64 / 36.37 ±7.76 / 48.22 ms │ no change │
│ QQuery 20 │ 527.36 / 545.33 ±18.96 / 580.04 ms │ 526.14 / 528.29 ±1.69 / 530.39 ms │ no change │
│ QQuery 21 │ 526.04 / 530.58 ±5.18 / 538.20 ms │ 525.54 / 530.81 ±5.05 / 538.14 ms │ no change │
│ QQuery 22 │ 1014.69 / 1026.33 ±7.27 / 1036.85 ms │ 1015.70 / 1024.95 ±9.25 / 1038.66 ms │ no change │
│ QQuery 23 │ 3175.23 / 3227.74 ±27.97 / 3251.84 ms │ 3193.14 / 3238.91 ±35.29 / 3285.22 ms │ no change │
│ QQuery 24 │ 42.08 / 51.74 ±9.64 / 68.66 ms │ 42.50 / 45.14 ±3.45 / 51.52 ms │ +1.15x faster │
│ QQuery 25 │ 114.20 / 116.90 ±3.37 / 123.55 ms │ 115.00 / 125.21 ±14.24 / 152.14 ms │ 1.07x slower │
│ QQuery 26 │ 42.12 / 43.44 ±0.94 / 45.00 ms │ 41.48 / 42.23 ±0.50 / 42.81 ms │ no change │
│ QQuery 27 │ 522.90 / 532.46 ±6.17 / 539.95 ms │ 534.30 / 539.95 ±3.41 / 544.24 ms │ no change │
│ QQuery 28 │ 2980.98 / 3011.80 ±24.68 / 3041.19 ms │ 3002.02 / 3039.22 ±27.39 / 3070.36 ms │ no change │
│ QQuery 29 │ 42.52 / 48.84 ±12.39 / 73.61 ms │ 42.36 / 49.85 ±9.06 / 62.01 ms │ no change │
│ QQuery 30 │ 314.54 / 326.79 ±12.02 / 347.96 ms │ 319.24 / 334.80 ±10.31 / 348.92 ms │ no change │
│ QQuery 31 │ 295.68 / 305.11 ±7.32 / 313.43 ms │ 307.55 / 321.55 ±15.52 / 349.95 ms │ 1.05x slower │
│ QQuery 32 │ 1010.57 / 1069.71 ±35.77 / 1107.02 ms │ 1004.36 / 1049.57 ±25.79 / 1079.39 ms │ no change │
│ QQuery 33 │ 1582.97 / 1616.87 ±27.89 / 1652.86 ms │ 1582.34 / 1609.95 ±15.91 / 1626.58 ms │ no change │
│ QQuery 34 │ 1565.64 / 1616.37 ±28.15 / 1641.08 ms │ 1624.10 / 1646.47 ±33.70 / 1712.45 ms │ no change │
│ QQuery 35 │ 306.13 / 339.86 ±32.64 / 397.11 ms │ 327.12 / 334.45 ±10.80 / 355.96 ms │ no change │
│ QQuery 36 │ 75.16 / 85.22 ±8.65 / 100.69 ms │ 70.43 / 76.50 ±5.40 / 84.37 ms │ +1.11x faster │
│ QQuery 37 │ 37.34 / 41.49 ±6.66 / 54.78 ms │ 37.27 / 39.69 ±1.34 / 40.83 ms │ no change │
│ QQuery 38 │ 42.54 / 44.22 ±0.94 / 45.28 ms │ 41.57 / 44.59 ±2.38 / 48.36 ms │ no change │
│ QQuery 39 │ 157.43 / 170.48 ±7.17 / 177.00 ms │ 159.10 / 168.85 ±6.23 / 177.03 ms │ no change │
│ QQuery 40 │ 15.10 / 15.40 ±0.31 / 15.89 ms │ 14.89 / 15.91 ±1.07 / 17.86 ms │ no change │
│ QQuery 41 │ 14.55 / 14.68 ±0.08 / 14.79 ms │ 14.85 / 15.08 ±0.19 / 15.37 ms │ no change │
│ QQuery 42 │ 14.08 / 14.29 ±0.12 / 14.40 ms │ 14.41 / 14.61 ±0.23 / 15.06 ms │ no change │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD) │ 20487.57ms │
│ Total Time (perf_join-order-enumeration) │ 20621.59ms │
│ Average Time (HEAD) │ 476.46ms │
│ Average Time (perf_join-order-enumeration) │ 479.57ms │
│ Queries Faster │ 2 │
│ Queries Slower │ 5 │
│ Queries with No Change │ 36 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴────────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**clickbench_partitioned — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 105.0s |
| Peak memory | 11.5 GiB |
| Avg memory | 4.2 GiB |
| CPU user | 1045.3s |
| CPU sys | 76.4s |
| Peak spill | 0 B |
**clickbench_partitioned — branch**
| Metric | Value |
|--------|-------|
| Wall time | 105.0s |
| Peak memory | 11.6 GiB |
| Avg memory | 4.4 GiB |
| CPU user | 1049.3s |
| CPU sys | 81.7s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5330155103
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5330114082)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c5330114082-1651-hmwww 6.12.85+ #1 SMP Wed Jun 17 20:31:55 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (de80dd75426b4b7e87d2314fca8eacfafb06e785) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..de80dd75426b4b7e87d2314fca8eacfafb06e785)
<details><summary>Run configuration</summary>
```yaml
run benchmark clickbench_partitioned
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5330355524
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5330115270)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (de80dd75426b4b7e87d2314fca8eacfafb06e785) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..de80dd75426b4b7e87d2314fca8eacfafb06e785)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpcds
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 5.52 ms │ 5.71 ms │ no change │
│ QQuery 2 │ 81.34 ms │ 81.54 ms │ no change │
│ QQuery 3 │ 28.94 ms │ 25.98 ms │ +1.11x faster │
│ QQuery 4 │ 486.49 ms │ 483.93 ms │ no change │
│ QQuery 5 │ 52.70 ms │ 52.48 ms │ no change │
│ QQuery 6 │ 35.86 ms │ 36.27 ms │ no change │
│ QQuery 7 │ 93.24 ms │ 80.67 ms │ +1.16x faster │
│ QQuery 8 │ 36.52 ms │ 36.66 ms │ no change │
│ QQuery 9 │ 52.25 ms │ 52.67 ms │ no change │
│ QQuery 10 │ 62.65 ms │ 63.11 ms │ no change │
│ QQuery 11 │ 302.10 ms │ 240.40 ms │ +1.26x faster │
│ QQuery 12 │ 28.87 ms │ 28.83 ms │ no change │
│ QQuery 13 │ 117.17 ms │ 119.66 ms │ no change │
│ QQuery 14 │ 417.96 ms │ 366.48 ms │ +1.14x faster │
│ QQuery 15 │ 57.41 ms │ 20.98 ms │ +2.74x faster │
│ QQuery 16 │ 6.78 ms │ 7.02 ms │ no change │
│ QQuery 17 │ 79.71 ms │ 60.59 ms │ +1.32x faster │
│ QQuery 18 │ 121.55 ms │ 119.98 ms │ no change │
│ QQuery 19 │ 41.15 ms │ 43.00 ms │ no change │
│ QQuery 20 │ 35.56 ms │ 35.35 ms │ no change │
│ QQuery 21 │ 17.40 ms │ 13.21 ms │ +1.32x faster │
│ QQuery 22 │ 63.20 ms │ 62.62 ms │ no change │
│ QQuery 23 │ 339.88 ms │ 289.95 ms │ +1.17x faster │
│ QQuery 24 │ 222.03 ms │ 161.70 ms │ +1.37x faster │
│ QQuery 25 │ 108.56 ms │ 78.39 ms │ +1.38x faster │
│ QQuery 26 │ 57.73 ms │ 57.01 ms │ no change │
│ QQuery 27 │ 6.39 ms │ 6.42 ms │ no change │
│ QQuery 28 │ 60.49 ms │ 61.99 ms │ no change │
│ QQuery 29 │ 96.28 ms │ 65.87 ms │ +1.46x faster │
│ QQuery 30 │ 32.56 ms │ 32.93 ms │ no change │
│ QQuery 31 │ 110.56 ms │ 111.45 ms │ no change │
│ QQuery 32 │ 20.11 ms │ 21.05 ms │ no change │
│ QQuery 33 │ 37.63 ms │ 38.74 ms │ no change │
│ QQuery 34 │ 9.86 ms │ 6.26 ms │ +1.57x faster │
│ QQuery 35 │ 72.35 ms │ 73.03 ms │ no change │
│ QQuery 36 │ 5.95 ms │ 6.22 ms │ no change │
│ QQuery 37 │ 6.82 ms │ 7.13 ms │ no change │
│ QQuery 38 │ 62.26 ms │ 62.53 ms │ no change │
│ QQuery 39 │ 89.05 ms │ 79.32 ms │ +1.12x faster │
│ QQuery 40 │ 23.44 ms │ 22.76 ms │ no change │
│ QQuery 41 │ 11.12 ms │ 11.42 ms │ no change │
│ QQuery 42 │ 24.05 ms │ 26.25 ms │ 1.09x slower │
│ QQuery 43 │ 5.05 ms │ 5.30 ms │ 1.05x slower │
│ QQuery 44 │ 9.30 ms │ 9.64 ms │ no change │
│ QQuery 45 │ 37.36 ms │ 23.37 ms │ +1.60x faster │
│ QQuery 46 │ 11.91 ms │ 8.25 ms │ +1.44x faster │
│ QQuery 47 │ 226.69 ms │ 230.79 ms │ no change │
│ QQuery 48 │ 96.62 ms │ 98.61 ms │ no change │
│ QQuery 49 │ 76.81 ms │ 74.25 ms │ no change │
│ QQuery 50 │ 58.00 ms │ 54.48 ms │ +1.06x faster │
│ QQuery 51 │ 92.39 ms │ 94.73 ms │ no change │
│ QQuery 52 │ 24.27 ms │ 27.27 ms │ 1.12x slower │
│ QQuery 53 │ 29.17 ms │ 29.93 ms │ no change │
│ QQuery 54 │ 54.64 ms │ 25.27 ms │ +2.16x faster │
│ QQuery 55 │ 23.80 ms │ 25.61 ms │ 1.08x slower │
│ QQuery 56 │ 39.10 ms │ 42.53 ms │ 1.09x slower │
│ QQuery 57 │ 173.71 ms │ 178.58 ms │ no change │
│ QQuery 58 │ 112.12 ms │ 52.16 ms │ +2.15x faster │
│ QQuery 59 │ 117.99 ms │ 119.79 ms │ no change │
│ QQuery 60 │ 39.59 ms │ 40.14 ms │ no change │
│ QQuery 61 │ 12.61 ms │ 11.24 ms │ +1.12x faster │
│ QQuery 62 │ 46.25 ms │ 30.85 ms │ +1.50x faster │
│ QQuery 63 │ 29.34 ms │ 29.69 ms │ no change │
│ QQuery 64 │ 404.45 ms │ 237.34 ms │ +1.70x faster │
│ QQuery 65 │ 121.93 ms │ 121.95 ms │ no change │
│ QQuery 66 │ 80.64 ms │ 69.46 ms │ +1.16x faster │
│ QQuery 67 │ 245.81 ms │ 244.14 ms │ no change │
│ QQuery 68 │ 11.96 ms │ 7.84 ms │ +1.53x faster │
│ QQuery 69 │ 56.73 ms │ 62.44 ms │ 1.10x slower │
│ QQuery 70 │ 106.51 ms │ 78.03 ms │ +1.37x faster │
│ QQuery 71 │ 34.94 ms │ 35.03 ms │ no change │
│ QQuery 72 │ 2098.87 ms │ 80.04 ms │ +26.22x faster │
│ QQuery 73 │ 9.74 ms │ 6.22 ms │ +1.57x faster │
│ QQuery 74 │ 170.19 ms │ 171.69 ms │ no change │
│ QQuery 75 │ 148.78 ms │ 148.53 ms │ no change │
│ QQuery 76 │ 35.20 ms │ 35.52 ms │ no change │
│ QQuery 77 │ 62.98 ms │ 62.29 ms │ no change │
│ QQuery 78 │ 198.50 ms │ 196.97 ms │ no change │
│ QQuery 79 │ 66.35 ms │ 69.63 ms │ no change │
│ QQuery 80 │ 99.34 ms │ 100.03 ms │ no change │
│ QQuery 81 │ 26.05 ms │ 25.39 ms │ no change │
│ QQuery 82 │ 16.47 ms │ 16.28 ms │ no change │
│ QQuery 83 │ 39.40 ms │ 23.25 ms │ +1.69x faster │
│ QQuery 84 │ 29.99 ms │ 38.16 ms │ 1.27x slower │
│ QQuery 85 │ 105.63 ms │ 104.60 ms │ no change │
│ QQuery 86 │ 25.13 ms │ 25.31 ms │ no change │
│ QQuery 87 │ 62.65 ms │ 61.78 ms │ no change │
│ QQuery 88 │ 63.59 ms │ 59.03 ms │ +1.08x faster │
│ QQuery 89 │ 35.74 ms │ 35.85 ms │ no change │
│ QQuery 90 │ 17.04 ms │ 14.89 ms │ +1.14x faster │
│ QQuery 91 │ 46.03 ms │ 41.46 ms │ +1.11x faster │
│ QQuery 92 │ 29.44 ms │ 29.38 ms │ no change │
│ QQuery 93 │ 49.56 ms │ 48.91 ms │ no change │
│ QQuery 94 │ 38.02 ms │ 37.97 ms │ no change │
│ QQuery 95 │ 81.21 ms │ 80.54 ms │ no change │
│ QQuery 96 │ 24.01 ms │ 21.08 ms │ +1.14x faster │
│ QQuery 97 │ 46.50 ms │ 46.89 ms │ no change │
│ QQuery 98 │ 42.52 ms │ 42.47 ms │ no change │
│ QQuery 99 │ 70.40 ms │ 45.63 ms │ +1.54x faster │
└───────────┴────────────┴─────────────────────────────┴────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD) │ 9740.55ms │
│ Total Time (perf_join-order-enumeration) │ 6996.06ms │
│ Average Time (HEAD) │ 98.39ms │
│ Average Time (perf_join-order-enumeration) │ 70.67ms │
│ Queries Faster │ 32 │
│ Queries Slower │ 7 │
│ Queries with No Change │ 60 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴───────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 5.52 / 6.05 ±0.92 / 7.88 ms │ 5.71 / 6.28 ±0.90 / 8.07 ms │ no change │
│ QQuery 2 │ 81.34 / 81.76 ±0.34 / 82.33 ms │ 81.54 / 82.08 ±0.40 / 82.71 ms │ no change │
│ QQuery 3 │ 28.94 / 29.23 ±0.25 / 29.69 ms │ 25.98 / 26.17 ±0.13 / 26.35 ms │ +1.12x faster │
│ QQuery 4 │ 486.49 / 491.40 ±4.37 / 498.13 ms │ 483.93 / 486.50 ±2.71 / 490.34 ms │ no change │
│ QQuery 5 │ 52.70 / 53.67 ±0.77 / 55.00 ms │ 52.48 / 53.44 ±0.89 / 54.98 ms │ no change │
│ QQuery 6 │ 35.86 / 36.76 ±0.75 / 38.08 ms │ 36.27 / 36.52 ±0.24 / 36.97 ms │ no change │
│ QQuery 7 │ 93.24 / 94.10 ±0.61 / 94.99 ms │ 80.67 / 81.44 ±0.40 / 81.75 ms │ +1.16x faster │
│ QQuery 8 │ 36.52 / 38.43 ±2.32 / 42.94 ms │ 36.66 / 37.03 ±0.32 / 37.53 ms │ no change │
│ QQuery 9 │ 52.25 / 54.43 ±1.40 / 56.45 ms │ 52.67 / 54.70 ±1.46 / 57.18 ms │ no change │
│ QQuery 10 │ 62.65 / 63.34 ±0.40 / 63.88 ms │ 63.11 / 63.32 ±0.16 / 63.58 ms │ no change │
│ QQuery 11 │ 302.10 / 305.35 ±2.34 / 309.02 ms │ 240.40 / 243.42 ±2.24 / 245.86 ms │ +1.25x faster │
│ QQuery 12 │ 28.87 / 29.05 ±0.13 / 29.24 ms │ 28.83 / 29.03 ±0.17 / 29.23 ms │ no change │
│ QQuery 13 │ 117.17 / 117.72 ±0.50 / 118.49 ms │ 119.66 / 120.86 ±2.10 / 125.05 ms │ no change │
│ QQuery 14 │ 417.96 / 422.46 ±3.66 / 429.10 ms │ 366.48 / 372.70 ±6.95 / 386.17 ms │ +1.13x faster │
│ QQuery 15 │ 57.41 / 57.69 ±0.19 / 57.90 ms │ 20.98 / 21.33 ±0.28 / 21.83 ms │ +2.70x faster │
│ QQuery 16 │ 6.78 / 6.97 ±0.27 / 7.50 ms │ 7.02 / 7.13 ±0.18 / 7.49 ms │ no change │
│ QQuery 17 │ 79.71 / 80.66 ±1.12 / 82.78 ms │ 60.59 / 61.75 ±1.79 / 65.30 ms │ +1.31x faster │
│ QQuery 18 │ 121.55 / 123.21 ±1.44 / 125.80 ms │ 119.98 / 121.04 ±1.24 / 123.43 ms │ no change │
│ QQuery 19 │ 41.15 / 41.41 ±0.19 / 41.63 ms │ 43.00 / 43.36 ±0.48 / 44.29 ms │ no change │
│ QQuery 20 │ 35.56 / 36.01 ±0.37 / 36.60 ms │ 35.35 / 36.00 ±0.51 / 36.65 ms │ no change │
│ QQuery 21 │ 17.40 / 17.84 ±0.48 / 18.74 ms │ 13.21 / 13.43 ±0.14 / 13.59 ms │ +1.33x faster │
│ QQuery 22 │ 63.20 / 63.77 ±0.39 / 64.38 ms │ 62.62 / 63.49 ±0.58 / 64.15 ms │ no change │
│ QQuery 23 │ 339.88 / 347.22 ±4.77 / 353.90 ms │ 289.95 / 292.78 ±2.82 / 298.01 ms │ +1.19x faster │
│ QQuery 24 │ 222.03 / 223.50 ±1.14 / 225.23 ms │ 161.70 / 162.30 ±0.34 / 162.70 ms │ +1.38x faster │
│ QQuery 25 │ 108.56 / 109.54 ±0.68 / 110.61 ms │ 78.39 / 78.94 ±0.31 / 79.31 ms │ +1.39x faster │
│ QQuery 26 │ 57.73 / 59.34 ±2.25 / 63.80 ms │ 57.01 / 57.65 ±0.64 / 58.77 ms │ no change │
│ QQuery 27 │ 6.39 / 6.51 ±0.18 / 6.86 ms │ 6.42 / 6.59 ±0.18 / 6.94 ms │ no change │
│ QQuery 28 │ 60.49 / 61.22 ±1.09 / 63.36 ms │ 61.99 / 62.87 ±0.78 / 64.13 ms │ no change │
│ QQuery 29 │ 96.28 / 97.25 ±0.66 / 98.18 ms │ 65.87 / 67.11 ±2.11 / 71.32 ms │ +1.45x faster │
│ QQuery 30 │ 32.56 / 33.75 ±2.05 / 37.83 ms │ 32.93 / 33.95 ±0.88 / 35.20 ms │ no change │
│ QQuery 31 │ 110.56 / 111.61 ±0.62 / 112.52 ms │ 111.45 / 111.85 ±0.45 / 112.66 ms │ no change │
│ QQuery 32 │ 20.11 / 20.43 ±0.37 / 21.10 ms │ 21.05 / 22.04 ±1.23 / 24.39 ms │ 1.08x slower │
│ QQuery 33 │ 37.63 / 37.94 ±0.18 / 38.17 ms │ 38.74 / 39.30 ±0.60 / 40.38 ms │ no change │
│ QQuery 34 │ 9.86 / 10.02 ±0.14 / 10.27 ms │ 6.26 / 6.45 ±0.17 / 6.78 ms │ +1.55x faster │
│ QQuery 35 │ 72.35 / 74.03 ±1.39 / 76.49 ms │ 73.03 / 73.41 ±0.45 / 74.24 ms │ no change │
│ QQuery 36 │ 5.95 / 6.11 ±0.20 / 6.48 ms │ 6.22 / 6.33 ±0.19 / 6.70 ms │ no change │
│ QQuery 37 │ 6.82 / 6.95 ±0.08 / 7.07 ms │ 7.13 / 7.25 ±0.09 / 7.38 ms │ no change │
│ QQuery 38 │ 62.26 / 62.44 ±0.22 / 62.88 ms │ 62.53 / 63.54 ±1.40 / 66.28 ms │ no change │
│ QQuery 39 │ 89.05 / 90.76 ±1.14 / 92.28 ms │ 79.32 / 80.10 ±0.77 / 81.43 ms │ +1.13x faster │
│ QQuery 40 │ 23.44 / 24.00 ±0.51 / 24.75 ms │ 22.76 / 22.81 ±0.05 / 22.89 ms │ no change │
│ QQuery 41 │ 11.12 / 11.40 ±0.34 / 12.05 ms │ 11.42 / 11.56 ±0.18 / 11.91 ms │ no change │
│ QQuery 42 │ 24.05 / 24.36 ±0.28 / 24.85 ms │ 26.25 / 26.77 ±0.37 / 27.26 ms │ 1.10x slower │
│ QQuery 43 │ 5.05 / 5.17 ±0.16 / 5.49 ms │ 5.30 / 5.43 ±0.14 / 5.69 ms │ 1.05x slower │
│ QQuery 44 │ 9.30 / 9.40 ±0.11 / 9.59 ms │ 9.64 / 9.83 ±0.15 / 10.06 ms │ no change │
│ QQuery 45 │ 37.36 / 38.13 ±0.40 / 38.47 ms │ 23.37 / 23.54 ±0.10 / 23.65 ms │ +1.62x faster │
│ QQuery 46 │ 11.91 / 12.23 ±0.37 / 12.94 ms │ 8.25 / 8.42 ±0.16 / 8.71 ms │ +1.45x faster │
│ QQuery 47 │ 226.69 / 230.29 ±3.32 / 236.53 ms │ 230.79 / 235.14 ±3.01 / 240.03 ms │ no change │
│ QQuery 48 │ 96.62 / 98.66 ±2.83 / 104.28 ms │ 98.61 / 99.03 ±0.37 / 99.59 ms │ no change │
│ QQuery 49 │ 76.81 / 77.07 ±0.28 / 77.47 ms │ 74.25 / 74.62 ±0.28 / 75.06 ms │ no change │
│ QQuery 50 │ 58.00 / 60.33 ±2.94 / 66.08 ms │ 54.48 / 54.59 ±0.12 / 54.79 ms │ +1.11x faster │
│ QQuery 51 │ 92.39 / 93.31 ±0.91 / 94.99 ms │ 94.73 / 96.92 ±2.13 / 100.91 ms │ no change │
│ QQuery 52 │ 24.27 / 24.56 ±0.20 / 24.83 ms │ 27.27 / 27.45 ±0.17 / 27.67 ms │ 1.12x slower │
│ QQuery 53 │ 29.17 / 29.35 ±0.15 / 29.56 ms │ 29.93 / 31.33 ±2.28 / 35.86 ms │ 1.07x slower │
│ QQuery 54 │ 54.64 / 56.80 ±2.64 / 62.01 ms │ 25.27 / 25.44 ±0.12 / 25.61 ms │ +2.23x faster │
│ QQuery 55 │ 23.80 / 24.62 ±0.71 / 25.65 ms │ 25.61 / 26.12 ±0.51 / 27.04 ms │ 1.06x slower │
│ QQuery 56 │ 39.10 / 39.67 ±0.90 / 41.45 ms │ 42.53 / 42.78 ±0.28 / 43.31 ms │ 1.08x slower │
│ QQuery 57 │ 173.71 / 177.96 ±3.99 / 185.41 ms │ 178.58 / 180.48 ±1.69 / 183.51 ms │ no change │
│ QQuery 58 │ 112.12 / 113.42 ±0.90 / 114.85 ms │ 52.16 / 52.99 ±0.81 / 54.43 ms │ +2.14x faster │
│ QQuery 59 │ 117.99 / 119.42 ±1.25 / 121.67 ms │ 119.79 / 120.51 ±0.60 / 121.52 ms │ no change │
│ QQuery 60 │ 39.59 / 40.06 ±0.40 / 40.54 ms │ 40.14 / 40.76 ±0.66 / 41.69 ms │ no change │
│ QQuery 61 │ 12.61 / 12.74 ±0.13 / 12.96 ms │ 11.24 / 11.38 ±0.10 / 11.55 ms │ +1.12x faster │
│ QQuery 62 │ 46.25 / 46.62 ±0.35 / 47.12 ms │ 30.85 / 30.91 ±0.05 / 30.97 ms │ +1.51x faster │
│ QQuery 63 │ 29.34 / 31.41 ±2.39 / 35.58 ms │ 29.69 / 29.82 ±0.14 / 30.10 ms │ +1.05x faster │
│ QQuery 64 │ 404.45 / 411.47 ±5.45 / 420.43 ms │ 237.34 / 239.71 ±2.02 / 242.24 ms │ +1.72x faster │
│ QQuery 65 │ 121.93 / 122.72 ±0.63 / 123.56 ms │ 121.95 / 124.99 ±2.00 / 127.50 ms │ no change │
│ QQuery 66 │ 80.64 / 82.64 ±1.99 / 85.98 ms │ 69.46 / 70.07 ±1.10 / 72.27 ms │ +1.18x faster │
│ QQuery 67 │ 245.81 / 248.36 ±2.18 / 252.19 ms │ 244.14 / 250.94 ±6.19 / 260.60 ms │ no change │
│ QQuery 68 │ 11.96 / 12.09 ±0.20 / 12.50 ms │ 7.84 / 8.42 ±0.77 / 9.92 ms │ +1.44x faster │
│ QQuery 69 │ 56.73 / 57.26 ±0.45 / 58.06 ms │ 62.44 / 62.74 ±0.25 / 63.09 ms │ 1.10x slower │
│ QQuery 70 │ 106.51 / 107.55 ±1.51 / 110.54 ms │ 78.03 / 78.72 ±0.47 / 79.32 ms │ +1.37x faster │
│ QQuery 71 │ 34.94 / 35.71 ±0.70 / 36.90 ms │ 35.03 / 37.16 ±3.80 / 44.74 ms │ no change │
│ QQuery 72 │ 2098.87 / 2130.93 ±40.30 / 2203.71 ms │ 80.04 / 80.90 ±0.78 / 81.95 ms │ +26.34x faster │
│ QQuery 73 │ 9.74 / 10.02 ±0.33 / 10.66 ms │ 6.22 / 6.36 ±0.19 / 6.74 ms │ +1.58x faster │
│ QQuery 74 │ 170.19 / 173.50 ±3.14 / 178.51 ms │ 171.69 / 175.06 ±2.23 / 178.14 ms │ no change │
│ QQuery 75 │ 148.78 / 149.46 ±0.83 / 151.03 ms │ 148.53 / 151.91 ±4.49 / 160.70 ms │ no change │
│ QQuery 76 │ 35.20 / 35.57 ±0.35 / 36.25 ms │ 35.52 / 37.01 ±1.74 / 40.39 ms │ no change │
│ QQuery 77 │ 62.98 / 63.90 ±1.55 / 66.98 ms │ 62.29 / 62.65 ±0.34 / 63.21 ms │ no change │
│ QQuery 78 │ 198.50 / 201.00 ±1.68 / 203.03 ms │ 196.97 / 198.42 ±1.19 / 200.34 ms │ no change │
│ QQuery 79 │ 66.35 / 66.78 ±0.36 / 67.36 ms │ 69.63 / 71.19 ±1.91 / 74.74 ms │ 1.07x slower │
│ QQuery 80 │ 99.34 / 102.01 ±3.48 / 108.53 ms │ 100.03 / 101.00 ±1.42 / 103.82 ms │ no change │
│ QQuery 81 │ 26.05 / 26.30 ±0.19 / 26.60 ms │ 25.39 / 25.68 ±0.23 / 26.00 ms │ no change │
│ QQuery 82 │ 16.47 / 16.80 ±0.37 / 17.47 ms │ 16.28 / 16.51 ±0.19 / 16.86 ms │ no change │
│ QQuery 83 │ 39.40 / 39.84 ±0.26 / 40.15 ms │ 23.25 / 23.57 ±0.49 / 24.55 ms │ +1.69x faster │
│ QQuery 84 │ 29.99 / 30.17 ±0.16 / 30.39 ms │ 38.16 / 39.50 ±2.09 / 43.64 ms │ 1.31x slower │
│ QQuery 85 │ 105.63 / 109.57 ±4.48 / 118.09 ms │ 104.60 / 106.78 ±2.02 / 110.46 ms │ no change │
│ QQuery 86 │ 25.13 / 25.53 ±0.43 / 26.07 ms │ 25.31 / 25.48 ±0.16 / 25.71 ms │ no change │
│ QQuery 87 │ 62.65 / 63.52 ±0.82 / 65.01 ms │ 61.78 / 63.17 ±1.48 / 66.04 ms │ no change │
│ QQuery 88 │ 63.59 / 64.16 ±0.38 / 64.61 ms │ 59.03 / 59.71 ±0.37 / 60.14 ms │ +1.07x faster │
│ QQuery 89 │ 35.74 / 37.03 ±1.46 / 39.84 ms │ 35.85 / 36.32 ±0.40 / 36.81 ms │ no change │
│ QQuery 90 │ 17.04 / 17.18 ±0.14 / 17.43 ms │ 14.89 / 15.16 ±0.32 / 15.78 ms │ +1.13x faster │
│ QQuery 91 │ 46.03 / 46.58 ±0.46 / 47.27 ms │ 41.46 / 41.68 ±0.17 / 41.94 ms │ +1.12x faster │
│ QQuery 92 │ 29.44 / 30.18 ±0.54 / 30.86 ms │ 29.38 / 29.78 ±0.30 / 30.15 ms │ no change │
│ QQuery 93 │ 49.56 / 50.20 ±0.49 / 50.96 ms │ 48.91 / 50.38 ±0.95 / 51.86 ms │ no change │
│ QQuery 94 │ 38.02 / 41.03 ±2.66 / 45.50 ms │ 37.97 / 39.22 ±1.18 / 41.12 ms │ no change │
│ QQuery 95 │ 81.21 / 83.10 ±1.27 / 85.20 ms │ 80.54 / 81.20 ±0.44 / 81.68 ms │ no change │
│ QQuery 96 │ 24.01 / 24.35 ±0.20 / 24.58 ms │ 21.08 / 21.19 ±0.14 / 21.39 ms │ +1.15x faster │
│ QQuery 97 │ 46.50 / 46.79 ±0.24 / 47.04 ms │ 46.89 / 48.03 ±1.63 / 51.25 ms │ no change │
│ QQuery 98 │ 42.52 / 43.24 ±0.69 / 44.30 ms │ 42.47 / 43.61 ±1.09 / 45.48 ms │ no change │
│ QQuery 99 │ 70.40 / 71.41 ±1.28 / 73.90 ms │ 45.63 / 45.96 ±0.23 / 46.24 ms │ +1.55x faster │
└───────────┴───────────────────────────────────────┴───────────────────────────────────┴────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD) │ 9888.89ms │
│ Total Time (perf_join-order-enumeration) │ 7092.33ms │
│ Average Time (HEAD) │ 99.89ms │
│ Average Time (perf_join-order-enumeration) │ 71.64ms │
│ Queries Faster │ 33 │
│ Queries Slower │ 10 │
│ Queries with No Change │ 56 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴───────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpcds — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 50.0s |
| Peak memory | 2.1 GiB |
| Avg memory | 1.5 GiB |
| CPU user | 220.2s |
| CPU sys | 6.0s |
| Peak spill | 0 B |
**tpcds — branch**
| Metric | Value |
|--------|-------|
| Wall time | 40.0s |
| Peak memory | 2.1 GiB |
| Avg memory | 1.3 GiB |
| CPU user | 100.2s |
| CPU sys | 4.8s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5338875188
Hi @Dandandan, `run benchmark` requires benchmark names (https://github.com/apache/datafusion/pull/24456#issuecomment-5338874896).
Usage:
```
run benchmark <name> # run specific benchmark(s)
run benchmarks # run default suite
run benchmarks <name1> <name2> # run specific benchmarks
```
Any benchmark name is accepted: `bench.sh` suite names (e.g. `tpch`, `clickbench_partitioned`, `wide_schema`) and Criterion bench targets (e.g. `sql_planner`) are resolved automatically. A name that matches neither fails on the runner.
Per-side configuration (`run benchmark tpch` followed by):
```yaml
env:
# shared env is inherited by BOTH the build and the run, so build
# flags go here. Builds default to no debuginfo for speed; opt back
# in for hung-job gdb dumps and cap jobs to stay within memory:
CARGO_PROFILE_RELEASE_DEBUG: "1"
CARGO_BUILD_JOBS: "1"
baseline:
ref: v45.0.0
env:
# per-side env only reaches the benchmark run, not the build
DATAFUSION_RUNTIME_MEMORY_LIMIT: 1G
changed:
ref: v46.0.0
env:
DATAFUSION_RUNTIME_MEMORY_LIMIT: 2G
```
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5338874896
run benchmark
```
env:
PREFER_HASH_JOIN: false
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5347592582
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5347556113)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c5347556113-1773-vq9sf 6.12.85+ #1 SMP Wed Jun 17 20:31:55 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (cf466cab6fbd6e728914b060d932a8bebc6ec8dd) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..cf466cab6fbd6e728914b060d932a8bebc6ec8dd)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch
env:
PREFER_HASH_JOIN: "false"
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5345504267
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5345295434)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (4c344867b2cf5edb1ec55ccf6fa138009a7609a7) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..4c344867b2cf5edb1ec55ccf6fa138009a7609a7)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch10
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf10.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 310.06 ms │ 310.19 ms │ no change │
│ QQuery 2 │ 103.96 ms │ 70.20 ms │ +1.48x faster │
│ QQuery 3 │ 224.29 ms │ 213.38 ms │ no change │
│ QQuery 4 │ 112.15 ms │ 113.23 ms │ no change │
│ QQuery 5 │ 352.47 ms │ 277.67 ms │ +1.27x faster │
│ QQuery 6 │ 122.28 ms │ 122.41 ms │ no change │
│ QQuery 7 │ 477.52 ms │ 248.26 ms │ +1.92x faster │
│ QQuery 8 │ 374.56 ms │ 347.49 ms │ +1.08x faster │
│ QQuery 9 │ 562.15 ms │ 517.46 ms │ +1.09x faster │
│ QQuery 10 │ 297.92 ms │ 300.01 ms │ no change │
│ QQuery 11 │ 88.83 ms │ 57.43 ms │ +1.55x faster │
│ QQuery 12 │ 175.58 ms │ 167.40 ms │ no change │
│ QQuery 13 │ 290.70 ms │ 297.23 ms │ no change │
│ QQuery 14 │ 171.44 ms │ 170.29 ms │ no change │
│ QQuery 15 │ 296.06 ms │ 294.32 ms │ no change │
│ QQuery 16 │ 64.44 ms │ 56.09 ms │ +1.15x faster │
│ QQuery 17 │ 614.46 ms │ 545.66 ms │ +1.13x faster │
│ QQuery 18 │ 714.30 ms │ 674.92 ms │ +1.06x faster │
│ QQuery 19 │ 243.69 ms │ 255.38 ms │ no change │
│ QQuery 20 │ 280.98 ms │ 251.14 ms │ +1.12x faster │
│ QQuery 21 │ 655.35 ms │ 700.53 ms │ 1.07x slower │
│ QQuery 22 │ 59.97 ms │ 58.75 ms │ no change │
└───────────┴───────────┴─────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD) │ 6593.16ms │
│ Total Time (perf_join-order-enumeration) │ 6049.43ms │
│ Average Time (HEAD) │ 299.69ms │
│ Average Time (perf_join-order-enumeration) │ 274.97ms │
│ Queries Faster │ 10 │
│ Queries Slower │ 1 │
│ Queries with No Change │ 11 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴───────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf10.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 310.06 / 311.72 ±1.60 / 314.49 ms │ 310.19 / 311.57 ±1.84 / 315.21 ms │ no change │
│ QQuery 2 │ 103.96 / 106.95 ±2.11 / 110.05 ms │ 70.20 / 70.96 ±0.66 / 71.92 ms │ +1.51x faster │
│ QQuery 3 │ 224.29 / 228.39 ±2.97 / 232.16 ms │ 213.38 / 218.83 ±3.47 / 222.93 ms │ no change │
│ QQuery 4 │ 112.15 / 112.68 ±0.51 / 113.63 ms │ 113.23 / 114.90 ±1.05 / 116.00 ms │ no change │
│ QQuery 5 │ 352.47 / 355.88 ±2.72 / 359.05 ms │ 277.67 / 287.04 ±7.47 / 297.53 ms │ +1.24x faster │
│ QQuery 6 │ 122.28 / 125.58 ±2.85 / 130.46 ms │ 122.41 / 125.28 ±2.43 / 128.70 ms │ no change │
│ QQuery 7 │ 477.52 / 492.45 ±13.09 / 514.36 ms │ 248.26 / 256.01 ±6.51 / 268.04 ms │ +1.92x faster │
│ QQuery 8 │ 374.56 / 382.89 ±5.63 / 389.33 ms │ 347.49 / 356.61 ±10.23 / 376.38 ms │ +1.07x faster │
│ QQuery 9 │ 562.15 / 569.14 ±7.02 / 579.34 ms │ 517.46 / 524.53 ±6.45 / 536.63 ms │ +1.09x faster │
│ QQuery 10 │ 297.92 / 304.47 ±8.93 / 321.90 ms │ 300.01 / 310.05 ±17.29 / 344.56 ms │ no change │
│ QQuery 11 │ 88.83 / 92.93 ±5.11 / 102.07 ms │ 57.43 / 64.16 ±7.62 / 78.71 ms │ +1.45x faster │
│ QQuery 12 │ 175.58 / 181.48 ±6.34 / 193.37 ms │ 167.40 / 171.67 ±5.91 / 183.08 ms │ +1.06x faster │
│ QQuery 13 │ 290.70 / 298.59 ±6.24 / 307.98 ms │ 297.23 / 312.10 ±18.51 / 346.74 ms │ no change │
│ QQuery 14 │ 171.44 / 175.31 ±4.13 / 182.14 ms │ 170.29 / 174.37 ±3.35 / 179.92 ms │ no change │
│ QQuery 15 │ 296.06 / 300.25 ±3.02 / 305.44 ms │ 294.32 / 297.91 ±2.78 / 301.93 ms │ no change │
│ QQuery 16 │ 64.44 / 69.64 ±3.88 / 75.07 ms │ 56.09 / 59.25 ±4.28 / 67.67 ms │ +1.18x faster │
│ QQuery 17 │ 614.46 / 622.75 ±8.07 / 637.79 ms │ 545.66 / 556.28 ±7.59 / 568.99 ms │ +1.12x faster │
│ QQuery 18 │ 714.30 / 751.31 ±28.10 / 791.22 ms │ 674.92 / 700.07 ±21.34 / 732.15 ms │ +1.07x faster │
│ QQuery 19 │ 243.69 / 255.63 ±9.29 / 264.61 ms │ 255.38 / 272.73 ±14.73 / 290.69 ms │ 1.07x slower │
│ QQuery 20 │ 280.98 / 295.69 ±14.14 / 315.22 ms │ 251.14 / 271.39 ±12.90 / 286.58 ms │ +1.09x faster │
│ QQuery 21 │ 655.35 / 666.76 ±9.49 / 684.04 ms │ 700.53 / 726.63 ±15.42 / 742.09 ms │ 1.09x slower │
│ QQuery 22 │ 59.97 / 62.79 ±1.61 / 64.82 ms │ 58.75 / 61.59 ±2.60 / 65.21 ms │ no change │
└───────────┴────────────────────────────────────┴────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD) │ 6763.28ms │
│ Total Time (perf_join-order-enumeration) │ 6243.91ms │
│ Average Time (HEAD) │ 307.42ms │
│ Average Time (perf_join-order-enumeration) │ 283.81ms │
│ Queries Faster │ 11 │
│ Queries Slower │ 2 │
│ Queries with No Change │ 9 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴───────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpch10 — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 35.0s |
| Peak memory | 4.9 GiB |
| Avg memory | 1.5 GiB |
| CPU user | 341.7s |
| CPU sys | 19.9s |
| Peak spill | 0 B |
**tpch10 — branch**
| Metric | Value |
|--------|-------|
| Wall time | 35.0s |
| Peak memory | 5.5 GiB |
| Avg memory | 1.7 GiB |
| CPU user | 306.4s |
| CPU sys | 17.9s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5339140257
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5339123862)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c5339123862-1737-h2l7g 6.12.85+ #1 SMP Wed Jun 17 20:31:55 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (636b45559c959d6b90c854c52f176a50a7695a60) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..636b45559c959d6b90c854c52f176a50a7695a60)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch
env:
PREFER_HASH_JOIN: "false"
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5347590677
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5347556113)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c5347556113-1775-g25vr 6.12.85+ #1 SMP Wed Jun 17 20:31:55 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (cf466cab6fbd6e728914b060d932a8bebc6ec8dd) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..cf466cab6fbd6e728914b060d932a8bebc6ec8dd)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch10
env:
PREFER_HASH_JOIN: "false"
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5591115551
> > I just wanted to say the more I talk to people at VLDB the more excited I am about this PR -- I think it will finally unlock more sophisticated join ordering
>
> Fanscinating! 🚀 I'm curious what the final implementation/algorithm looks like in your mind. Any reading recommendations?
What I am most excited about is the APIs for:
1. ExecutionPlan (tree) --> JoinGraph
2. JoinGraph --> ExecutionPlan(tree)
3. Costing a partial covering set / in progress JoinTree / walk of the JoinGraph
I think with those primitives, we could implement pretty much any join order algorithm we want (and could allow others to plug their own in)
My informal conversations suggested that there is no existing writeup on API best practices, but all optimizers have some version of these APIs.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5591763209
Amazing! Btw I am on vacation so I am responding more slowly / less these days.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub) via github" <gi...@datafusion.apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-7079589944
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-7079548586)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c7079548586-5616-xdkvh 6.12.105+ #1 SMP Sat Sep 19 07:55:25 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (ce527a1033f46265773a6407acaa2dee3bbc7a5b) to 60e3d5c (merge-base) [diff](https://github.com/apache/datafusion/compare/60e3d5c40487f600f6a7aa0a9f0b042d63930b8f..ce527a1033f46265773a6407acaa2dee3bbc7a5b)
<details><summary>Run configuration</summary>
```yaml
run benchmark clickbench_partitioned
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5328462876
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5328427832)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c5328427832-1649-9bwjh 6.12.85+ #1 SMP Wed Jun 17 20:31:55 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (a329cf31232aa58729328b8783225cd7060dced9) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..a329cf31232aa58729328b8783225cd7060dced9)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpcds
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5331105161
## [Codecov](https://app.codecov.io/gh/apache/datafusion/pull/24456?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:x: Patch coverage is `89.78289%` with `80 lines` in your changes missing coverage. Please review.
:white_check_mark: Project coverage is 81.27%. Comparing base ([`bb038a6`](https://app.codecov.io/gh/apache/datafusion/commit/bb038a6739091567fe32c196d8c568a98e4f42e2?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`1040be5`](https://app.codecov.io/gh/apache/datafusion/commit/1040be5a323410f3cf2767c2a9f540c124e0f7cc?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
:warning: Report is 11 commits behind head on main.
| [Files with missing lines](https://app.codecov.io/gh/apache/datafusion/pull/24456?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines |
|---|---|---|
| [...afusion/physical-optimizer/src/join\_enumeration.rs](https://app.codecov.io/gh/apache/datafusion/pull/24456?src=pr&el=tree&filepath=datafusion%2Fphysical-optimizer%2Fsrc%2Fjoin_enumeration.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZGF0YWZ1c2lvbi9waHlzaWNhbC1vcHRpbWl6ZXIvc3JjL2pvaW5fZW51bWVyYXRpb24ucnM=) | 89.10% | [40 Missing and 34 partials :warning: ](https://app.codecov.io/gh/apache/datafusion/pull/24456?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [datafusion/physical-plan/src/filter.rs](https://app.codecov.io/gh/apache/datafusion/pull/24456?src=pr&el=tree&filepath=datafusion%2Fphysical-plan%2Fsrc%2Ffilter.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZGF0YWZ1c2lvbi9waHlzaWNhbC1wbGFuL3NyYy9maWx0ZXIucnM=) | 94.94% | [2 Missing and 3 partials :warning: ](https://app.codecov.io/gh/apache/datafusion/pull/24456?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [...atafusion/physical-optimizer/src/join\_selection.rs](https://app.codecov.io/gh/apache/datafusion/pull/24456?src=pr&el=tree&filepath=datafusion%2Fphysical-optimizer%2Fsrc%2Fjoin_selection.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZGF0YWZ1c2lvbi9waHlzaWNhbC1vcHRpbWl6ZXIvc3JjL2pvaW5fc2VsZWN0aW9uLnJz) | 75.00% | [0 Missing and 1 partial :warning: ](https://app.codecov.io/gh/apache/datafusion/pull/24456?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## main #24456 +/- ##
==========================================
+ Coverage 81.23% 81.27% +0.03%
==========================================
Files 1112 1113 +1
Lines 390635 392473 +1838
Branches 390635 392473 +1838
==========================================
+ Hits 317350 318993 +1643
- Misses 54650 54734 +84
- Partials 18635 18746 +111
```
</details>
[:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/datafusion/pull/24456?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary> :rocket: New features to boost your workflow: </summary>
- :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
- :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5338769063
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5338740707)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c5338740707-1728-drvsf 6.12.85+ #1 SMP Wed Jun 17 20:31:55 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (636b45559c959d6b90c854c52f176a50a7695a60) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..636b45559c959d6b90c854c52f176a50a7695a60)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch10
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5338890489
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5338739851)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (636b45559c959d6b90c854c52f176a50a7695a60) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..636b45559c959d6b90c854c52f176a50a7695a60)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpcds
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 5.62 ms │ 5.77 ms │ no change │
│ QQuery 2 │ 80.10 ms │ 81.29 ms │ no change │
│ QQuery 3 │ 28.88 ms │ 26.14 ms │ +1.10x faster │
│ QQuery 4 │ 491.33 ms │ 484.25 ms │ no change │
│ QQuery 5 │ 52.14 ms │ 52.52 ms │ no change │
│ QQuery 6 │ 36.27 ms │ 37.00 ms │ no change │
│ QQuery 7 │ 93.98 ms │ 81.05 ms │ +1.16x faster │
│ QQuery 8 │ 36.96 ms │ 36.44 ms │ no change │
│ QQuery 9 │ 52.13 ms │ 52.87 ms │ no change │
│ QQuery 10 │ 62.94 ms │ 63.63 ms │ no change │
│ QQuery 11 │ 298.93 ms │ 238.75 ms │ +1.25x faster │
│ QQuery 12 │ 28.53 ms │ 29.12 ms │ no change │
│ QQuery 13 │ 117.32 ms │ 118.75 ms │ no change │
│ QQuery 14 │ 417.26 ms │ 367.64 ms │ +1.13x faster │
│ QQuery 15 │ 56.52 ms │ 20.62 ms │ +2.74x faster │
│ QQuery 16 │ 6.58 ms │ 6.85 ms │ no change │
│ QQuery 17 │ 78.63 ms │ 60.70 ms │ +1.30x faster │
│ QQuery 18 │ 121.95 ms │ 118.62 ms │ no change │
│ QQuery 19 │ 41.18 ms │ 42.22 ms │ no change │
│ QQuery 20 │ 35.24 ms │ 35.56 ms │ no change │
│ QQuery 21 │ 17.37 ms │ 13.67 ms │ +1.27x faster │
│ QQuery 22 │ 63.84 ms │ 64.19 ms │ no change │
│ QQuery 23 │ 341.65 ms │ 289.61 ms │ +1.18x faster │
│ QQuery 24 │ 222.67 ms │ 164.24 ms │ +1.36x faster │
│ QQuery 25 │ 109.15 ms │ 78.31 ms │ +1.39x faster │
│ QQuery 26 │ 57.30 ms │ 56.76 ms │ no change │
│ QQuery 27 │ 6.40 ms │ 6.55 ms │ no change │
│ QQuery 28 │ 56.87 ms │ 61.47 ms │ 1.08x slower │
│ QQuery 29 │ 96.76 ms │ 66.03 ms │ +1.47x faster │
│ QQuery 30 │ 32.47 ms │ 32.90 ms │ no change │
│ QQuery 31 │ 111.34 ms │ 110.95 ms │ no change │
│ QQuery 32 │ 20.17 ms │ 20.11 ms │ no change │
│ QQuery 33 │ 37.94 ms │ 38.32 ms │ no change │
│ QQuery 34 │ 10.19 ms │ 6.23 ms │ +1.64x faster │
│ QQuery 35 │ 72.81 ms │ 72.64 ms │ no change │
│ QQuery 36 │ 6.12 ms │ 5.99 ms │ no change │
│ QQuery 37 │ 6.98 ms │ 6.84 ms │ no change │
│ QQuery 38 │ 62.34 ms │ 62.17 ms │ no change │
│ QQuery 39 │ 90.04 ms │ 78.80 ms │ +1.14x faster │
│ QQuery 40 │ 23.42 ms │ 22.27 ms │ no change │
│ QQuery 41 │ 11.34 ms │ 11.29 ms │ no change │
│ QQuery 42 │ 24.06 ms │ 26.04 ms │ 1.08x slower │
│ QQuery 43 │ 5.27 ms │ 5.13 ms │ no change │
│ QQuery 44 │ 9.63 ms │ 9.40 ms │ no change │
│ QQuery 45 │ 37.71 ms │ 23.16 ms │ +1.63x faster │
│ QQuery 46 │ 12.03 ms │ 7.91 ms │ +1.52x faster │
│ QQuery 47 │ 224.11 ms │ 227.97 ms │ no change │
│ QQuery 48 │ 95.22 ms │ 96.10 ms │ no change │
│ QQuery 49 │ 77.25 ms │ 72.78 ms │ +1.06x faster │
│ QQuery 50 │ 58.65 ms │ 53.75 ms │ +1.09x faster │
│ QQuery 51 │ 92.69 ms │ 91.85 ms │ no change │
│ QQuery 52 │ 24.21 ms │ 26.48 ms │ 1.09x slower │
│ QQuery 53 │ 28.97 ms │ 29.02 ms │ no change │
│ QQuery 54 │ 54.56 ms │ 25.03 ms │ +2.18x faster │
│ QQuery 55 │ 23.69 ms │ 25.30 ms │ 1.07x slower │
│ QQuery 56 │ 38.84 ms │ 41.59 ms │ 1.07x slower │
│ QQuery 57 │ 176.66 ms │ 176.26 ms │ no change │
│ QQuery 58 │ 112.28 ms │ 52.33 ms │ +2.15x faster │
│ QQuery 59 │ 117.21 ms │ 117.55 ms │ no change │
│ QQuery 60 │ 39.43 ms │ 39.24 ms │ no change │
│ QQuery 61 │ 12.30 ms │ 11.08 ms │ +1.11x faster │
│ QQuery 62 │ 46.23 ms │ 30.47 ms │ +1.52x faster │
│ QQuery 63 │ 29.48 ms │ 28.91 ms │ no change │
│ QQuery 64 │ 406.68 ms │ 236.88 ms │ +1.72x faster │
│ QQuery 65 │ 121.88 ms │ 121.08 ms │ no change │
│ QQuery 66 │ 80.99 ms │ 68.19 ms │ +1.19x faster │
│ QQuery 67 │ 239.90 ms │ 241.11 ms │ no change │
│ QQuery 68 │ 12.06 ms │ 7.64 ms │ +1.58x faster │
│ QQuery 69 │ 56.99 ms │ 62.16 ms │ 1.09x slower │
│ QQuery 70 │ 107.93 ms │ 77.77 ms │ +1.39x faster │
│ QQuery 71 │ 34.82 ms │ 34.75 ms │ no change │
│ QQuery 72 │ 1903.37 ms │ 79.58 ms │ +23.92x faster │
│ QQuery 73 │ 9.72 ms │ 6.23 ms │ +1.56x faster │
│ QQuery 74 │ 169.92 ms │ 173.17 ms │ no change │
│ QQuery 75 │ 148.00 ms │ 147.78 ms │ no change │
│ QQuery 76 │ 35.71 ms │ 35.02 ms │ no change │
│ QQuery 77 │ 61.01 ms │ 61.04 ms │ no change │
│ QQuery 78 │ 198.50 ms │ 194.72 ms │ no change │
│ QQuery 79 │ 66.49 ms │ 69.16 ms │ no change │
│ QQuery 80 │ 99.31 ms │ 98.51 ms │ no change │
│ QQuery 81 │ 26.10 ms │ 25.49 ms │ no change │
│ QQuery 82 │ 16.50 ms │ 16.22 ms │ no change │
│ QQuery 83 │ 39.95 ms │ 22.66 ms │ +1.76x faster │
│ QQuery 84 │ 29.81 ms │ 38.00 ms │ 1.27x slower │
│ QQuery 85 │ 105.52 ms │ 104.23 ms │ no change │
│ QQuery 86 │ 25.39 ms │ 25.41 ms │ no change │
│ QQuery 87 │ 62.09 ms │ 62.05 ms │ no change │
│ QQuery 88 │ 63.45 ms │ 59.03 ms │ +1.07x faster │
│ QQuery 89 │ 35.43 ms │ 35.25 ms │ no change │
│ QQuery 90 │ 17.32 ms │ 15.07 ms │ +1.15x faster │
│ QQuery 91 │ 45.53 ms │ 41.16 ms │ +1.11x faster │
│ QQuery 92 │ 29.09 ms │ 29.42 ms │ no change │
│ QQuery 93 │ 48.67 ms │ 49.31 ms │ no change │
│ QQuery 94 │ 38.22 ms │ 37.75 ms │ no change │
│ QQuery 95 │ 79.92 ms │ 81.80 ms │ no change │
│ QQuery 96 │ 24.14 ms │ 20.40 ms │ +1.18x faster │
│ QQuery 97 │ 46.73 ms │ 46.74 ms │ no change │
│ QQuery 98 │ 42.12 ms │ 42.86 ms │ no change │
│ QQuery 99 │ 70.10 ms │ 45.61 ms │ +1.54x faster │
└───────────┴────────────┴─────────────────────────────┴────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD) │ 9539.56ms │
│ Total Time (perf_join-order-enumeration) │ 6959.79ms │
│ Average Time (HEAD) │ 96.36ms │
│ Average Time (perf_join-order-enumeration) │ 70.30ms │
│ Queries Faster │ 33 │
│ Queries Slower │ 7 │
│ Queries with No Change │ 59 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴───────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 5.62 / 6.14 ±0.90 / 7.95 ms │ 5.77 / 6.25 ±0.89 / 8.03 ms │ no change │
│ QQuery 2 │ 80.10 / 80.32 ±0.20 / 80.71 ms │ 81.29 / 81.50 ±0.20 / 81.87 ms │ no change │
│ QQuery 3 │ 28.88 / 29.18 ±0.23 / 29.49 ms │ 26.14 / 26.33 ±0.19 / 26.67 ms │ +1.11x faster │
│ QQuery 4 │ 491.33 / 493.91 ±1.47 / 495.45 ms │ 484.25 / 487.80 ±2.48 / 490.84 ms │ no change │
│ QQuery 5 │ 52.14 / 52.84 ±0.56 / 53.60 ms │ 52.52 / 53.17 ±0.78 / 54.70 ms │ no change │
│ QQuery 6 │ 36.27 / 36.72 ±0.38 / 37.28 ms │ 37.00 / 37.17 ±0.24 / 37.65 ms │ no change │
│ QQuery 7 │ 93.98 / 94.40 ±0.49 / 95.35 ms │ 81.05 / 81.33 ±0.34 / 82.00 ms │ +1.16x faster │
│ QQuery 8 │ 36.96 / 38.29 ±2.58 / 43.45 ms │ 36.44 / 36.74 ±0.20 / 37.00 ms │ no change │
│ QQuery 9 │ 52.13 / 54.86 ±2.61 / 59.30 ms │ 52.87 / 54.49 ±0.93 / 55.47 ms │ no change │
│ QQuery 10 │ 62.94 / 63.15 ±0.17 / 63.35 ms │ 63.63 / 63.81 ±0.13 / 63.99 ms │ no change │
│ QQuery 11 │ 298.93 / 305.10 ±3.50 / 309.71 ms │ 238.75 / 240.39 ±1.51 / 242.68 ms │ +1.27x faster │
│ QQuery 12 │ 28.53 / 28.86 ±0.37 / 29.56 ms │ 29.12 / 29.48 ±0.32 / 29.96 ms │ no change │
│ QQuery 13 │ 117.32 / 117.72 ±0.45 / 118.58 ms │ 118.75 / 121.14 ±3.13 / 127.34 ms │ no change │
│ QQuery 14 │ 417.26 / 423.08 ±3.70 / 428.12 ms │ 367.64 / 371.58 ±2.62 / 375.15 ms │ +1.14x faster │
│ QQuery 15 │ 56.52 / 57.82 ±0.92 / 58.96 ms │ 20.62 / 20.81 ±0.21 / 21.19 ms │ +2.78x faster │
│ QQuery 16 │ 6.58 / 6.78 ±0.26 / 7.28 ms │ 6.85 / 6.94 ±0.10 / 7.13 ms │ no change │
│ QQuery 17 │ 78.63 / 79.91 ±1.37 / 82.51 ms │ 60.70 / 61.01 ±0.33 / 61.60 ms │ +1.31x faster │
│ QQuery 18 │ 121.95 / 123.63 ±1.24 / 125.27 ms │ 118.62 / 121.51 ±3.52 / 128.19 ms │ no change │
│ QQuery 19 │ 41.18 / 41.71 ±0.32 / 42.15 ms │ 42.22 / 42.64 ±0.39 / 43.29 ms │ no change │
│ QQuery 20 │ 35.24 / 36.59 ±1.20 / 38.80 ms │ 35.56 / 36.05 ±0.35 / 36.55 ms │ no change │
│ QQuery 21 │ 17.37 / 17.64 ±0.20 / 17.97 ms │ 13.67 / 14.26 ±1.04 / 16.33 ms │ +1.24x faster │
│ QQuery 22 │ 63.84 / 64.42 ±0.36 / 64.97 ms │ 64.19 / 64.79 ±0.37 / 65.19 ms │ no change │
│ QQuery 23 │ 341.65 / 346.17 ±4.70 / 354.67 ms │ 289.61 / 293.71 ±3.71 / 300.24 ms │ +1.18x faster │
│ QQuery 24 │ 222.67 / 225.16 ±2.22 / 229.06 ms │ 164.24 / 165.19 ±0.96 / 166.81 ms │ +1.36x faster │
│ QQuery 25 │ 109.15 / 110.83 ±1.47 / 113.50 ms │ 78.31 / 79.12 ±0.69 / 80.31 ms │ +1.40x faster │
│ QQuery 26 │ 57.30 / 59.30 ±3.06 / 65.39 ms │ 56.76 / 57.37 ±0.48 / 57.97 ms │ no change │
│ QQuery 27 │ 6.40 / 6.54 ±0.17 / 6.87 ms │ 6.55 / 6.67 ±0.17 / 6.99 ms │ no change │
│ QQuery 28 │ 56.87 / 60.40 ±3.37 / 65.97 ms │ 61.47 / 62.41 ±0.67 / 63.55 ms │ no change │
│ QQuery 29 │ 96.76 / 97.57 ±0.93 / 99.03 ms │ 66.03 / 66.53 ±0.33 / 66.88 ms │ +1.47x faster │
│ QQuery 30 │ 32.47 / 34.13 ±2.68 / 39.46 ms │ 32.90 / 34.70 ±1.70 / 37.92 ms │ no change │
│ QQuery 31 │ 111.34 / 113.09 ±2.51 / 117.92 ms │ 110.95 / 111.79 ±0.89 / 113.44 ms │ no change │
│ QQuery 32 │ 20.17 / 20.74 ±0.33 / 21.16 ms │ 20.11 / 20.46 ±0.25 / 20.86 ms │ no change │
│ QQuery 33 │ 37.94 / 38.23 ±0.23 / 38.59 ms │ 38.32 / 38.54 ±0.30 / 39.12 ms │ no change │
│ QQuery 34 │ 10.19 / 11.65 ±2.63 / 16.90 ms │ 6.23 / 6.37 ±0.18 / 6.73 ms │ +1.83x faster │
│ QQuery 35 │ 72.81 / 73.54 ±0.45 / 74.06 ms │ 72.64 / 73.49 ±1.02 / 75.43 ms │ no change │
│ QQuery 36 │ 6.12 / 6.25 ±0.15 / 6.55 ms │ 5.99 / 6.14 ±0.20 / 6.53 ms │ no change │
│ QQuery 37 │ 6.98 / 7.05 ±0.04 / 7.11 ms │ 6.84 / 6.96 ±0.07 / 7.03 ms │ no change │
│ QQuery 38 │ 62.34 / 62.96 ±0.51 / 63.59 ms │ 62.17 / 62.25 ±0.07 / 62.38 ms │ no change │
│ QQuery 39 │ 90.04 / 91.91 ±2.07 / 95.93 ms │ 78.80 / 80.50 ±2.13 / 84.71 ms │ +1.14x faster │
│ QQuery 40 │ 23.42 / 23.85 ±0.38 / 24.35 ms │ 22.27 / 22.38 ±0.06 / 22.44 ms │ +1.07x faster │
│ QQuery 41 │ 11.34 / 11.55 ±0.22 / 11.98 ms │ 11.29 / 11.41 ±0.13 / 11.67 ms │ no change │
│ QQuery 42 │ 24.06 / 24.49 ±0.54 / 25.53 ms │ 26.04 / 26.51 ±0.62 / 27.69 ms │ 1.08x slower │
│ QQuery 43 │ 5.27 / 5.40 ±0.15 / 5.69 ms │ 5.13 / 5.21 ±0.12 / 5.44 ms │ no change │
│ QQuery 44 │ 9.63 / 9.78 ±0.11 / 9.95 ms │ 9.40 / 9.53 ±0.09 / 9.65 ms │ no change │
│ QQuery 45 │ 37.71 / 38.51 ±0.63 / 39.50 ms │ 23.16 / 23.59 ±0.29 / 23.93 ms │ +1.63x faster │
│ QQuery 46 │ 12.03 / 12.17 ±0.13 / 12.35 ms │ 7.91 / 8.11 ±0.15 / 8.37 ms │ +1.50x faster │
│ QQuery 47 │ 224.11 / 230.56 ±4.33 / 236.86 ms │ 227.97 / 229.64 ±1.38 / 232.13 ms │ no change │
│ QQuery 48 │ 95.22 / 99.14 ±3.97 / 105.27 ms │ 96.10 / 98.47 ±3.08 / 104.55 ms │ no change │
│ QQuery 49 │ 77.25 / 77.64 ±0.41 / 78.40 ms │ 72.78 / 73.36 ±0.69 / 74.71 ms │ +1.06x faster │
│ QQuery 50 │ 58.65 / 60.82 ±2.77 / 66.15 ms │ 53.75 / 54.08 ±0.29 / 54.55 ms │ +1.12x faster │
│ QQuery 51 │ 92.69 / 94.73 ±2.72 / 99.64 ms │ 91.85 / 96.01 ±4.48 / 104.54 ms │ no change │
│ QQuery 52 │ 24.21 / 24.65 ±0.30 / 25.13 ms │ 26.48 / 26.85 ±0.34 / 27.48 ms │ 1.09x slower │
│ QQuery 53 │ 28.97 / 29.21 ±0.20 / 29.55 ms │ 29.02 / 29.48 ±0.31 / 29.91 ms │ no change │
│ QQuery 54 │ 54.56 / 56.33 ±2.41 / 61.09 ms │ 25.03 / 25.22 ±0.24 / 25.68 ms │ +2.23x faster │
│ QQuery 55 │ 23.69 / 23.82 ±0.11 / 23.96 ms │ 25.30 / 26.29 ±1.49 / 29.23 ms │ 1.10x slower │
│ QQuery 56 │ 38.84 / 39.35 ±0.31 / 39.70 ms │ 41.59 / 42.48 ±0.80 / 43.82 ms │ 1.08x slower │
│ QQuery 57 │ 176.66 / 179.07 ±2.24 / 183.18 ms │ 176.26 / 177.49 ±0.95 / 178.71 ms │ no change │
│ QQuery 58 │ 112.28 / 113.71 ±1.44 / 116.07 ms │ 52.33 / 52.88 ±0.57 / 53.89 ms │ +2.15x faster │
│ QQuery 59 │ 117.21 / 118.63 ±1.64 / 121.40 ms │ 117.55 / 118.38 ±0.93 / 119.54 ms │ no change │
│ QQuery 60 │ 39.43 / 39.92 ±0.55 / 40.96 ms │ 39.24 / 41.30 ±1.73 / 44.45 ms │ no change │
│ QQuery 61 │ 12.30 / 12.47 ±0.20 / 12.87 ms │ 11.08 / 11.31 ±0.23 / 11.75 ms │ +1.10x faster │
│ QQuery 62 │ 46.23 / 47.46 ±1.99 / 51.42 ms │ 30.47 / 30.68 ±0.13 / 30.87 ms │ +1.55x faster │
│ QQuery 63 │ 29.48 / 30.05 ±0.35 / 30.54 ms │ 28.91 / 29.26 ±0.26 / 29.58 ms │ no change │
│ QQuery 64 │ 406.68 / 412.73 ±3.95 / 419.15 ms │ 236.88 / 240.59 ±4.27 / 248.88 ms │ +1.72x faster │
│ QQuery 65 │ 121.88 / 123.57 ±2.01 / 127.12 ms │ 121.08 / 124.66 ±3.32 / 130.87 ms │ no change │
│ QQuery 66 │ 80.99 / 81.79 ±1.20 / 84.16 ms │ 68.19 / 68.77 ±0.47 / 69.38 ms │ +1.19x faster │
│ QQuery 67 │ 239.90 / 246.11 ±5.04 / 252.39 ms │ 241.11 / 244.05 ±3.21 / 249.97 ms │ no change │
│ QQuery 68 │ 12.06 / 12.19 ±0.15 / 12.49 ms │ 7.64 / 7.85 ±0.17 / 8.14 ms │ +1.55x faster │
│ QQuery 69 │ 56.99 / 57.52 ±0.42 / 58.13 ms │ 62.16 / 65.00 ±4.25 / 73.33 ms │ 1.13x slower │
│ QQuery 70 │ 107.93 / 111.49 ±3.71 / 116.56 ms │ 77.77 / 78.30 ±0.39 / 78.99 ms │ +1.42x faster │
│ QQuery 71 │ 34.82 / 35.65 ±0.49 / 36.34 ms │ 34.75 / 35.36 ±0.48 / 35.96 ms │ no change │
│ QQuery 72 │ 1903.37 / 1978.85 ±95.97 / 2165.08 ms │ 79.58 / 81.78 ±2.21 / 85.90 ms │ +24.20x faster │
│ QQuery 73 │ 9.72 / 9.95 ±0.16 / 10.22 ms │ 6.23 / 6.40 ±0.17 / 6.72 ms │ +1.56x faster │
│ QQuery 74 │ 169.92 / 172.36 ±2.50 / 176.17 ms │ 173.17 / 174.61 ±1.45 / 177.04 ms │ no change │
│ QQuery 75 │ 148.00 / 151.06 ±2.73 / 155.70 ms │ 147.78 / 149.33 ±1.31 / 151.38 ms │ no change │
│ QQuery 76 │ 35.71 / 36.05 ±0.41 / 36.76 ms │ 35.02 / 37.37 ±3.83 / 45.02 ms │ no change │
│ QQuery 77 │ 61.01 / 61.42 ±0.43 / 62.24 ms │ 61.04 / 62.49 ±1.60 / 65.59 ms │ no change │
│ QQuery 78 │ 198.50 / 201.27 ±2.48 / 205.11 ms │ 194.72 / 199.76 ±6.20 / 211.81 ms │ no change │
│ QQuery 79 │ 66.49 / 66.73 ±0.19 / 67.05 ms │ 69.16 / 69.33 ±0.20 / 69.65 ms │ no change │
│ QQuery 80 │ 99.31 / 100.80 ±1.54 / 103.39 ms │ 98.51 / 101.16 ±2.36 / 105.59 ms │ no change │
│ QQuery 81 │ 26.10 / 26.45 ±0.26 / 26.71 ms │ 25.49 / 25.62 ±0.13 / 25.86 ms │ no change │
│ QQuery 82 │ 16.50 / 17.11 ±0.90 / 18.90 ms │ 16.22 / 16.50 ±0.19 / 16.77 ms │ no change │
│ QQuery 83 │ 39.95 / 40.21 ±0.21 / 40.49 ms │ 22.66 / 22.94 ±0.18 / 23.20 ms │ +1.75x faster │
│ QQuery 84 │ 29.81 / 30.53 ±0.89 / 32.22 ms │ 38.00 / 38.23 ±0.12 / 38.33 ms │ 1.25x slower │
│ QQuery 85 │ 105.52 / 107.82 ±2.06 / 111.44 ms │ 104.23 / 107.84 ±2.97 / 112.11 ms │ no change │
│ QQuery 86 │ 25.39 / 25.63 ±0.18 / 25.90 ms │ 25.41 / 25.96 ±0.43 / 26.37 ms │ no change │
│ QQuery 87 │ 62.09 / 62.91 ±0.56 / 63.84 ms │ 62.05 / 62.62 ±0.40 / 63.21 ms │ no change │
│ QQuery 88 │ 63.45 / 63.71 ±0.29 / 64.27 ms │ 59.03 / 59.81 ±0.44 / 60.39 ms │ +1.07x faster │
│ QQuery 89 │ 35.43 / 36.30 ±0.47 / 36.83 ms │ 35.25 / 37.66 ±1.99 / 40.89 ms │ no change │
│ QQuery 90 │ 17.32 / 17.44 ±0.12 / 17.64 ms │ 15.07 / 15.23 ±0.13 / 15.41 ms │ +1.14x faster │
│ QQuery 91 │ 45.53 / 45.85 ±0.29 / 46.33 ms │ 41.16 / 41.43 ±0.26 / 41.75 ms │ +1.11x faster │
│ QQuery 92 │ 29.09 / 29.88 ±0.51 / 30.64 ms │ 29.42 / 29.98 ±0.61 / 31.04 ms │ no change │
│ QQuery 93 │ 48.67 / 49.91 ±0.77 / 50.62 ms │ 49.31 / 50.12 ±0.47 / 50.62 ms │ no change │
│ QQuery 94 │ 38.22 / 39.79 ±1.73 / 43.00 ms │ 37.75 / 39.09 ±1.64 / 41.99 ms │ no change │
│ QQuery 95 │ 79.92 / 81.18 ±1.03 / 82.97 ms │ 81.80 / 83.56 ±2.46 / 88.42 ms │ no change │
│ QQuery 96 │ 24.14 / 24.41 ±0.20 / 24.64 ms │ 20.40 / 20.63 ±0.21 / 21.03 ms │ +1.18x faster │
│ QQuery 97 │ 46.73 / 48.13 ±1.50 / 50.94 ms │ 46.74 / 47.04 ±0.25 / 47.38 ms │ no change │
│ QQuery 98 │ 42.12 / 43.98 ±1.18 / 45.84 ms │ 42.86 / 43.32 ±0.57 / 44.44 ms │ no change │
│ QQuery 99 │ 70.10 / 70.51 ±0.41 / 71.19 ms │ 45.61 / 46.32 ±0.86 / 47.99 ms │ +1.52x faster │
└───────────┴───────────────────────────────────────┴───────────────────────────────────┴────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD) │ 9743.24ms │
│ Total Time (perf_join-order-enumeration) │ 7062.03ms │
│ Average Time (HEAD) │ 98.42ms │
│ Average Time (perf_join-order-enumeration) │ 71.33ms │
│ Queries Faster │ 34 │
│ Queries Slower │ 6 │
│ Queries with No Change │ 59 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴───────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpcds — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 50.0s |
| Peak memory | 2.1 GiB |
| Avg memory | 1.6 GiB |
| CPU user | 213.5s |
| CPU sys | 6.2s |
| Peak spill | 0 B |
**tpcds — branch**
| Metric | Value |
|--------|-------|
| Wall time | 40.0s |
| Peak memory | 2.1 GiB |
| Avg memory | 1.3 GiB |
| CPU user | 100.3s |
| CPU sys | 4.9s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5338893302
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5338740707)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (636b45559c959d6b90c854c52f176a50a7695a60) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..636b45559c959d6b90c854c52f176a50a7695a60)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch10
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf10.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 313.00 ms │ 307.30 ms │ no change │
│ QQuery 2 │ 104.19 ms │ 72.18 ms │ +1.44x faster │
│ QQuery 3 │ 231.25 ms │ 225.18 ms │ no change │
│ QQuery 4 │ 112.92 ms │ 109.14 ms │ no change │
│ QQuery 5 │ 346.18 ms │ 325.97 ms │ +1.06x faster │
│ QQuery 6 │ 122.78 ms │ 122.37 ms │ no change │
│ QQuery 7 │ 470.05 ms │ 299.47 ms │ +1.57x faster │
│ QQuery 8 │ 371.76 ms │ 408.93 ms │ 1.10x slower │
│ QQuery 9 │ 559.87 ms │ 557.58 ms │ no change │
│ QQuery 10 │ 297.32 ms │ 301.68 ms │ no change │
│ QQuery 11 │ 89.12 ms │ 62.31 ms │ +1.43x faster │
│ QQuery 12 │ 177.69 ms │ 165.21 ms │ +1.08x faster │
│ QQuery 13 │ 292.55 ms │ 314.51 ms │ 1.08x slower │
│ QQuery 14 │ 166.36 ms │ 180.11 ms │ 1.08x slower │
│ QQuery 15 │ 295.01 ms │ 308.29 ms │ no change │
│ QQuery 16 │ 64.03 ms │ 62.37 ms │ no change │
│ QQuery 17 │ 617.27 ms │ 623.18 ms │ no change │
│ QQuery 18 │ 713.25 ms │ 369.83 ms │ +1.93x faster │
│ QQuery 19 │ 248.69 ms │ 261.77 ms │ 1.05x slower │
│ QQuery 20 │ 279.46 ms │ 276.68 ms │ no change │
│ QQuery 21 │ 662.21 ms │ 548.58 ms │ +1.21x faster │
│ QQuery 22 │ 56.86 ms │ 59.02 ms │ no change │
└───────────┴───────────┴─────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD) │ 6591.80ms │
│ Total Time (perf_join-order-enumeration) │ 5961.65ms │
│ Average Time (HEAD) │ 299.63ms │
│ Average Time (perf_join-order-enumeration) │ 270.98ms │
│ Queries Faster │ 7 │
│ Queries Slower │ 4 │
│ Queries with No Change │ 11 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴───────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf10.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 313.00 / 318.44 ±3.55 / 322.90 ms │ 307.30 / 310.73 ±2.84 / 315.06 ms │ no change │
│ QQuery 2 │ 104.19 / 108.80 ±5.67 / 119.84 ms │ 72.18 / 73.09 ±0.51 / 73.65 ms │ +1.49x faster │
│ QQuery 3 │ 231.25 / 240.01 ±8.19 / 252.44 ms │ 225.18 / 230.18 ±2.62 / 232.11 ms │ no change │
│ QQuery 4 │ 112.92 / 115.78 ±3.46 / 122.51 ms │ 109.14 / 113.47 ±4.28 / 121.40 ms │ no change │
│ QQuery 5 │ 346.18 / 358.36 ±12.17 / 378.19 ms │ 325.97 / 340.53 ±14.69 / 366.58 ms │ no change │
│ QQuery 6 │ 122.78 / 128.51 ±4.06 / 133.86 ms │ 122.37 / 123.40 ±0.83 / 124.70 ms │ no change │
│ QQuery 7 │ 470.05 / 479.47 ±5.09 / 483.21 ms │ 299.47 / 310.92 ±7.18 / 320.80 ms │ +1.54x faster │
│ QQuery 8 │ 371.76 / 384.74 ±6.74 / 391.15 ms │ 408.93 / 418.64 ±9.15 / 432.89 ms │ 1.09x slower │
│ QQuery 9 │ 559.87 / 571.22 ±8.65 / 584.41 ms │ 557.58 / 589.13 ±20.94 / 620.46 ms │ no change │
│ QQuery 10 │ 297.32 / 308.77 ±11.51 / 328.51 ms │ 301.68 / 310.56 ±8.32 / 323.11 ms │ no change │
│ QQuery 11 │ 89.12 / 94.95 ±6.57 / 107.63 ms │ 62.31 / 67.43 ±6.89 / 81.03 ms │ +1.41x faster │
│ QQuery 12 │ 177.69 / 182.31 ±6.35 / 194.90 ms │ 165.21 / 176.38 ±8.43 / 189.48 ms │ no change │
│ QQuery 13 │ 292.55 / 300.48 ±6.54 / 312.21 ms │ 314.51 / 328.12 ±16.73 / 360.62 ms │ 1.09x slower │
│ QQuery 14 │ 166.36 / 171.55 ±3.62 / 176.37 ms │ 180.11 / 185.06 ±7.24 / 199.33 ms │ 1.08x slower │
│ QQuery 15 │ 295.01 / 301.83 ±7.57 / 315.66 ms │ 308.29 / 318.58 ±5.55 / 323.27 ms │ 1.06x slower │
│ QQuery 16 │ 64.03 / 66.71 ±3.11 / 72.70 ms │ 62.37 / 63.55 ±1.39 / 66.17 ms │ no change │
│ QQuery 17 │ 617.27 / 650.75 ±29.45 / 693.16 ms │ 623.18 / 669.80 ±40.74 / 716.58 ms │ no change │
│ QQuery 18 │ 713.25 / 734.41 ±22.22 / 773.61 ms │ 369.83 / 390.72 ±15.48 / 410.72 ms │ +1.88x faster │
│ QQuery 19 │ 248.69 / 259.34 ±10.34 / 278.77 ms │ 261.77 / 271.21 ±10.67 / 291.12 ms │ no change │
│ QQuery 20 │ 279.46 / 299.60 ±11.75 / 312.54 ms │ 276.68 / 290.71 ±10.07 / 300.07 ms │ no change │
│ QQuery 21 │ 662.21 / 671.73 ±8.63 / 685.48 ms │ 548.58 / 557.42 ±8.29 / 572.05 ms │ +1.21x faster │
│ QQuery 22 │ 56.86 / 60.08 ±1.96 / 62.30 ms │ 59.02 / 62.12 ±2.90 / 67.14 ms │ no change │
└───────────┴────────────────────────────────────┴────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD) │ 6807.83ms │
│ Total Time (perf_join-order-enumeration) │ 6201.76ms │
│ Average Time (HEAD) │ 309.45ms │
│ Average Time (perf_join-order-enumeration) │ 281.90ms │
│ Queries Faster │ 5 │
│ Queries Slower │ 4 │
│ Queries with No Change │ 13 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴───────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpch10 — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 35.0s |
| Peak memory | 5.1 GiB |
| Avg memory | 1.6 GiB |
| CPU user | 346.5s |
| CPU sys | 18.9s |
| Peak spill | 0 B |
**tpch10 — branch**
| Metric | Value |
|--------|-------|
| Wall time | 35.0s |
| Peak memory | 3.6 GiB |
| Avg memory | 1.1 GiB |
| CPU user | 311.7s |
| CPU sys | 18.0s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5381134700
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5381129576)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c5381129576-1871-vgdcg 6.12.85+ #1 SMP Sat Jun 27 09:31:30 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (b8acd17fb6a2a1b307edd71e3c7bb9d75db04e9d) to fc15e25 (merge-base) [diff](https://github.com/apache/datafusion/compare/fc15e25cbb49d457c319dbf522f2982d32c794cb..b8acd17fb6a2a1b307edd71e3c7bb9d75db04e9d)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5345819550
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5345789291)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c5345789291-1766-hdxkz 6.12.85+ #1 SMP Wed Jun 17 20:31:55 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (4c344867b2cf5edb1ec55ccf6fa138009a7609a7) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..4c344867b2cf5edb1ec55ccf6fa138009a7609a7)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpcds
env:
PREFER_HASH_JOIN: "false"
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on code in PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#discussion_r3824173460
##########
datafusion/physical-optimizer/src/join_enumeration.rs:
##########
@@ -0,0 +1,1651 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+//! Cost-based join order enumeration.
+//!
+//! A subtree of joins is flattened into relations plus the predicates between them, a
+//! dynamic program searches the orders (bushy as well as left-deep) under a `C_out` cost
+//! model, and the subtree is rebuilt if the winner is clearly cheaper.
+//!
+//! Reordering is sound because a tree of inner joins equals the cross product of its
+//! relations filtered by all its predicates. Semi and anti joins take part as reducers:
+//! they filter their output side rather than contributing columns.
+
+use std::collections::HashMap;
+use std::sync::Arc;
+
+use crate::PhysicalOptimizerRule;
+use crate::optimizer::{ConfigOnlyContext, PhysicalOptimizerContext};
+
+use arrow::compute::SortOptions;
+use arrow::datatypes::{FieldRef, Schema};
+use datafusion_common::config::ConfigOptions;
+use datafusion_common::error::Result;
+use datafusion_common::tree_node::{Transformed, TransformedResult, TreeNode};
+use datafusion_common::{JoinSide, JoinType, NullEquality, Statistics, internal_err};
+use datafusion_expr_common::operator::Operator;
+use datafusion_physical_expr::PhysicalExprRef;
+use datafusion_physical_expr::expressions::{BinaryExpr, Column};
+use datafusion_physical_expr::projection::ProjectionExpr;
+use datafusion_physical_plan::execution_plan::replace_children_if_necessary;
+use datafusion_physical_plan::joins::utils::{
+ ColumnIndex, JoinFilter, max_distinct_count,
+};
+use datafusion_physical_plan::joins::{
+ CrossJoinExec, HashJoinExec, HashJoinExecBuilder, NestedLoopJoinExec, PartitionMode,
+ SortMergeJoinExec,
+};
+use datafusion_physical_plan::operator_statistics::StatisticsRegistry;
+use datafusion_physical_plan::projection::{ProjectionExec, all_alias_free_columns};
+use datafusion_physical_plan::statistics::{StatisticsArgs, StatisticsContext};
+use datafusion_physical_plan::{ExecutionPlan, ExecutionPlanProperties};
+
+/// Chooses the shape of the join tree, before [`JoinSelection`] decides how each
+/// join runs.
+///
+/// [`JoinSelection`]: crate::join_selection::JoinSelection
+#[derive(Default, Debug)]
+pub struct JoinEnumeration {}
+
+impl JoinEnumeration {
+ #[expect(missing_docs)]
+ pub fn new() -> Self {
+ Self {}
+ }
+}
+
+impl PhysicalOptimizerRule for JoinEnumeration {
+ fn optimize(
+ &self,
+ plan: Arc<dyn ExecutionPlan>,
+ config: &ConfigOptions,
+ ) -> Result<Arc<dyn ExecutionPlan>> {
+ self.optimize_with_context(plan, &ConfigOnlyContext::new(config))
+ }
+
+ fn optimize_with_context(
+ &self,
+ plan: Arc<dyn ExecutionPlan>,
+ context: &dyn PhysicalOptimizerContext,
+ ) -> Result<Arc<dyn ExecutionPlan>> {
+ let config = context.config_options();
+ if !config.optimizer.join_enumeration {
+ return Ok(plan);
+ }
+ let mut default_registry = None;
+ let registry: Option<&StatisticsRegistry> =
+ if config.optimizer.use_statistics_registry {
+ Some(context.statistics_registry().unwrap_or_else(|| {
+ default_registry
+ .insert(StatisticsRegistry::default_with_builtin_providers())
+ }))
+ } else {
+ None
+ };
+ let mut stats = |plan: &dyn ExecutionPlan| {
+ if let Some(registry) = registry {
+ registry
+ .compute(plan)
+ .map(|s| Arc::<Statistics>::clone(s.base_arc()))
+ } else {
+ StatisticsContext::new().compute(plan, &StatisticsArgs::new())
+ }
+ };
+ Ok(enumerate_join_order(&plan, config, &mut stats)?.unwrap_or(plan))
+ }
+
+ fn name(&self) -> &str {
+ "join_enumeration"
+ }
+
+ fn schema_check(&self) -> bool {
+ true
+ }
+}
+
+/// Hard upper bound on the relations in one join graph. The search allocates `2^n` and
+/// visits `3^n`, so larger graphs keep the planner's order regardless of the limit.
+const MAX_RELATIONS: usize = 16;
+
+/// Computes a plan node's statistics, shared with the rest of `JoinSelection`.
+pub(crate) type StatsFn<'a> =
+ dyn FnMut(&dyn ExecutionPlan) -> Result<Arc<Statistics>> + 'a;
+
+/// A bitmask over relation indices.
+type RelSet = u64;
+
+fn bit(rel: usize) -> RelSet {
+ 1u64 << rel
+}
+
+fn iter_rels(mask: RelSet) -> impl Iterator<Item = usize> {
+ std::iter::successors(Some(mask), |m| Some(m & m.wrapping_sub(1)))
+ .take_while(|m| *m != 0)
+ .map(|m| m.trailing_zeros() as usize)
+}
+
+fn covers(mask: RelSet, required: RelSet) -> bool {
+ required & !mask == 0
+}
+
+/// One column of one relation, tracked instead of a plain index because reordering
+/// moves columns to other positions.
+#[derive(Clone, Copy, PartialEq, Eq, Debug)]
+struct ColRef {
+ rel: usize,
+ col: usize,
+}
+
+/// What a relation contributes to the join.
+#[derive(Debug)]
+enum Role {
+ Output,
+ /// The quantified side of a semi or anti join, which filters instead of
+ /// contributing columns.
+ Reducer(Reducer),
+}
+
+#[derive(Debug)]
+struct Reducer {
+ /// `true` for an anti join, which keeps the rows that do *not* match.
+ anti: bool,
+ /// Keys, as `(column of the filtered side, column index here)`.
+ keys: Vec<(ColRef, usize)>,
+ /// Relations the keys reference; this reducer applies only to a set covering them.
+ required: RelSet,
+}
+
+/// One leaf of the join graph: a subplan the enumerator does not look inside.
+#[derive(Debug)]
+struct Relation {
+ plan: Arc<dyn ExecutionPlan>,
+ /// Estimated row count, clamped to at least 1.
+ rows: f64,
+ /// Estimated bytes per row, when the input reports a size.
+ width: Option<f64>,
+ /// Per-column distinct value estimate, clamped to `[1, rows]`.
+ ndv: Vec<f64>,
+ role: Role,
+}
+
+/// An equi-join predicate `left = right` between two distinct relations.
+#[derive(Clone, Copy, Debug)]
+struct Edge {
+ left: ColRef,
+ right: ColRef,
+}
+
+/// A non-equi join predicate, moved along with its column references rewritten.
+#[derive(Debug)]
+struct Filter {
+ filter: JoinFilter,
+ /// The column each entry of the filter's intermediate schema comes from.
+ columns: Vec<ColRef>,
+ /// The relations those columns belong to.
+ required: RelSet,
+}
+
+/// A connected set of joins as relations plus the predicates between them.
+#[derive(Debug)]
+struct JoinGraph {
Review Comment:
we finally have a JoinGraph in DataFusion! (this will probably get crazy, so I recommend it put in its own module to start)
##########
datafusion/physical-optimizer/src/join_enumeration.rs:
##########
@@ -0,0 +1,1651 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+//! Cost-based join order enumeration.
+//!
+//! A subtree of joins is flattened into relations plus the predicates between them, a
+//! dynamic program searches the orders (bushy as well as left-deep) under a `C_out` cost
+//! model, and the subtree is rebuilt if the winner is clearly cheaper.
+//!
+//! Reordering is sound because a tree of inner joins equals the cross product of its
+//! relations filtered by all its predicates. Semi and anti joins take part as reducers:
+//! they filter their output side rather than contributing columns.
+
+use std::collections::HashMap;
+use std::sync::Arc;
+
+use crate::PhysicalOptimizerRule;
+use crate::optimizer::{ConfigOnlyContext, PhysicalOptimizerContext};
+
+use arrow::compute::SortOptions;
+use arrow::datatypes::{FieldRef, Schema};
+use datafusion_common::config::ConfigOptions;
+use datafusion_common::error::Result;
+use datafusion_common::tree_node::{Transformed, TransformedResult, TreeNode};
+use datafusion_common::{JoinSide, JoinType, NullEquality, Statistics, internal_err};
+use datafusion_expr_common::operator::Operator;
+use datafusion_physical_expr::PhysicalExprRef;
+use datafusion_physical_expr::expressions::{BinaryExpr, Column};
+use datafusion_physical_expr::projection::ProjectionExpr;
+use datafusion_physical_plan::execution_plan::replace_children_if_necessary;
+use datafusion_physical_plan::joins::utils::{
+ ColumnIndex, JoinFilter, max_distinct_count,
+};
+use datafusion_physical_plan::joins::{
+ CrossJoinExec, HashJoinExec, HashJoinExecBuilder, NestedLoopJoinExec, PartitionMode,
+ SortMergeJoinExec,
+};
+use datafusion_physical_plan::operator_statistics::StatisticsRegistry;
+use datafusion_physical_plan::projection::{ProjectionExec, all_alias_free_columns};
+use datafusion_physical_plan::statistics::{StatisticsArgs, StatisticsContext};
+use datafusion_physical_plan::{ExecutionPlan, ExecutionPlanProperties};
+
+/// Chooses the shape of the join tree, before [`JoinSelection`] decides how each
+/// join runs.
+///
+/// [`JoinSelection`]: crate::join_selection::JoinSelection
+#[derive(Default, Debug)]
+pub struct JoinEnumeration {}
+
+impl JoinEnumeration {
+ #[expect(missing_docs)]
+ pub fn new() -> Self {
+ Self {}
+ }
+}
+
+impl PhysicalOptimizerRule for JoinEnumeration {
+ fn optimize(
+ &self,
+ plan: Arc<dyn ExecutionPlan>,
+ config: &ConfigOptions,
+ ) -> Result<Arc<dyn ExecutionPlan>> {
+ self.optimize_with_context(plan, &ConfigOnlyContext::new(config))
+ }
+
+ fn optimize_with_context(
+ &self,
+ plan: Arc<dyn ExecutionPlan>,
+ context: &dyn PhysicalOptimizerContext,
+ ) -> Result<Arc<dyn ExecutionPlan>> {
+ let config = context.config_options();
+ if !config.optimizer.join_enumeration {
+ return Ok(plan);
+ }
+ let mut default_registry = None;
+ let registry: Option<&StatisticsRegistry> =
+ if config.optimizer.use_statistics_registry {
+ Some(context.statistics_registry().unwrap_or_else(|| {
+ default_registry
+ .insert(StatisticsRegistry::default_with_builtin_providers())
+ }))
+ } else {
+ None
+ };
+ let mut stats = |plan: &dyn ExecutionPlan| {
+ if let Some(registry) = registry {
+ registry
+ .compute(plan)
+ .map(|s| Arc::<Statistics>::clone(s.base_arc()))
+ } else {
+ StatisticsContext::new().compute(plan, &StatisticsArgs::new())
+ }
+ };
+ Ok(enumerate_join_order(&plan, config, &mut stats)?.unwrap_or(plan))
+ }
+
+ fn name(&self) -> &str {
+ "join_enumeration"
+ }
+
+ fn schema_check(&self) -> bool {
+ true
+ }
+}
+
+/// Hard upper bound on the relations in one join graph. The search allocates `2^n` and
+/// visits `3^n`, so larger graphs keep the planner's order regardless of the limit.
+const MAX_RELATIONS: usize = 16;
+
+/// Computes a plan node's statistics, shared with the rest of `JoinSelection`.
+pub(crate) type StatsFn<'a> =
+ dyn FnMut(&dyn ExecutionPlan) -> Result<Arc<Statistics>> + 'a;
+
+/// A bitmask over relation indices.
+type RelSet = u64;
+
+fn bit(rel: usize) -> RelSet {
+ 1u64 << rel
+}
+
+fn iter_rels(mask: RelSet) -> impl Iterator<Item = usize> {
+ std::iter::successors(Some(mask), |m| Some(m & m.wrapping_sub(1)))
+ .take_while(|m| *m != 0)
+ .map(|m| m.trailing_zeros() as usize)
+}
+
+fn covers(mask: RelSet, required: RelSet) -> bool {
+ required & !mask == 0
+}
+
+/// One column of one relation, tracked instead of a plain index because reordering
+/// moves columns to other positions.
+#[derive(Clone, Copy, PartialEq, Eq, Debug)]
+struct ColRef {
+ rel: usize,
Review Comment:
would help to document what this is an index into
##########
datafusion/physical-optimizer/src/join_enumeration.rs:
##########
@@ -0,0 +1,1651 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+//! Cost-based join order enumeration.
+//!
+//! A subtree of joins is flattened into relations plus the predicates between them, a
+//! dynamic program searches the orders (bushy as well as left-deep) under a `C_out` cost
+//! model, and the subtree is rebuilt if the winner is clearly cheaper.
+//!
+//! Reordering is sound because a tree of inner joins equals the cross product of its
+//! relations filtered by all its predicates. Semi and anti joins take part as reducers:
+//! they filter their output side rather than contributing columns.
+
+use std::collections::HashMap;
+use std::sync::Arc;
+
+use crate::PhysicalOptimizerRule;
+use crate::optimizer::{ConfigOnlyContext, PhysicalOptimizerContext};
+
+use arrow::compute::SortOptions;
+use arrow::datatypes::{FieldRef, Schema};
+use datafusion_common::config::ConfigOptions;
+use datafusion_common::error::Result;
+use datafusion_common::tree_node::{Transformed, TransformedResult, TreeNode};
+use datafusion_common::{JoinSide, JoinType, NullEquality, Statistics, internal_err};
+use datafusion_expr_common::operator::Operator;
+use datafusion_physical_expr::PhysicalExprRef;
+use datafusion_physical_expr::expressions::{BinaryExpr, Column};
+use datafusion_physical_expr::projection::ProjectionExpr;
+use datafusion_physical_plan::execution_plan::replace_children_if_necessary;
+use datafusion_physical_plan::joins::utils::{
+ ColumnIndex, JoinFilter, max_distinct_count,
+};
+use datafusion_physical_plan::joins::{
+ CrossJoinExec, HashJoinExec, HashJoinExecBuilder, NestedLoopJoinExec, PartitionMode,
+ SortMergeJoinExec,
+};
+use datafusion_physical_plan::operator_statistics::StatisticsRegistry;
+use datafusion_physical_plan::projection::{ProjectionExec, all_alias_free_columns};
+use datafusion_physical_plan::statistics::{StatisticsArgs, StatisticsContext};
+use datafusion_physical_plan::{ExecutionPlan, ExecutionPlanProperties};
+
+/// Chooses the shape of the join tree, before [`JoinSelection`] decides how each
+/// join runs.
+///
+/// [`JoinSelection`]: crate::join_selection::JoinSelection
+#[derive(Default, Debug)]
+pub struct JoinEnumeration {}
+
+impl JoinEnumeration {
+ #[expect(missing_docs)]
+ pub fn new() -> Self {
+ Self {}
+ }
+}
+
+impl PhysicalOptimizerRule for JoinEnumeration {
+ fn optimize(
+ &self,
+ plan: Arc<dyn ExecutionPlan>,
+ config: &ConfigOptions,
+ ) -> Result<Arc<dyn ExecutionPlan>> {
+ self.optimize_with_context(plan, &ConfigOnlyContext::new(config))
+ }
+
+ fn optimize_with_context(
+ &self,
+ plan: Arc<dyn ExecutionPlan>,
+ context: &dyn PhysicalOptimizerContext,
+ ) -> Result<Arc<dyn ExecutionPlan>> {
+ let config = context.config_options();
+ if !config.optimizer.join_enumeration {
+ return Ok(plan);
+ }
+ let mut default_registry = None;
+ let registry: Option<&StatisticsRegistry> =
+ if config.optimizer.use_statistics_registry {
+ Some(context.statistics_registry().unwrap_or_else(|| {
+ default_registry
+ .insert(StatisticsRegistry::default_with_builtin_providers())
+ }))
+ } else {
+ None
+ };
+ let mut stats = |plan: &dyn ExecutionPlan| {
+ if let Some(registry) = registry {
+ registry
+ .compute(plan)
+ .map(|s| Arc::<Statistics>::clone(s.base_arc()))
+ } else {
+ StatisticsContext::new().compute(plan, &StatisticsArgs::new())
+ }
+ };
+ Ok(enumerate_join_order(&plan, config, &mut stats)?.unwrap_or(plan))
+ }
+
+ fn name(&self) -> &str {
+ "join_enumeration"
+ }
+
+ fn schema_check(&self) -> bool {
+ true
+ }
+}
+
+/// Hard upper bound on the relations in one join graph. The search allocates `2^n` and
+/// visits `3^n`, so larger graphs keep the planner's order regardless of the limit.
+const MAX_RELATIONS: usize = 16;
+
+/// Computes a plan node's statistics, shared with the rest of `JoinSelection`.
+pub(crate) type StatsFn<'a> =
+ dyn FnMut(&dyn ExecutionPlan) -> Result<Arc<Statistics>> + 'a;
+
+/// A bitmask over relation indices.
+type RelSet = u64;
+
+fn bit(rel: usize) -> RelSet {
+ 1u64 << rel
+}
+
+fn iter_rels(mask: RelSet) -> impl Iterator<Item = usize> {
+ std::iter::successors(Some(mask), |m| Some(m & m.wrapping_sub(1)))
+ .take_while(|m| *m != 0)
+ .map(|m| m.trailing_zeros() as usize)
+}
+
+fn covers(mask: RelSet, required: RelSet) -> bool {
+ required & !mask == 0
+}
+
+/// One column of one relation, tracked instead of a plain index because reordering
+/// moves columns to other positions.
+#[derive(Clone, Copy, PartialEq, Eq, Debug)]
+struct ColRef {
+ rel: usize,
+ col: usize,
+}
+
+/// What a relation contributes to the join.
+#[derive(Debug)]
+enum Role {
+ Output,
+ /// The quantified side of a semi or anti join, which filters instead of
+ /// contributing columns.
+ Reducer(Reducer),
+}
+
+#[derive(Debug)]
+struct Reducer {
+ /// `true` for an anti join, which keeps the rows that do *not* match.
+ anti: bool,
+ /// Keys, as `(column of the filtered side, column index here)`.
+ keys: Vec<(ColRef, usize)>,
+ /// Relations the keys reference; this reducer applies only to a set covering them.
+ required: RelSet,
+}
+
+/// One leaf of the join graph: a subplan the enumerator does not look inside.
+#[derive(Debug)]
+struct Relation {
+ plan: Arc<dyn ExecutionPlan>,
+ /// Estimated row count, clamped to at least 1.
+ rows: f64,
+ /// Estimated bytes per row, when the input reports a size.
+ width: Option<f64>,
+ /// Per-column distinct value estimate, clamped to `[1, rows]`.
+ ndv: Vec<f64>,
+ role: Role,
+}
+
+/// An equi-join predicate `left = right` between two distinct relations.
+#[derive(Clone, Copy, Debug)]
+struct Edge {
+ left: ColRef,
+ right: ColRef,
+}
+
+/// A non-equi join predicate, moved along with its column references rewritten.
+#[derive(Debug)]
+struct Filter {
+ filter: JoinFilter,
+ /// The column each entry of the filter's intermediate schema comes from.
+ columns: Vec<ColRef>,
+ /// The relations those columns belong to.
+ required: RelSet,
+}
+
+/// A connected set of joins as relations plus the predicates between them.
Review Comment:
I think it might make sense to point out that this is an alternative representation of at a sub clause in a query -- basically a `SELECT .... ` but with nodes representing tables and edges representing joins between them
It looks like this representation takes some sub tree of joins and then replaces the JoinExec (maybe?)
It wold help to describe with an example how an input ExecutionPlan goes into a JoinGraph
##########
datafusion/physical-optimizer/src/join_enumeration.rs:
##########
@@ -0,0 +1,1651 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+//! Cost-based join order enumeration.
+//!
+//! A subtree of joins is flattened into relations plus the predicates between them, a
+//! dynamic program searches the orders (bushy as well as left-deep) under a `C_out` cost
+//! model, and the subtree is rebuilt if the winner is clearly cheaper.
+//!
+//! Reordering is sound because a tree of inner joins equals the cross product of its
+//! relations filtered by all its predicates. Semi and anti joins take part as reducers:
+//! they filter their output side rather than contributing columns.
+
+use std::collections::HashMap;
+use std::sync::Arc;
+
+use crate::PhysicalOptimizerRule;
+use crate::optimizer::{ConfigOnlyContext, PhysicalOptimizerContext};
+
+use arrow::compute::SortOptions;
+use arrow::datatypes::{FieldRef, Schema};
+use datafusion_common::config::ConfigOptions;
+use datafusion_common::error::Result;
+use datafusion_common::tree_node::{Transformed, TransformedResult, TreeNode};
+use datafusion_common::{JoinSide, JoinType, NullEquality, Statistics, internal_err};
+use datafusion_expr_common::operator::Operator;
+use datafusion_physical_expr::PhysicalExprRef;
+use datafusion_physical_expr::expressions::{BinaryExpr, Column};
+use datafusion_physical_expr::projection::ProjectionExpr;
+use datafusion_physical_plan::execution_plan::replace_children_if_necessary;
+use datafusion_physical_plan::joins::utils::{
+ ColumnIndex, JoinFilter, max_distinct_count,
+};
+use datafusion_physical_plan::joins::{
+ CrossJoinExec, HashJoinExec, HashJoinExecBuilder, NestedLoopJoinExec, PartitionMode,
+ SortMergeJoinExec,
+};
+use datafusion_physical_plan::operator_statistics::StatisticsRegistry;
+use datafusion_physical_plan::projection::{ProjectionExec, all_alias_free_columns};
+use datafusion_physical_plan::statistics::{StatisticsArgs, StatisticsContext};
+use datafusion_physical_plan::{ExecutionPlan, ExecutionPlanProperties};
+
+/// Chooses the shape of the join tree, before [`JoinSelection`] decides how each
+/// join runs.
+///
+/// [`JoinSelection`]: crate::join_selection::JoinSelection
+#[derive(Default, Debug)]
+pub struct JoinEnumeration {}
+
+impl JoinEnumeration {
+ #[expect(missing_docs)]
+ pub fn new() -> Self {
+ Self {}
+ }
+}
+
+impl PhysicalOptimizerRule for JoinEnumeration {
+ fn optimize(
+ &self,
+ plan: Arc<dyn ExecutionPlan>,
+ config: &ConfigOptions,
+ ) -> Result<Arc<dyn ExecutionPlan>> {
+ self.optimize_with_context(plan, &ConfigOnlyContext::new(config))
+ }
+
+ fn optimize_with_context(
+ &self,
+ plan: Arc<dyn ExecutionPlan>,
+ context: &dyn PhysicalOptimizerContext,
+ ) -> Result<Arc<dyn ExecutionPlan>> {
+ let config = context.config_options();
+ if !config.optimizer.join_enumeration {
+ return Ok(plan);
+ }
+ let mut default_registry = None;
+ let registry: Option<&StatisticsRegistry> =
+ if config.optimizer.use_statistics_registry {
+ Some(context.statistics_registry().unwrap_or_else(|| {
+ default_registry
+ .insert(StatisticsRegistry::default_with_builtin_providers())
+ }))
+ } else {
+ None
+ };
+ let mut stats = |plan: &dyn ExecutionPlan| {
+ if let Some(registry) = registry {
+ registry
+ .compute(plan)
+ .map(|s| Arc::<Statistics>::clone(s.base_arc()))
+ } else {
+ StatisticsContext::new().compute(plan, &StatisticsArgs::new())
+ }
+ };
+ Ok(enumerate_join_order(&plan, config, &mut stats)?.unwrap_or(plan))
+ }
+
+ fn name(&self) -> &str {
+ "join_enumeration"
+ }
+
+ fn schema_check(&self) -> bool {
+ true
+ }
+}
+
+/// Hard upper bound on the relations in one join graph. The search allocates `2^n` and
+/// visits `3^n`, so larger graphs keep the planner's order regardless of the limit.
+const MAX_RELATIONS: usize = 16;
+
+/// Computes a plan node's statistics, shared with the rest of `JoinSelection`.
+pub(crate) type StatsFn<'a> =
+ dyn FnMut(&dyn ExecutionPlan) -> Result<Arc<Statistics>> + 'a;
+
+/// A bitmask over relation indices.
+type RelSet = u64;
+
+fn bit(rel: usize) -> RelSet {
+ 1u64 << rel
+}
+
+fn iter_rels(mask: RelSet) -> impl Iterator<Item = usize> {
+ std::iter::successors(Some(mask), |m| Some(m & m.wrapping_sub(1)))
+ .take_while(|m| *m != 0)
+ .map(|m| m.trailing_zeros() as usize)
+}
+
+fn covers(mask: RelSet, required: RelSet) -> bool {
+ required & !mask == 0
+}
+
+/// One column of one relation, tracked instead of a plain index because reordering
+/// moves columns to other positions.
+#[derive(Clone, Copy, PartialEq, Eq, Debug)]
+struct ColRef {
+ rel: usize,
+ col: usize,
+}
+
+/// What a relation contributes to the join.
+#[derive(Debug)]
+enum Role {
+ Output,
+ /// The quantified side of a semi or anti join, which filters instead of
+ /// contributing columns.
+ Reducer(Reducer),
+}
+
+#[derive(Debug)]
+struct Reducer {
+ /// `true` for an anti join, which keeps the rows that do *not* match.
+ anti: bool,
+ /// Keys, as `(column of the filtered side, column index here)`.
+ keys: Vec<(ColRef, usize)>,
+ /// Relations the keys reference; this reducer applies only to a set covering them.
+ required: RelSet,
+}
+
+/// One leaf of the join graph: a subplan the enumerator does not look inside.
+#[derive(Debug)]
+struct Relation {
+ plan: Arc<dyn ExecutionPlan>,
+ /// Estimated row count, clamped to at least 1.
+ rows: f64,
+ /// Estimated bytes per row, when the input reports a size.
+ width: Option<f64>,
+ /// Per-column distinct value estimate, clamped to `[1, rows]`.
+ ndv: Vec<f64>,
+ role: Role,
+}
+
+/// An equi-join predicate `left = right` between two distinct relations.
+#[derive(Clone, Copy, Debug)]
+struct Edge {
+ left: ColRef,
+ right: ColRef,
+}
+
+/// A non-equi join predicate, moved along with its column references rewritten.
+#[derive(Debug)]
+struct Filter {
+ filter: JoinFilter,
+ /// The column each entry of the filter's intermediate schema comes from.
+ columns: Vec<ColRef>,
+ /// The relations those columns belong to.
+ required: RelSet,
+}
+
+/// A connected set of joins as relations plus the predicates between them.
+#[derive(Debug)]
+struct JoinGraph {
+ relations: Vec<Relation>,
+ edges: Vec<Edge>,
+ filters: Vec<Filter>,
+ /// Columns the original subtree emitted; the rebuilt one reproduces this exactly.
+ output: Vec<ColRef>,
+ /// Null handling shared by the subtree's joins. A join that differs becomes a
+ /// relation instead.
+ null_equality: Option<NullEquality>,
+ /// The original tree's internal nodes as `(node, one child)`, children first, so
+ /// the planner's shape can be scored under the same formula as the alternatives.
+ original_nodes: Vec<(RelSet, RelSet)>,
+ /// The relations that are reducers rather than ordinary inputs.
+ reducers: RelSet,
+ /// Which join operator the subtree used, and which the rebuild emits.
+ kind: Option<JoinKind>,
+}
+
+impl JoinGraph {
+ fn ndv(&self, col: ColRef) -> f64 {
+ self.relations[col.rel].ndv[col.col]
+ }
+
+ fn all(&self) -> RelSet {
+ (0..self.relations.len()).fold(0, |mask, rel| mask | bit(rel))
+ }
+
+ fn reducer(&self, rel: usize) -> Option<&Reducer> {
+ match &self.relations[rel].role {
+ Role::Reducer(reducer) => Some(reducer),
+ Role::Output => None,
+ }
+ }
+
+ fn kind(&self) -> JoinKind {
+ self.kind.unwrap_or(JoinKind::Hash)
+ }
+
+ fn null_equality(&self) -> NullEquality {
+ self.null_equality
+ .unwrap_or(NullEquality::NullEqualsNothing)
+ }
+}
+
+/// A valid way of combining two relation sets.
+#[derive(Clone, Copy, Debug)]
+enum Combine {
+ Inner,
+ /// A semi or anti join applying `reducer` to the opposite set.
+ Reducer {
+ reducer: usize,
+ },
+}
+
+/// Cardinality and cost estimates over the subsets of a [`JoinGraph`].
+struct CostModel<'a> {
Review Comment:
Can we please make this a trait (so that other people can plug in their own cost models, based on whatever statistics they may have, or other knowledge they have about their data and the joins?
Something like this
```rust
trait JoinCostModel {
/// Estimated rows from joining every relation in `mask`.
fn cardinality(&self, mask: RelSet) -> f64;
/// Whether `left` and `right` can be combined, and how (inner join, or one
/// side applying as a reducer).
fn combine(&self, left: RelSet, right: RelSet) -> Option<Combine>;
/// Cost of joining `left` (partitioned as `left_part`) with `right`
/// (`right_part`), for each way of exchanging their inputs.
fn exchanges(
&self,
left: RelSet,
right: RelSet,
left_part: PartSet,
right_part: PartSet,
collect_only: Option<RelSet>,
) -> Vec<(f64, PartSet, RelSet, PartitionMode)>;
}
```
##########
datafusion/common/src/config.rs:
##########
@@ -1672,6 +1672,22 @@ config_namespace! {
/// query is used.
pub join_reordering: bool, default = true
+ /// When set to true, the physical plan optimizer enumerates join orders for
+ /// subtrees of joins and picks the cheapest from cardinality estimates,
+ /// considering bushy shapes as well as left-deep ones. Subtrees whose inputs
+ /// lack row count statistics are left untouched.
+ pub join_enumeration: bool, default = true
+
+ /// How much cheaper an enumerated join order must be, in percent, before it
Review Comment:
this set of settings is exactly why I am hesitant to put something too complicated into the datafusion core -- the join ordering algorithms can get so out of hand complicated I think we need to find a way to keep the core (relatively) simple and leave API hooks to support the more complicated cases
I have more suggestions on how to do this below
##########
datafusion/physical-optimizer/src/join_enumeration.rs:
##########
@@ -0,0 +1,1651 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+//! Cost-based join order enumeration.
+//!
+//! A subtree of joins is flattened into relations plus the predicates between them, a
+//! dynamic program searches the orders (bushy as well as left-deep) under a `C_out` cost
+//! model, and the subtree is rebuilt if the winner is clearly cheaper.
+//!
+//! Reordering is sound because a tree of inner joins equals the cross product of its
+//! relations filtered by all its predicates. Semi and anti joins take part as reducers:
+//! they filter their output side rather than contributing columns.
+
+use std::collections::HashMap;
+use std::sync::Arc;
+
+use crate::PhysicalOptimizerRule;
+use crate::optimizer::{ConfigOnlyContext, PhysicalOptimizerContext};
+
+use arrow::compute::SortOptions;
+use arrow::datatypes::{FieldRef, Schema};
+use datafusion_common::config::ConfigOptions;
+use datafusion_common::error::Result;
+use datafusion_common::tree_node::{Transformed, TransformedResult, TreeNode};
+use datafusion_common::{JoinSide, JoinType, NullEquality, Statistics, internal_err};
+use datafusion_expr_common::operator::Operator;
+use datafusion_physical_expr::PhysicalExprRef;
+use datafusion_physical_expr::expressions::{BinaryExpr, Column};
+use datafusion_physical_expr::projection::ProjectionExpr;
+use datafusion_physical_plan::execution_plan::replace_children_if_necessary;
+use datafusion_physical_plan::joins::utils::{
+ ColumnIndex, JoinFilter, max_distinct_count,
+};
+use datafusion_physical_plan::joins::{
+ CrossJoinExec, HashJoinExec, HashJoinExecBuilder, NestedLoopJoinExec, PartitionMode,
+ SortMergeJoinExec,
+};
+use datafusion_physical_plan::operator_statistics::StatisticsRegistry;
+use datafusion_physical_plan::projection::{ProjectionExec, all_alias_free_columns};
+use datafusion_physical_plan::statistics::{StatisticsArgs, StatisticsContext};
+use datafusion_physical_plan::{ExecutionPlan, ExecutionPlanProperties};
+
+/// Chooses the shape of the join tree, before [`JoinSelection`] decides how each
+/// join runs.
+///
+/// [`JoinSelection`]: crate::join_selection::JoinSelection
+#[derive(Default, Debug)]
+pub struct JoinEnumeration {}
+
+impl JoinEnumeration {
+ #[expect(missing_docs)]
+ pub fn new() -> Self {
+ Self {}
+ }
+}
+
+impl PhysicalOptimizerRule for JoinEnumeration {
+ fn optimize(
+ &self,
+ plan: Arc<dyn ExecutionPlan>,
+ config: &ConfigOptions,
+ ) -> Result<Arc<dyn ExecutionPlan>> {
+ self.optimize_with_context(plan, &ConfigOnlyContext::new(config))
+ }
+
+ fn optimize_with_context(
+ &self,
+ plan: Arc<dyn ExecutionPlan>,
+ context: &dyn PhysicalOptimizerContext,
+ ) -> Result<Arc<dyn ExecutionPlan>> {
+ let config = context.config_options();
+ if !config.optimizer.join_enumeration {
+ return Ok(plan);
+ }
+ let mut default_registry = None;
+ let registry: Option<&StatisticsRegistry> =
+ if config.optimizer.use_statistics_registry {
+ Some(context.statistics_registry().unwrap_or_else(|| {
+ default_registry
+ .insert(StatisticsRegistry::default_with_builtin_providers())
+ }))
+ } else {
+ None
+ };
+ let mut stats = |plan: &dyn ExecutionPlan| {
+ if let Some(registry) = registry {
+ registry
+ .compute(plan)
+ .map(|s| Arc::<Statistics>::clone(s.base_arc()))
+ } else {
+ StatisticsContext::new().compute(plan, &StatisticsArgs::new())
+ }
+ };
+ Ok(enumerate_join_order(&plan, config, &mut stats)?.unwrap_or(plan))
+ }
+
+ fn name(&self) -> &str {
+ "join_enumeration"
+ }
+
+ fn schema_check(&self) -> bool {
+ true
+ }
+}
+
+/// Hard upper bound on the relations in one join graph. The search allocates `2^n` and
+/// visits `3^n`, so larger graphs keep the planner's order regardless of the limit.
+const MAX_RELATIONS: usize = 16;
+
+/// Computes a plan node's statistics, shared with the rest of `JoinSelection`.
+pub(crate) type StatsFn<'a> =
+ dyn FnMut(&dyn ExecutionPlan) -> Result<Arc<Statistics>> + 'a;
+
+/// A bitmask over relation indices.
+type RelSet = u64;
+
+fn bit(rel: usize) -> RelSet {
+ 1u64 << rel
+}
+
+fn iter_rels(mask: RelSet) -> impl Iterator<Item = usize> {
+ std::iter::successors(Some(mask), |m| Some(m & m.wrapping_sub(1)))
+ .take_while(|m| *m != 0)
+ .map(|m| m.trailing_zeros() as usize)
+}
+
+fn covers(mask: RelSet, required: RelSet) -> bool {
+ required & !mask == 0
+}
+
+/// One column of one relation, tracked instead of a plain index because reordering
+/// moves columns to other positions.
+#[derive(Clone, Copy, PartialEq, Eq, Debug)]
+struct ColRef {
+ rel: usize,
+ col: usize,
+}
+
+/// What a relation contributes to the join.
+#[derive(Debug)]
+enum Role {
+ Output,
+ /// The quantified side of a semi or anti join, which filters instead of
+ /// contributing columns.
+ Reducer(Reducer),
+}
+
+#[derive(Debug)]
+struct Reducer {
+ /// `true` for an anti join, which keeps the rows that do *not* match.
+ anti: bool,
+ /// Keys, as `(column of the filtered side, column index here)`.
+ keys: Vec<(ColRef, usize)>,
+ /// Relations the keys reference; this reducer applies only to a set covering them.
+ required: RelSet,
+}
+
+/// One leaf of the join graph: a subplan the enumerator does not look inside.
+#[derive(Debug)]
+struct Relation {
+ plan: Arc<dyn ExecutionPlan>,
+ /// Estimated row count, clamped to at least 1.
+ rows: f64,
+ /// Estimated bytes per row, when the input reports a size.
+ width: Option<f64>,
+ /// Per-column distinct value estimate, clamped to `[1, rows]`.
+ ndv: Vec<f64>,
+ role: Role,
+}
+
+/// An equi-join predicate `left = right` between two distinct relations.
+#[derive(Clone, Copy, Debug)]
+struct Edge {
+ left: ColRef,
+ right: ColRef,
+}
+
+/// A non-equi join predicate, moved along with its column references rewritten.
+#[derive(Debug)]
+struct Filter {
+ filter: JoinFilter,
+ /// The column each entry of the filter's intermediate schema comes from.
+ columns: Vec<ColRef>,
+ /// The relations those columns belong to.
+ required: RelSet,
+}
+
+/// A connected set of joins as relations plus the predicates between them.
Review Comment:
Here is an example that Claude came up with
example four tables, B goes through GROUP BY before the join:
```
HashJoin(a.x = b.x)
├── HashJoin(a.y = c.y)
│ ├── Scan A
│ └── Scan C
└── HashJoin(b.z = d.z)
├── AggregateExec(group by: b.x, b.z; cnt = count(*))
│ └── Scan B
└── Scan D
```
And the join representation
```
JoinGraph {
kind: Hash, reducers: {} (none), filters: []
edge: A.y = C.y
┌───────────┐ ───────────────────────────── ┌───────────┐
│ rel 0: A │ │ rel 1: C │
│ (Scan A) │ │ (Scan C) │
└─────┬─────┘ └───────────┘
│
│ edge: A.x = Agg(B).col0
│
┌─────┴───────────┐
│ rel 2: Agg(B) │
│ [OPAQUE] │
└────────┬─────────┘
│
│ edge: Agg(B).col1 = D.z
│
┌─────┴─────┐
│ rel 3: D │
│ (Scan D) │
└───────────┘
output: columns of A ++ C ++ Agg(B) ++ D (flattened left-to-right, depth-first)
}
```
##########
datafusion/physical-optimizer/src/join_enumeration.rs:
##########
@@ -0,0 +1,1651 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+//! Cost-based join order enumeration.
+//!
+//! A subtree of joins is flattened into relations plus the predicates between them, a
+//! dynamic program searches the orders (bushy as well as left-deep) under a `C_out` cost
+//! model, and the subtree is rebuilt if the winner is clearly cheaper.
+//!
+//! Reordering is sound because a tree of inner joins equals the cross product of its
+//! relations filtered by all its predicates. Semi and anti joins take part as reducers:
+//! they filter their output side rather than contributing columns.
+
+use std::collections::HashMap;
+use std::sync::Arc;
+
+use crate::PhysicalOptimizerRule;
+use crate::optimizer::{ConfigOnlyContext, PhysicalOptimizerContext};
+
+use arrow::compute::SortOptions;
+use arrow::datatypes::{FieldRef, Schema};
+use datafusion_common::config::ConfigOptions;
+use datafusion_common::error::Result;
+use datafusion_common::tree_node::{Transformed, TransformedResult, TreeNode};
+use datafusion_common::{JoinSide, JoinType, NullEquality, Statistics, internal_err};
+use datafusion_expr_common::operator::Operator;
+use datafusion_physical_expr::PhysicalExprRef;
+use datafusion_physical_expr::expressions::{BinaryExpr, Column};
+use datafusion_physical_expr::projection::ProjectionExpr;
+use datafusion_physical_plan::execution_plan::replace_children_if_necessary;
+use datafusion_physical_plan::joins::utils::{
+ ColumnIndex, JoinFilter, max_distinct_count,
+};
+use datafusion_physical_plan::joins::{
+ CrossJoinExec, HashJoinExec, HashJoinExecBuilder, NestedLoopJoinExec, PartitionMode,
+ SortMergeJoinExec,
+};
+use datafusion_physical_plan::operator_statistics::StatisticsRegistry;
+use datafusion_physical_plan::projection::{ProjectionExec, all_alias_free_columns};
+use datafusion_physical_plan::statistics::{StatisticsArgs, StatisticsContext};
+use datafusion_physical_plan::{ExecutionPlan, ExecutionPlanProperties};
+
+/// Chooses the shape of the join tree, before [`JoinSelection`] decides how each
+/// join runs.
+///
+/// [`JoinSelection`]: crate::join_selection::JoinSelection
+#[derive(Default, Debug)]
+pub struct JoinEnumeration {}
+
+impl JoinEnumeration {
+ #[expect(missing_docs)]
+ pub fn new() -> Self {
+ Self {}
+ }
+}
+
+impl PhysicalOptimizerRule for JoinEnumeration {
+ fn optimize(
+ &self,
+ plan: Arc<dyn ExecutionPlan>,
+ config: &ConfigOptions,
+ ) -> Result<Arc<dyn ExecutionPlan>> {
+ self.optimize_with_context(plan, &ConfigOnlyContext::new(config))
+ }
+
+ fn optimize_with_context(
+ &self,
+ plan: Arc<dyn ExecutionPlan>,
+ context: &dyn PhysicalOptimizerContext,
+ ) -> Result<Arc<dyn ExecutionPlan>> {
+ let config = context.config_options();
+ if !config.optimizer.join_enumeration {
+ return Ok(plan);
+ }
+ let mut default_registry = None;
+ let registry: Option<&StatisticsRegistry> =
+ if config.optimizer.use_statistics_registry {
+ Some(context.statistics_registry().unwrap_or_else(|| {
+ default_registry
+ .insert(StatisticsRegistry::default_with_builtin_providers())
+ }))
+ } else {
+ None
+ };
+ let mut stats = |plan: &dyn ExecutionPlan| {
+ if let Some(registry) = registry {
+ registry
+ .compute(plan)
+ .map(|s| Arc::<Statistics>::clone(s.base_arc()))
+ } else {
+ StatisticsContext::new().compute(plan, &StatisticsArgs::new())
+ }
+ };
+ Ok(enumerate_join_order(&plan, config, &mut stats)?.unwrap_or(plan))
+ }
+
+ fn name(&self) -> &str {
+ "join_enumeration"
+ }
+
+ fn schema_check(&self) -> bool {
+ true
+ }
+}
+
+/// Hard upper bound on the relations in one join graph. The search allocates `2^n` and
+/// visits `3^n`, so larger graphs keep the planner's order regardless of the limit.
+const MAX_RELATIONS: usize = 16;
+
+/// Computes a plan node's statistics, shared with the rest of `JoinSelection`.
+pub(crate) type StatsFn<'a> =
+ dyn FnMut(&dyn ExecutionPlan) -> Result<Arc<Statistics>> + 'a;
+
+/// A bitmask over relation indices.
+type RelSet = u64;
+
+fn bit(rel: usize) -> RelSet {
+ 1u64 << rel
+}
+
+fn iter_rels(mask: RelSet) -> impl Iterator<Item = usize> {
+ std::iter::successors(Some(mask), |m| Some(m & m.wrapping_sub(1)))
+ .take_while(|m| *m != 0)
+ .map(|m| m.trailing_zeros() as usize)
+}
+
+fn covers(mask: RelSet, required: RelSet) -> bool {
+ required & !mask == 0
+}
+
+/// One column of one relation, tracked instead of a plain index because reordering
+/// moves columns to other positions.
+#[derive(Clone, Copy, PartialEq, Eq, Debug)]
+struct ColRef {
+ rel: usize,
+ col: usize,
+}
+
+/// What a relation contributes to the join.
+#[derive(Debug)]
+enum Role {
+ Output,
+ /// The quantified side of a semi or anti join, which filters instead of
+ /// contributing columns.
+ Reducer(Reducer),
+}
+
+#[derive(Debug)]
+struct Reducer {
+ /// `true` for an anti join, which keeps the rows that do *not* match.
+ anti: bool,
+ /// Keys, as `(column of the filtered side, column index here)`.
+ keys: Vec<(ColRef, usize)>,
+ /// Relations the keys reference; this reducer applies only to a set covering them.
+ required: RelSet,
+}
+
+/// One leaf of the join graph: a subplan the enumerator does not look inside.
+#[derive(Debug)]
+struct Relation {
+ plan: Arc<dyn ExecutionPlan>,
+ /// Estimated row count, clamped to at least 1.
+ rows: f64,
+ /// Estimated bytes per row, when the input reports a size.
+ width: Option<f64>,
+ /// Per-column distinct value estimate, clamped to `[1, rows]`.
+ ndv: Vec<f64>,
+ role: Role,
+}
+
+/// An equi-join predicate `left = right` between two distinct relations.
+#[derive(Clone, Copy, Debug)]
+struct Edge {
+ left: ColRef,
+ right: ColRef,
+}
+
+/// A non-equi join predicate, moved along with its column references rewritten.
+#[derive(Debug)]
+struct Filter {
+ filter: JoinFilter,
+ /// The column each entry of the filter's intermediate schema comes from.
+ columns: Vec<ColRef>,
+ /// The relations those columns belong to.
+ required: RelSet,
+}
+
+/// A connected set of joins as relations plus the predicates between them.
+#[derive(Debug)]
+struct JoinGraph {
+ relations: Vec<Relation>,
+ edges: Vec<Edge>,
+ filters: Vec<Filter>,
Review Comment:
I normally think of a join graph where the edges themselves have filters. But maybe that is implicit in the fact that the edges and filters are parallell lists
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5345976412
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5345789291)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (4c344867b2cf5edb1ec55ccf6fa138009a7609a7) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..4c344867b2cf5edb1ec55ccf6fa138009a7609a7)
<details><summary>Run configuration</summary>
```yaml
run benchmark clickbench_partitioned
env:
PREFER_HASH_JOIN: "false"
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0 │ 1.24 ms │ 1.26 ms │ no change │
│ QQuery 1 │ 12.23 ms │ 11.94 ms │ no change │
│ QQuery 2 │ 37.44 ms │ 36.30 ms │ no change │
│ QQuery 3 │ 30.95 ms │ 31.03 ms │ no change │
│ QQuery 4 │ 231.78 ms │ 225.21 ms │ no change │
│ QQuery 5 │ 276.60 ms │ 271.79 ms │ no change │
│ QQuery 6 │ 1.31 ms │ 1.32 ms │ no change │
│ QQuery 7 │ 13.81 ms │ 13.19 ms │ no change │
│ QQuery 8 │ 333.28 ms │ 323.15 ms │ no change │
│ QQuery 9 │ 462.48 ms │ 456.89 ms │ no change │
│ QQuery 10 │ 70.36 ms │ 69.70 ms │ no change │
│ QQuery 11 │ 81.11 ms │ 81.63 ms │ no change │
│ QQuery 12 │ 269.44 ms │ 269.00 ms │ no change │
│ QQuery 13 │ 372.03 ms │ 367.49 ms │ no change │
│ QQuery 14 │ 284.78 ms │ 283.91 ms │ no change │
│ QQuery 15 │ 275.15 ms │ 277.23 ms │ no change │
│ QQuery 16 │ 616.64 ms │ 612.81 ms │ no change │
│ QQuery 17 │ 625.18 ms │ 628.09 ms │ no change │
│ QQuery 18 │ 1299.78 ms │ 1248.71 ms │ no change │
│ QQuery 19 │ 28.26 ms │ 27.70 ms │ no change │
│ QQuery 20 │ 524.62 ms │ 516.23 ms │ no change │
│ QQuery 21 │ 515.49 ms │ 516.00 ms │ no change │
│ QQuery 22 │ 991.73 ms │ 981.58 ms │ no change │
│ QQuery 23 │ 3072.91 ms │ 3058.71 ms │ no change │
│ QQuery 24 │ 41.24 ms │ 41.37 ms │ no change │
│ QQuery 25 │ 111.52 ms │ 111.07 ms │ no change │
│ QQuery 26 │ 41.94 ms │ 41.08 ms │ no change │
│ QQuery 27 │ 514.27 ms │ 512.15 ms │ no change │
│ QQuery 28 │ 2902.80 ms │ 2872.00 ms │ no change │
│ QQuery 29 │ 41.27 ms │ 41.06 ms │ no change │
│ QQuery 30 │ 305.11 ms │ 300.76 ms │ no change │
│ QQuery 31 │ 281.11 ms │ 283.14 ms │ no change │
│ QQuery 32 │ 942.16 ms │ 916.90 ms │ no change │
│ QQuery 33 │ 1431.52 ms │ 1452.17 ms │ no change │
│ QQuery 34 │ 1490.10 ms │ 1465.76 ms │ no change │
│ QQuery 35 │ 283.33 ms │ 273.15 ms │ no change │
│ QQuery 36 │ 67.72 ms │ 67.16 ms │ no change │
│ QQuery 37 │ 35.67 ms │ 35.69 ms │ no change │
│ QQuery 38 │ 43.43 ms │ 40.21 ms │ +1.08x faster │
│ QQuery 39 │ 139.41 ms │ 141.26 ms │ no change │
│ QQuery 40 │ 14.45 ms │ 14.38 ms │ no change │
│ QQuery 41 │ 14.10 ms │ 13.65 ms │ no change │
│ QQuery 42 │ 13.30 ms │ 13.39 ms │ no change │
└───────────┴────────────┴─────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD) │ 19143.08ms │
│ Total Time (perf_join-order-enumeration) │ 18947.20ms │
│ Average Time (HEAD) │ 445.19ms │
│ Average Time (perf_join-order-enumeration) │ 440.63ms │
│ Queries Faster │ 1 │
│ Queries Slower │ 0 │
│ Queries with No Change │ 42 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴────────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0 │ 1.24 / 4.03 ±5.47 / 14.96 ms │ 1.26 / 4.02 ±5.43 / 14.87 ms │ no change │
│ QQuery 1 │ 12.23 / 12.55 ±0.18 / 12.76 ms │ 11.94 / 12.21 ±0.18 / 12.44 ms │ no change │
│ QQuery 2 │ 37.44 / 37.74 ±0.26 / 38.08 ms │ 36.30 / 36.70 ±0.32 / 37.23 ms │ no change │
│ QQuery 3 │ 30.95 / 31.77 ±0.63 / 32.75 ms │ 31.03 / 31.17 ±0.09 / 31.30 ms │ no change │
│ QQuery 4 │ 231.78 / 236.59 ±3.35 / 241.83 ms │ 225.21 / 228.23 ±2.36 / 231.70 ms │ no change │
│ QQuery 5 │ 276.60 / 280.23 ±3.58 / 286.26 ms │ 271.79 / 273.94 ±1.64 / 276.50 ms │ no change │
│ QQuery 6 │ 1.31 / 1.47 ±0.21 / 1.88 ms │ 1.32 / 1.46 ±0.22 / 1.89 ms │ no change │
│ QQuery 7 │ 13.81 / 14.07 ±0.15 / 14.27 ms │ 13.19 / 13.40 ±0.12 / 13.54 ms │ no change │
│ QQuery 8 │ 333.28 / 337.59 ±3.76 / 343.55 ms │ 323.15 / 329.11 ±3.21 / 332.91 ms │ no change │
│ QQuery 9 │ 462.48 / 469.73 ±5.54 / 476.16 ms │ 456.89 / 463.47 ±6.33 / 473.31 ms │ no change │
│ QQuery 10 │ 70.36 / 70.98 ±0.83 / 72.62 ms │ 69.70 / 70.64 ±1.21 / 72.97 ms │ no change │
│ QQuery 11 │ 81.11 / 82.56 ±1.87 / 86.01 ms │ 81.63 / 82.98 ±0.98 / 84.39 ms │ no change │
│ QQuery 12 │ 269.44 / 276.07 ±6.52 / 287.15 ms │ 269.00 / 272.43 ±3.53 / 277.77 ms │ no change │
│ QQuery 13 │ 372.03 / 386.47 ±10.60 / 399.54 ms │ 367.49 / 371.48 ±2.23 / 373.68 ms │ no change │
│ QQuery 14 │ 284.78 / 289.82 ±5.39 / 297.51 ms │ 283.91 / 289.64 ±6.67 / 302.24 ms │ no change │
│ QQuery 15 │ 275.15 / 284.88 ±7.67 / 296.06 ms │ 277.23 / 282.62 ±4.97 / 291.49 ms │ no change │
│ QQuery 16 │ 616.64 / 624.28 ±6.76 / 633.20 ms │ 612.81 / 619.47 ±4.60 / 626.11 ms │ no change │
│ QQuery 17 │ 625.18 / 638.90 ±13.59 / 658.20 ms │ 628.09 / 634.68 ±6.49 / 645.33 ms │ no change │
│ QQuery 18 │ 1299.78 / 1312.32 ±9.90 / 1324.58 ms │ 1248.71 / 1290.86 ±37.62 / 1360.48 ms │ no change │
│ QQuery 19 │ 28.26 / 28.71 ±0.50 / 29.67 ms │ 27.70 / 36.67 ±17.05 / 70.76 ms │ 1.28x slower │
│ QQuery 20 │ 524.62 / 542.08 ±17.53 / 573.23 ms │ 516.23 / 530.36 ±21.28 / 572.70 ms │ no change │
│ QQuery 21 │ 515.49 / 521.76 ±5.78 / 532.51 ms │ 516.00 / 521.62 ±5.01 / 528.19 ms │ no change │
│ QQuery 22 │ 991.73 / 1003.81 ±12.97 / 1028.32 ms │ 981.58 / 986.49 ±5.53 / 996.01 ms │ no change │
│ QQuery 23 │ 3072.91 / 3102.04 ±23.85 / 3145.15 ms │ 3058.71 / 3111.90 ±41.75 / 3173.67 ms │ no change │
│ QQuery 24 │ 41.24 / 45.56 ±4.52 / 51.75 ms │ 41.37 / 47.85 ±9.27 / 65.63 ms │ 1.05x slower │
│ QQuery 25 │ 111.52 / 115.20 ±5.08 / 125.12 ms │ 111.07 / 113.71 ±4.15 / 121.90 ms │ no change │
│ QQuery 26 │ 41.94 / 42.75 ±0.58 / 43.65 ms │ 41.08 / 42.77 ±1.83 / 46.11 ms │ no change │
│ QQuery 27 │ 514.27 / 518.30 ±2.62 / 521.98 ms │ 512.15 / 524.33 ±8.50 / 537.11 ms │ no change │
│ QQuery 28 │ 2902.80 / 2933.07 ±20.01 / 2965.00 ms │ 2872.00 / 2912.82 ±27.42 / 2955.82 ms │ no change │
│ QQuery 29 │ 41.27 / 47.51 ±11.99 / 71.49 ms │ 41.06 / 47.90 ±13.33 / 74.55 ms │ no change │
│ QQuery 30 │ 305.11 / 308.69 ±3.74 / 315.88 ms │ 300.76 / 306.93 ±3.98 / 313.13 ms │ no change │
│ QQuery 31 │ 281.11 / 294.98 ±19.16 / 332.95 ms │ 283.14 / 306.21 ±32.00 / 367.56 ms │ no change │
│ QQuery 32 │ 942.16 / 960.32 ±17.38 / 989.35 ms │ 916.90 / 981.35 ±82.20 / 1143.32 ms │ no change │
│ QQuery 33 │ 1431.52 / 1461.13 ±20.17 / 1490.11 ms │ 1452.17 / 1481.09 ±24.01 / 1516.70 ms │ no change │
│ QQuery 34 │ 1490.10 / 1545.19 ±36.18 / 1592.10 ms │ 1465.76 / 1483.76 ±15.12 / 1499.62 ms │ no change │
│ QQuery 35 │ 283.33 / 304.97 ±28.32 / 360.65 ms │ 273.15 / 352.93 ±129.72 / 611.54 ms │ 1.16x slower │
│ QQuery 36 │ 67.72 / 73.86 ±9.04 / 91.48 ms │ 67.16 / 71.63 ±3.84 / 78.11 ms │ no change │
│ QQuery 37 │ 35.67 / 40.69 ±3.11 / 45.09 ms │ 35.69 / 36.32 ±0.45 / 36.90 ms │ +1.12x faster │
│ QQuery 38 │ 43.43 / 44.21 ±0.59 / 44.99 ms │ 40.21 / 41.51 ±1.33 / 43.55 ms │ +1.06x faster │
│ QQuery 39 │ 139.41 / 153.58 ±8.85 / 164.52 ms │ 141.26 / 159.22 ±12.91 / 179.79 ms │ no change │
│ QQuery 40 │ 14.45 / 16.08 ±1.56 / 18.56 ms │ 14.38 / 14.53 ±0.15 / 14.75 ms │ +1.11x faster │
│ QQuery 41 │ 14.10 / 14.21 ±0.10 / 14.38 ms │ 13.65 / 13.97 ±0.18 / 14.20 ms │ no change │
│ QQuery 42 │ 13.30 / 13.58 ±0.17 / 13.76 ms │ 13.39 / 13.50 ±0.12 / 13.72 ms │ no change │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD) │ 19524.36ms │
│ Total Time (perf_join-order-enumeration) │ 19447.89ms │
│ Average Time (HEAD) │ 454.05ms │
│ Average Time (perf_join-order-enumeration) │ 452.28ms │
│ Queries Faster │ 3 │
│ Queries Slower │ 3 │
│ Queries with No Change │ 37 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴────────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**clickbench_partitioned — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 100.0s |
| Peak memory | 11.2 GiB |
| Avg memory | 4.5 GiB |
| CPU user | 1001.1s |
| CPU sys | 68.0s |
| Peak spill | 0 B |
**clickbench_partitioned — branch**
| Metric | Value |
|--------|-------|
| Wall time | 100.0s |
| Peak memory | 12.2 GiB |
| Avg memory | 4.6 GiB |
| CPU user | 992.9s |
| CPU sys | 68.6s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "asolimando (via GitHub)" <gi...@apache.org>.
asolimando commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5373110268
The benchmark results are very promising and I am very excited to see work in this area!
I haven't had time to look into the details of the code, but since this is still a draft I'd like to mention [DpHyp](https://www.researchgate.net/publication/47862092_Dynamic_Programming_Strikes_Back) for the join ordering problem.
It has been integrated in [CALCITE-6846](https://issues.apache.org/jira/browse/CALCITE-6846), an implementation ported from [Apache Doris](https://doris.apache.org/) with a few additional improvements.
According to https://www.alibabacloud.com/blog/602899 it's also the join ordering implementation of both DuckDB and MySQL. DuckDB is especially relevant as it's often cited here in the community as a source of inspiration.
DPHyp might be a good alternative over the in-house implementation, especially for dealing with many non inner-join cases, which are always tricky. Alternatively, it might at least provide ideas for some of the open questions we have.
I feel that the algorithm itself wouldn't need customization points, as it's mostly cost-agnostic, what we would like to provide is a customization around statistics/cost-model.
For the former https://github.com/apache/datafusion/pull/23651 will probably suffice (paired with the improved version of https://github.com/apache/datafusion/pull/21122 which is next on my list).
For the latter, I think it can be done via a physical planning rule "costing" alternatives coming from the hypergraph, to pick the cheapest, as physical rules are already a known customization point.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5932297302
I will probaby make this PR green again soon and do some minor cleanup / self-review to see where we are.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-6402387134
> This is a really exciting project, hope to share some progress soon, and see what to do next.
thank you -- this sounds like a great idea
If I may make a plea / suggestion: we should spend a LOT of effort on
1. The JoinGraph API as well as going back and forth from JoinGraph -> Plan
2. The API for costing a partial join order
3. An API that allows customization of the rules
There is approximately zero chance that anything we put in DataFusion core will work for all use cases -- and I can imagine wildly different usecases (like make sure it runs reasonably all the time, but really don't trust statistics --> we have 100% accurate statistics and we trust the cost model)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub) via github" <gi...@datafusion.apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-7079580325
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-7079548586)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c7079548586-5617-h5mr4 6.12.105+ #1 SMP Sat Sep 19 07:55:25 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (ce527a1033f46265773a6407acaa2dee3bbc7a5b) to 60e3d5c (merge-base) [diff](https://github.com/apache/datafusion/compare/60e3d5c40487f600f6a7aa0a9f0b042d63930b8f..ce527a1033f46265773a6407acaa2dee3bbc7a5b)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpcds
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub) via github" <gi...@datafusion.apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-7079590008
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-7079548586)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c7079548586-5618-hzmzt 6.12.105+ #1 SMP Sat Sep 19 07:55:25 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (ce527a1033f46265773a6407acaa2dee3bbc7a5b) to 60e3d5c (merge-base) [diff](https://github.com/apache/datafusion/compare/60e3d5c40487f600f6a7aa0a9f0b042d63930b8f..ce527a1033f46265773a6407acaa2dee3bbc7a5b)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5345504611
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5345293493)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (4c344867b2cf5edb1ec55ccf6fa138009a7609a7) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..4c344867b2cf5edb1ec55ccf6fa138009a7609a7)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpcds
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 5.59 ms │ 5.79 ms │ no change │
│ QQuery 2 │ 81.34 ms │ 80.83 ms │ no change │
│ QQuery 3 │ 29.41 ms │ 26.30 ms │ +1.12x faster │
│ QQuery 4 │ 492.39 ms │ 497.61 ms │ no change │
│ QQuery 5 │ 52.43 ms │ 52.36 ms │ no change │
│ QQuery 6 │ 36.55 ms │ 36.45 ms │ no change │
│ QQuery 7 │ 93.56 ms │ 77.61 ms │ +1.21x faster │
│ QQuery 8 │ 37.36 ms │ 36.63 ms │ no change │
│ QQuery 9 │ 51.32 ms │ 50.52 ms │ no change │
│ QQuery 10 │ 63.04 ms │ 57.61 ms │ +1.09x faster │
│ QQuery 11 │ 307.35 ms │ 245.02 ms │ +1.25x faster │
│ QQuery 12 │ 28.89 ms │ 28.88 ms │ no change │
│ QQuery 13 │ 118.01 ms │ 119.52 ms │ no change │
│ QQuery 14 │ 418.99 ms │ 357.43 ms │ +1.17x faster │
│ QQuery 15 │ 58.18 ms │ 20.82 ms │ +2.79x faster │
│ QQuery 16 │ 6.82 ms │ 6.88 ms │ no change │
│ QQuery 17 │ 79.44 ms │ 60.66 ms │ +1.31x faster │
│ QQuery 18 │ 122.33 ms │ 117.58 ms │ no change │
│ QQuery 19 │ 41.81 ms │ 42.44 ms │ no change │
│ QQuery 20 │ 35.73 ms │ 35.49 ms │ no change │
│ QQuery 21 │ 17.63 ms │ 13.17 ms │ +1.34x faster │
│ QQuery 22 │ 64.10 ms │ 62.98 ms │ no change │
│ QQuery 23 │ 347.31 ms │ 268.91 ms │ +1.29x faster │
│ QQuery 24 │ 224.46 ms │ 163.03 ms │ +1.38x faster │
│ QQuery 25 │ 109.67 ms │ 78.93 ms │ +1.39x faster │
│ QQuery 26 │ 58.79 ms │ 53.61 ms │ +1.10x faster │
│ QQuery 27 │ 6.54 ms │ 6.40 ms │ no change │
│ QQuery 28 │ 57.29 ms │ 57.56 ms │ no change │
│ QQuery 29 │ 96.87 ms │ 65.91 ms │ +1.47x faster │
│ QQuery 30 │ 33.34 ms │ 32.86 ms │ no change │
│ QQuery 31 │ 112.72 ms │ 110.52 ms │ no change │
│ QQuery 32 │ 21.08 ms │ 20.24 ms │ no change │
│ QQuery 33 │ 38.87 ms │ 38.53 ms │ no change │
│ QQuery 34 │ 10.15 ms │ 6.02 ms │ +1.69x faster │
│ QQuery 35 │ 73.44 ms │ 66.06 ms │ +1.11x faster │
│ QQuery 36 │ 5.99 ms │ 5.96 ms │ no change │
│ QQuery 37 │ 6.92 ms │ 6.95 ms │ no change │
│ QQuery 38 │ 63.23 ms │ 62.42 ms │ no change │
│ QQuery 39 │ 92.59 ms │ 79.57 ms │ +1.16x faster │
│ QQuery 40 │ 23.57 ms │ 21.58 ms │ +1.09x faster │
│ QQuery 41 │ 11.74 ms │ 11.29 ms │ no change │
│ QQuery 42 │ 24.28 ms │ 26.49 ms │ 1.09x slower │
│ QQuery 43 │ 5.25 ms │ 5.10 ms │ no change │
│ QQuery 44 │ 9.67 ms │ 9.38 ms │ no change │
│ QQuery 45 │ 39.35 ms │ 23.36 ms │ +1.68x faster │
│ QQuery 46 │ 12.08 ms │ 7.06 ms │ +1.71x faster │
│ QQuery 47 │ 235.01 ms │ 227.30 ms │ no change │
│ QQuery 48 │ 95.81 ms │ 98.01 ms │ no change │
│ QQuery 49 │ 77.45 ms │ 72.89 ms │ +1.06x faster │
│ QQuery 50 │ 59.95 ms │ 52.18 ms │ +1.15x faster │
│ QQuery 51 │ 91.82 ms │ 92.69 ms │ no change │
│ QQuery 52 │ 24.36 ms │ 26.78 ms │ 1.10x slower │
│ QQuery 53 │ 29.41 ms │ 29.02 ms │ no change │
│ QQuery 54 │ 55.37 ms │ 24.91 ms │ +2.22x faster │
│ QQuery 55 │ 24.02 ms │ 25.30 ms │ 1.05x slower │
│ QQuery 56 │ 39.62 ms │ 43.14 ms │ 1.09x slower │
│ QQuery 57 │ 178.52 ms │ 176.81 ms │ no change │
│ QQuery 58 │ 115.72 ms │ 52.20 ms │ +2.22x faster │
│ QQuery 59 │ 117.60 ms │ 116.77 ms │ no change │
│ QQuery 60 │ 39.62 ms │ 38.47 ms │ no change │
│ QQuery 61 │ 12.46 ms │ 11.64 ms │ +1.07x faster │
│ QQuery 62 │ 46.82 ms │ 30.70 ms │ +1.52x faster │
│ QQuery 63 │ 29.54 ms │ 29.10 ms │ no change │
│ QQuery 64 │ 410.49 ms │ 231.82 ms │ +1.77x faster │
│ QQuery 65 │ 122.98 ms │ 122.17 ms │ no change │
│ QQuery 66 │ 82.17 ms │ 65.47 ms │ +1.26x faster │
│ QQuery 67 │ 249.61 ms │ 247.52 ms │ no change │
│ QQuery 68 │ 12.18 ms │ 7.70 ms │ +1.58x faster │
│ QQuery 69 │ 58.21 ms │ 63.13 ms │ 1.08x slower │
│ QQuery 70 │ 108.53 ms │ 78.31 ms │ +1.39x faster │
│ QQuery 71 │ 35.79 ms │ 35.31 ms │ no change │
│ QQuery 72 │ 1995.41 ms │ 77.04 ms │ +25.90x faster │
│ QQuery 73 │ 9.75 ms │ 6.01 ms │ +1.62x faster │
│ QQuery 74 │ 175.23 ms │ 174.30 ms │ no change │
│ QQuery 75 │ 149.83 ms │ 148.17 ms │ no change │
│ QQuery 76 │ 36.11 ms │ 35.35 ms │ no change │
│ QQuery 77 │ 61.10 ms │ 61.51 ms │ no change │
│ QQuery 78 │ 196.83 ms │ 215.51 ms │ 1.09x slower │
│ QQuery 79 │ 66.48 ms │ 69.28 ms │ no change │
│ QQuery 80 │ 101.21 ms │ 97.47 ms │ no change │
│ QQuery 81 │ 26.18 ms │ 25.43 ms │ no change │
│ QQuery 82 │ 16.58 ms │ 16.46 ms │ no change │
│ QQuery 83 │ 40.07 ms │ 23.14 ms │ +1.73x faster │
│ QQuery 84 │ 30.19 ms │ 38.27 ms │ 1.27x slower │
│ QQuery 85 │ 107.29 ms │ 98.41 ms │ +1.09x faster │
│ QQuery 86 │ 25.89 ms │ 25.55 ms │ no change │
│ QQuery 87 │ 62.76 ms │ 62.27 ms │ no change │
│ QQuery 88 │ 64.06 ms │ 59.72 ms │ +1.07x faster │
│ QQuery 89 │ 35.73 ms │ 35.89 ms │ no change │
│ QQuery 90 │ 17.50 ms │ 14.88 ms │ +1.18x faster │
│ QQuery 91 │ 46.05 ms │ 41.90 ms │ +1.10x faster │
│ QQuery 92 │ 29.88 ms │ 29.55 ms │ no change │
│ QQuery 93 │ 50.16 ms │ 49.57 ms │ no change │
│ QQuery 94 │ 38.12 ms │ 37.77 ms │ no change │
│ QQuery 95 │ 80.73 ms │ 80.83 ms │ no change │
│ QQuery 96 │ 24.40 ms │ 20.72 ms │ +1.18x faster │
│ QQuery 97 │ 46.92 ms │ 51.89 ms │ 1.11x slower │
│ QQuery 98 │ 42.61 ms │ 42.90 ms │ no change │
│ QQuery 99 │ 70.37 ms │ 45.50 ms │ +1.55x faster │
└───────────┴────────────┴─────────────────────────────┴────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD) │ 9727.95ms │
│ Total Time (perf_join-order-enumeration) │ 6944.96ms │
│ Average Time (HEAD) │ 98.26ms │
│ Average Time (perf_join-order-enumeration) │ 70.15ms │
│ Queries Faster │ 38 │
│ Queries Slower │ 8 │
│ Queries with No Change │ 53 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴───────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 5.59 / 6.11 ±0.90 / 7.90 ms │ 5.79 / 6.30 ±0.89 / 8.07 ms │ no change │
│ QQuery 2 │ 81.34 / 81.82 ±0.40 / 82.49 ms │ 80.83 / 81.38 ±0.31 / 81.70 ms │ no change │
│ QQuery 3 │ 29.41 / 29.62 ±0.20 / 29.93 ms │ 26.30 / 26.48 ±0.14 / 26.69 ms │ +1.12x faster │
│ QQuery 4 │ 492.39 / 496.70 ±3.24 / 502.07 ms │ 497.61 / 500.73 ±2.34 / 504.47 ms │ no change │
│ QQuery 5 │ 52.43 / 53.13 ±0.58 / 53.99 ms │ 52.36 / 52.58 ±0.21 / 52.89 ms │ no change │
│ QQuery 6 │ 36.55 / 36.94 ±0.22 / 37.17 ms │ 36.45 / 37.22 ±0.55 / 37.88 ms │ no change │
│ QQuery 7 │ 93.56 / 94.56 ±0.72 / 95.70 ms │ 77.61 / 77.85 ±0.20 / 78.22 ms │ +1.21x faster │
│ QQuery 8 │ 37.36 / 38.19 ±1.47 / 41.12 ms │ 36.63 / 37.88 ±1.09 / 39.81 ms │ no change │
│ QQuery 9 │ 51.32 / 53.62 ±2.33 / 57.91 ms │ 50.52 / 53.78 ±2.95 / 57.34 ms │ no change │
│ QQuery 10 │ 63.04 / 63.50 ±0.28 / 63.87 ms │ 57.61 / 58.09 ±0.36 / 58.64 ms │ +1.09x faster │
│ QQuery 11 │ 307.35 / 311.02 ±2.34 / 313.38 ms │ 245.02 / 245.78 ±0.70 / 246.94 ms │ +1.27x faster │
│ QQuery 12 │ 28.89 / 29.21 ±0.36 / 29.86 ms │ 28.88 / 30.30 ±2.17 / 34.63 ms │ no change │
│ QQuery 13 │ 118.01 / 119.01 ±0.95 / 120.77 ms │ 119.52 / 120.39 ±0.70 / 121.57 ms │ no change │
│ QQuery 14 │ 418.99 / 421.64 ±1.98 / 424.17 ms │ 357.43 / 359.38 ±2.05 / 363.07 ms │ +1.17x faster │
│ QQuery 15 │ 58.18 / 58.87 ±0.55 / 59.56 ms │ 20.82 / 21.05 ±0.18 / 21.25 ms │ +2.80x faster │
│ QQuery 16 │ 6.82 / 6.95 ±0.19 / 7.32 ms │ 6.88 / 7.00 ±0.08 / 7.12 ms │ no change │
│ QQuery 17 │ 79.44 / 81.22 ±2.78 / 86.74 ms │ 60.66 / 61.00 ±0.28 / 61.35 ms │ +1.33x faster │
│ QQuery 18 │ 122.33 / 124.27 ±1.10 / 125.73 ms │ 117.58 / 119.58 ±1.19 / 120.85 ms │ no change │
│ QQuery 19 │ 41.81 / 42.09 ±0.21 / 42.35 ms │ 42.44 / 42.83 ±0.25 / 43.07 ms │ no change │
│ QQuery 20 │ 35.73 / 36.87 ±1.18 / 39.06 ms │ 35.49 / 36.25 ±0.66 / 37.11 ms │ no change │
│ QQuery 21 │ 17.63 / 17.88 ±0.27 / 18.38 ms │ 13.17 / 13.41 ±0.21 / 13.75 ms │ +1.33x faster │
│ QQuery 22 │ 64.10 / 64.46 ±0.25 / 64.78 ms │ 62.98 / 65.10 ±2.12 / 69.11 ms │ no change │
│ QQuery 23 │ 347.31 / 352.28 ±3.28 / 356.41 ms │ 268.91 / 270.76 ±1.80 / 273.68 ms │ +1.30x faster │
│ QQuery 24 │ 224.46 / 228.69 ±3.93 / 233.69 ms │ 163.03 / 165.27 ±2.63 / 169.80 ms │ +1.38x faster │
│ QQuery 25 │ 109.67 / 110.92 ±1.30 / 113.40 ms │ 78.93 / 79.76 ±0.96 / 81.26 ms │ +1.39x faster │
│ QQuery 26 │ 58.79 / 60.84 ±1.94 / 64.26 ms │ 53.61 / 54.49 ±0.86 / 55.95 ms │ +1.12x faster │
│ QQuery 27 │ 6.54 / 6.66 ±0.11 / 6.81 ms │ 6.40 / 6.53 ±0.19 / 6.89 ms │ no change │
│ QQuery 28 │ 57.29 / 60.35 ±2.53 / 63.93 ms │ 57.56 / 59.88 ±2.27 / 62.66 ms │ no change │
│ QQuery 29 │ 96.87 / 100.02 ±4.33 / 108.45 ms │ 65.91 / 67.22 ±1.98 / 71.17 ms │ +1.49x faster │
│ QQuery 30 │ 33.34 / 34.65 ±1.17 / 36.75 ms │ 32.86 / 33.43 ±0.76 / 34.92 ms │ no change │
│ QQuery 31 │ 112.72 / 113.86 ±0.77 / 114.74 ms │ 110.52 / 111.66 ±0.67 / 112.50 ms │ no change │
│ QQuery 32 │ 21.08 / 21.16 ±0.07 / 21.25 ms │ 20.24 / 20.53 ±0.21 / 20.87 ms │ no change │
│ QQuery 33 │ 38.87 / 40.70 ±2.39 / 45.35 ms │ 38.53 / 39.89 ±1.87 / 43.60 ms │ no change │
│ QQuery 34 │ 10.15 / 10.76 ±0.77 / 12.28 ms │ 6.02 / 6.18 ±0.22 / 6.61 ms │ +1.74x faster │
│ QQuery 35 │ 73.44 / 74.66 ±1.19 / 76.34 ms │ 66.06 / 66.97 ±1.02 / 68.90 ms │ +1.11x faster │
│ QQuery 36 │ 5.99 / 6.11 ±0.16 / 6.42 ms │ 5.96 / 6.13 ±0.19 / 6.49 ms │ no change │
│ QQuery 37 │ 6.92 / 7.02 ±0.07 / 7.14 ms │ 6.95 / 7.04 ±0.09 / 7.21 ms │ no change │
│ QQuery 38 │ 63.23 / 63.59 ±0.31 / 64.11 ms │ 62.42 / 63.04 ±0.50 / 63.91 ms │ no change │
│ QQuery 39 │ 92.59 / 95.33 ±2.48 / 99.33 ms │ 79.57 / 80.14 ±0.73 / 81.47 ms │ +1.19x faster │
│ QQuery 40 │ 23.57 / 24.05 ±0.27 / 24.31 ms │ 21.58 / 22.74 ±0.81 / 24.12 ms │ +1.06x faster │
│ QQuery 41 │ 11.74 / 11.84 ±0.07 / 11.95 ms │ 11.29 / 11.45 ±0.22 / 11.88 ms │ no change │
│ QQuery 42 │ 24.28 / 24.97 ±0.50 / 25.63 ms │ 26.49 / 26.70 ±0.12 / 26.83 ms │ 1.07x slower │
│ QQuery 43 │ 5.25 / 5.36 ±0.12 / 5.59 ms │ 5.10 / 5.23 ±0.20 / 5.62 ms │ no change │
│ QQuery 44 │ 9.67 / 9.75 ±0.07 / 9.87 ms │ 9.38 / 9.51 ±0.09 / 9.60 ms │ no change │
│ QQuery 45 │ 39.35 / 40.03 ±0.40 / 40.58 ms │ 23.36 / 23.57 ±0.16 / 23.84 ms │ +1.70x faster │
│ QQuery 46 │ 12.08 / 12.95 ±0.94 / 14.75 ms │ 7.06 / 7.21 ±0.21 / 7.62 ms │ +1.80x faster │
│ QQuery 47 │ 235.01 / 242.60 ±5.56 / 251.21 ms │ 227.30 / 232.11 ±4.33 / 239.28 ms │ no change │
│ QQuery 48 │ 95.81 / 97.52 ±1.18 / 99.20 ms │ 98.01 / 99.89 ±2.67 / 105.11 ms │ no change │
│ QQuery 49 │ 77.45 / 78.20 ±0.51 / 79.02 ms │ 72.89 / 73.67 ±0.44 / 74.28 ms │ +1.06x faster │
│ QQuery 50 │ 59.95 / 60.87 ±1.50 / 63.85 ms │ 52.18 / 52.48 ±0.24 / 52.72 ms │ +1.16x faster │
│ QQuery 51 │ 91.82 / 93.30 ±1.13 / 95.02 ms │ 92.69 / 93.84 ±1.42 / 96.62 ms │ no change │
│ QQuery 52 │ 24.36 / 26.07 ±2.96 / 31.98 ms │ 26.78 / 27.16 ±0.23 / 27.47 ms │ no change │
│ QQuery 53 │ 29.41 / 30.50 ±0.95 / 32.09 ms │ 29.02 / 29.32 ±0.21 / 29.66 ms │ no change │
│ QQuery 54 │ 55.37 / 55.83 ±0.56 / 56.85 ms │ 24.91 / 25.19 ±0.14 / 25.30 ms │ +2.22x faster │
│ QQuery 55 │ 24.02 / 24.44 ±0.33 / 24.91 ms │ 25.30 / 25.42 ±0.10 / 25.53 ms │ no change │
│ QQuery 56 │ 39.62 / 40.03 ±0.25 / 40.33 ms │ 43.14 / 43.61 ±0.45 / 44.45 ms │ 1.09x slower │
│ QQuery 57 │ 178.52 / 180.72 ±2.04 / 183.14 ms │ 176.81 / 178.10 ±1.76 / 181.52 ms │ no change │
│ QQuery 58 │ 115.72 / 116.59 ±0.75 / 117.69 ms │ 52.20 / 52.97 ±1.02 / 54.99 ms │ +2.20x faster │
│ QQuery 59 │ 117.60 / 118.47 ±0.77 / 119.84 ms │ 116.77 / 117.55 ±0.52 / 118.40 ms │ no change │
│ QQuery 60 │ 39.62 / 40.99 ±1.51 / 43.69 ms │ 38.47 / 39.76 ±1.45 / 42.42 ms │ no change │
│ QQuery 61 │ 12.46 / 12.60 ±0.20 / 12.99 ms │ 11.64 / 11.86 ±0.24 / 12.29 ms │ +1.06x faster │
│ QQuery 62 │ 46.82 / 47.59 ±0.95 / 49.45 ms │ 30.70 / 31.44 ±1.17 / 33.76 ms │ +1.51x faster │
│ QQuery 63 │ 29.54 / 30.18 ±0.50 / 31.07 ms │ 29.10 / 29.41 ±0.31 / 29.97 ms │ no change │
│ QQuery 64 │ 410.49 / 415.54 ±2.99 / 419.24 ms │ 231.82 / 236.18 ±4.19 / 243.51 ms │ +1.76x faster │
│ QQuery 65 │ 122.98 / 125.25 ±2.33 / 129.56 ms │ 122.17 / 124.65 ±2.27 / 127.80 ms │ no change │
│ QQuery 66 │ 82.17 / 82.98 ±0.56 / 83.65 ms │ 65.47 / 66.10 ±0.48 / 66.71 ms │ +1.26x faster │
│ QQuery 67 │ 249.61 / 253.54 ±3.57 / 259.05 ms │ 247.52 / 250.71 ±3.02 / 255.77 ms │ no change │
│ QQuery 68 │ 12.18 / 12.37 ±0.14 / 12.55 ms │ 7.70 / 7.90 ±0.21 / 8.28 ms │ +1.57x faster │
│ QQuery 69 │ 58.21 / 60.87 ±2.57 / 64.70 ms │ 63.13 / 63.97 ±1.01 / 65.95 ms │ 1.05x slower │
│ QQuery 70 │ 108.53 / 111.44 ±3.69 / 117.93 ms │ 78.31 / 79.00 ±0.87 / 80.72 ms │ +1.41x faster │
│ QQuery 71 │ 35.79 / 36.12 ±0.27 / 36.58 ms │ 35.31 / 36.41 ±1.51 / 39.36 ms │ no change │
│ QQuery 72 │ 1995.41 / 2089.34 ±69.88 / 2154.63 ms │ 77.04 / 77.30 ±0.23 / 77.65 ms │ +27.03x faster │
│ QQuery 73 │ 9.75 / 10.10 ±0.34 / 10.62 ms │ 6.01 / 6.18 ±0.14 / 6.44 ms │ +1.64x faster │
│ QQuery 74 │ 175.23 / 176.98 ±2.10 / 180.86 ms │ 174.30 / 178.57 ±3.29 / 182.67 ms │ no change │
│ QQuery 75 │ 149.83 / 152.65 ±3.52 / 159.46 ms │ 148.17 / 149.60 ±1.75 / 153.05 ms │ no change │
│ QQuery 76 │ 36.11 / 36.76 ±0.76 / 38.20 ms │ 35.35 / 35.55 ±0.13 / 35.73 ms │ no change │
│ QQuery 77 │ 61.10 / 62.32 ±0.81 / 63.62 ms │ 61.51 / 62.38 ±0.74 / 63.35 ms │ no change │
│ QQuery 78 │ 196.83 / 201.64 ±3.34 / 206.24 ms │ 215.51 / 217.86 ±2.39 / 222.29 ms │ 1.08x slower │
│ QQuery 79 │ 66.48 / 66.92 ±0.24 / 67.16 ms │ 69.28 / 69.43 ±0.23 / 69.89 ms │ no change │
│ QQuery 80 │ 101.21 / 103.05 ±1.77 / 106.30 ms │ 97.47 / 99.02 ±0.84 / 99.96 ms │ no change │
│ QQuery 81 │ 26.18 / 26.38 ±0.14 / 26.61 ms │ 25.43 / 25.68 ±0.27 / 26.12 ms │ no change │
│ QQuery 82 │ 16.58 / 16.69 ±0.09 / 16.85 ms │ 16.46 / 16.88 ±0.70 / 18.27 ms │ no change │
│ QQuery 83 │ 40.07 / 40.47 ±0.28 / 40.85 ms │ 23.14 / 23.38 ±0.15 / 23.58 ms │ +1.73x faster │
│ QQuery 84 │ 30.19 / 30.41 ±0.15 / 30.65 ms │ 38.27 / 38.38 ±0.11 / 38.57 ms │ 1.26x slower │
│ QQuery 85 │ 107.29 / 109.50 ±2.77 / 114.30 ms │ 98.41 / 100.91 ±2.90 / 106.50 ms │ +1.09x faster │
│ QQuery 86 │ 25.89 / 26.34 ±0.74 / 27.81 ms │ 25.55 / 25.98 ±0.35 / 26.57 ms │ no change │
│ QQuery 87 │ 62.76 / 63.34 ±0.55 / 64.32 ms │ 62.27 / 62.57 ±0.17 / 62.77 ms │ no change │
│ QQuery 88 │ 64.06 / 65.63 ±1.50 / 68.09 ms │ 59.72 / 60.17 ±0.30 / 60.48 ms │ +1.09x faster │
│ QQuery 89 │ 35.73 / 36.21 ±0.36 / 36.61 ms │ 35.89 / 36.48 ±0.58 / 37.60 ms │ no change │
│ QQuery 90 │ 17.50 / 17.65 ±0.12 / 17.80 ms │ 14.88 / 15.59 ±1.11 / 17.80 ms │ +1.13x faster │
│ QQuery 91 │ 46.05 / 46.27 ±0.15 / 46.51 ms │ 41.90 / 42.23 ±0.20 / 42.50 ms │ +1.10x faster │
│ QQuery 92 │ 29.88 / 30.14 ±0.25 / 30.60 ms │ 29.55 / 30.01 ±0.34 / 30.47 ms │ no change │
│ QQuery 93 │ 50.16 / 50.81 ±0.76 / 52.25 ms │ 49.57 / 49.98 ±0.51 / 50.99 ms │ no change │
│ QQuery 94 │ 38.12 / 38.99 ±0.61 / 39.80 ms │ 37.77 / 39.31 ±2.08 / 43.42 ms │ no change │
│ QQuery 95 │ 80.73 / 81.45 ±0.50 / 82.20 ms │ 80.83 / 81.84 ±0.76 / 82.83 ms │ no change │
│ QQuery 96 │ 24.40 / 24.60 ±0.17 / 24.86 ms │ 20.72 / 20.89 ±0.16 / 21.14 ms │ +1.18x faster │
│ QQuery 97 │ 46.92 / 48.99 ±2.61 / 54.00 ms │ 51.89 / 53.02 ±1.42 / 55.82 ms │ 1.08x slower │
│ QQuery 98 │ 42.61 / 43.19 ±0.47 / 43.91 ms │ 42.90 / 43.55 ±0.82 / 45.14 ms │ no change │
│ QQuery 99 │ 70.37 / 70.85 ±0.31 / 71.21 ms │ 45.50 / 46.25 ±0.84 / 47.87 ms │ +1.53x faster │
└───────────┴───────────────────────────────────────┴───────────────────────────────────┴────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD) │ 9946.50ms │
│ Total Time (perf_join-order-enumeration) │ 7037.41ms │
│ Average Time (HEAD) │ 100.47ms │
│ Average Time (perf_join-order-enumeration) │ 71.08ms │
│ Queries Faster │ 38 │
│ Queries Slower │ 6 │
│ Queries with No Change │ 55 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴───────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpcds — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 55.0s |
| Peak memory | 2.3 GiB |
| Avg memory | 1.5 GiB |
| CPU user | 217.2s |
| CPU sys | 6.1s |
| Peak spill | 0 B |
**tpcds — branch**
| Metric | Value |
|--------|-------|
| Wall time | 40.0s |
| Peak memory | 2.2 GiB |
| Avg memory | 1.3 GiB |
| CPU user | 99.8s |
| CPU sys | 4.8s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5347692902
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5347556113)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (cf466cab6fbd6e728914b060d932a8bebc6ec8dd) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..cf466cab6fbd6e728914b060d932a8bebc6ec8dd)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch
env:
PREFER_HASH_JOIN: "false"
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 38.38 ms │ 38.77 ms │ no change │
│ QQuery 2 │ 19.12 ms │ 16.41 ms │ +1.16x faster │
│ QQuery 3 │ 32.54 ms │ 28.09 ms │ +1.16x faster │
│ QQuery 4 │ 17.57 ms │ 17.22 ms │ no change │
│ QQuery 5 │ 37.07 ms │ 31.32 ms │ +1.18x faster │
│ QQuery 6 │ 15.92 ms │ 15.94 ms │ no change │
│ QQuery 7 │ 44.44 ms │ 33.24 ms │ +1.34x faster │
│ QQuery 8 │ 42.01 ms │ 46.16 ms │ 1.10x slower │
│ QQuery 9 │ 49.29 ms │ 48.02 ms │ no change │
│ QQuery 10 │ 41.97 ms │ 41.79 ms │ no change │
│ QQuery 11 │ 13.16 ms │ 13.25 ms │ no change │
│ QQuery 12 │ 23.89 ms │ 23.09 ms │ no change │
│ QQuery 13 │ 32.27 ms │ 31.72 ms │ no change │
│ QQuery 14 │ 23.25 ms │ 23.80 ms │ no change │
│ QQuery 15 │ 30.78 ms │ 30.48 ms │ no change │
│ QQuery 16 │ 14.58 ms │ 13.61 ms │ +1.07x faster │
│ QQuery 17 │ 78.66 ms │ 69.50 ms │ +1.13x faster │
│ QQuery 18 │ 63.95 ms │ 58.42 ms │ +1.09x faster │
│ QQuery 19 │ 34.42 ms │ 34.08 ms │ no change │
│ QQuery 20 │ 32.00 ms │ 30.81 ms │ no change │
│ QQuery 21 │ 54.36 ms │ 52.83 ms │ no change │
│ QQuery 22 │ 13.55 ms │ 13.45 ms │ no change │
└───────────┴──────────┴─────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD) │ 753.21ms │
│ Total Time (perf_join-order-enumeration) │ 712.00ms │
│ Average Time (HEAD) │ 34.24ms │
│ Average Time (perf_join-order-enumeration) │ 32.36ms │
│ Queries Faster │ 7 │
│ Queries Slower │ 1 │
│ Queries with No Change │ 14 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴──────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 38.38 / 39.34 ±1.05 / 41.35 ms │ 38.77 / 40.99 ±1.40 / 42.15 ms │ no change │
│ QQuery 2 │ 19.12 / 19.41 ±0.28 / 19.88 ms │ 16.41 / 16.80 ±0.26 / 17.23 ms │ +1.16x faster │
│ QQuery 3 │ 32.54 / 33.11 ±0.35 / 33.48 ms │ 28.09 / 28.36 ±0.23 / 28.74 ms │ +1.17x faster │
│ QQuery 4 │ 17.57 / 18.43 ±0.61 / 18.97 ms │ 17.22 / 17.36 ±0.09 / 17.49 ms │ +1.06x faster │
│ QQuery 5 │ 37.07 / 39.39 ±1.21 / 40.45 ms │ 31.32 / 31.70 ±0.22 / 31.98 ms │ +1.24x faster │
│ QQuery 6 │ 15.92 / 16.07 ±0.11 / 16.18 ms │ 15.94 / 16.07 ±0.10 / 16.24 ms │ no change │
│ QQuery 7 │ 44.44 / 45.48 ±0.73 / 46.45 ms │ 33.24 / 34.22 ±1.42 / 37.04 ms │ +1.33x faster │
│ QQuery 8 │ 42.01 / 43.07 ±1.56 / 46.16 ms │ 46.16 / 47.79 ±1.61 / 49.92 ms │ 1.11x slower │
│ QQuery 9 │ 49.29 / 50.65 ±1.29 / 52.52 ms │ 48.02 / 49.06 ±0.95 / 50.62 ms │ no change │
│ QQuery 10 │ 41.97 / 42.33 ±0.34 / 42.85 ms │ 41.79 / 43.56 ±1.74 / 46.54 ms │ no change │
│ QQuery 11 │ 13.16 / 13.65 ±0.44 / 14.42 ms │ 13.25 / 13.47 ±0.22 / 13.87 ms │ no change │
│ QQuery 12 │ 23.89 / 24.23 ±0.17 / 24.37 ms │ 23.09 / 23.58 ±0.89 / 25.37 ms │ no change │
│ QQuery 13 │ 32.27 / 35.46 ±3.14 / 41.15 ms │ 31.72 / 32.53 ±0.83 / 34.04 ms │ +1.09x faster │
│ QQuery 14 │ 23.25 / 23.39 ±0.10 / 23.56 ms │ 23.80 / 24.41 ±0.60 / 25.50 ms │ no change │
│ QQuery 15 │ 30.78 / 32.03 ±0.81 / 32.73 ms │ 30.48 / 31.04 ±0.39 / 31.43 ms │ no change │
│ QQuery 16 │ 14.58 / 14.95 ±0.22 / 15.23 ms │ 13.61 / 13.83 ±0.18 / 14.08 ms │ +1.08x faster │
│ QQuery 17 │ 78.66 / 79.65 ±0.66 / 80.49 ms │ 69.50 / 69.95 ±0.39 / 70.45 ms │ +1.14x faster │
│ QQuery 18 │ 63.95 / 66.38 ±2.38 / 70.62 ms │ 58.42 / 59.11 ±0.46 / 59.75 ms │ +1.12x faster │
│ QQuery 19 │ 34.42 / 35.20 ±1.18 / 37.55 ms │ 34.08 / 34.53 ±0.82 / 36.16 ms │ no change │
│ QQuery 20 │ 32.00 / 33.52 ±1.06 / 34.85 ms │ 30.81 / 31.29 ±0.32 / 31.79 ms │ +1.07x faster │
│ QQuery 21 │ 54.36 / 56.58 ±2.08 / 60.46 ms │ 52.83 / 54.58 ±1.05 / 55.70 ms │ no change │
│ QQuery 22 │ 13.55 / 13.88 ±0.43 / 14.67 ms │ 13.45 / 13.73 ±0.20 / 14.04 ms │ no change │
└───────────┴────────────────────────────────┴────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD) │ 776.19ms │
│ Total Time (perf_join-order-enumeration) │ 727.95ms │
│ Average Time (HEAD) │ 35.28ms │
│ Average Time (perf_join-order-enumeration) │ 33.09ms │
│ Queries Faster │ 10 │
│ Queries Slower │ 1 │
│ Queries with No Change │ 11 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴──────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpch — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 1.3 GiB |
| Avg memory | 529.7 MiB |
| CPU user | 22.4s |
| CPU sys | 1.6s |
| Peak spill | 0 B |
**tpch — branch**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 1.2 GiB |
| Avg memory | 502.2 MiB |
| CPU user | 20.2s |
| CPU sys | 1.6s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5345935558
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5345790381)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (4c344867b2cf5edb1ec55ccf6fa138009a7609a7) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..4c344867b2cf5edb1ec55ccf6fa138009a7609a7)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch10
env:
PREFER_HASH_JOIN: "false"
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf10.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 310.02 ms │ 309.25 ms │ no change │
│ QQuery 2 │ 102.39 ms │ 71.61 ms │ +1.43x faster │
│ QQuery 3 │ 225.57 ms │ 213.89 ms │ +1.05x faster │
│ QQuery 4 │ 110.80 ms │ 110.84 ms │ no change │
│ QQuery 5 │ 340.24 ms │ 273.08 ms │ +1.25x faster │
│ QQuery 6 │ 121.66 ms │ 123.01 ms │ no change │
│ QQuery 7 │ 475.93 ms │ 247.85 ms │ +1.92x faster │
│ QQuery 8 │ 373.10 ms │ 349.20 ms │ +1.07x faster │
│ QQuery 9 │ 547.24 ms │ 508.75 ms │ +1.08x faster │
│ QQuery 10 │ 291.46 ms │ 289.69 ms │ no change │
│ QQuery 11 │ 88.47 ms │ 60.43 ms │ +1.46x faster │
│ QQuery 12 │ 175.11 ms │ 165.93 ms │ +1.06x faster │
│ QQuery 13 │ 289.83 ms │ 289.43 ms │ no change │
│ QQuery 14 │ 167.38 ms │ 166.67 ms │ no change │
│ QQuery 15 │ 295.50 ms │ 298.06 ms │ no change │
│ QQuery 16 │ 62.36 ms │ 57.34 ms │ +1.09x faster │
│ QQuery 17 │ 612.20 ms │ 557.05 ms │ +1.10x faster │
│ QQuery 18 │ 679.21 ms │ 673.31 ms │ no change │
│ QQuery 19 │ 240.43 ms │ 252.93 ms │ 1.05x slower │
│ QQuery 20 │ 282.39 ms │ 253.96 ms │ +1.11x faster │
│ QQuery 21 │ 648.76 ms │ 677.99 ms │ no change │
│ QQuery 22 │ 59.71 ms │ 59.65 ms │ no change │
└───────────┴───────────┴─────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD) │ 6499.73ms │
│ Total Time (perf_join-order-enumeration) │ 6009.92ms │
│ Average Time (HEAD) │ 295.44ms │
│ Average Time (perf_join-order-enumeration) │ 273.18ms │
│ Queries Faster │ 11 │
│ Queries Slower │ 1 │
│ Queries with No Change │ 10 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴───────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf10.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 310.02 / 310.96 ±0.62 / 311.95 ms │ 309.25 / 310.08 ±0.53 / 310.65 ms │ no change │
│ QQuery 2 │ 102.39 / 105.85 ±1.88 / 107.63 ms │ 71.61 / 72.68 ±1.05 / 74.18 ms │ +1.46x faster │
│ QQuery 3 │ 225.57 / 230.60 ±3.37 / 236.12 ms │ 213.89 / 219.42 ±3.10 / 222.48 ms │ no change │
│ QQuery 4 │ 110.80 / 112.85 ±1.24 / 114.68 ms │ 110.84 / 113.17 ±1.65 / 115.65 ms │ no change │
│ QQuery 5 │ 340.24 / 349.42 ±5.57 / 356.39 ms │ 273.08 / 282.24 ±7.03 / 293.14 ms │ +1.24x faster │
│ QQuery 6 │ 121.66 / 124.22 ±3.12 / 130.28 ms │ 123.01 / 125.08 ±2.79 / 130.61 ms │ no change │
│ QQuery 7 │ 475.93 / 487.63 ±6.28 / 494.74 ms │ 247.85 / 250.99 ±3.09 / 256.64 ms │ +1.94x faster │
│ QQuery 8 │ 373.10 / 382.68 ±8.30 / 394.06 ms │ 349.20 / 352.15 ±2.17 / 355.35 ms │ +1.09x faster │
│ QQuery 9 │ 547.24 / 557.04 ±6.33 / 564.76 ms │ 508.75 / 517.80 ±10.12 / 537.22 ms │ +1.08x faster │
│ QQuery 10 │ 291.46 / 303.45 ±6.27 / 309.04 ms │ 289.69 / 299.62 ±7.01 / 308.22 ms │ no change │
│ QQuery 11 │ 88.47 / 93.58 ±9.17 / 111.91 ms │ 60.43 / 62.46 ±3.08 / 68.56 ms │ +1.50x faster │
│ QQuery 12 │ 175.11 / 180.52 ±4.57 / 188.30 ms │ 165.93 / 170.37 ±5.73 / 181.22 ms │ +1.06x faster │
│ QQuery 13 │ 289.83 / 298.99 ±6.62 / 307.80 ms │ 289.43 / 300.36 ±8.75 / 311.28 ms │ no change │
│ QQuery 14 │ 167.38 / 171.92 ±4.85 / 180.58 ms │ 166.67 / 170.52 ±3.31 / 176.62 ms │ no change │
│ QQuery 15 │ 295.50 / 297.77 ±1.93 / 300.23 ms │ 298.06 / 300.19 ±2.70 / 305.39 ms │ no change │
│ QQuery 16 │ 62.36 / 68.01 ±5.17 / 77.76 ms │ 57.34 / 58.05 ±0.69 / 59.31 ms │ +1.17x faster │
│ QQuery 17 │ 612.20 / 622.91 ±10.87 / 637.63 ms │ 557.05 / 563.10 ±6.19 / 574.50 ms │ +1.11x faster │
│ QQuery 18 │ 679.21 / 698.30 ±11.93 / 712.61 ms │ 673.31 / 694.02 ±11.98 / 706.36 ms │ no change │
│ QQuery 19 │ 240.43 / 250.43 ±11.04 / 267.21 ms │ 252.93 / 266.73 ±15.22 / 289.51 ms │ 1.07x slower │
│ QQuery 20 │ 282.39 / 298.81 ±12.70 / 317.95 ms │ 253.96 / 266.31 ±9.85 / 281.91 ms │ +1.12x faster │
│ QQuery 21 │ 648.76 / 654.29 ±5.40 / 662.52 ms │ 677.99 / 712.46 ±23.32 / 743.57 ms │ 1.09x slower │
│ QQuery 22 │ 59.71 / 62.79 ±3.18 / 68.74 ms │ 59.65 / 61.45 ±1.15 / 63.25 ms │ no change │
└───────────┴────────────────────────────────────┴────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD) │ 6663.05ms │
│ Total Time (perf_join-order-enumeration) │ 6169.25ms │
│ Average Time (HEAD) │ 302.87ms │
│ Average Time (perf_join-order-enumeration) │ 280.42ms │
│ Queries Faster │ 10 │
│ Queries Slower │ 2 │
│ Queries with No Change │ 10 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴───────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpch10 — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 35.0s |
| Peak memory | 5.0 GiB |
| Avg memory | 1.6 GiB |
| CPU user | 338.2s |
| CPU sys | 18.2s |
| Peak spill | 0 B |
**tpch10 — branch**
| Metric | Value |
|--------|-------|
| Wall time | 35.0s |
| Peak memory | 5.2 GiB |
| Avg memory | 1.6 GiB |
| CPU user | 305.4s |
| CPU sys | 16.0s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on code in PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#discussion_r3831865174
##########
datafusion/physical-optimizer/src/join_enumeration.rs:
##########
@@ -0,0 +1,1651 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+//! Cost-based join order enumeration.
+//!
+//! A subtree of joins is flattened into relations plus the predicates between them, a
+//! dynamic program searches the orders (bushy as well as left-deep) under a `C_out` cost
+//! model, and the subtree is rebuilt if the winner is clearly cheaper.
+//!
+//! Reordering is sound because a tree of inner joins equals the cross product of its
+//! relations filtered by all its predicates. Semi and anti joins take part as reducers:
+//! they filter their output side rather than contributing columns.
+
+use std::collections::HashMap;
+use std::sync::Arc;
+
+use crate::PhysicalOptimizerRule;
+use crate::optimizer::{ConfigOnlyContext, PhysicalOptimizerContext};
+
+use arrow::compute::SortOptions;
+use arrow::datatypes::{FieldRef, Schema};
+use datafusion_common::config::ConfigOptions;
+use datafusion_common::error::Result;
+use datafusion_common::tree_node::{Transformed, TransformedResult, TreeNode};
+use datafusion_common::{JoinSide, JoinType, NullEquality, Statistics, internal_err};
+use datafusion_expr_common::operator::Operator;
+use datafusion_physical_expr::PhysicalExprRef;
+use datafusion_physical_expr::expressions::{BinaryExpr, Column};
+use datafusion_physical_expr::projection::ProjectionExpr;
+use datafusion_physical_plan::execution_plan::replace_children_if_necessary;
+use datafusion_physical_plan::joins::utils::{
+ ColumnIndex, JoinFilter, max_distinct_count,
+};
+use datafusion_physical_plan::joins::{
+ CrossJoinExec, HashJoinExec, HashJoinExecBuilder, NestedLoopJoinExec, PartitionMode,
+ SortMergeJoinExec,
+};
+use datafusion_physical_plan::operator_statistics::StatisticsRegistry;
+use datafusion_physical_plan::projection::{ProjectionExec, all_alias_free_columns};
+use datafusion_physical_plan::statistics::{StatisticsArgs, StatisticsContext};
+use datafusion_physical_plan::{ExecutionPlan, ExecutionPlanProperties};
+
+/// Chooses the shape of the join tree, before [`JoinSelection`] decides how each
+/// join runs.
+///
+/// [`JoinSelection`]: crate::join_selection::JoinSelection
+#[derive(Default, Debug)]
+pub struct JoinEnumeration {}
+
+impl JoinEnumeration {
+ #[expect(missing_docs)]
+ pub fn new() -> Self {
+ Self {}
+ }
+}
+
+impl PhysicalOptimizerRule for JoinEnumeration {
+ fn optimize(
+ &self,
+ plan: Arc<dyn ExecutionPlan>,
+ config: &ConfigOptions,
+ ) -> Result<Arc<dyn ExecutionPlan>> {
+ self.optimize_with_context(plan, &ConfigOnlyContext::new(config))
+ }
+
+ fn optimize_with_context(
+ &self,
+ plan: Arc<dyn ExecutionPlan>,
+ context: &dyn PhysicalOptimizerContext,
+ ) -> Result<Arc<dyn ExecutionPlan>> {
+ let config = context.config_options();
+ if !config.optimizer.join_enumeration {
+ return Ok(plan);
+ }
+ let mut default_registry = None;
+ let registry: Option<&StatisticsRegistry> =
+ if config.optimizer.use_statistics_registry {
+ Some(context.statistics_registry().unwrap_or_else(|| {
+ default_registry
+ .insert(StatisticsRegistry::default_with_builtin_providers())
+ }))
+ } else {
+ None
+ };
+ let mut stats = |plan: &dyn ExecutionPlan| {
+ if let Some(registry) = registry {
+ registry
+ .compute(plan)
+ .map(|s| Arc::<Statistics>::clone(s.base_arc()))
+ } else {
+ StatisticsContext::new().compute(plan, &StatisticsArgs::new())
+ }
+ };
+ Ok(enumerate_join_order(&plan, config, &mut stats)?.unwrap_or(plan))
+ }
+
+ fn name(&self) -> &str {
+ "join_enumeration"
+ }
+
+ fn schema_check(&self) -> bool {
+ true
+ }
+}
+
+/// Hard upper bound on the relations in one join graph. The search allocates `2^n` and
+/// visits `3^n`, so larger graphs keep the planner's order regardless of the limit.
+const MAX_RELATIONS: usize = 16;
+
+/// Computes a plan node's statistics, shared with the rest of `JoinSelection`.
+pub(crate) type StatsFn<'a> =
+ dyn FnMut(&dyn ExecutionPlan) -> Result<Arc<Statistics>> + 'a;
+
+/// A bitmask over relation indices.
+type RelSet = u64;
+
+fn bit(rel: usize) -> RelSet {
+ 1u64 << rel
+}
+
+fn iter_rels(mask: RelSet) -> impl Iterator<Item = usize> {
+ std::iter::successors(Some(mask), |m| Some(m & m.wrapping_sub(1)))
+ .take_while(|m| *m != 0)
+ .map(|m| m.trailing_zeros() as usize)
+}
+
+fn covers(mask: RelSet, required: RelSet) -> bool {
+ required & !mask == 0
+}
+
+/// One column of one relation, tracked instead of a plain index because reordering
+/// moves columns to other positions.
+#[derive(Clone, Copy, PartialEq, Eq, Debug)]
+struct ColRef {
+ rel: usize,
+ col: usize,
+}
+
+/// What a relation contributes to the join.
+#[derive(Debug)]
+enum Role {
+ Output,
+ /// The quantified side of a semi or anti join, which filters instead of
+ /// contributing columns.
+ Reducer(Reducer),
+}
+
+#[derive(Debug)]
+struct Reducer {
+ /// `true` for an anti join, which keeps the rows that do *not* match.
+ anti: bool,
+ /// Keys, as `(column of the filtered side, column index here)`.
+ keys: Vec<(ColRef, usize)>,
+ /// Relations the keys reference; this reducer applies only to a set covering them.
+ required: RelSet,
+}
+
+/// One leaf of the join graph: a subplan the enumerator does not look inside.
+#[derive(Debug)]
+struct Relation {
+ plan: Arc<dyn ExecutionPlan>,
+ /// Estimated row count, clamped to at least 1.
+ rows: f64,
+ /// Estimated bytes per row, when the input reports a size.
+ width: Option<f64>,
+ /// Per-column distinct value estimate, clamped to `[1, rows]`.
+ ndv: Vec<f64>,
+ role: Role,
+}
+
+/// An equi-join predicate `left = right` between two distinct relations.
+#[derive(Clone, Copy, Debug)]
+struct Edge {
+ left: ColRef,
+ right: ColRef,
+}
+
+/// A non-equi join predicate, moved along with its column references rewritten.
+#[derive(Debug)]
+struct Filter {
+ filter: JoinFilter,
+ /// The column each entry of the filter's intermediate schema comes from.
+ columns: Vec<ColRef>,
+ /// The relations those columns belong to.
+ required: RelSet,
+}
+
+/// A connected set of joins as relations plus the predicates between them.
+#[derive(Debug)]
+struct JoinGraph {
Review Comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5936285583
I am sorry -- I had big plans to help here but clearly have not done so. I'll wait for your cleanup / self review and then try and find time to help
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-6087955204
> I'd also like to help with the join order side of things.
Thank you @jayzhan211
I am very sorry I haven't had time to help with the HashJoin spilling project either. I keep hoping to get time but haven't found a way to prioritize this, mostly because I haven't been able to justify to myself (or my employer) why this would be an important use of time
However, I do wonder with the recent bench-flexing 🦾 post from Polars if we could rally around that to get motivated / get people (myself included) to drive our join performance down
- https://github.com/apache/datafusion/issues/26169
If I knew you were stoked to help drive / review / work with me, I am thinking it would be a good free-time project to obsess over (my current obsession is https://github.com/datafusion-contrib/tpcgen-rs/issues/307 and it is coming to a close for the time being I think)
What do you think?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5381142176
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5381129576)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c5381129576-1872-5l4nc 6.12.85+ #1 SMP Sat Jun 27 09:31:30 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (b8acd17fb6a2a1b307edd71e3c7bb9d75db04e9d) to fc15e25 (merge-base) [diff](https://github.com/apache/datafusion/compare/fc15e25cbb49d457c319dbf522f2982d32c794cb..b8acd17fb6a2a1b307edd71e3c7bb9d75db04e9d)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpcds
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5328460002
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5328427832)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c5328427832-1648-8rrnd 6.12.85+ #1 SMP Wed Jun 17 20:31:55 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (a329cf31232aa58729328b8783225cd7060dced9) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..a329cf31232aa58729328b8783225cd7060dced9)
<details><summary>Run configuration</summary>
```yaml
run benchmark clickbench_partitioned
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5328463320
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5328427832)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c5328427832-1650-8pmn4 6.12.85+ #1 SMP Wed Jun 17 20:31:55 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (a329cf31232aa58729328b8783225cd7060dced9) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..a329cf31232aa58729328b8783225cd7060dced9)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5328429145
run bencmark tpch10
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5330156954
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5330114082)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c5330114082-1653-49dm6 6.12.85+ #1 SMP Wed Jun 17 20:31:55 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (de80dd75426b4b7e87d2314fca8eacfafb06e785) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..de80dd75426b4b7e87d2314fca8eacfafb06e785)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5330114082
run benchmarks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5330515063
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5330480037)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c5330480037-1655-ftmmf 6.12.85+ #1 SMP Wed Jun 17 20:31:55 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (1040be5a323410f3cf2767c2a9f540c124e0f7cc) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..1040be5a323410f3cf2767c2a9f540c124e0f7cc)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch10
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5330711987
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5330480037)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
Comparing perf/join-order-enumeration (1040be5a323410f3cf2767c2a9f540c124e0f7cc) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..1040be5a323410f3cf2767c2a9f540c124e0f7cc)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch10
```
</details>
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf10.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 308.56 ms │ 312.33 ms │ no change │
│ QQuery 2 │ 101.08 ms │ 69.63 ms │ +1.45x faster │
│ QQuery 3 │ 227.65 ms │ 227.66 ms │ no change │
│ QQuery 4 │ 111.81 ms │ 113.61 ms │ no change │
│ QQuery 5 │ 353.34 ms │ 339.49 ms │ no change │
│ QQuery 6 │ 121.77 ms │ 123.16 ms │ no change │
│ QQuery 7 │ 461.42 ms │ 280.26 ms │ +1.65x faster │
│ QQuery 8 │ 377.60 ms │ 410.28 ms │ 1.09x slower │
│ QQuery 9 │ 552.46 ms │ 555.09 ms │ no change │
│ QQuery 10 │ 294.78 ms │ 295.22 ms │ no change │
│ QQuery 11 │ 85.08 ms │ 57.74 ms │ +1.47x faster │
│ QQuery 12 │ 175.18 ms │ 164.54 ms │ +1.06x faster │
│ QQuery 13 │ 286.83 ms │ 302.59 ms │ 1.05x slower │
│ QQuery 14 │ 167.85 ms │ 167.47 ms │ no change │
│ QQuery 15 │ 299.70 ms │ 299.80 ms │ no change │
│ QQuery 16 │ 62.77 ms │ 57.85 ms │ +1.08x faster │
│ QQuery 17 │ 626.52 ms │ 622.69 ms │ no change │
│ QQuery 18 │ 685.11 ms │ 379.99 ms │ +1.80x faster │
│ QQuery 19 │ 243.88 ms │ 260.71 ms │ 1.07x slower │
│ QQuery 20 │ 286.83 ms │ 270.77 ms │ +1.06x faster │
│ QQuery 21 │ 660.94 ms │ 551.76 ms │ +1.20x faster │
│ QQuery 22 │ 61.10 ms │ 59.09 ms │ no change │
└───────────┴───────────┴─────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD) │ 6552.24ms │
│ Total Time (perf_join-order-enumeration) │ 5921.73ms │
│ Average Time (HEAD) │ 297.83ms │
│ Average Time (perf_join-order-enumeration) │ 269.17ms │
│ Queries Faster │ 8 │
│ Queries Slower │ 3 │
│ Queries with No Change │ 11 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴───────────┘
Distribution per query (min / mean ±stddev / max):
Comparing HEAD and perf_join-order-enumeration
--------------------
Benchmark tpch_sf10.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ perf_join-order-enumeration ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1 │ 308.56 / 310.49 ±1.01 / 311.48 ms │ 312.33 / 313.87 ±1.45 / 316.45 ms │ no change │
│ QQuery 2 │ 101.08 / 104.92 ±2.33 / 107.49 ms │ 69.63 / 71.36 ±1.01 / 72.52 ms │ +1.47x faster │
│ QQuery 3 │ 227.65 / 228.90 ±1.77 / 232.28 ms │ 227.66 / 238.24 ±6.44 / 246.95 ms │ no change │
│ QQuery 4 │ 111.81 / 112.54 ±0.40 / 113.02 ms │ 113.61 / 115.03 ±0.92 / 116.32 ms │ no change │
│ QQuery 5 │ 353.34 / 355.83 ±4.15 / 364.10 ms │ 339.49 / 345.48 ±3.41 / 349.53 ms │ no change │
│ QQuery 6 │ 121.77 / 124.12 ±2.73 / 129.34 ms │ 123.16 / 125.00 ±1.93 / 128.54 ms │ no change │
│ QQuery 7 │ 461.42 / 478.85 ±11.83 / 498.01 ms │ 280.26 / 283.84 ±3.88 / 290.86 ms │ +1.69x faster │
│ QQuery 8 │ 377.60 / 385.57 ±8.68 / 398.03 ms │ 410.28 / 416.60 ±3.79 / 422.03 ms │ 1.08x slower │
│ QQuery 9 │ 552.46 / 558.87 ±5.05 / 565.95 ms │ 555.09 / 559.94 ±5.50 / 568.92 ms │ no change │
│ QQuery 10 │ 294.78 / 299.67 ±5.27 / 309.39 ms │ 295.22 / 307.81 ±10.99 / 328.39 ms │ no change │
│ QQuery 11 │ 85.08 / 92.48 ±8.14 / 106.54 ms │ 57.74 / 61.28 ±4.64 / 70.46 ms │ +1.51x faster │
│ QQuery 12 │ 175.18 / 176.41 ±0.71 / 177.22 ms │ 164.54 / 168.71 ±6.18 / 180.87 ms │ no change │
│ QQuery 13 │ 286.83 / 299.26 ±9.80 / 311.95 ms │ 302.59 / 311.59 ±8.23 / 326.87 ms │ no change │
│ QQuery 14 │ 167.85 / 172.63 ±4.26 / 178.12 ms │ 167.47 / 172.29 ±4.59 / 180.01 ms │ no change │
│ QQuery 15 │ 299.70 / 303.56 ±3.23 / 308.04 ms │ 299.80 / 302.96 ±2.46 / 307.28 ms │ no change │
│ QQuery 16 │ 62.77 / 65.38 ±1.82 / 68.02 ms │ 57.85 / 60.04 ±1.99 / 63.35 ms │ +1.09x faster │
│ QQuery 17 │ 626.52 / 637.26 ±10.36 / 654.92 ms │ 622.69 / 633.20 ±7.93 / 646.15 ms │ no change │
│ QQuery 18 │ 685.11 / 711.02 ±19.47 / 739.33 ms │ 379.99 / 396.52 ±11.55 / 414.13 ms │ +1.79x faster │
│ QQuery 19 │ 243.88 / 258.43 ±13.85 / 282.20 ms │ 260.71 / 271.87 ±9.13 / 286.41 ms │ 1.05x slower │
│ QQuery 20 │ 286.83 / 299.08 ±8.08 / 309.04 ms │ 270.77 / 279.97 ±8.31 / 293.28 ms │ +1.07x faster │
│ QQuery 21 │ 660.94 / 672.73 ±9.06 / 687.71 ms │ 551.76 / 562.82 ±6.45 / 569.76 ms │ +1.20x faster │
│ QQuery 22 │ 61.10 / 63.29 ±2.06 / 66.19 ms │ 59.09 / 60.63 ±1.01 / 62.05 ms │ no change │
└───────────┴────────────────────────────────────┴────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD) │ 6711.27ms │
│ Total Time (perf_join-order-enumeration) │ 6059.03ms │
│ Average Time (HEAD) │ 305.06ms │
│ Average Time (perf_join-order-enumeration) │ 275.41ms │
│ Queries Faster │ 7 │
│ Queries Slower │ 2 │
│ Queries with No Change │ 13 │
│ Queries with Failure │ 0 │
└────────────────────────────────────────────┴───────────┘
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpch10 — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 35.0s |
| Peak memory | 5.1 GiB |
| Avg memory | 1.5 GiB |
| CPU user | 339.4s |
| CPU sys | 19.6s |
| Peak spill | 0 B |
**tpch10 — branch**
| Metric | Value |
|--------|-------|
| Wall time | 35.0s |
| Peak memory | 3.2 GiB |
| Avg memory | 1.1 GiB |
| CPU user | 303.9s |
| CPU sys | 17.7s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5339123862
run benchmarks
```
env:
PREFER_HASH_JOIN: false
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration in JoinSelection [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-5339142415
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/24456#issuecomment-5339125287)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c5339125287-1738-4hl68 6.12.85+ #1 SMP Wed Jun 17 20:31:55 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 perf/join-order-enumeration (636b45559c959d6b90c854c52f176a50a7695a60) to bb038a6 (merge-base) [diff](https://github.com/apache/datafusion/compare/bb038a6739091567fe32c196d8c568a98e4f42e2..636b45559c959d6b90c854c52f176a50a7695a60)
<details><summary>Run configuration</summary>
```yaml
run benchmark tpch10
env:
PREFER_HASH_JOIN: "false"
```
</details>
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "Omega359 (via GitHub)" <gi...@apache.org>.
Omega359 commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-6406823093
> I ran this branch on JOB, TPC-DS SF1 and TPC-H SF10 to see where it stands.
For anyone who happens to be wondering the JOB benchmark is the imdb benchmark in datafusion. I wasn't 100% sure before so I compared the queries - except for very minor differences they are identical.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: cost-based join order enumeration [datafusion]
Posted by "jayzhan211 (via GitHub)" <gi...@apache.org>.
jayzhan211 commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-6384138773
@Dandandan I ran this branch on JOB, TPC-DS SF1 and TPC-H SF10 to see where it stands. The enumeration works well. On the queries where I could hand-write a good join order, it recovers almost all of that gain:
| Query | Enumeration off | Enumeration on | Hand-written order |
|---|---|---|---|
| JOB 17b/c/d/f | 4.5–6.8 s | 0.16–0.27 s | 0.16–0.25 s |
| JOB 16a–d | 2.3–5.2 s | 0.13–0.36 s | 0.13–0.38 s |
| TPC-DS q72 | 1.42 s | 0.06 s | 0.08 s |
| TPC-H q18 | 0.67 s | 0.37 s | 0.41 s |
TPC-DS and TPC-H have no real regressions against the commit this branch is based on. On JOB, though, 21 queries get more than 1.2x slower (19d 4.6x, 5b 4.5x, 5a 3.7x, 2c 3.3x, 18a 2.1x). I found two causes, and neither is in the search itself.
**1. The new `IN` list estimate in `FilterExec`.** `in_list_selectivity` divides the number of literals by `max_distinct_count`, which falls back to the row count when the column has no NDV. Most Parquet files don't carry NDV, so a string `IN` list is treated as if every value were unique. In 19d, `ci.note IN (4 values)` is estimated at 11 rows, but 815K rows match. Every join above it is then estimated at about 11 rows, so the search has nothing to go on. The same happens with an `OR` of equalities (18a). It also changes plans with enumeration turned off: 9a goes from 0.25 s to 1.7–2.7 s.
Skipping the estimate when there is no real distinct count fixes it:
```diff
let stats = column_statistics.get(column.index())?;
+ // Without a real distinct count, `max_distinct_count` falls back to the row
+ // count, which treats every value as unique; leave such a column to the default.
+ stats.distinct_count.get_value()?;
let distinct = *max_distinct_count(num_rows, stats).get_value()?;
```
With that change, JOB runs at 0.65x of the base by geomean (46.6 s down to 18.6 s in total). 62 queries are faster, 3 are slower by more than 1.2x, and results are identical on all 113 queries.
**2. Rebuilt joins lose statistics on cast keys.** `key_expr` puts `CAST(col)` directly into the join's `on`, but `estimate_join_statistics` only reads keys that are plain columns (`equijoin_column_indices`). The rebuilt join then reports a much larger estimate than before, and `JoinSelection` picks the wrong build side. In 2c it builds on `title` (2.5M rows) instead of the empty side, and 16 ms becomes 53 ms. Computing the cast in a projection below the join, as the physical planner does, or letting the join statistics look through lossless casts would both fix it.
The other two queries still slower after the first fix are small:
- 4c (71 to 88 ms): the new order is about as good as the written one by intermediate rows, but the big `movie_keyword` join now hashes two keys from the same equivalence class, `movie_id = movie_id` and `CAST(t.id) = CAST(mk.movie_id)`. The second is already implied by the join below it. That join takes 66 ms where the base plan's equivalent takes 32 ms. Keeping one key per equivalence class when rebuilding a join would avoid it.
- 23b (183 to 225 ms): the rebuilt plan builds on `movie_keyword` (4.52M rows) against a side that produces 6 rows. `JoinSelection` compares bytes before rows, and that side reports 45 MB for an estimated 164K rows, more than the 36 MB of the `movie_keyword` scan. The inflated size doesn't come from this PR: on main, inner join statistics keep each input column's `byte_size` unscaled, and the semi join above adds them up. So this one needs a statistics fix on main rather than a change here.
Where it falls short of the hand-written order (8c, 8d, 17e), the cause is filter and fan-out estimates, not the search.
Setup: M4 Pro, 12 threads, Parquet files, best of 3 runs. Other work was running on the machine, so differences under about 10% are noise.
I'm happy to keep working on top of this PR.
cc @2010YOUY01 since you're working on join ordering.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org