Skip to content

Improve planning speed: Fast path for union_schema when all children share a schema - #24389

Merged
Dandandan merged 2 commits into
apache:mainfrom
reidkaufmann:union-schema-fast-path
Aug 15, 2026
Merged

Improve planning speed: Fast path for union_schema when all children share a schema#24389
Dandandan merged 2 commits into
apache:mainfrom
reidkaufmann:union-schema-fast-path

Conversation

@reidkaufmann

@reidkaufmannreidkaufmann commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Which issue does this close?

Complements #19792. Fits with the wide-UnionExec planning-cost work, but originates from an InfluxDB issue.

Rationale for this change

union_schema builds the output schema for UnionExec and InterleaveExec by coercing field metadata and nullability across every child. That merge is quadratic in the number of children: for each output field it walks all inputs, and for each input it walks every other input to union field-level metadata. For a union of n children with f fields the construction cost is O(n^2 * f) (worse when fields carry metadata).

For narrow unions this is insignificant. It matters when a plan fans a single source out into many identical-schema children and unions them back together -- e.g. a union assembled from repartitioned copies of the same input. An instance like this occurred with InfluxDB: every child schema was the same, so the merge, guaranteed to reproduce the first child's schema, unnecessarily incurred the planning latency penalty from O(n^2 * f) complexity.

Relationship to #19792

UnionExec construction has two quadratic halves:

This PR complements it by making union_schema skip the merge when it can't change the result. It deliberately doesn't touch with_new_children; that path is already handled.

What changes are included?

A fast path at the top of union_schema: after taking inputs[0].schema(), if every remaining child's schema is either the same allocation (Arc::ptr_eq) or structurally equal (==) to the first, return the first schema immediately. Otherwise we fall through to the existing full merge, so behavior for genuinely heterogeneous unions is byte-for-byte unchanged.

let first_schema = inputs[0].schema();if inputs[1..].iter().all(|input| {let schema = input.schema();Arc::ptr_eq(&schema,&first_schema) || schema == first_schema
}){returnOk(first_schema);}

InterleaveExec shares union_schema, so it gets the same speedup for free.

On the cost of the deep compare...

The natural objection (which came up before this PR): doesn't the deep == make the unequal case slower? I'll paraphrase the prior conclusions, risking verbosity to avoid rehashing the discussion. Spoiler: it's not an issue.

  • The equal case avoids the merge, and its check is cheap. The shared-Arc case is settled by pointer comparison. The distinct-but-equal case runs Schema::eq, which is allocation-free and short-circuits on the first difference. Benchmarks show a small loss versus a pointer-equality-only control (the theoretical floor) but it still beats the full merge by a wide margin, and that advantage grows with schema complexity.

  • The adversarial worst case is bounded. The one shape where the scan is pure overhead is last_differs: children 0..n-1 are equal and the last diverges, so we scan n schemas, fail on the last, then merge anyway. That's a single linear == pass bounded by the merge that follows -- a constant fraction, not another factor of n -- and it takes thousands of near-identical children differing only in the last to hit.

  • Ordinary unequal unions fail fast. SELECT a ... UNION ALL SELECT b ... differs at field 0, so == rejects on the first field (see names_differ). And UnionExec::try_new already rejects misaligned children, so the only divergence union_schema ever sees is top-level (caught in the first pass).

Benchmark results

New bench datafusion/physical-plan/benches/union_schema.rs measures UnionExec::try_new construction over a flat schema and a nested/struct schema, for the four child shapes above. Run interleaved (baseline / patched alternated per cell) on a fixed-clock T2D VM.

union_schema construction (lower is better)

scenarionbaseline (ms)patched (ms)change
union_exec_try_new/shared_arc1000.2630.0426.2×
union_exec_try_new/shared_arc10002.600.4296.1×
union_exec_try_new/shared_arc400010.51.746.0×
union_exec_try_new/content_equal1000.2620.0426.2×
union_exec_try_new/content_equal10002.610.4336.0×
union_exec_try_new/content_equal400010.51.746.0×
union_exec_try_new/last_differs4000~98~97flat (±1.5%)
union_exec_try_new/names_differ4000~87~87flat (±1%)
union_exec_try_new_nested/content_equal10002.680.4316.2×
union_exec_try_new_nested/content_equal400010.81.736.2×

The last_differs (adversarial: N-1 children equal, deep compare then full merge) and names_differ (typical unequal: fails on the first field) cells were re-measured with tight per-cell interleaving (baseline/patched adjacent, 4 rounds) to control for variance: both are within ±1.5%, straddling zero. Interpretation: the deep compare cost isn't observable end to end.

End-to-end planning: no regression (sql_planner)

cargo bench --bench sql_planner (TPC-H + ClickBench) run baseline vs patched on the fixed-clock T2D VM. Every case lands within ±1% -- run-to-run noise -- with no case regressing beyond that noise. Notable rows, including the union-heavy sorted_union cases the fast path is meant to help:

casebaseline (ms)patched (ms)
physical_plan_tpcds_all995.9 ± 1.4991.9 ± 1.9
physical_plan_tpch_all60.4 ± 0.260.3 ± 0.1
physical_sorted_union_order_by_50349.9 ± 2.4346.3 ± 2.7
physical_sorted_union_order_by_1012.3 ± 0.0312.2 ± 0.07
physical_select_all_from_100030.8 ± 0.2530.7 ± 0.08

The full TPC-H q1-q22 and ClickBench sets are all flat (ratio is 1.00-1.01 in both directions). Separately, interleaving tests per-cell (baseline and patched back-to-back, so run-to-run variance -- e.g. thermal -- cancels rather than favoring one) for physical_join_distinct + eight ClickBench queries (4 rounds) confirmed the same thing: patched and baseline straddle zero; no systematic regression from the deep compare.

Testing

  • cargo test -p datafusion-physical-plan --lib union -- all pass, including a new test_union_schema_fast_path_content_equal that exercises the == branch with pointer-distinct-but-equal schemas and asserts the result matches the shared schema (i.e. identical to the slow-path merge).
  • cargo clippy -p datafusion-physical-plan --lib -- -D warnings -- clean.
  • cargo bench --bench union_schema -- compiles and runs.

