Skip to content

Check the final physical plan in the planner and name the rule that broke it - #26461

Open
jayzhan211 wants to merge 1 commit into
apache:mainfrom
jayzhan211:planner-final-plan-check
Open

jayzhan211 wants to merge 1 commit into
apache:mainfrom
jayzhan211:planner-final-plan-check

Conversation

@jayzhan211

@jayzhan211 jayzhan211 commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Related: #26171 (option 3), #26351, #26360, #25688.

Rationale for this change

SanityCheckPlan is the last rule in PhysicalOptimizer::new(), so rules appended with SessionStateBuilder::with_physical_optimizer_rule run after it and are never checked. On main, an appended rule that removes a window's sort silently returns wrong row_number() values. Custom pipelines have to keep the rule last by hand, and a custom list without it runs plans whose requirements do not hold. When the check does fail, the error only says SanityCheckPlan, so finding the rule that broke the plan has needed a manual bisect each time (for example #26391, #17077, #25921).

@alamb suggested this change in the review of #26107: remove SanityCheckPlan as an optimizer pass and always run it after the optimizer is done (comment).

#26171 agreed (option 3) that a custom pipeline must keep the plan valid, while optimization coverage is not guaranteed. This PR makes that validity part checked for every pipeline. The review on #26360 asked for the same shape: one rule, EnsureRequirements, makes the plan valid, and every later rule keeps it valid.