Are there any user-facing changes?

No: planning-time performance change only, results and schema are identical.

CopilotAI lite review requested due to automatic review settings August 14, 2026 22:36
@github-actionsgithub-actionsBot added the physical-plan Changes to the physical-plan crate label Aug 14, 2026

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR improves planning-time performance for wide UnionExec / InterleaveExec plans by adding an early-return fast path in union_schema when all children already share an identical schema (by Arc::ptr_eq or structural ==), avoiding the existing quadratic metadata/nullability merge.

Changes:

  • Add a union_schema fast path that returns the first child’s schema when all children’s schemas are pointer-equal or structurally equal.
  • Add a regression test targeting the pointer-distinct-but-equal (==) branch.
  • Add a new Criterion benchmark (union_schema) and register it in Cargo.toml.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

FileDescription
datafusion/physical-plan/src/union.rsAdds the union_schema early-return fast path and a test for the content-equality branch.
datafusion/physical-plan/Cargo.tomlRegisters the new union_schema benchmark target.
datafusion/physical-plan/benches/union_schema.rsAdds a benchmark measuring UnionExec::try_new construction cost across schema-shape scenarios.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment threaddatafusion/physical-plan/src/union.rs
Comment threaddatafusion/physical-plan/benches/union_schema.rs
`union_schema` (shared by `UnionExec` and `InterleaveExec`) coerces field
metadata and nullability across every child. That merge is O(n^2) in the
number of children -- for each field it scans all other children -- and
dominates physical planning for wide unions whose children all carry the
same schema. This shape is common when a union is built from repartitioned
copies of a single plan (observed in InfluxDB).
When every child already shares the first child's schema the merge is a
no-op. Add a fast path that returns the first schema when all remaining
children are either the same allocation (`Arc::ptr_eq`) or structurally
equal (`==`), falling through to the full merge otherwise.
Signed-off-by: Reid Kaufmann <reid.kaufmann@gmail.com>
Benchmark `UnionExec::try_new` construction cost as a function of child
count, over both a flat and a nested/struct schema. Covers the shared-Arc
and content-equal fast-path cases, the adversarial last-differs case (scan
wasted, then full merge), and the names-differ case where equality fails
immediately.
Signed-off-by: Reid Kaufmann <reid.kaufmann@gmail.com>
@reidkaufmann
reidkaufmannforce-pushed the union-schema-fast-path branch from 972e412 to eb2cdf3CompareAugust 14, 2026 22:45
@alambalamb changed the title Fast path for union_schema when all children share a schemaImprove planning speed: Fast path for union_schema when all children share a schemaAug 15, 2026
@alamb

Copy link
Copy Markdown
Contributor

run benchmark sql_planner

@alambalamb added the performance Make DataFusion faster label Aug 15, 2026
@alamb

Copy link
Copy Markdown
Contributor

Thanks @reidkaufmann

For anyone following along, this is porting a patch upstream we made in the influxdata fork for a performance issue we saw for some customer

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance:c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c5301854216-1604-wrr4h 6.12.85+ #1 SMP Wed Jun 17 20:31:55 UTC 2026 aarch64 GNU/Linux

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

Comparing union-schema-fast-path (eb2cdf3) to ec110ce (merge-base) diff

Run configuration
run benchmark sql_planner

Results will be posted here when complete


File an issue against this benchmark runner

@alambalamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you @reidkaufmann -- assuming the benchmark results look good I think this is a good addition

I left some comments to reduce the size of the diff / unecessary comments

let first_schema = inputs[0].schema();

// Fast path: when every input already shares the first input's schema, the
// field-by-field metadata/nullability merge below is redundant work that

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we should slim this comment down - the first sentence is probably enough. The last sentence is unecessary as it is restating in english what the code right below it clearly does so it is redundant

@alamb

Copy link
Copy Markdown
Contributor

run benchmark sql_planner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance:c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c5301869292-1605-5gg8l 6.12.85+ #1 SMP Wed Jun 17 20:31:55 UTC 2026 aarch64 GNU/Linux

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

Comparing union-schema-fast-path (eb2cdf3) to ec110ce (merge-base) diff

Run configuration
run benchmark sql_planner

Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

Comparing union-schema-fast-path (eb2cdf3) to ec110ce (merge-base) diff

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