What changes are included in this PR?

  • SanityCheckPlan leaves the default rule list. DefaultPhysicalPlanner::optimize_physical_plan runs the same check (unbounded inputs, ordering, distribution, check_invariants(Executable)) after the last rule, including appended rules. It replaces the planner's own InvariantChecker(Executable) walk, which SanityCheckPlan repeated.

  • The planner keeps the plan after each rule (one Arc per rule). When the ordering or distribution requirements fail, the error names the rule that broke them:

    SanityCheckPlan: order and distribution requirements stopped holding after physical optimizer rule 'ProjectionPushdown'
    caused by
    Error during planning: Plan: [...] does not satisfy order requirements: [...]
    

    or, when the plan was already invalid as EnsureRequirements produced it:

    SanityCheckPlan: the plan produced by physical optimizer rule 'EnsureRequirements' does not satisfy the order and distribution requirements
    

    Plans before EnsureRequirements need not satisfy the requirements, so only plans from its last run onwards are searched. The rule is recognized by its name; a separate enforcement phase (feat: run physical requirement enforcement first, as a PhysicalAnalyzer phase #25688) would give a cleaner boundary. Errors about unbounded inputs keep the plain SanityCheckPlan context, so existing messages do not change.

  • sanity_checker exposes check_plan_tree_sanity, check_input_requirements and input_requirements_hold, which the planner uses.

  • The upgrade guide, the optimizer rule reference and explain.slt are updated.

What is the testing strategy for this PR?

  • sanity_checker.rs: a rule appended after the default rules that removes sorts is reported by name, both with the default list and with a custom list; a list without EnsureRequirements reports that no rule produced a valid plan; the default list passes.
  • memory_limit/mod.rs: the two sort merge join tests ran a SortMergeJoinExec over unsorted streams through a custom rule list without EnsureRequirements. They now sort the generated data by the join keys and declare that order, so the plan is valid and the tests still measure the join's memory use.
  • The extended workspace suite passes.

Are there any user-facing changes?

  • Plans produced by rules added with with_physical_optimizer_rule, or by a custom rule list, are now checked. A plan whose requirements do not hold, such as a sort merge join over unsorted input, fails to plan instead of running and possibly returning wrong results.
  • PhysicalOptimizer::new() no longer contains SanityCheckPlan, and EXPLAIN VERBOSE no longer prints physical_plan after SanityCheckPlan. Code that looks the rule up in the default list no longer finds it. SanityCheckPlan itself remains available.
  • Errors for broken ordering or distribution requirements name the rule that broke them.

This changes the public behavior of the default rule list, so it needs the api change label.

@github-actions github-actions Bot added documentation Improvements or additions to documentation optimizer Optimizer rules core Core DataFusion crate sqllogictest SQL Logic Tests (.slt) labels Oct 18, 2026
@jayzhan211 jayzhan211 added the api change Changes the API exposed to users of the crate label Oct 18, 2026
@jayzhan211
jayzhan211 marked this pull request as ready for review October 18, 2026 03:14
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.91525% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.90%. Comparing base (290ad15) to head (2689cbb).

Files with missing lines Patch % Lines
datafusion/core/src/physical_planner.rs 91.89% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main   #26461   +/-   ##
=======================================
  Coverage   82.89%   82.90%           
=======================================
  Files        1154     1154           
  Lines      457656   457711   +55     
  Branches   457656   457711   +55     
=======================================
+ Hits       379391   379450   +59     
+ Misses      55261    55252    -9     
- Partials    23004    23009    +5     

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

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

@2010YOUY01

Copy link
Copy Markdown
Contributor

Thank you, I have a quick look and I think its overall beneficial. Will have a in-depth review after this PR getting some other +1s.

Specifically, I think the benefits is prevent internal tests or simple extensions from building invalid optimizer pipeline; but for more advanced extension (that overrides sanity check), we might need additional API to set a custom sanity checker.

@alamb alamb 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.

I quickly looked at this and it seems like a good idea. I will try and find more time to review later on.

My only concern is plan speed -- I will run some planning benchmarks to check

| 19 | `EnsureCooperative` | - | Wraps non-cooperative plan parts so long-running tasks yield fairly. |
| 20 | `FilterPushdown(Post)` | post-optimization phase | Pushes dynamic filters at the end of optimization, after plan references stop moving. |
| 21 | `SanityCheckPlan` | - | Validates that the final physical plan meets ordering, distribution, and infinite-input safety requirements. |
After the last rule, including any rule added by the user, the physical planner

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 feel like this document is outdated and redundand and hard to find -- maybe as a follow on PR we can fold it into the documentation in #26351

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.

TIL about this document 🤯

// given query plan; i.e. it only acts as a final
// gatekeeping rule.
Arc::new(SanityCheckPlan::new()),
// There is no `SanityCheckPlan` rule at the end of this list. The

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.

how about we deprecate SanityCheckplan rule so it is clearer we intend to remove it

@alamb

alamb commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

run benchmark sql_planner

1 similar comment
@alamb

alamb commented Oct 18, 2026

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-c6250436998-3565-wf6gk 6.12.94+ #1 SMP Fri Aug 21 08:00:16 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 planner-final-plan-check (2689cbb) to 290ad15 (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 running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c6250437807-3566-6xl96 6.12.94+ #1 SMP Fri Aug 21 08:00:16 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 planner-final-plan-check (2689cbb) to 290ad15 (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 planner-final-plan-check (2689cbb) to 290ad15 (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                                    planner-final-plan-check
-----                                                 ----                                    ------------------------
logical_aggregate_with_join                           1.00    345.2±1.80µs        ? ?/sec     1.00    344.1±2.25µs        ? ?/sec
logical_correlated_subquery_exists                    1.01    206.3±0.75µs        ? ?/sec     1.00    205.0±1.41µs        ? ?/sec
logical_correlated_subquery_in                        1.02    210.1±1.50µs        ? ?/sec     1.00    205.8±1.66µs        ? ?/sec
logical_distinct_many_columns                         1.01    291.8±1.48µs        ? ?/sec     1.00    287.8±1.19µs        ? ?/sec
logical_join_4_with_agg_and_filter                    1.00    193.3±1.01µs        ? ?/sec     1.00    192.9±2.53µs        ? ?/sec
logical_join_8_with_agg_sort_limit                    1.01    341.5±1.48µs        ? ?/sec     1.00    337.7±1.90µs        ? ?/sec
logical_join_chain_16                                 1.00    615.7±2.88µs        ? ?/sec     1.00    612.7±1.68µs        ? ?/sec
logical_join_chain_4                                  1.03     75.3±0.34µs        ? ?/sec     1.00     73.1±0.25µs        ? ?/sec
logical_join_chain_8                                  1.01    199.5±0.56µs        ? ?/sec     1.00    198.3±0.66µs        ? ?/sec
logical_multiple_subqueries                           1.02    394.7±1.95µs        ? ?/sec     1.00    387.7±1.35µs        ? ?/sec
logical_nested_cte_4_levels                           1.01    196.6±1.59µs        ? ?/sec     1.00    194.9±1.07µs        ? ?/sec
logical_plan_struct_join_agg_sort                     1.05    125.2±0.52µs        ? ?/sec     1.00    119.7±0.93µs        ? ?/sec
logical_plan_tpcds_all                                1.01     73.9±1.09ms        ? ?/sec     1.00     73.4±0.44ms        ? ?/sec
logical_plan_tpch_all                                 1.02      5.3±0.05ms        ? ?/sec     1.00      5.2±0.03ms        ? ?/sec
logical_scalar_subquery                               1.01    217.1±1.16µs        ? ?/sec     1.00    213.9±0.74µs        ? ?/sec
logical_select_all_from_1000                          1.00      6.8±0.02ms        ? ?/sec     1.01      6.9±0.09ms        ? ?/sec
logical_select_one_from_700                           1.00    228.5±1.46µs        ? ?/sec     1.01    230.9±1.94µs        ? ?/sec
logical_trivial_join_high_numbered_columns            1.00    205.8±1.28µs        ? ?/sec     1.01    208.5±1.23µs        ? ?/sec
logical_trivial_join_low_numbered_columns             1.00    194.9±1.28µs        ? ?/sec     1.01    196.8±1.13µs        ? ?/sec
logical_union_4_branches                              1.01    308.6±2.04µs        ? ?/sec     1.00    306.3±1.69µs        ? ?/sec
logical_union_8_branches                              1.00    620.9±2.79µs        ? ?/sec     1.01    627.2±6.31µs        ? ?/sec
logical_wide_aggregate_1000_exprs                     1.01     42.6±0.27ms        ? ?/sec     1.00     42.1±0.22ms        ? ?/sec
logical_wide_aggregate_100_exprs                      1.00  1559.8±10.77µs        ? ?/sec     1.00   1557.0±9.29µs        ? ?/sec
logical_wide_case_50_exprs                            1.00  1718.9±14.38µs        ? ?/sec     1.00   1713.6±4.99µs        ? ?/sec
logical_wide_filter_200_predicates                    1.00  1308.1±12.84µs        ? ?/sec     1.00   1301.7±5.19µs        ? ?/sec
logical_wide_filter_50_predicates                     1.01    341.8±1.79µs        ? ?/sec     1.00    339.3±1.16µs        ? ?/sec
optimizer_correlated_exists                           1.00    217.4±1.25µs        ? ?/sec     1.01    218.7±1.17µs        ? ?/sec
optimizer_join_4_with_agg_filter                      1.00    393.9±1.91µs        ? ?/sec     1.03    403.8±1.80µs        ? ?/sec
optimizer_join_chain_4                                1.00    154.0±0.31µs        ? ?/sec     1.01    156.2±0.31µs        ? ?/sec
optimizer_join_chain_8                                1.01    537.3±2.32µs        ? ?/sec     1.00    533.9±0.79µs        ? ?/sec
optimizer_select_all_from_1000                        1.00      6.8±0.02ms        ? ?/sec     1.00      6.8±0.02ms        ? ?/sec
optimizer_select_one_from_700                         1.00    239.8±2.79µs        ? ?/sec     1.01    243.3±0.74µs        ? ?/sec
optimizer_tpcds_all                                   1.01    254.5±1.85ms        ? ?/sec     1.00    252.7±1.01ms        ? ?/sec
optimizer_tpch_all                                    1.00     15.4±0.08ms        ? ?/sec     1.00     15.4±0.09ms        ? ?/sec
optimizer_wide_aggregate_100                          1.00   1751.6±4.11µs        ? ?/sec     1.00   1754.1±3.23µs        ? ?/sec
optimizer_wide_filter_200                             1.02      4.1±0.04ms        ? ?/sec     1.00      4.0±0.02ms        ? ?/sec
physical_intersection                                 1.00    510.1±2.04µs        ? ?/sec     1.00    509.2±2.72µs        ? ?/sec
physical_join_consider_sort                           1.00    951.2±2.27µs        ? ?/sec     1.03   981.9±10.35µs        ? ?/sec
physical_join_distinct                                1.00    187.1±1.20µs        ? ?/sec     1.02    190.3±1.33µs        ? ?/sec
physical_many_self_joins                              1.00      7.4±0.04ms        ? ?/sec     1.02      7.5±0.04ms        ? ?/sec
physical_plan_clickbench_all                          1.06    154.2±9.17ms        ? ?/sec     1.00    145.5±4.13ms        ? ?/sec
physical_plan_clickbench_q1                           1.00  1380.1±123.75µs        ? ?/sec    1.05  1453.9±125.83µs        ? ?/sec
physical_plan_clickbench_q10                          1.00      2.2±0.18ms        ? ?/sec     1.03      2.2±0.13ms        ? ?/sec
physical_plan_clickbench_q11                          1.02      2.4±0.18ms        ? ?/sec     1.00      2.3±0.19ms        ? ?/sec
physical_plan_clickbench_q12                          1.00      2.4±0.21ms        ? ?/sec     1.10      2.6±0.13ms        ? ?/sec
physical_plan_clickbench_q13                          1.01      2.3±0.15ms        ? ?/sec     1.00      2.3±0.18ms        ? ?/sec
physical_plan_clickbench_q14                          1.00      2.3±0.24ms        ? ?/sec     1.08      2.4±0.23ms        ? ?/sec
physical_plan_clickbench_q15                          1.00      2.4±0.15ms        ? ?/sec     1.03      2.4±0.15ms        ? ?/sec
physical_plan_clickbench_q16                          1.00  1774.4±150.70µs        ? ?/sec    1.05  1860.8±179.56µs        ? ?/sec
physical_plan_clickbench_q17                          1.04      2.0±0.13ms        ? ?/sec     1.00  1933.3±175.72µs        ? ?/sec
physical_plan_clickbench_q18                          1.02  1782.1±175.69µs        ? ?/sec    1.00  1750.3±144.75µs        ? ?/sec
physical_plan_clickbench_q19                          1.00      2.3±0.15ms        ? ?/sec     1.03      2.4±0.13ms        ? ?/sec
physical_plan_clickbench_q2                           1.06      2.0±0.15ms        ? ?/sec     1.00  1916.1±142.65µs        ? ?/sec
physical_plan_clickbench_q20                          1.00  1682.6±125.54µs        ? ?/sec    1.00  1683.6±136.44µs        ? ?/sec
physical_plan_clickbench_q21                          1.00  1916.1±172.65µs        ? ?/sec    1.02  1950.8±189.00µs        ? ?/sec
physical_plan_clickbench_q22                          1.00      2.4±0.18ms        ? ?/sec     1.08      2.6±0.13ms        ? ?/sec
physical_plan_clickbench_q23                          1.00      2.5±0.24ms        ? ?/sec     1.03      2.6±0.19ms        ? ?/sec
physical_plan_clickbench_q24                          1.00      5.3±0.13ms        ? ?/sec     1.04      5.5±0.10ms        ? ?/sec
physical_plan_clickbench_q25                          1.00  1891.0±110.55µs        ? ?/sec    1.23      2.3±0.16ms        ? ?/sec
physical_plan_clickbench_q26                          1.00  1828.1±86.94µs        ? ?/sec     1.17      2.1±0.17ms        ? ?/sec
physical_plan_clickbench_q27                          1.00      2.0±0.13ms        ? ?/sec     1.15      2.3±0.13ms        ? ?/sec
physical_plan_clickbench_q28                          1.00      2.4±0.17ms        ? ?/sec     1.20      2.8±0.19ms        ? ?/sec
physical_plan_clickbench_q29                          1.00      2.5±0.20ms        ? ?/sec     1.16      2.9±0.13ms        ? ?/sec
physical_plan_clickbench_q3                           1.02  1703.8±142.06µs        ? ?/sec    1.00  1664.9±130.39µs        ? ?/sec
physical_plan_clickbench_q30                          1.00     13.0±0.20ms        ? ?/sec     1.00     13.0±0.08ms        ? ?/sec
physical_plan_clickbench_q31                          1.00      2.7±0.12ms        ? ?/sec     1.06      2.9±0.26ms        ? ?/sec
physical_plan_clickbench_q32                          1.00      2.8±0.15ms        ? ?/sec     1.08      3.0±0.12ms        ? ?/sec
physical_plan_clickbench_q33                          1.00      2.3±0.17ms        ? ?/sec     1.12      2.5±0.09ms        ? ?/sec
physical_plan_clickbench_q34                          1.00  1964.3±177.65µs        ? ?/sec    1.20      2.4±0.07ms        ? ?/sec
physical_plan_clickbench_q35                          1.00  1963.2±193.75µs        ? ?/sec    1.24      2.4±0.07ms        ? ?/sec
physical_plan_clickbench_q36                          1.11      2.4±0.20ms        ? ?/sec     1.00      2.2±0.17ms        ? ?/sec
physical_plan_clickbench_q37                          1.11      2.8±0.21ms        ? ?/sec     1.00      2.5±0.12ms        ? ?/sec
physical_plan_clickbench_q38                          1.12      3.0±0.12ms        ? ?/sec     1.00      2.7±0.12ms        ? ?/sec
physical_plan_clickbench_q39                          1.11      3.0±0.17ms        ? ?/sec     1.00      2.7±0.15ms        ? ?/sec
physical_plan_clickbench_q4                           1.00  1545.5±122.98µs        ? ?/sec    1.01  1555.3±106.02µs        ? ?/sec
physical_plan_clickbench_q40                          1.02      3.6±0.24ms        ? ?/sec     1.00      3.5±0.16ms        ? ?/sec
physical_plan_clickbench_q41                          1.04      3.3±0.20ms        ? ?/sec     1.00      3.2±0.18ms        ? ?/sec
physical_plan_clickbench_q42                          1.00      3.3±0.16ms        ? ?/sec     1.00      3.3±0.12ms        ? ?/sec
physical_plan_clickbench_q43                          1.06      3.5±0.20ms        ? ?/sec     1.00      3.3±0.14ms        ? ?/sec
physical_plan_clickbench_q44                          1.07  1661.2±148.35µs        ? ?/sec    1.00  1548.1±66.05µs        ? ?/sec
physical_plan_clickbench_q45                          1.06  1636.1±137.47µs        ? ?/sec    1.00  1540.8±61.29µs        ? ?/sec
physical_plan_clickbench_q46                          1.03  1950.2±145.01µs        ? ?/sec    1.00  1887.6±76.16µs        ? ?/sec
physical_plan_clickbench_q47                          1.11      2.8±0.22ms        ? ?/sec     1.00      2.5±0.15ms        ? ?/sec
physical_plan_clickbench_q48                          1.03      2.8±0.26ms        ? ?/sec     1.00      2.7±0.16ms        ? ?/sec
physical_plan_clickbench_q49                          1.07      3.0±0.18ms        ? ?/sec     1.00      2.8±0.14ms        ? ?/sec
physical_plan_clickbench_q5                           1.02  1688.9±155.08µs        ? ?/sec    1.00  1649.7±123.14µs        ? ?/sec
physical_plan_clickbench_q50                          1.05      3.1±0.14ms        ? ?/sec     1.00      3.0±0.13ms        ? ?/sec
physical_plan_clickbench_q51                          1.09      2.1±0.18ms        ? ?/sec     1.00  1958.8±84.71µs        ? ?/sec
physical_plan_clickbench_q52                          1.04      2.6±0.14ms        ? ?/sec     1.00      2.5±0.15ms        ? ?/sec
physical_plan_clickbench_q53                          1.13      2.0±0.18ms        ? ?/sec     1.00  1800.9±71.02µs        ? ?/sec
physical_plan_clickbench_q54                          1.06  1866.5±183.83µs        ? ?/sec    1.00  1753.5±66.86µs        ? ?/sec
physical_plan_clickbench_q55                          1.06  1750.0±180.27µs        ? ?/sec    1.00  1646.9±57.41µs        ? ?/sec
physical_plan_clickbench_q56                          1.04  1804.6±175.90µs        ? ?/sec    1.00  1738.3±59.00µs        ? ?/sec
physical_plan_clickbench_q57                          1.10      2.0±0.19ms        ? ?/sec     1.00  1831.8±68.96µs        ? ?/sec
physical_plan_clickbench_q58                          1.05      2.5±0.25ms        ? ?/sec     1.00      2.4±0.09ms        ? ?/sec
physical_plan_clickbench_q59                          1.14  1920.2±209.57µs        ? ?/sec    1.00  1689.5±54.47µs        ? ?/sec
physical_plan_clickbench_q6                           1.05  1694.9±135.29µs        ? ?/sec    1.00  1607.5±123.70µs        ? ?/sec
physical_plan_clickbench_q60                          1.05  1824.0±165.86µs        ? ?/sec    1.00  1734.2±76.78µs        ? ?/sec
physical_plan_clickbench_q7                           1.02  1501.2±87.10µs        ? ?/sec     1.00  1477.8±85.55µs        ? ?/sec
physical_plan_clickbench_q8                           1.05      2.1±0.15ms        ? ?/sec     1.00  1966.3±157.97µs        ? ?/sec
physical_plan_clickbench_q9                           1.00      2.0±0.16ms        ? ?/sec     1.04      2.1±0.16ms        ? ?/sec
physical_plan_struct_join_agg_sort                    1.00   1182.7±3.49µs        ? ?/sec     1.08  1280.0±35.54µs        ? ?/sec
physical_plan_tpcds_all                               1.00    603.4±9.46ms        ? ?/sec     1.00    604.3±9.97ms        ? ?/sec
physical_plan_tpch_all                                1.00     43.4±1.65ms        ? ?/sec     1.00     43.4±1.60ms        ? ?/sec
physical_plan_tpch_q1                                 1.00   1368.7±3.57µs        ? ?/sec     1.02  1401.0±27.12µs        ? ?/sec
physical_plan_tpch_q10                                1.00      2.1±0.01ms        ? ?/sec     1.09      2.3±0.07ms        ? ?/sec
physical_plan_tpch_q11                                1.00      2.0±0.01ms        ? ?/sec     1.12      2.3±0.12ms        ? ?/sec
physical_plan_tpch_q12                                1.00   1187.7±4.53µs        ? ?/sec     1.08  1278.2±48.14µs        ? ?/sec
physical_plan_tpch_q13                                1.00    955.6±6.35µs        ? ?/sec     1.02   972.1±14.05µs        ? ?/sec
physical_plan_tpch_q14                                1.00  1238.8±12.34µs        ? ?/sec     1.05  1298.1±30.13µs        ? ?/sec
physical_plan_tpch_q16                                1.00  1556.2±16.85µs        ? ?/sec     1.03  1601.3±48.20µs        ? ?/sec
physical_plan_tpch_q17                                1.00  1563.9±32.25µs        ? ?/sec     1.03  1604.7±57.53µs        ? ?/sec
physical_plan_tpch_q18                                1.00  1796.3±47.55µs        ? ?/sec     1.05  1888.8±77.90µs        ? ?/sec
physical_plan_tpch_q19                                1.00      2.1±0.05ms        ? ?/sec     1.03      2.1±0.09ms        ? ?/sec
physical_plan_tpch_q2                                 1.00      3.2±0.02ms        ? ?/sec     1.08      3.5±0.10ms        ? ?/sec
physical_plan_tpch_q20                                1.00      2.1±0.08ms        ? ?/sec     1.02      2.1±0.11ms        ? ?/sec
physical_plan_tpch_q21                                1.03      2.7±0.08ms        ? ?/sec     1.00      2.6±0.09ms        ? ?/sec
physical_plan_tpch_q22                                1.03  1571.6±65.49µs        ? ?/sec     1.00  1527.4±54.18µs        ? ?/sec
physical_plan_tpch_q3                                 1.00   1590.4±5.61µs        ? ?/sec     1.08  1717.0±65.55µs        ? ?/sec
physical_plan_tpch_q4                                 1.00   1043.9±3.43µs        ? ?/sec     1.02  1064.1±22.65µs        ? ?/sec
physical_plan_tpch_q5                                 1.00      2.1±0.01ms        ? ?/sec     1.07      2.3±0.09ms        ? ?/sec
physical_plan_tpch_q6                                 1.00    578.9±1.89µs        ? ?/sec     1.01    586.1±6.64µs        ? ?/sec
physical_plan_tpch_q7                                 1.00      2.5±0.02ms        ? ?/sec     1.08      2.7±0.12ms        ? ?/sec
physical_plan_tpch_q8                                 1.00      3.3±0.03ms        ? ?/sec     1.10      3.6±0.10ms        ? ?/sec
physical_plan_tpch_q9                                 1.00      2.5±0.01ms        ? ?/sec     1.06      2.6±0.11ms        ? ?/sec
physical_select_aggregates_from_200                   1.00      7.5±0.04ms        ? ?/sec     1.02      7.7±0.04ms        ? ?/sec
physical_select_all_from_1000                         1.00     17.0±0.07ms        ? ?/sec     1.01     17.1±0.08ms        ? ?/sec
physical_select_one_from_700                          1.00    632.6±3.08µs        ? ?/sec     1.02    646.7±3.87µs        ? ?/sec
physical_sorted_union_order_by_10_int64               1.00      3.5±0.01ms        ? ?/sec     1.05      3.7±0.08ms        ? ?/sec
physical_sorted_union_order_by_10_uint64              1.00      6.8±0.05ms        ? ?/sec     1.03      7.1±0.08ms        ? ?/sec
physical_sorted_union_order_by_50_int64               1.00     79.4±0.34ms        ? ?/sec     1.03     82.0±0.99ms        ? ?/sec
physical_sorted_union_order_by_50_uint64              1.00    264.6±1.72ms        ? ?/sec     1.02    269.3±2.56ms        ? ?/sec
physical_theta_join_consider_sort                     1.00    985.3±1.80µs        ? ?/sec     1.02   1001.7±8.27µs        ? ?/sec
physical_unnest_to_join                               1.00    545.4±1.95µs        ? ?/sec     1.00    544.8±3.75µs        ? ?/sec
physical_window_function_partition_by_12_on_values    1.00    629.9±1.79µs        ? ?/sec     1.00    632.3±6.08µs        ? ?/sec
physical_window_function_partition_by_30_on_values    1.00   1187.8±3.71µs        ? ?/sec     1.01   1198.0±8.57µs        ? ?/sec
physical_window_function_partition_by_4_on_values     1.00    385.2±0.78µs        ? ?/sec     1.00    385.5±2.36µs        ? ?/sec
physical_window_function_partition_by_7_on_values     1.00    476.5±1.69µs        ? ?/sec     1.02    485.0±2.01µs        ? ?/sec
physical_window_function_partition_by_8_on_values     1.00    505.5±1.50µs        ? ?/sec     1.00    504.7±2.69µs        ? ?/sec
with_param_values_many_columns                        1.00    370.8±2.38µs        ? ?/sec     1.00    371.3±1.91µs        ? ?/sec

Resource Usage

sql_planner — base (merge-base)

Metric Value
Wall time 2015.4s
Peak memory 142.3 MiB
Avg memory 91.6 MiB
CPU user 1948.7s
CPU sys 1.6s
Peak spill 0 B

sql_planner — branch

Metric Value
Wall time 2055.5s
Peak memory 141.3 MiB
Avg memory 89.4 MiB
CPU user 1945.8s
CPU sys 1.7s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

Comparing planner-final-plan-check (2689cbb) to 290ad15 (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                                   planner-final-plan-check
-----                                                 ----                                   ------------------------
logical_aggregate_with_join                           1.00    344.5±1.66µs        ? ?/sec    1.01    349.3±1.83µs        ? ?/sec
logical_correlated_subquery_exists                    1.00    205.9±0.73µs        ? ?/sec    1.02    209.4±0.67µs        ? ?/sec
logical_correlated_subquery_in                        1.00    209.0±1.40µs        ? ?/sec    1.02    213.7±1.68µs        ? ?/sec
logical_distinct_many_columns                         1.00    290.5±0.90µs        ? ?/sec    1.01    294.5±2.17µs        ? ?/sec
logical_join_4_with_agg_and_filter                    1.00    196.4±0.65µs        ? ?/sec    1.03    202.5±1.27µs        ? ?/sec
logical_join_8_with_agg_sort_limit                    1.00    342.5±1.31µs        ? ?/sec    1.02    350.2±1.11µs        ? ?/sec
logical_join_chain_16                                 1.00    619.2±2.33µs        ? ?/sec    1.01    627.1±2.14µs        ? ?/sec
logical_join_chain_4                                  1.00     77.4±0.44µs        ? ?/sec    1.02     79.2±0.39µs        ? ?/sec
logical_join_chain_8                                  1.00    201.3±0.56µs        ? ?/sec    1.03    207.1±1.71µs        ? ?/sec
logical_multiple_subqueries                           1.00    393.5±1.41µs        ? ?/sec    1.01    398.4±2.00µs        ? ?/sec
logical_nested_cte_4_levels                           1.00    200.0±0.56µs        ? ?/sec    1.00    200.3±0.71µs        ? ?/sec
logical_plan_struct_join_agg_sort                     1.00    126.6±0.90µs        ? ?/sec    1.06    134.1±0.91µs        ? ?/sec
logical_plan_tpcds_all                                1.00     71.6±0.13ms        ? ?/sec    1.01     72.2±0.12ms        ? ?/sec
logical_plan_tpch_all                                 1.00      5.2±0.02ms        ? ?/sec    1.02      5.3±0.01ms        ? ?/sec
logical_scalar_subquery                               1.00    216.5±0.87µs        ? ?/sec    1.02    221.2±1.01µs        ? ?/sec
logical_select_all_from_1000                          1.00      6.8±0.01ms        ? ?/sec    1.01      6.9±0.03ms        ? ?/sec
logical_select_one_from_700                           1.00    225.6±1.65µs        ? ?/sec    1.02    230.3±1.73µs        ? ?/sec
logical_trivial_join_high_numbered_columns            1.00    207.4±1.32µs        ? ?/sec    1.02    210.9±1.17µs        ? ?/sec
logical_trivial_join_low_numbered_columns             1.00    196.8±1.41µs        ? ?/sec    1.01    199.1±1.15µs        ? ?/sec
logical_union_4_branches                              1.00    310.6±1.31µs        ? ?/sec    1.01    315.1±1.52µs        ? ?/sec
logical_union_8_branches                              1.00    632.6±7.17µs        ? ?/sec    1.01    640.1±9.22µs        ? ?/sec
logical_wide_aggregate_1000_exprs                     1.01     41.6±0.17ms        ? ?/sec    1.00     41.3±0.15ms        ? ?/sec
logical_wide_aggregate_100_exprs                      1.00   1537.9±3.49µs        ? ?/sec    1.00   1537.8±3.64µs        ? ?/sec
logical_wide_case_50_exprs                            1.00   1695.6±5.93µs        ? ?/sec    1.01   1711.0±3.96µs        ? ?/sec
logical_wide_filter_200_predicates                    1.00   1300.8±4.88µs        ? ?/sec    1.00   1305.7±5.53µs        ? ?/sec
logical_wide_filter_50_predicates                     1.00    341.2±1.71µs        ? ?/sec    1.01    345.9±3.82µs        ? ?/sec
optimizer_correlated_exists                           1.00    217.5±0.55µs        ? ?/sec    1.00    217.9±0.61µs        ? ?/sec
optimizer_join_4_with_agg_filter                      1.00    391.3±0.90µs        ? ?/sec    1.00    393.2±1.07µs        ? ?/sec
optimizer_join_chain_4                                1.00    154.4±0.28µs        ? ?/sec    1.01    155.4±0.26µs        ? ?/sec
optimizer_join_chain_8                                1.00    528.6±1.21µs        ? ?/sec    1.01    531.3±0.97µs        ? ?/sec
optimizer_select_all_from_1000                        1.00      6.7±0.02ms        ? ?/sec    1.00      6.8±0.02ms        ? ?/sec
optimizer_select_one_from_700                         1.00    235.8±0.78µs        ? ?/sec    1.03    242.7±0.95µs        ? ?/sec
optimizer_tpcds_all                                   1.00    247.9±0.62ms        ? ?/sec    1.00    246.9±0.21ms        ? ?/sec
optimizer_tpch_all                                    1.00     14.9±0.04ms        ? ?/sec    1.00     14.9±0.03ms        ? ?/sec
optimizer_wide_aggregate_100                          1.00   1739.3±2.69µs        ? ?/sec    1.00   1741.7±1.56µs        ? ?/sec
optimizer_wide_filter_200                             1.00      4.0±0.01ms        ? ?/sec    1.00      4.0±0.01ms        ? ?/sec
physical_intersection                                 1.00    507.6±2.38µs        ? ?/sec    1.01    512.2±2.83µs        ? ?/sec
physical_join_consider_sort                           1.00    951.2±1.99µs        ? ?/sec    1.00    950.9±2.17µs        ? ?/sec
physical_join_distinct                                1.00    189.7±1.29µs        ? ?/sec    1.02    192.6±1.10µs        ? ?/sec
physical_many_self_joins                              1.00      7.2±0.02ms        ? ?/sec    1.01      7.3±0.01ms        ? ?/sec
physical_plan_clickbench_all                          1.00    128.6±0.54ms        ? ?/sec    1.00    128.8±0.29ms        ? ?/sec
physical_plan_clickbench_q1                           1.00  1274.1±11.46µs        ? ?/sec    1.00   1273.4±8.45µs        ? ?/sec
physical_plan_clickbench_q10                          1.00   1825.7±5.18µs        ? ?/sec    1.00   1816.7±5.52µs        ? ?/sec
physical_plan_clickbench_q11                          1.00   1962.6±5.43µs        ? ?/sec    1.01  1973.2±11.47µs        ? ?/sec
physical_plan_clickbench_q12                          1.00      2.1±0.01ms        ? ?/sec    1.01      2.1±0.02ms        ? ?/sec
physical_plan_clickbench_q13                          1.00   1857.0±8.20µs        ? ?/sec    1.02  1896.4±37.69µs        ? ?/sec
physical_plan_clickbench_q14                          1.00   1992.3±8.12µs        ? ?/sec    1.03      2.1±0.02ms        ? ?/sec
physical_plan_clickbench_q15                          1.00   1908.5±4.99µs        ? ?/sec    1.02  1938.4±20.41µs        ? ?/sec
physical_plan_clickbench_q16                          1.00  1640.6±11.74µs        ? ?/sec    1.00  1644.6±11.55µs        ? ?/sec
physical_plan_clickbench_q17                          1.00   1684.3±5.62µs        ? ?/sec    1.01   1698.7±8.78µs        ? ?/sec
physical_plan_clickbench_q18                          1.00   1523.7±4.88µs        ? ?/sec    1.02   1561.1±6.62µs        ? ?/sec
physical_plan_clickbench_q19                          1.00   1872.5±4.70µs        ? ?/sec    1.04  1943.2±21.76µs        ? ?/sec
physical_plan_clickbench_q2                           1.00   1623.6±4.55µs        ? ?/sec    1.00   1624.6±6.52µs        ? ?/sec
physical_plan_clickbench_q20                          1.00   1434.8±4.73µs        ? ?/sec    1.03  1480.3±11.00µs        ? ?/sec
physical_plan_clickbench_q21                          1.00   1629.2±5.73µs        ? ?/sec    1.00   1624.3±5.10µs        ? ?/sec
physical_plan_clickbench_q22                          1.01   1973.3±8.68µs        ? ?/sec    1.00  1951.3±10.05µs        ? ?/sec
physical_plan_clickbench_q23                          1.00      2.1±0.01ms        ? ?/sec    1.00      2.1±0.02ms        ? ?/sec
physical_plan_clickbench_q24                          1.01      4.8±0.02ms        ? ?/sec    1.00      4.7±0.01ms        ? ?/sec
physical_plan_clickbench_q25                          1.00   1723.3±8.18µs        ? ?/sec    1.01   1747.6±5.54µs        ? ?/sec
physical_plan_clickbench_q26                          1.00   1612.9±8.31µs        ? ?/sec    1.00   1615.6±8.06µs        ? ?/sec
physical_plan_clickbench_q27                          1.00   1766.2±5.63µs        ? ?/sec    1.01   1777.3±9.93µs        ? ?/sec
physical_plan_clickbench_q28                          1.00      2.1±0.00ms        ? ?/sec    1.01      2.1±0.01ms        ? ?/sec
physical_plan_clickbench_q29                          1.00      2.2±0.01ms        ? ?/sec    1.00      2.2±0.01ms        ? ?/sec
physical_plan_clickbench_q3                           1.00   1519.1±5.28µs        ? ?/sec    1.00   1511.6±4.31µs        ? ?/sec
physical_plan_clickbench_q30                          1.00     12.3±0.04ms        ? ?/sec    1.00     12.4±0.04ms        ? ?/sec
physical_plan_clickbench_q31                          1.00      2.2±0.01ms        ? ?/sec    1.02      2.2±0.01ms        ? ?/sec
physical_plan_clickbench_q32                          1.00      2.2±0.01ms        ? ?/sec    1.01      2.2±0.01ms        ? ?/sec
physical_plan_clickbench_q33                          1.00   1812.1±4.89µs        ? ?/sec    1.03   1860.2±4.76µs        ? ?/sec
physical_plan_clickbench_q34                          1.00   1654.3±4.00µs        ? ?/sec    1.00  1651.3±11.60µs        ? ?/sec
physical_plan_clickbench_q35                          1.00   1677.0±4.16µs        ? ?/sec    1.02   1702.2±5.87µs        ? ?/sec
physical_plan_clickbench_q36                          1.01   1910.1±4.23µs        ? ?/sec    1.00   1898.2±5.57µs        ? ?/sec
physical_plan_clickbench_q37                          1.00      2.3±0.00ms        ? ?/sec    1.00      2.3±0.01ms        ? ?/sec
physical_plan_clickbench_q38                          1.00      2.3±0.01ms        ? ?/sec    1.01      2.4±0.01ms        ? ?/sec
physical_plan_clickbench_q39                          1.00      2.4±0.02ms        ? ?/sec    1.01      2.5±0.01ms        ? ?/sec
physical_plan_clickbench_q4                           1.02   1374.4±3.56µs        ? ?/sec    1.00   1348.0±4.01µs        ? ?/sec
physical_plan_clickbench_q40                          1.03      3.1±0.02ms        ? ?/sec    1.00      3.0±0.01ms        ? ?/sec
physical_plan_clickbench_q41                          1.00      2.7±0.02ms        ? ?/sec    1.00      2.7±0.01ms        ? ?/sec
physical_plan_clickbench_q42                          1.01      2.7±0.02ms        ? ?/sec    1.00      2.7±0.01ms        ? ?/sec
physical_plan_clickbench_q43                          1.01      2.9±0.05ms        ? ?/sec    1.00      2.9±0.01ms        ? ?/sec
physical_plan_clickbench_q44                          1.02   1460.8±7.44µs        ? ?/sec    1.00   1432.4±6.25µs        ? ?/sec
physical_plan_clickbench_q45                          1.02   1466.9±6.83µs        ? ?/sec    1.00   1440.4±3.53µs        ? ?/sec
physical_plan_clickbench_q46                          1.00   1693.0±6.96µs        ? ?/sec    1.00   1691.5±7.59µs        ? ?/sec
physical_plan_clickbench_q47                          1.01      2.3±0.01ms        ? ?/sec    1.00      2.3±0.01ms        ? ?/sec
physical_plan_clickbench_q48                          1.00      2.4±0.01ms        ? ?/sec    1.01      2.4±0.01ms        ? ?/sec
physical_plan_clickbench_q49                          1.00      2.4±0.01ms        ? ?/sec    1.01      2.4±0.01ms        ? ?/sec
physical_plan_clickbench_q5                           1.00   1478.2±5.03µs        ? ?/sec    1.00   1478.5±4.42µs        ? ?/sec
physical_plan_clickbench_q50                          1.00      2.5±0.01ms        ? ?/sec    1.02      2.6±0.01ms        ? ?/sec
physical_plan_clickbench_q51                          1.00   1789.2±4.80µs        ? ?/sec    1.02  1823.3±19.13µs        ? ?/sec
physical_plan_clickbench_q52                          1.01      2.3±0.01ms        ? ?/sec    1.00      2.2±0.01ms        ? ?/sec
physical_plan_clickbench_q53                          1.01   1641.8±7.83µs        ? ?/sec    1.00   1625.3±4.04µs        ? ?/sec
physical_plan_clickbench_q54                          1.00   1653.2±9.93µs        ? ?/sec    1.00   1650.3±5.79µs        ? ?/sec
physical_plan_clickbench_q55                          1.01   1583.1±9.11µs        ? ?/sec    1.00   1570.7±4.15µs        ? ?/sec
physical_plan_clickbench_q56                          1.01  1588.7±13.20µs        ? ?/sec    1.00   1576.8±4.22µs        ? ?/sec
physical_plan_clickbench_q57                          1.00   1694.5±6.52µs        ? ?/sec    1.00   1695.4±5.74µs        ? ?/sec
physical_plan_clickbench_q58                          1.01      2.1±0.01ms        ? ?/sec    1.00      2.1±0.01ms        ? ?/sec
physical_plan_clickbench_q59                          1.02   1601.9±6.11µs        ? ?/sec    1.00   1576.7±4.43µs        ? ?/sec
physical_plan_clickbench_q6                           1.00   1465.9±6.46µs        ? ?/sec    1.01   1480.7±4.09µs        ? ?/sec
physical_plan_clickbench_q60                          1.00   1576.7±6.15µs        ? ?/sec    1.01   1592.5±4.77µs        ? ?/sec
physical_plan_clickbench_q7                           1.02   1351.0±4.24µs        ? ?/sec    1.00   1325.5±4.10µs        ? ?/sec
physical_plan_clickbench_q8                           1.00   1817.5±8.32µs        ? ?/sec    1.01   1833.4±6.52µs        ? ?/sec
physical_plan_clickbench_q9                           1.00   1747.2±4.77µs        ? ?/sec    1.01   1759.6±5.22µs        ? ?/sec
physical_plan_struct_join_agg_sort                    1.00   1191.0±2.32µs        ? ?/sec    1.00   1189.8±7.65µs        ? ?/sec
physical_plan_tpcds_all                               1.00    556.6±0.45ms        ? ?/sec    1.01    561.7±3.32ms        ? ?/sec
physical_plan_tpch_all                                1.00     39.1±0.05ms        ? ?/sec    1.02     39.8±0.06ms        ? ?/sec
physical_plan_tpch_q1                                 1.00   1361.2±1.99µs        ? ?/sec    1.01   1368.2±2.39µs        ? ?/sec
physical_plan_tpch_q10                                1.00      2.1±0.00ms        ? ?/sec    1.02      2.1±0.00ms        ? ?/sec
physical_plan_tpch_q11                                1.00      2.0±0.00ms        ? ?/sec    1.02      2.1±0.00ms        ? ?/sec
physical_plan_tpch_q12                                1.00   1196.2±1.75µs        ? ?/sec    1.01  1211.3±13.07µs        ? ?/sec
physical_plan_tpch_q13                                1.00    954.6±5.16µs        ? ?/sec    1.01    967.5±2.38µs        ? ?/sec
physical_plan_tpch_q14                                1.00  1251.7±10.12µs        ? ?/sec    1.00   1247.9±2.02µs        ? ?/sec
physical_plan_tpch_q16                                1.00   1507.9±3.04µs        ? ?/sec    1.02  1530.6±10.10µs        ? ?/sec
physical_plan_tpch_q17                                1.00   1509.7±3.87µs        ? ?/sec    1.01   1528.0±2.76µs        ? ?/sec
physical_plan_tpch_q18                                1.00   1696.9±3.16µs        ? ?/sec    1.02   1735.4±4.34µs        ? ?/sec
physical_plan_tpch_q19                                1.00   1959.2±2.66µs        ? ?/sec    1.00   1958.4±2.79µs        ? ?/sec
physical_plan_tpch_q2                                 1.00      3.2±0.00ms        ? ?/sec    1.00      3.2±0.00ms        ? ?/sec
physical_plan_tpch_q20                                1.00   1940.1±2.28µs        ? ?/sec    1.02   1971.3±4.06µs        ? ?/sec
physical_plan_tpch_q21                                1.00      2.4±0.00ms        ? ?/sec    1.01      2.4±0.00ms        ? ?/sec
physical_plan_tpch_q22                                1.00   1446.9±3.80µs        ? ?/sec    1.03   1487.9±3.08µs        ? ?/sec
physical_plan_tpch_q3                                 1.00   1593.3±2.68µs        ? ?/sec    1.00   1601.2±2.14µs        ? ?/sec
physical_plan_tpch_q4                                 1.00   1035.2±1.67µs        ? ?/sec    1.03   1062.7±2.46µs        ? ?/sec
physical_plan_tpch_q5                                 1.00      2.1±0.01ms        ? ?/sec    1.00      2.1±0.00ms        ? ?/sec
physical_plan_tpch_q6                                 1.00    587.6±1.38µs        ? ?/sec    1.01    592.5±1.58µs        ? ?/sec
physical_plan_tpch_q7                                 1.00      2.4±0.00ms        ? ?/sec    1.01      2.5±0.00ms        ? ?/sec
physical_plan_tpch_q8                                 1.00      3.3±0.00ms        ? ?/sec    1.01      3.3±0.00ms        ? ?/sec
physical_plan_tpch_q9                                 1.00      2.4±0.00ms        ? ?/sec    1.01      2.5±0.00ms        ? ?/sec
physical_select_aggregates_from_200                   1.00      7.4±0.01ms        ? ?/sec    1.00      7.4±0.01ms        ? ?/sec
physical_select_all_from_1000                         1.00     16.8±0.04ms        ? ?/sec    1.01     16.9±0.08ms        ? ?/sec
physical_select_one_from_700                          1.00    632.8±3.15µs        ? ?/sec    1.02    646.8±4.32µs        ? ?/sec
physical_sorted_union_order_by_10_int64               1.00      3.5±0.00ms        ? ?/sec    1.00      3.5±0.00ms        ? ?/sec
physical_sorted_union_order_by_10_uint64              1.00      6.7±0.01ms        ? ?/sec    1.00      6.7±0.01ms        ? ?/sec
physical_sorted_union_order_by_50_int64               1.00     77.7±0.20ms        ? ?/sec    1.01     78.6±0.21ms        ? ?/sec
physical_sorted_union_order_by_50_uint64              1.00    254.2±0.53ms        ? ?/sec    1.00    253.5±1.53ms        ? ?/sec
physical_theta_join_consider_sort                     1.00    978.1±4.09µs        ? ?/sec    1.00    976.6±2.67µs        ? ?/sec
physical_unnest_to_join                               1.00    549.2±2.07µs        ? ?/sec    1.00    547.0±1.36µs        ? ?/sec
physical_window_function_partition_by_12_on_values    1.01    625.9±0.98µs        ? ?/sec    1.00    619.2±2.09µs        ? ?/sec
physical_window_function_partition_by_30_on_values    1.02   1203.9±1.57µs        ? ?/sec    1.00   1184.8±2.07µs        ? ?/sec
physical_window_function_partition_by_4_on_values     1.01    395.3±0.84µs        ? ?/sec    1.00    390.9±3.50µs        ? ?/sec
physical_window_function_partition_by_7_on_values     1.01    483.8±0.84µs        ? ?/sec    1.00    478.3±0.90µs        ? ?/sec
physical_window_function_partition_by_8_on_values     1.03    513.6±4.69µs        ? ?/sec    1.00    500.7±0.99µs        ? ?/sec
with_param_values_many_columns                        1.00    367.3±1.41µs        ? ?/sec    1.01    371.2±1.62µs        ? ?/sec

Resource Usage

sql_planner — base (merge-base)

Metric Value
Wall time 2070.5s
Peak memory 137.6 MiB
Avg memory 87.5 MiB
CPU user 1977.0s
CPU sys 1.5s
Peak spill 0 B

sql_planner — branch

Metric Value
Wall time 2055.5s
Peak memory 141.8 MiB
Avg memory 90.8 MiB
CPU user 1985.5s
CPU sys 1.5s
Peak spill 0 B

File an issue against this benchmark runner

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

Labels

api change Changes the API exposed to users of the crate core Core DataFusion crate documentation Improvements or additions to documentation optimizer Optimizer rules sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Physical plan check does not cover appended optimizer rules and does not name the rule that broke the plan

5 participants