group HEAD union-schema-fast-path
----- ---- ----------------------
logical_aggregate_with_join 1.00 455.1±1.52µs ? ?/sec 1.01 458.5±12.33µs ? ?/sec
logical_correlated_subquery_exists 1.00 283.7±0.77µs ? ?/sec 1.01 285.9±6.17µs ? ?/sec
logical_correlated_subquery_in 1.00 286.9±0.90µs ? ?/sec 1.01 288.8±5.88µs ? ?/sec
logical_distinct_many_columns 1.01 572.7±1.44µs ? ?/sec 1.00 567.7±1.19µs ? ?/sec
logical_join_4_with_agg_and_filter 1.01 249.7±0.86µs ? ?/sec 1.00 247.0±1.49µs ? ?/sec
logical_join_8_with_agg_sort_limit 1.02 428.1±1.39µs ? ?/sec 1.00 418.1±2.45µs ? ?/sec
logical_join_chain_16 1.00 678.2±3.05µs ? ?/sec 1.00 678.0±6.33µs ? ?/sec
logical_join_chain_4 1.00 120.9±0.67µs ? ?/sec 1.00 121.0±1.02µs ? ?/sec
logical_join_chain_8 1.00 248.5±1.45µs ? ?/sec 1.00 248.6±2.18µs ? ?/sec
logical_multiple_subqueries 1.00 517.6±1.93µs ? ?/sec 1.00 519.0±6.34µs ? ?/sec
logical_nested_cte_4_levels 1.01 260.9±1.06µs ? ?/sec 1.00 257.6±1.64µs ? ?/sec
logical_plan_struct_join_agg_sort 1.00 172.2±1.07µs ? ?/sec 1.00 171.9±0.97µs ? ?/sec
logical_plan_tpcds_all 1.00 93.5±0.18ms ? ?/sec 1.00 93.1±0.56ms ? ?/sec
logical_plan_tpch_all 1.01 6.6±0.02ms ? ?/sec 1.00 6.5±0.02ms ? ?/sec
logical_scalar_subquery 1.00 308.3±1.41µs ? ?/sec 1.01 312.2±7.84µs ? ?/sec
logical_select_all_from_1000 1.00 104.0±0.17ms ? ?/sec 1.00 103.6±0.31ms ? ?/sec
logical_select_one_from_700 1.00 326.1±1.45µs ? ?/sec 1.02 332.9±15.76µs ? ?/sec
logical_trivial_join_high_numbered_columns 1.00 286.1±0.65µs ? ?/sec 1.03 293.7±12.29µs ? ?/sec
logical_trivial_join_low_numbered_columns 1.00 273.8±0.73µs ? ?/sec 1.02 279.0±12.06µs ? ?/sec
logical_union_4_branches 1.01 427.5±1.37µs ? ?/sec 1.00 424.5±1.25µs ? ?/sec
logical_union_8_branches 1.01 816.5±2.13µs ? ?/sec 1.00 809.7±1.81µs ? ?/sec
logical_wide_aggregate_100_exprs 1.00 4.5±0.02ms ? ?/sec 1.00 4.5±0.01ms ? ?/sec
logical_wide_case_50_exprs 1.00 2.4±0.00ms ? ?/sec 1.00 2.4±0.01ms ? ?/sec
logical_wide_filter_200_predicates 1.01 1332.4±9.20µs ? ?/sec 1.00 1323.0±11.57µs ? ?/sec
logical_wide_filter_50_predicates 1.01 393.6±2.71µs ? ?/sec 1.00 389.4±7.26µs ? ?/sec
optimizer_correlated_exists 1.01 252.9±1.32µs ? ?/sec 1.00 249.6±0.56µs ? ?/sec
optimizer_join_4_with_agg_filter 1.00 469.7±2.85µs ? ?/sec 1.00 467.6±1.51µs ? ?/sec
optimizer_join_chain_4 1.00 184.2±0.80µs ? ?/sec 1.00 184.5±0.91µs ? ?/sec
optimizer_join_chain_8 1.00 568.4±2.80µs ? ?/sec 1.00 569.5±2.44µs ? ?/sec
optimizer_select_all_from_1000 1.00 6.8±0.03ms ? ?/sec 1.00 6.8±0.02ms ? ?/sec
optimizer_select_one_from_700 1.00 256.9±2.16µs ? ?/sec 1.01 259.4±1.24µs ? ?/sec
optimizer_tpcds_all 1.01 314.7±0.95ms ? ?/sec 1.00 311.7±0.31ms ? ?/sec
optimizer_tpch_all 1.01 17.9±0.16ms ? ?/sec 1.00 17.6±0.03ms ? ?/sec
optimizer_wide_aggregate_100 1.01 2.3±0.03ms ? ?/sec 1.00 2.3±0.00ms ? ?/sec
optimizer_wide_filter_200 1.00 3.7±0.02ms ? ?/sec 1.00 3.7±0.01ms ? ?/sec
physical_intersection 1.00 600.6±1.94µs ? ?/sec 1.01 605.9±2.30µs ? ?/sec
physical_join_consider_sort 1.00 1068.3±2.56µs ? ?/sec 1.00 1071.2±4.50µs ? ?/sec
physical_join_distinct 1.00 265.2±0.79µs ? ?/sec 1.02 270.8±12.02µs ? ?/sec
physical_many_self_joins 1.00 7.7±0.03ms ? ?/sec 1.00 7.7±0.03ms ? ?/sec
physical_plan_clickbench_all 1.01 129.5±1.08ms ? ?/sec 1.00 128.6±0.35ms ? ?/sec
physical_plan_clickbench_q1 1.00 1403.1±9.49µs ? ?/sec 1.01 1412.6±9.52µs ? ?/sec
physical_plan_clickbench_q10 1.01 2.1±0.01ms ? ?/sec 1.00 2.1±0.01ms ? ?/sec
physical_plan_clickbench_q11 1.01 2.3±0.01ms ? ?/sec 1.00 2.2±0.01ms ? ?/sec
physical_plan_clickbench_q12 1.01 2.3±0.01ms ? ?/sec 1.00 2.3±0.01ms ? ?/sec
physical_plan_clickbench_q13 1.00 2.1±0.01ms ? ?/sec 1.00 2.1±0.01ms ? ?/sec
physical_plan_clickbench_q14 1.01 2.3±0.01ms ? ?/sec 1.00 2.2±0.01ms ? ?/sec
physical_plan_clickbench_q15 1.01 2.1±0.01ms ? ?/sec 1.00 2.1±0.01ms ? ?/sec
physical_plan_clickbench_q16 1.01 1830.3±8.30µs ? ?/sec 1.00 1817.1±6.17µs ? ?/sec
physical_plan_clickbench_q17 1.01 1880.5±8.75µs ? ?/sec 1.00 1866.7±6.96µs ? ?/sec
physical_plan_clickbench_q18 1.00 1714.0±9.29µs ? ?/sec 1.00 1710.1±6.49µs ? ?/sec
physical_plan_clickbench_q19 1.00 2.1±0.02ms ? ?/sec 1.00 2.1±0.01ms ? ?/sec
physical_plan_clickbench_q2 1.01 1816.6±10.15µs ? ?/sec 1.00 1805.8±7.98µs ? ?/sec
physical_plan_clickbench_q20 1.00 1549.5±8.33µs ? ?/sec 1.01 1564.4±6.87µs ? ?/sec
physical_plan_clickbench_q21 1.00 1791.5±9.24µs ? ?/sec 1.03 1841.5±8.38µs ? ?/sec
physical_plan_clickbench_q22 1.00 2.2±0.01ms ? ?/sec 1.02 2.2±0.01ms ? ?/sec
physical_plan_clickbench_q23 1.00 2.4±0.01ms ? ?/sec 1.01 2.4±0.01ms ? ?/sec
physical_plan_clickbench_q24 1.00 6.7±0.04ms ? ?/sec 1.00 6.8±0.02ms ? ?/sec
physical_plan_clickbench_q25 1.00 1928.6±8.20µs ? ?/sec 1.02 1973.5±7.79µs ? ?/sec
physical_plan_clickbench_q26 1.00 1761.1±9.69µs ? ?/sec 1.00 1764.2±7.43µs ? ?/sec
physical_plan_clickbench_q27 1.00 1960.0±8.96µs ? ?/sec 1.02 1999.1±6.05µs ? ?/sec
physical_plan_clickbench_q28 1.00 2.3±0.01ms ? ?/sec 1.02 2.4±0.01ms ? ?/sec
physical_plan_clickbench_q29 1.00 2.5±0.02ms ? ?/sec 1.02 2.6±0.01ms ? ?/sec
physical_plan_clickbench_q3 1.00 1698.0±9.70µs ? ?/sec 1.00 1704.6±6.43µs ? ?/sec
physical_plan_clickbench_q30 1.00 15.5±0.04ms ? ?/sec 1.00 15.5±0.03ms ? ?/sec
physical_plan_clickbench_q31 1.00 2.5±0.01ms ? ?/sec 1.00 2.5±0.01ms ? ?/sec
physical_plan_clickbench_q32 1.00 2.5±0.02ms ? ?/sec 1.00 2.5±0.01ms ? ?/sec
physical_plan_clickbench_q33 1.00 2.1±0.01ms ? ?/sec 1.00 2.1±0.01ms ? ?/sec
physical_plan_clickbench_q34 1.00 1835.7±9.69µs ? ?/sec 1.00 1835.4±7.83µs ? ?/sec
physical_plan_clickbench_q35 1.00 1877.6±9.40µs ? ?/sec 1.00 1875.8±7.47µs ? ?/sec
physical_plan_clickbench_q36 1.00 2.2±0.01ms ? ?/sec 1.00 2.2±0.01ms ? ?/sec
physical_plan_clickbench_q37 1.01 2.6±0.01ms ? ?/sec 1.00 2.6±0.01ms ? ?/sec
physical_plan_clickbench_q38 1.01 2.6±0.01ms ? ?/sec 1.00 2.5±0.01ms ? ?/sec
physical_plan_clickbench_q39 1.01 2.6±0.01ms ? ?/sec 1.00 2.6±0.01ms ? ?/sec
physical_plan_clickbench_q4 1.00 1511.2±8.32µs ? ?/sec 1.00 1517.0±7.78µs ? ?/sec
physical_plan_clickbench_q40 1.00 3.4±0.01ms ? ?/sec 1.00 3.4±0.01ms ? ?/sec
physical_plan_clickbench_q41 1.00 2.9±0.01ms ? ?/sec 1.00 2.9±0.01ms ? ?/sec
physical_plan_clickbench_q42 1.00 3.1±0.01ms ? ?/sec 1.00 3.1±0.02ms ? ?/sec
physical_plan_clickbench_q43 1.00 3.2±0.01ms ? ?/sec 1.00 3.2±0.02ms ? ?/sec
physical_plan_clickbench_q44 1.00 1609.4±7.91µs ? ?/sec 1.00 1602.1±8.08µs ? ?/sec
physical_plan_clickbench_q45 1.00 1615.0±11.46µs ? ?/sec 1.00 1612.5±6.51µs ? ?/sec
physical_plan_clickbench_q46 1.00 1917.9±7.93µs ? ?/sec 1.00 1920.2±6.52µs ? ?/sec
physical_plan_clickbench_q47 1.00 2.6±0.01ms ? ?/sec 1.00 2.6±0.01ms ? ?/sec
physical_plan_clickbench_q48 1.00 2.8±0.02ms ? ?/sec 1.00 2.8±0.01ms ? ?/sec
physical_plan_clickbench_q49 1.00 2.8±0.02ms ? ?/sec 1.00 2.8±0.01ms ? ?/sec
physical_plan_clickbench_q5 1.02 1675.9±8.89µs ? ?/sec 1.00 1640.4±6.59µs ? ?/sec
physical_plan_clickbench_q50 1.00 2.7±0.01ms ? ?/sec 1.00 2.7±0.01ms ? ?/sec
physical_plan_clickbench_q51 1.00 2.1±0.02ms ? ?/sec 1.00 2.0±0.01ms ? ?/sec
physical_plan_clickbench_q6 1.01 1658.3±8.41µs ? ?/sec 1.00 1644.4±5.75µs ? ?/sec
physical_plan_clickbench_q7 1.00 1472.4±8.38µs ? ?/sec 1.00 1472.9±12.98µs ? ?/sec
physical_plan_clickbench_q8 1.00 1968.3±10.34µs ? ?/sec 1.00 1977.4±15.02µs ? ?/sec
physical_plan_clickbench_q9 1.01 1996.9±9.11µs ? ?/sec 1.00 1975.4±7.21µs ? ?/sec
physical_plan_struct_join_agg_sort 1.00 1321.1±2.70µs ? ?/sec 1.01 1335.7±3.29µs ? ?/sec
physical_plan_tpcds_all 1.00 721.4±3.23ms ? ?/sec 1.00 719.2±0.59ms ? ?/sec
physical_plan_tpch_all 1.00 45.0±0.05ms ? ?/sec 1.00 45.2±0.07ms ? ?/sec
physical_plan_tpch_q1 1.00 1577.8±3.43µs ? ?/sec 1.00 1578.6±2.86µs ? ?/sec
physical_plan_tpch_q10 1.00 2.9±0.01ms ? ?/sec 1.01 2.9±0.02ms ? ?/sec
physical_plan_tpch_q11 1.00 2.3±0.01ms ? ?/sec 1.00 2.3±0.00ms ? ?/sec
physical_plan_tpch_q12 1.00 1291.9±2.16µs ? ?/sec 1.01 1302.6±2.54µs ? ?/sec
physical_plan_tpch_q13 1.00 1077.2±4.13µs ? ?/sec 1.00 1081.7±2.46µs ? ?/sec
physical_plan_tpch_q14 1.01 1459.4±5.68µs ? ?/sec 1.00 1451.8±2.65µs ? ?/sec
physical_plan_tpch_q16 1.00 1642.6±2.31µs ? ?/sec 1.01 1654.0±2.78µs ? ?/sec
physical_plan_tpch_q17 1.00 1673.0±3.09µs ? ?/sec 1.01 1681.9±3.65µs ? ?/sec
physical_plan_tpch_q18 1.00 1990.5±2.90µs ? ?/sec 1.01 2.0±0.00ms ? ?/sec
physical_plan_tpch_q19 1.00 1906.3±3.51µs ? ?/sec 1.01 1920.3±4.32µs ? ?/sec
physical_plan_tpch_q2 1.00 3.7±0.00ms ? ?/sec 1.01 3.7±0.00ms ? ?/sec
physical_plan_tpch_q20 1.00 2.2±0.00ms ? ?/sec 1.00 2.2±0.00ms ? ?/sec
physical_plan_tpch_q21 1.00 2.9±0.00ms ? ?/sec 1.01 2.9±0.00ms ? ?/sec
physical_plan_tpch_q22 1.00 1513.6±3.39µs ? ?/sec 1.01 1534.5±3.67µs ? ?/sec
physical_plan_tpch_q3 1.00 1892.2±3.49µs ? ?/sec 1.00 1895.3±3.87µs ? ?/sec
physical_plan_tpch_q4 1.00 1225.2±3.22µs ? ?/sec 1.00 1225.7±3.00µs ? ?/sec
physical_plan_tpch_q5 1.00 2.8±0.01ms ? ?/sec 1.00 2.8±0.00ms ? ?/sec
physical_plan_tpch_q6 1.00 636.0±1.21µs ? ?/sec 1.01 640.4±2.46µs ? ?/sec
physical_plan_tpch_q7 1.00 2.9±0.00ms ? ?/sec 1.01 2.9±0.00ms ? ?/sec
physical_plan_tpch_q8 1.00 3.9±0.01ms ? ?/sec 1.00 3.9±0.01ms ? ?/sec
physical_plan_tpch_q9 1.00 2.7±0.00ms ? ?/sec 1.01 2.8±0.01ms ? ?/sec
physical_select_aggregates_from_200 1.00 15.5±0.03ms ? ?/sec 1.00 15.5±0.04ms ? ?/sec
physical_select_all_from_1000 1.00 115.0±0.14ms ? ?/sec 1.02 117.4±1.60ms ? ?/sec
physical_select_one_from_700 1.00 774.2±2.02µs ? ?/sec 1.00 775.0±3.45µs ? ?/sec
physical_sorted_union_order_by_10_int64 1.03 4.3±0.01ms ? ?/sec 1.00 4.2±0.00ms ? ?/sec
physical_sorted_union_order_by_10_uint64 1.02 9.3±0.01ms ? ?/sec 1.00 9.1±0.01ms ? ?/sec
physical_sorted_union_order_by_50_int64 1.11 106.0±0.40ms ? ?/sec 1.00 95.2±0.26ms ? ?/sec
physical_sorted_union_order_by_50_uint64 1.04 410.8±2.31ms ? ?/sec 1.00 394.5±0.91ms ? ?/sec
physical_theta_join_consider_sort 1.00 1097.3±15.41µs ? ?/sec 1.00 1095.7±10.06µs ? ?/sec
physical_unnest_to_join 1.00 643.0±1.57µs ? ?/sec 1.00 640.6±1.87µs ? ?/sec
physical_window_function_partition_by_12_on_values 1.01 738.1±1.69µs ? ?/sec 1.00 728.9±1.62µs ? ?/sec
physical_window_function_partition_by_30_on_values 1.00 1440.9±2.57µs ? ?/sec 1.01 1454.7±5.53µs ? ?/sec
physical_window_function_partition_by_4_on_values 1.03 458.8±1.43µs ? ?/sec 1.00 447.4±1.39µs ? ?/sec
physical_window_function_partition_by_7_on_values 1.01 560.1±1.43µs ? ?/sec 1.00 555.0±4.60µs ? ?/sec
physical_window_function_partition_by_8_on_values 1.01 600.2±1.66µs ? ?/sec 1.00 594.1±4.96µs ? ?/sec
with_param_values_many_columns 1.01 430.4±2.72µs ? ?/sec 1.00 428.1±2.04µs ? ?/sec

Resource Usage

sql_planner — base (merge-base)

MetricValue
Wall time2370.5s
Peak memory129.4 MiB
Avg memory66.5 MiB
CPU user1890.2s
CPU sys1.4s
Peak spill0 B

sql_planner — branch

MetricValue
Wall time2340.5s
Peak memory129.9 MiB
Avg memory68.2 MiB
CPU user1881.8s
CPU sys1.3s
Peak spill0 B

File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

Comparing union-schema-fast-path (eb2cdf3) to ec110ce (merge-base) diff

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

group HEAD union-schema-fast-path
----- ---- ----------------------
logical_aggregate_with_join 1.01 455.8±1.25µs ? ?/sec 1.00 449.4±1.23µs ? ?/sec
logical_correlated_subquery_exists 1.01 283.5±0.97µs ? ?/sec 1.00 280.6±0.50µs ? ?/sec
logical_correlated_subquery_in 1.01 286.5±0.79µs ? ?/sec 1.00 282.4±0.87µs ? ?/sec
logical_distinct_many_columns 1.00 566.8±1.06µs ? ?/sec 1.00 565.3±1.33µs ? ?/sec
logical_join_4_with_agg_and_filter 1.00 249.2±0.91µs ? ?/sec 1.00 249.0±0.93µs ? ?/sec
logical_join_8_with_agg_sort_limit 1.00 417.5±3.71µs ? ?/sec 1.00 418.8±1.21µs ? ?/sec
logical_join_chain_16 1.01 676.9±3.47µs ? ?/sec 1.00 671.9±3.35µs ? ?/sec
logical_join_chain_4 1.01 121.4±0.53µs ? ?/sec 1.00 120.5±0.46µs ? ?/sec
logical_join_chain_8 1.01 249.7±1.09µs ? ?/sec 1.00 246.9±1.14µs ? ?/sec
logical_multiple_subqueries 1.00 516.4±1.72µs ? ?/sec 1.00 517.2±1.69µs ? ?/sec
logical_nested_cte_4_levels 1.00 257.1±1.47µs ? ?/sec 1.00 256.1±1.69µs ? ?/sec
logical_plan_struct_join_agg_sort 1.02 175.1±1.24µs ? ?/sec 1.00 171.7±0.72µs ? ?/sec
logical_plan_tpcds_all 1.01 93.8±0.18ms ? ?/sec 1.00 93.0±0.20ms ? ?/sec
logical_plan_tpch_all 1.03 6.5±0.02ms ? ?/sec 1.00 6.3±0.02ms ? ?/sec
logical_scalar_subquery 1.00 304.9±1.57µs ? ?/sec 1.00 305.0±1.66µs ? ?/sec
logical_select_all_from_1000 1.02 105.3±1.65ms ? ?/sec 1.00 103.7±0.35ms ? ?/sec
logical_select_one_from_700 1.00 325.3±1.44µs ? ?/sec 1.00 325.1±1.95µs ? ?/sec
logical_trivial_join_high_numbered_columns 1.01 287.1±0.72µs ? ?/sec 1.00 284.2±0.72µs ? ?/sec
logical_trivial_join_low_numbered_columns 1.01 275.1±0.93µs ? ?/sec 1.00 272.3±0.69µs ? ?/sec
logical_union_4_branches 1.00 422.5±1.16µs ? ?/sec 1.00 421.6±3.02µs ? ?/sec
logical_union_8_branches 1.00 811.5±1.88µs ? ?/sec 1.00 807.8±2.51µs ? ?/sec
logical_wide_aggregate_100_exprs 1.00 4.5±0.02ms ? ?/sec 1.00 4.5±0.02ms ? ?/sec
logical_wide_case_50_exprs 1.00 2.4±0.00ms ? ?/sec 1.00 2.4±0.00ms ? ?/sec
logical_wide_filter_200_predicates 1.01 1328.8±9.23µs ? ?/sec 1.00 1320.8±8.22µs ? ?/sec
logical_wide_filter_50_predicates 1.00 388.3±3.17µs ? ?/sec 1.00 388.5±2.39µs ? ?/sec
optimizer_correlated_exists 1.00 246.1±0.60µs ? ?/sec 1.01 247.5±0.47µs ? ?/sec
optimizer_join_4_with_agg_filter 1.00 455.3±1.01µs ? ?/sec 1.02 466.7±1.44µs ? ?/sec
optimizer_join_chain_4 1.00 181.4±0.26µs ? ?/sec 1.00 181.5±0.35µs ? ?/sec
optimizer_join_chain_8 1.00 563.9±0.91µs ? ?/sec 1.00 566.1±0.83µs ? ?/sec
optimizer_select_all_from_1000 1.00 6.8±0.01ms ? ?/sec 1.01 6.8±0.02ms ? ?/sec
optimizer_select_one_from_700 1.00 256.6±0.72µs ? ?/sec 1.00 256.1±0.56µs ? ?/sec
optimizer_tpcds_all 1.00 310.2±0.86ms ? ?/sec 1.02 314.8±0.44ms ? ?/sec
optimizer_tpch_all 1.00 17.5±0.04ms ? ?/sec 1.01 17.7±0.07ms ? ?/sec
optimizer_wide_aggregate_100 1.00 2.3±0.00ms ? ?/sec 1.01 2.3±0.00ms ? ?/sec
optimizer_wide_filter_200 1.00 3.6±0.01ms ? ?/sec 1.01 3.7±0.01ms ? ?/sec
physical_intersection 1.01 601.7±2.28µs ? ?/sec 1.00 594.5±1.54µs ? ?/sec
physical_join_consider_sort 1.00 1052.9±3.45µs ? ?/sec 1.00 1052.5±2.56µs ? ?/sec
physical_join_distinct 1.00 265.7±0.71µs ? ?/sec 1.00 264.7±1.18µs ? ?/sec
physical_many_self_joins 1.02 7.9±0.03ms ? ?/sec 1.00 7.7±0.01ms ? ?/sec
physical_plan_clickbench_all 1.01 132.1±0.79ms ? ?/sec 1.00 131.2±1.11ms ? ?/sec
physical_plan_clickbench_q1 1.05 1456.6±25.50µs ? ?/sec 1.00 1382.7±9.15µs ? ?/sec
physical_plan_clickbench_q10 1.05 2.2±0.06ms ? ?/sec 1.00 2.1±0.01ms ? ?/sec
physical_plan_clickbench_q11 1.07 2.4±0.09ms ? ?/sec 1.00 2.2±0.01ms ? ?/sec
physical_plan_clickbench_q12 1.08 2.5±0.07ms ? ?/sec 1.00 2.3±0.02ms ? ?/sec
physical_plan_clickbench_q13 1.06 2.2±0.06ms ? ?/sec 1.00 2.1±0.01ms ? ?/sec
physical_plan_clickbench_q14 1.06 2.4±0.08ms ? ?/sec 1.00 2.2±0.01ms ? ?/sec
physical_plan_clickbench_q15 1.06 2.2±0.08ms ? ?/sec 1.00 2.1±0.01ms ? ?/sec
physical_plan_clickbench_q16 1.04 1881.6±55.52µs ? ?/sec 1.00 1802.5±7.09µs ? ?/sec
physical_plan_clickbench_q17 1.04 1934.0±30.31µs ? ?/sec 1.00 1856.0±6.85µs ? ?/sec
physical_plan_clickbench_q18 1.04 1743.2±33.34µs ? ?/sec 1.00 1683.9±6.96µs ? ?/sec
physical_plan_clickbench_q19 1.06 2.2±0.06ms ? ?/sec 1.00 2.1±0.01ms ? ?/sec
physical_plan_clickbench_q2 1.07 1897.0±48.14µs ? ?/sec 1.00 1781.0±5.93µs ? ?/sec
physical_plan_clickbench_q20 1.06 1633.0±40.40µs ? ?/sec 1.00 1536.3±6.33µs ? ?/sec
physical_plan_clickbench_q21 1.07 1898.3±46.35µs ? ?/sec 1.00 1775.2±9.08µs ? ?/sec
physical_plan_clickbench_q22 1.09 2.4±0.08ms ? ?/sec 1.00 2.2±0.01ms ? ?/sec
physical_plan_clickbench_q23 1.13 2.7±0.10ms ? ?/sec 1.00 2.4±0.01ms ? ?/sec
physical_plan_clickbench_q24 1.08 7.2±0.06ms ? ?/sec 1.00 6.7±0.02ms ? ?/sec
physical_plan_clickbench_q25 1.07 2.1±0.07ms ? ?/sec 1.00 1909.8±6.91µs ? ?/sec
physical_plan_clickbench_q26 1.05 1830.5±32.50µs ? ?/sec 1.00 1740.0±6.49µs ? ?/sec
physical_plan_clickbench_q27 1.09 2.1±0.07ms ? ?/sec 1.00 1929.6±6.71µs ? ?/sec
physical_plan_clickbench_q28 1.14 2.7±0.10ms ? ?/sec 1.00 2.3±0.01ms ? ?/sec
physical_plan_clickbench_q29 1.12 2.8±0.13ms ? ?/sec 1.00 2.5±0.01ms ? ?/sec
physical_plan_clickbench_q3 1.05 1753.4±49.37µs ? ?/sec 1.00 1668.4±8.04µs ? ?/sec
physical_plan_clickbench_q30 1.03 16.0±0.11ms ? ?/sec 1.00 15.5±0.07ms ? ?/sec
physical_plan_clickbench_q31 1.12 2.8±0.12ms ? ?/sec 1.00 2.5±0.01ms ? ?/sec
physical_plan_clickbench_q32 1.13 2.8±0.10ms ? ?/sec 1.00 2.5±0.01ms ? ?/sec
physical_plan_clickbench_q33 1.08 2.3±0.08ms ? ?/sec 1.00 2.1±0.01ms ? ?/sec
physical_plan_clickbench_q34 1.07 1940.1±43.47µs ? ?/sec 1.00 1816.6±6.82µs ? ?/sec
physical_plan_clickbench_q35 1.07 1999.2±65.57µs ? ?/sec 1.00 1864.7±5.89µs ? ?/sec
physical_plan_clickbench_q36 1.07 2.3±0.07ms ? ?/sec 1.00 2.2±0.01ms ? ?/sec
physical_plan_clickbench_q37 1.11 2.8±0.10ms ? ?/sec 1.00 2.5±0.01ms ? ?/sec
physical_plan_clickbench_q38 1.10 2.8±0.11ms ? ?/sec 1.00 2.5±0.01ms ? ?/sec
physical_plan_clickbench_q39 1.11 2.9±0.13ms ? ?/sec 1.00 2.6±0.01ms ? ?/sec
physical_plan_clickbench_q4 1.04 1539.2±24.45µs ? ?/sec 1.00 1479.4±7.01µs ? ?/sec
physical_plan_clickbench_q40 1.11 3.7±0.12ms ? ?/sec 1.00 3.4±0.01ms ? ?/sec
physical_plan_clickbench_q41 1.09 3.2±0.14ms ? ?/sec 1.00 2.9±0.01ms ? ?/sec
physical_plan_clickbench_q42 1.10 3.4±0.13ms ? ?/sec 1.00 3.1±0.03ms ? ?/sec
physical_plan_clickbench_q43 1.11 3.5±0.12ms ? ?/sec 1.00 3.1±0.01ms ? ?/sec
physical_plan_clickbench_q44 1.02 1658.4±37.40µs ? ?/sec 1.00 1633.3±45.75µs ? ?/sec
physical_plan_clickbench_q45 1.01 1609.0±24.02µs ? ?/sec 1.00 1589.5±8.10µs ? ?/sec
physical_plan_clickbench_q46 1.00 1913.3±16.30µs ? ?/sec 1.00 1921.6±26.34µs ? ?/sec
physical_plan_clickbench_q47 1.00 2.6±0.02ms ? ?/sec 1.00 2.6±0.01ms ? ?/sec
physical_plan_clickbench_q48 1.00 2.8±0.01ms ? ?/sec 1.01 2.8±0.01ms ? ?/sec
physical_plan_clickbench_q49 1.00 2.8±0.01ms ? ?/sec 1.01 2.9±0.02ms ? ?/sec
physical_plan_clickbench_q5 1.05 1717.2±40.25µs ? ?/sec 1.00 1628.1±13.75µs ? ?/sec
physical_plan_clickbench_q50 1.00 2.7±0.01ms ? ?/sec 1.02 2.7±0.02ms ? ?/sec
physical_plan_clickbench_q51 1.00 2.0±0.01ms ? ?/sec 1.02 2.1±0.01ms ? ?/sec
physical_plan_clickbench_q6 1.04 1713.2±38.47µs ? ?/sec 1.00 1640.3±16.68µs ? ?/sec
physical_plan_clickbench_q7 1.05 1517.3±25.67µs ? ?/sec 1.00 1445.0±10.50µs ? ?/sec
physical_plan_clickbench_q8 1.07 2.1±0.06ms ? ?/sec 1.00 1942.1±12.09µs ? ?/sec
physical_plan_clickbench_q9 1.05 2.0±0.05ms ? ?/sec 1.00 1941.3±7.40µs ? ?/sec
physical_plan_struct_join_agg_sort 1.00 1328.4±8.86µs ? ?/sec 1.01 1343.3±2.42µs ? ?/sec
physical_plan_tpcds_all 1.05 753.3±4.14ms ? ?/sec 1.00 718.5±1.08ms ? ?/sec
physical_plan_tpch_all 1.03 46.4±0.50ms ? ?/sec 1.00 44.9±0.07ms ? ?/sec
physical_plan_tpch_q1 1.00 1597.2±20.21µs ? ?/sec 1.00 1596.2±3.81µs ? ?/sec
physical_plan_tpch_q10 1.02 2.9±0.05ms ? ?/sec 1.00 2.8±0.01ms ? ?/sec
physical_plan_tpch_q11 1.00 2.3±0.03ms ? ?/sec 1.00 2.3±0.01ms ? ?/sec
physical_plan_tpch_q12 1.00 1262.2±14.98µs ? ?/sec 1.02 1281.3±3.48µs ? ?/sec
physical_plan_tpch_q13 1.01 1064.9±6.15µs ? ?/sec 1.00 1059.3±4.02µs ? ?/sec
physical_plan_tpch_q14 1.00 1435.2±11.02µs ? ?/sec 1.00 1430.9±2.61µs ? ?/sec
physical_plan_tpch_q16 1.00 1645.3±13.75µs ? ?/sec 1.00 1637.4±9.37µs ? ?/sec
physical_plan_tpch_q17 1.00 1663.0±11.64µs ? ?/sec 1.01 1673.7±9.29µs ? ?/sec
physical_plan_tpch_q18 1.00 2.0±0.02ms ? ?/sec 1.00 2.0±0.02ms ? ?/sec
physical_plan_tpch_q19 1.01 1928.9±16.20µs ? ?/sec 1.00 1908.0±2.98µs ? ?/sec
physical_plan_tpch_q2 1.03 3.8±0.06ms ? ?/sec 1.00 3.7±0.01ms ? ?/sec
physical_plan_tpch_q20 1.03 2.2±0.04ms ? ?/sec 1.00 2.2±0.00ms ? ?/sec
physical_plan_tpch_q21 1.03 3.0±0.05ms ? ?/sec 1.00 2.9±0.00ms ? ?/sec
physical_plan_tpch_q22 1.03 1554.5±12.57µs ? ?/sec 1.00 1511.5±3.46µs ? ?/sec
physical_plan_tpch_q3 1.01 1916.1±20.66µs ? ?/sec 1.00 1904.2±2.44µs ? ?/sec
physical_plan_tpch_q4 1.01 1237.5±13.85µs ? ?/sec 1.00 1227.7±2.16µs ? ?/sec
physical_plan_tpch_q5 1.02 2.8±0.04ms ? ?/sec 1.00 2.8±0.01ms ? ?/sec
physical_plan_tpch_q6 1.00 621.6±1.79µs ? ?/sec 1.01 629.8±2.82µs ? ?/sec
physical_plan_tpch_q7 1.01 2.9±0.05ms ? ?/sec 1.00 2.9±0.01ms ? ?/sec
physical_plan_tpch_q8 1.04 4.1±0.07ms ? ?/sec 1.00 3.9±0.01ms ? ?/sec
physical_plan_tpch_q9 1.02 2.8±0.04ms ? ?/sec 1.00 2.7±0.00ms ? ?/sec
physical_select_aggregates_from_200 1.01 15.7±0.05ms ? ?/sec 1.00 15.5±0.03ms ? ?/sec
physical_select_all_from_1000 1.00 115.2±0.15ms ? ?/sec 1.00 114.8±0.18ms ? ?/sec
physical_select_one_from_700 1.01 772.7±3.34µs ? ?/sec 1.00 767.9±1.90µs ? ?/sec
physical_sorted_union_order_by_10_int64 1.06 4.5±0.05ms ? ?/sec 1.00 4.2±0.01ms ? ?/sec
physical_sorted_union_order_by_10_uint64 1.05 9.5±0.05ms ? ?/sec 1.00 9.1±0.02ms ? ?/sec
physical_sorted_union_order_by_50_int64 1.14 109.3±0.61ms ? ?/sec 1.00 95.9±0.26ms ? ?/sec
physical_sorted_union_order_by_50_uint64 1.07 426.1±2.28ms ? ?/sec 1.00 398.5±1.59ms ? ?/sec
physical_theta_join_consider_sort 1.01 1078.2±2.93µs ? ?/sec 1.00 1070.2±3.22µs ? ?/sec
physical_unnest_to_join 1.02 640.4±1.90µs ? ?/sec 1.00 627.6±1.62µs ? ?/sec
physical_window_function_partition_by_12_on_values 1.01 721.5±2.06µs ? ?/sec 1.00 717.3±1.65µs ? ?/sec
physical_window_function_partition_by_30_on_values 1.00 1429.4±4.41µs ? ?/sec 1.00 1431.1±6.52µs ? ?/sec
physical_window_function_partition_by_4_on_values 1.01 441.0±1.23µs ? ?/sec 1.00 436.9±1.04µs ? ?/sec
physical_window_function_partition_by_7_on_values 1.01 544.4±1.55µs ? ?/sec 1.00 539.1±1.52µs ? ?/sec
physical_window_function_partition_by_8_on_values 1.01 585.3±2.71µs ? ?/sec 1.00 580.2±1.35µs ? ?/sec
with_param_values_many_columns 1.00 428.5±2.60µs ? ?/sec 1.00 427.6±2.33µs ? ?/sec

Resource Usage

sql_planner — base (merge-base)

MetricValue
Wall time2145.5s
Peak memory127.3 MiB
Avg memory72.5 MiB
CPU user1884.4s
CPU sys1.4s
Peak spill0 B

sql_planner — branch

MetricValue
Wall time2385.5s
Peak memory130.4 MiB
Avg memory67.7 MiB
CPU user1894.5s
CPU sys1.5s
Peak spill0 B

File an issue against this benchmark runner

@Dandandan
Dandandan enabled auto-merge August 15, 2026 12:49
@Dandandan

Copy link
Copy Markdown
Contributor

Amazing

@Dandandan
Dandandan added this pull request to the merge queueAug 15, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 77.27273% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.19%. Comparing base (ec110ce) to head (eb2cdf3).
⚠️ Report is 8 commits behind head on main.

Files with missing linesPatch %Lines
datafusion/physical-plan/src/union.rs77.27%0 Missing and 5 partials ⚠️
Additional details and impacted files
@@ Coverage Diff @@## main #24389 +/- ##
==========================================
- Coverage 81.19% 81.19% -0.01% 
==========================================
Files 1110 1110 Lines 388618 388772 +154 Branches 388618 388772 +154 ==========================================
+ Hits 315531 315648 +117 - Misses 54507 54529 +22 - Partials 18580 18595 +15 

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

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

Merged via the queue into apache:main with commit 47794ffAug 15, 2026
54 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performanceMake DataFusion fasterphysical-planChanges to the physical-plan crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@reidkaufmann@alamb@adriangbot@Dandandan@codecov-commenter