Skip to content

feat: add a physical analyzer phase that hands the optimizer a valid plan - #26757

Draft
jayzhan211 wants to merge 9 commits into
apache:mainfrom
jayzhan211:physical-analyzer-core
Draft

jayzhan211 wants to merge 9 commits into
apache:mainfrom
jayzhan211:physical-analyzer-core

Conversation

@jayzhan211

@jayzhan211 jayzhan211 commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

Physical optimizer rules run in one hand-ordered list, and the plan is only valid after EnsureRequirements. A custom rule list that drops or moves EnsureRequirements gets a plan that cannot run, and a rule that breaks a requirement has no shared way to repair it.

This PR splits physical planning into a PhysicalAnalyzer phase that makes the plan executable, as the logical analyzer makes a logical plan valid, and the PhysicalOptimizer phase that makes it faster. The analyzer phase ends with EnsureRequirements, so every PhysicalOptimizerRule receives a valid plan and must return one. Some performance rules, such as WindowTopN and the statistics-based choices in join_selection, still have to run before EnsureRequirements; they run in the analyzer list through RunInAnalyzer. Every built-in rule is still a PhysicalOptimizerRule, so for now the correctness rules run through RunInAnalyzer too. Spark and Trino also split their rules at enforcement, by comment; here the split is two lists, checked in debug builds.

The default lists keep today's rule order, so no plan changes. This PR moves no rule across enforcement; moving WindowTopN or join_selection needs fixes in those rules first (#26481).

PhysicalAnalyzer (make it executable)      PhysicalOptimizer (valid in, valid out)
  OutputRequirements (add)                 CombinePartialFinalAggregate
  aggregate_statistics                     ...
  EliminateConstantJoin                    OutputRequirements (remove)
  join_selection                           ...
  LimitedDistinctAggregation               SanityCheckPlan
  FilterPushdown
  WindowTopN
  EnsureRequirements

It also adds satisfy_requirements, which inserts only the missing repartitions and sorts, and returns a plan that already meets its requirements unchanged. Debug builds call it at the end of the analyzer phase to check the phase. No rule calls it yet; it is the repair step for rules that later move after enforcement. EnsureRequirements does not call it, because it also makes performance choices (round-robin repartitioning, join-key reordering, sort rewrites).

What changes are included in this PR?

One commit per step:

  1. @zhuqi-lucas: the PhysicalAnalyzerRule trait and the PhysicalAnalyzer rule list, wired through Session, SessionState and SessionStateBuilder. The planner runs the analyzer rules before the optimizer rules.
  2. RunInAnalyzer runs a PhysicalOptimizerRule in the analyzer. It replaces eight copied PhysicalAnalyzerRule impls. Invariant-check errors now say which phase the failing rule ran in.
  3. The observer passed to DefaultPhysicalPlanner::optimize_physical_plan keeps its signature. It sees each analyzer rule as a PhysicalOptimizerRule with the same name, so existing callers compile unchanged.
  4. ForeignSession forwards the analyzer rules through FFI. Without this, a join planned through a ForeignSession after commit 1 keeps PartitionMode::Auto and fails at execution.
  5. The planner removes any OutputRequirementExec left after the optimizer rules. After commit 1 the analyzer adds the marker even when a custom optimizer list has no remove pass, and the marker then reached the final plan, which could not be serialized to proto.
  6. Fix: EquivalenceProperties could not tell that a plan sorted on sqrt(a) satisfies a requirement on sqrt(a); the same goes for ln, log2, log10, acos, asin, acosh and atanh. These functions fail to derive an ordering when the input may be outside their domain, and that failure also discarded the ordering the expression already had. No plan in the test suite changes.
  7. satisfy_requirements, a public function that inserts RepartitionExec, CoalescePartitionsExec, SortPreservingMergeExec and SortExec only where a declared requirement is unmet. It uses the same check for "satisfied" as SanityCheckPlan, which now calls the shared code.
  8. At the end of the analyzer phase, debug builds check that the plan is executable and that satisfy_requirements has nothing to insert. A session with no analyzer rules is not checked.
  9. Docs: the trait docs, the optimizer contract, the rule reference, and the upgrade guide, which lists who is affected and what to do (see "Downstream impact" below).

What is the testing strategy for this PR?

  • Full sqllogictest suite with no golden changes, and in debug builds every query passes the new analyzer-phase check. Without commit 6, the check fails on ORDER BY ACOSH(SIN(v1)) in scalar.slt.

  • In core/tests/physical_optimizer/ensure_requirements.rs, every test plan is also checked with satisfy_requirements: on the input it makes the plan pass SanityCheckPlan and then does nothing more, and on EnsureRequirements' output it does nothing.

  • New unit tests: test_known_ordering_when_expr_properties_fail for commit 6, and analyzer_that_leaves_a_requirement_unmet_fails_in_debug for commit 8. Both fail without their commit.

  • FFI: test_foreign_session_runs_physical_analyzers fails without commit 4 (HashJoinExec: mode=Auto), and test_ffi_session checks that both sessions list the same analyzer rules.

  • Commit 1 cleared the analyzer list in proto's analyze_roundtrip_unoptimized and in the FFI query planner tests; after commit 5 they pass without that.

  • output_requirements::scalar_subquery_root_preserves_global_ordering_end_to_end now runs the analyzer rules before the optimizer rules, as the planner does.

  • Planning time, sql_planner on the benchmark bot, this head against main:

    bench main this PR ratio
    physical_plan_tpch_all 40.5 ms 39.8 ms 0.98
    physical_plan_tpcds_all 571.0 ms 568.9 ms 1.00
    physical_plan_clickbench_all 129.4 ms 129.1 ms 1.00
    physical_many_self_joins 7.3 ms 7.2 ms 0.99
    physical_select_all_from_1000 16.9 ms 16.8 ms 0.99

    Across all 103 physical benchmarks the ratio is 0.96 to 1.06, median 1.00. The logical_* benchmarks run no code from this PR and range from 0.93 to 1.01 in the same run, so these differences are within noise.

Are there any user-facing changes?

Yes, documented in the 56.0.0 upgrade guide. Default plans do not change, and no public signature changes. New public API: PhysicalAnalyzerRule, PhysicalAnalyzer, RunInAnalyzer, satisfy_requirements, Session::physical_analyzers, SessionState::physical_analyzers and add_physical_analyzer_rule, and SessionStateBuilder::with_physical_analyzer_rule(s). EXPLAIN VERBOSE shows the analyzer rules. When a rule in the analyzer list fails the schema or invariant check, the error names PhysicalAnalyzer where it used to name PhysicalOptimizer.

Downstream impact

I searched public code on GitHub for the APIs this PR touches. Private code can have the same patterns.

What changes Who is affected What to do
Rules placed in front of the default optimizer list now run after enforcement, and nothing enforces the plan again after them InfluxDB (iox_query puts its rules before DataFusion's), LaminarDB (puts a streaming validator first) Move rules that must run before enforcement into the analyzer list, wrapped in RunInAnalyzer
with_physical_optimizer_rules(vec![]) no longer gives a plan without enforcement Arroyo (arroyo-planner clears the list) Also call with_physical_analyzer_rules(vec![])
SessionState::physical_optimizers() no longer lists the analyzer rules datafusion-tracing (instruments each rule), Sail (builds EXPLAIN output from each rule), datafusion-dft (lists rule names) Also handle physical_analyzers()
A custom optimizer list that still contains analyzer rules runs them twice lists copied from the old default Drop those rules from the list
A custom Session that overrides physical_optimizers gets no enforcement unless it also overrides physical_analyzers; planning or execution then fails a few small projects Return SessionState::physical_analyzers()
In debug builds, an analyzer list that leaves a requirement unmet fails at planning new API, no existing users End the list with EnsureRequirements, or repair with satisfy_requirements

Ballista, delta-rs, Sail, Spice and optd call optimize_physical_plan with an observer; its signature is unchanged, so they compile as before.

Notes for reviewers

@github-actions github-actions Bot added documentation Improvements or additions to documentation physical-expr Changes to the physical-expr crates optimizer Optimizer rules core Core DataFusion crate sqllogictest SQL Logic Tests (.slt) ffi Changes to the ffi crate labels Oct 26, 2026
@jayzhan211

Copy link
Copy Markdown
Contributor Author

run benchmark sql_planner

@jayzhan211 jayzhan211 added the api change Changes the API exposed to users of the crate label Oct 26, 2026
@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c6407060167-3856-w77tv 6.12.105+ #1 SMP Sat Sep 5 07:54:11 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 physical-analyzer-core (ab53c9f) to 8ea0dbf (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 physical-analyzer-core (ab53c9f) to 8ea0dbf (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                                   physical-analyzer-core
-----                                                 ----                                   ----------------------
logical_aggregate_with_join                           1.00    347.1±2.15µs        ? ?/sec    1.01    350.5±1.44µs        ? ?/sec
logical_correlated_subquery_exists                    1.00    205.4±0.46µs        ? ?/sec    1.01    207.3±1.84µs        ? ?/sec
logical_correlated_subquery_in                        1.00    209.1±2.23µs        ? ?/sec    1.01    211.0±1.73µs        ? ?/sec
logical_distinct_many_columns                         1.00    290.1±1.33µs        ? ?/sec    1.01    294.3±0.76µs        ? ?/sec
logical_join_4_with_agg_and_filter                    1.00    194.8±0.81µs        ? ?/sec    1.03    200.2±0.62µs        ? ?/sec
logical_join_8_with_agg_sort_limit                    1.00    339.1±1.29µs        ? ?/sec    1.03    349.8±1.86µs        ? ?/sec
logical_join_chain_16                                 1.00    610.7±1.36µs        ? ?/sec    1.01    616.4±1.93µs        ? ?/sec
logical_join_chain_4                                  1.00     73.9±0.30µs        ? ?/sec    1.03     76.3±0.29µs        ? ?/sec
logical_join_chain_8                                  1.00    197.7±0.45µs        ? ?/sec    1.02    200.9±0.67µs        ? ?/sec
logical_multiple_subqueries                           1.00    389.6±1.33µs        ? ?/sec    1.02    395.6±1.49µs        ? ?/sec
logical_nested_cte_4_levels                           1.00    199.5±6.93µs        ? ?/sec    1.01    201.0±3.49µs        ? ?/sec
logical_plan_struct_join_agg_sort                     1.00    125.3±0.54µs        ? ?/sec    1.02    128.1±0.92µs        ? ?/sec
logical_plan_tpcds_all                                1.00     71.4±0.18ms        ? ?/sec    1.02     72.9±0.11ms        ? ?/sec
logical_plan_tpch_all                                 1.00      5.2±0.03ms        ? ?/sec    1.04      5.4±0.01ms        ? ?/sec
logical_scalar_subquery                               1.00    216.7±1.55µs        ? ?/sec    1.02    220.9±2.03µs        ? ?/sec
logical_select_all_from_1000                          1.00      6.8±0.03ms        ? ?/sec    1.05      7.1±0.02ms        ? ?/sec
logical_select_one_from_700                           1.00    227.2±2.02µs        ? ?/sec    1.01    229.5±1.76µs        ? ?/sec
logical_trivial_join_high_numbered_columns            1.00    209.3±1.30µs        ? ?/sec    1.01    210.8±1.23µs        ? ?/sec
logical_trivial_join_low_numbered_columns             1.00    198.3±1.43µs        ? ?/sec    1.01    199.3±1.08µs        ? ?/sec
logical_union_4_branches                              1.00    307.8±1.54µs        ? ?/sec    1.01    310.6±1.48µs        ? ?/sec
logical_union_8_branches                              1.00    620.6±1.94µs        ? ?/sec    1.01    624.6±2.06µs        ? ?/sec
logical_wide_aggregate_1000_exprs                     1.00     41.4±0.10ms        ? ?/sec    1.01     41.9±0.13ms        ? ?/sec
logical_wide_aggregate_100_exprs                      1.00   1526.2±4.27µs        ? ?/sec    1.00   1532.8±5.62µs        ? ?/sec
logical_wide_case_50_exprs                            1.00   1704.7±4.86µs        ? ?/sec    1.01   1718.0±6.19µs        ? ?/sec
logical_wide_filter_200_predicates                    1.00   1299.6±5.30µs        ? ?/sec    1.01   1309.5±6.05µs        ? ?/sec
logical_wide_filter_50_predicates                     1.00    340.9±1.15µs        ? ?/sec    1.01    342.7±0.94µs        ? ?/sec
optimizer_correlated_exists                           1.01    219.5±0.96µs        ? ?/sec    1.00    217.5±0.37µs        ? ?/sec
optimizer_join_4_with_agg_filter                      1.00    396.6±1.87µs        ? ?/sec    1.00    396.0±1.20µs        ? ?/sec
optimizer_join_chain_4                                1.00    155.0±0.43µs        ? ?/sec    1.01    155.9±0.33µs        ? ?/sec
optimizer_join_chain_8                                1.00    530.7±0.95µs        ? ?/sec    1.00    530.5±0.79µs        ? ?/sec
optimizer_select_all_from_1000                        1.00      6.8±0.03ms        ? ?/sec    1.01      6.8±0.03ms        ? ?/sec
optimizer_select_one_from_700                         1.00    241.1±0.65µs        ? ?/sec    1.00    241.1±0.64µs        ? ?/sec
optimizer_tpcds_all                                   1.00    247.2±0.32ms        ? ?/sec    1.00    246.4±0.44ms        ? ?/sec
optimizer_tpch_all                                    1.00     14.9±0.03ms        ? ?/sec    1.01     15.1±0.03ms        ? ?/sec
optimizer_wide_aggregate_100                          1.00   1737.6±4.32µs        ? ?/sec    1.00   1744.2±4.60µs        ? ?/sec
optimizer_wide_filter_200                             1.00      3.9±0.01ms        ? ?/sec    1.01      4.0±0.01ms        ? ?/sec
physical_intersection                                 1.03    533.1±5.02µs        ? ?/sec    1.00    517.9±2.25µs        ? ?/sec
physical_join_consider_sort                           1.00    957.0±2.80µs        ? ?/sec    1.01    962.8±1.75µs        ? ?/sec
physical_join_distinct                                1.00    190.9±1.64µs        ? ?/sec    1.01    192.3±1.33µs        ? ?/sec
physical_many_self_joins                              1.00      7.3±0.02ms        ? ?/sec    1.01      7.3±0.01ms        ? ?/sec
physical_plan_clickbench_all                          1.00    128.2±0.24ms        ? ?/sec    1.02    131.1±0.28ms        ? ?/sec
physical_plan_clickbench_q1                           1.00   1259.5±5.49µs        ? ?/sec    1.03   1297.0±8.07µs        ? ?/sec
physical_plan_clickbench_q10                          1.00   1836.0±4.21µs        ? ?/sec    1.01   1847.6±5.95µs        ? ?/sec
physical_plan_clickbench_q11                          1.00   1996.0±6.88µs        ? ?/sec    1.00   1996.7±5.68µs        ? ?/sec
physical_plan_clickbench_q12                          1.00      2.0±0.01ms        ? ?/sec    1.00      2.1±0.00ms        ? ?/sec
physical_plan_clickbench_q13                          1.00   1855.9±7.70µs        ? ?/sec    1.03   1910.8±5.61µs        ? ?/sec
physical_plan_clickbench_q14                          1.00   1977.4±7.43µs        ? ?/sec    1.01   1995.6±7.46µs        ? ?/sec
physical_plan_clickbench_q15                          1.00   1929.4±5.92µs        ? ?/sec    1.02   1968.6±5.14µs        ? ?/sec
physical_plan_clickbench_q16                          1.00   1660.2±3.78µs        ? ?/sec    1.01   1677.2±5.80µs        ? ?/sec
physical_plan_clickbench_q17                          1.01   1689.0±4.11µs        ? ?/sec    1.00   1680.2±5.87µs        ? ?/sec
physical_plan_clickbench_q18                          1.00  1546.9±10.04µs        ? ?/sec    1.00   1544.8±4.98µs        ? ?/sec
physical_plan_clickbench_q19                          1.01  1911.9±11.56µs        ? ?/sec    1.00   1893.9±5.93µs        ? ?/sec
physical_plan_clickbench_q2                           1.00   1680.4±6.22µs        ? ?/sec    1.00   1673.4±5.20µs        ? ?/sec
physical_plan_clickbench_q20                          1.00  1471.2±10.19µs        ? ?/sec    1.00   1474.9±4.67µs        ? ?/sec
physical_plan_clickbench_q21                          1.00   1655.8±9.65µs        ? ?/sec    1.01   1680.4±6.35µs        ? ?/sec
physical_plan_clickbench_q22                          1.00  1997.0±15.39µs        ? ?/sec    1.02      2.0±0.01ms        ? ?/sec
physical_plan_clickbench_q23                          1.00      2.1±0.00ms        ? ?/sec    1.00      2.1±0.01ms        ? ?/sec
physical_plan_clickbench_q24                          1.00      4.8±0.01ms        ? ?/sec    1.00      4.8±0.01ms        ? ?/sec
physical_plan_clickbench_q25                          1.00   1754.6±4.90µs        ? ?/sec    1.01   1765.6±6.29µs        ? ?/sec
physical_plan_clickbench_q26                          1.01   1624.0±4.61µs        ? ?/sec    1.00   1612.7±4.41µs        ? ?/sec
physical_plan_clickbench_q27                          1.00   1786.2±6.07µs        ? ?/sec    1.00   1777.7±4.28µs        ? ?/sec
physical_plan_clickbench_q28                          1.01      2.1±0.00ms        ? ?/sec    1.00      2.1±0.02ms        ? ?/sec
physical_plan_clickbench_q29                          1.00      2.2±0.00ms        ? ?/sec    1.02      2.3±0.02ms        ? ?/sec
physical_plan_clickbench_q3                           1.00   1542.1±4.98µs        ? ?/sec    1.00   1541.6±6.36µs        ? ?/sec
physical_plan_clickbench_q30                          1.00     12.3±0.04ms        ? ?/sec    1.01     12.4±0.03ms        ? ?/sec
physical_plan_clickbench_q31                          1.00      2.2±0.01ms        ? ?/sec    1.00      2.2±0.01ms        ? ?/sec
physical_plan_clickbench_q32                          1.00      2.2±0.00ms        ? ?/sec    1.02      2.2±0.01ms        ? ?/sec
physical_plan_clickbench_q33                          1.00   1815.0±4.85µs        ? ?/sec    1.01   1839.8±4.91µs        ? ?/sec
physical_plan_clickbench_q34                          1.00   1628.5±4.11µs        ? ?/sec    1.03   1675.7±4.64µs        ? ?/sec
physical_plan_clickbench_q35                          1.00   1669.5±4.07µs        ? ?/sec    1.02   1700.7±5.21µs        ? ?/sec
physical_plan_clickbench_q36                          1.01   1938.6±4.47µs        ? ?/sec    1.00   1922.6±5.78µs        ? ?/sec
physical_plan_clickbench_q37                          1.00      2.3±0.01ms        ? ?/sec    1.01      2.4±0.01ms        ? ?/sec
physical_plan_clickbench_q38                          1.01      2.4±0.01ms        ? ?/sec    1.00      2.4±0.01ms        ? ?/sec
physical_plan_clickbench_q39                          1.00      2.4±0.01ms        ? ?/sec    1.00      2.4±0.00ms        ? ?/sec
physical_plan_clickbench_q4                           1.00   1365.9±4.56µs        ? ?/sec    1.00   1365.2±4.19µs        ? ?/sec
physical_plan_clickbench_q40                          1.00      3.0±0.02ms        ? ?/sec    1.00      3.0±0.01ms        ? ?/sec
physical_plan_clickbench_q41                          1.00      2.7±0.01ms        ? ?/sec    1.02      2.7±0.01ms        ? ?/sec
physical_plan_clickbench_q42                          1.02      2.8±0.01ms        ? ?/sec    1.00      2.7±0.01ms        ? ?/sec
physical_plan_clickbench_q43                          1.00      2.9±0.02ms        ? ?/sec    1.01      2.9±0.01ms        ? ?/sec
physical_plan_clickbench_q44                          1.00   1444.2±9.15µs        ? ?/sec    1.02   1473.5±4.49µs        ? ?/sec
physical_plan_clickbench_q45                          1.00   1435.5±3.94µs        ? ?/sec    1.05   1502.5±6.21µs        ? ?/sec
physical_plan_clickbench_q46                          1.00   1679.4±6.37µs        ? ?/sec    1.02   1715.7±4.48µs        ? ?/sec
physical_plan_clickbench_q47                          1.01      2.3±0.01ms        ? ?/sec    1.00      2.2±0.01ms        ? ?/sec
physical_plan_clickbench_q48                          1.00      2.4±0.01ms        ? ?/sec    1.00      2.4±0.01ms        ? ?/sec
physical_plan_clickbench_q49                          1.00      2.5±0.01ms        ? ?/sec    1.00      2.5±0.01ms        ? ?/sec
physical_plan_clickbench_q5                           1.02  1497.9±18.25µs        ? ?/sec    1.00   1472.5±4.61µs        ? ?/sec
physical_plan_clickbench_q50                          1.00      2.6±0.01ms        ? ?/sec    1.00      2.6±0.01ms        ? ?/sec
physical_plan_clickbench_q51                          1.00   1823.4±4.51µs        ? ?/sec    1.00   1832.2±5.08µs        ? ?/sec
physical_plan_clickbench_q52                          1.00      2.3±0.01ms        ? ?/sec    1.00      2.3±0.01ms        ? ?/sec
physical_plan_clickbench_q53                          1.01   1666.8±5.14µs        ? ?/sec    1.00   1642.2±5.26µs        ? ?/sec
physical_plan_clickbench_q54                          1.00   1666.2±3.87µs        ? ?/sec    1.01   1680.7±4.98µs        ? ?/sec
physical_plan_clickbench_q55                          1.00   1598.6±4.43µs        ? ?/sec    1.02   1629.1±3.92µs        ? ?/sec
physical_plan_clickbench_q56                          1.00   1583.4±3.51µs        ? ?/sec    1.01   1596.8±5.13µs        ? ?/sec
physical_plan_clickbench_q57                          1.00   1684.2±5.91µs        ? ?/sec    1.02  1715.3±11.97µs        ? ?/sec
physical_plan_clickbench_q58                          1.01      2.2±0.01ms        ? ?/sec    1.00      2.1±0.01ms        ? ?/sec
physical_plan_clickbench_q59                          1.00   1612.8±4.05µs        ? ?/sec    1.01   1634.2±5.37µs        ? ?/sec
physical_plan_clickbench_q6                           1.00   1480.8±5.66µs        ? ?/sec    1.03   1520.3±4.51µs        ? ?/sec
physical_plan_clickbench_q60                          1.00   1578.0±4.78µs        ? ?/sec    1.02   1616.6±5.11µs        ? ?/sec
physical_plan_clickbench_q7                           1.00   1329.8±3.96µs        ? ?/sec    1.01   1340.9±6.54µs        ? ?/sec
physical_plan_clickbench_q8                           1.00   1805.2±5.83µs        ? ?/sec    1.01   1825.9±9.35µs        ? ?/sec
physical_plan_clickbench_q9                           1.00   1739.5±4.05µs        ? ?/sec    1.02   1774.1±5.53µs        ? ?/sec
physical_plan_struct_join_agg_sort                    1.00   1219.5±3.39µs        ? ?/sec    1.00   1214.5±2.89µs        ? ?/sec
physical_plan_tpcds_all                               1.00    561.4±0.72ms        ? ?/sec    1.00    564.1±2.30ms        ? ?/sec
physical_plan_tpch_all                                1.00     39.7±0.08ms        ? ?/sec    1.00     39.7±0.13ms        ? ?/sec
physical_plan_tpch_q1                                 1.00   1390.1±2.65µs        ? ?/sec    1.00   1392.8±3.27µs        ? ?/sec
physical_plan_tpch_q10                                1.03      2.1±0.00ms        ? ?/sec    1.00      2.1±0.00ms        ? ?/sec
physical_plan_tpch_q11                                1.02      2.1±0.00ms        ? ?/sec    1.00      2.1±0.00ms        ? ?/sec
physical_plan_tpch_q12                                1.01   1220.8±2.12µs        ? ?/sec    1.00   1213.3±1.69µs        ? ?/sec
physical_plan_tpch_q13                                1.01    981.1±1.81µs        ? ?/sec    1.00    969.0±1.69µs        ? ?/sec
physical_plan_tpch_q14                                1.01   1269.2±2.48µs        ? ?/sec    1.00   1255.3±8.46µs        ? ?/sec
physical_plan_tpch_q16                                1.01   1566.3±5.84µs        ? ?/sec    1.00  1544.4±15.23µs        ? ?/sec
physical_plan_tpch_q17                                1.03   1554.9±4.23µs        ? ?/sec    1.00   1507.3±3.44µs        ? ?/sec
physical_plan_tpch_q18                                1.00   1758.9±3.60µs        ? ?/sec    1.00  1755.9±12.00µs        ? ?/sec
physical_plan_tpch_q19                                1.00   1975.1±3.18µs        ? ?/sec    1.00   1969.6±2.91µs        ? ?/sec
physical_plan_tpch_q2                                 1.00      3.2±0.00ms        ? ?/sec    1.01      3.3±0.00ms        ? ?/sec
physical_plan_tpch_q20                                1.00   1938.7±7.47µs        ? ?/sec    1.01   1949.7±2.42µs        ? ?/sec
physical_plan_tpch_q21                                1.01      2.4±0.02ms        ? ?/sec    1.00      2.4±0.00ms        ? ?/sec
physical_plan_tpch_q22                                1.00   1462.7±3.98µs        ? ?/sec    1.01   1474.8±2.17µs        ? ?/sec
physical_plan_tpch_q3                                 1.01   1633.0±3.66µs        ? ?/sec    1.00   1613.5±4.57µs        ? ?/sec
physical_plan_tpch_q4                                 1.01   1059.9±2.43µs        ? ?/sec    1.00   1050.6±2.88µs        ? ?/sec
physical_plan_tpch_q5                                 1.00      2.1±0.00ms        ? ?/sec    1.01      2.2±0.00ms        ? ?/sec
physical_plan_tpch_q6                                 1.00    696.1±1.50µs        ? ?/sec    1.01    705.3±2.23µs        ? ?/sec
physical_plan_tpch_q7                                 1.00      2.5±0.00ms        ? ?/sec    1.00      2.5±0.00ms        ? ?/sec
physical_plan_tpch_q8                                 1.00      3.3±0.00ms        ? ?/sec    1.00      3.3±0.01ms        ? ?/sec
physical_plan_tpch_q9                                 1.00      2.5±0.00ms        ? ?/sec    1.00      2.5±0.00ms        ? ?/sec
physical_select_aggregates_from_200                   1.00      7.5±0.01ms        ? ?/sec    1.00      7.5±0.03ms        ? ?/sec
physical_select_all_from_1000                         1.00     16.9±0.07ms        ? ?/sec    1.03     17.4±0.05ms        ? ?/sec
physical_select_one_from_700                          1.00    645.6±3.54µs        ? ?/sec    1.00    643.4±2.81µ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.01      6.7±0.01ms        ? ?/sec    1.00      6.7±0.01ms        ? ?/sec
physical_sorted_union_order_by_50_int64               1.00     75.1±0.17ms        ? ?/sec    1.00     74.8±0.24ms        ? ?/sec
physical_sorted_union_order_by_50_uint64              1.01    252.1±0.70ms        ? ?/sec    1.00    249.7±0.95ms        ? ?/sec
physical_theta_join_consider_sort                     1.00    987.8±2.04µs        ? ?/sec    1.02   1006.6±2.52µs        ? ?/sec
physical_unnest_to_join                               1.02    559.5±1.65µs        ? ?/sec    1.00    549.4±2.38µs        ? ?/sec
physical_window_function_partition_by_12_on_values    1.01    624.5±1.27µs        ? ?/sec    1.00    620.1±2.00µs        ? ?/sec
physical_window_function_partition_by_30_on_values    1.00   1203.6±2.08µs        ? ?/sec    1.00  1205.4±10.24µs        ? ?/sec
physical_window_function_partition_by_4_on_values     1.00    389.5±0.68µs        ? ?/sec    1.05    407.7±1.36µs        ? ?/sec
physical_window_function_partition_by_7_on_values     1.00    473.8±0.86µs        ? ?/sec    1.03    486.4±1.05µs        ? ?/sec
physical_window_function_partition_by_8_on_values     1.01    514.8±4.36µs        ? ?/sec    1.00    512.1±1.07µs        ? ?/sec
with_param_values_many_columns                        1.00    372.3±1.46µs        ? ?/sec    1.03    384.6±7.08µs        ? ?/sec

Resource Usage

sql_planner — base (merge-base)

Metric Value
Wall time 2080.5s
Peak memory 140.6 MiB
Avg memory 89.1 MiB
CPU user 1977.8s
CPU sys 1.6s
Peak spill 0 B

sql_planner — branch

Metric Value
Wall time 2060.4s
Peak memory 140.6 MiB
Avg memory 90.1 MiB
CPU user 1972.1s
CPU sys 1.6s
Peak spill 0 B

File an issue against this benchmark runner

@jayzhan211
jayzhan211 force-pushed the physical-analyzer-core branch from ab53c9f to 3638b40 Compare October 26, 2026 05:00
@jayzhan211

Copy link
Copy Markdown
Contributor Author

run benchmark sql_planner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c6408625093-3861-gh8h8 6.12.105+ #1 SMP Sat Sep 5 07:54:11 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 physical-analyzer-core (3638b40) to 8ea0dbf (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 physical-analyzer-core (3638b40) to 8ea0dbf (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                                   physical-analyzer-core
-----                                                 ----                                   ----------------------
logical_aggregate_with_join                           1.03    347.0±1.44µs        ? ?/sec    1.00    337.7±2.29µs        ? ?/sec
logical_correlated_subquery_exists                    1.02    205.5±0.65µs        ? ?/sec    1.00    202.0±0.75µs        ? ?/sec
logical_correlated_subquery_in                        1.03    210.7±6.78µs        ? ?/sec    1.00    204.0±1.42µs        ? ?/sec
logical_distinct_many_columns                         1.03    293.9±0.93µs        ? ?/sec    1.00    286.3±0.69µs        ? ?/sec
logical_join_4_with_agg_and_filter                    1.03    197.2±1.05µs        ? ?/sec    1.00    191.6±1.31µs        ? ?/sec
logical_join_8_with_agg_sort_limit                    1.03    342.5±2.01µs        ? ?/sec    1.00    333.8±2.14µs        ? ?/sec
logical_join_chain_16                                 1.02    619.2±3.77µs        ? ?/sec    1.00    607.2±4.62µs        ? ?/sec
logical_join_chain_4                                  1.03     75.1±0.27µs        ? ?/sec    1.00     72.9±0.25µs        ? ?/sec
logical_join_chain_8                                  1.02    199.1±0.63µs        ? ?/sec    1.00    195.6±1.06µs        ? ?/sec
logical_multiple_subqueries                           1.04    401.0±6.84µs        ? ?/sec    1.00    383.8±1.63µs        ? ?/sec
logical_nested_cte_4_levels                           1.03    198.5±1.11µs        ? ?/sec    1.00    193.4±1.28µs        ? ?/sec
logical_plan_struct_join_agg_sort                     1.08    131.2±1.07µs        ? ?/sec    1.00    121.7±0.84µs        ? ?/sec
logical_plan_tpcds_all                                1.00     71.9±0.12ms        ? ?/sec    1.01     72.3±0.13ms        ? ?/sec
logical_plan_tpch_all                                 1.01      5.3±0.01ms        ? ?/sec    1.00      5.2±0.02ms        ? ?/sec
logical_scalar_subquery                               1.01    215.7±2.95µs        ? ?/sec    1.00    213.5±0.84µs        ? ?/sec
logical_select_all_from_1000                          1.01      6.9±0.03ms        ? ?/sec    1.00      6.8±0.03ms        ? ?/sec
logical_select_one_from_700                           1.01    228.2±1.91µs        ? ?/sec    1.00    225.0±1.67µs        ? ?/sec
logical_trivial_join_high_numbered_columns            1.03    209.3±1.19µs        ? ?/sec    1.00    203.2±1.28µs        ? ?/sec
logical_trivial_join_low_numbered_columns             1.03    197.9±1.14µs        ? ?/sec    1.00    192.4±1.22µs        ? ?/sec
logical_union_4_branches                              1.02    308.8±1.50µs        ? ?/sec    1.00    302.7±1.91µs        ? ?/sec
logical_union_8_branches                              1.02    625.0±2.05µs        ? ?/sec    1.00    611.0±5.06µs        ? ?/sec
logical_wide_aggregate_1000_exprs                     1.01     41.7±0.13ms        ? ?/sec    1.00     41.4±0.12ms        ? ?/sec
logical_wide_aggregate_100_exprs                      1.00   1536.6±3.81µs        ? ?/sec    1.00   1532.9±3.92µs        ? ?/sec
logical_wide_case_50_exprs                            1.00   1710.7±5.48µs        ? ?/sec    1.00   1706.0±6.30µs        ? ?/sec
logical_wide_filter_200_predicates                    1.01   1312.3±5.24µs        ? ?/sec    1.00   1297.7±5.89µs        ? ?/sec
logical_wide_filter_50_predicates                     1.02    347.6±2.01µs        ? ?/sec    1.00    342.2±2.50µs        ? ?/sec
optimizer_correlated_exists                           1.02    218.5±0.97µs        ? ?/sec    1.00    213.3±0.85µs        ? ?/sec
optimizer_join_4_with_agg_filter                      1.01    401.4±1.49µs        ? ?/sec    1.00    398.3±1.81µs        ? ?/sec
optimizer_join_chain_4                                1.01    154.7±0.35µs        ? ?/sec    1.00    153.3±0.33µs        ? ?/sec
optimizer_join_chain_8                                1.01    530.9±0.85µs        ? ?/sec    1.00    527.1±1.36µs        ? ?/sec
optimizer_select_all_from_1000                        1.01      6.8±0.02ms        ? ?/sec    1.00      6.7±0.01ms        ? ?/sec
optimizer_select_one_from_700                         1.01    240.5±0.45µs        ? ?/sec    1.00    238.7±5.10µs        ? ?/sec
optimizer_tpcds_all                                   1.00    246.3±0.32ms        ? ?/sec    1.00    246.3±1.12ms        ? ?/sec
optimizer_tpch_all                                    1.01     15.0±0.04ms        ? ?/sec    1.00     14.9±0.02ms        ? ?/sec
optimizer_wide_aggregate_100                          1.00   1736.5±2.48µs        ? ?/sec    1.00   1738.6±7.11µs        ? ?/sec
optimizer_wide_filter_200                             1.00      4.0±0.01ms        ? ?/sec    1.01      4.0±0.01ms        ? ?/sec
physical_intersection                                 1.04    528.7±1.70µs        ? ?/sec    1.00    508.8±2.11µs        ? ?/sec
physical_join_consider_sort                           1.02    963.1±2.99µs        ? ?/sec    1.00    942.5±2.06µs        ? ?/sec
physical_join_distinct                                1.02    190.1±1.32µs        ? ?/sec    1.00    185.8±1.42µs        ? ?/sec
physical_many_self_joins                              1.02      7.3±0.01ms        ? ?/sec    1.00      7.2±0.01ms        ? ?/sec
physical_plan_clickbench_all                          1.00    129.4±0.37ms        ? ?/sec    1.00    129.1±0.31ms        ? ?/sec
physical_plan_clickbench_q1                           1.01   1292.8±6.05µs        ? ?/sec    1.00   1280.5±8.08µs        ? ?/sec
physical_plan_clickbench_q10                          1.00  1896.9±16.32µs        ? ?/sec    1.00  1893.3±10.82µs        ? ?/sec
physical_plan_clickbench_q11                          1.00  1988.3±10.05µs        ? ?/sec    1.03      2.1±0.01ms        ? ?/sec
physical_plan_clickbench_q12                          1.00      2.1±0.01ms        ? ?/sec    1.01      2.1±0.01ms        ? ?/sec
physical_plan_clickbench_q13                          1.02   1910.6±6.51µs        ? ?/sec    1.00   1880.2±5.58µs        ? ?/sec
physical_plan_clickbench_q14                          1.03      2.0±0.01ms        ? ?/sec    1.00   1992.3±7.97µs        ? ?/sec
physical_plan_clickbench_q15                          1.03   1995.1±7.98µs        ? ?/sec    1.00   1931.0±5.83µs        ? ?/sec
physical_plan_clickbench_q16                          1.01   1680.6±5.57µs        ? ?/sec    1.00   1665.5±4.98µs        ? ?/sec
physical_plan_clickbench_q17                          1.02   1738.3±8.35µs        ? ?/sec    1.00   1711.2±5.94µs        ? ?/sec
physical_plan_clickbench_q18                          1.00   1558.8±6.04µs        ? ?/sec    1.02   1582.6±5.47µs        ? ?/sec
physical_plan_clickbench_q19                          1.00   1904.8±6.60µs        ? ?/sec    1.01   1916.0±5.96µs        ? ?/sec
physical_plan_clickbench_q2                           1.00   1646.0±6.50µs        ? ?/sec    1.02   1684.0±6.68µs        ? ?/sec
physical_plan_clickbench_q20                          1.02   1478.1±4.40µs        ? ?/sec    1.00   1455.5±5.20µs        ? ?/sec
physical_plan_clickbench_q21                          1.02   1668.6±5.38µs        ? ?/sec    1.00   1641.4±5.10µs        ? ?/sec
physical_plan_clickbench_q22                          1.03      2.0±0.01ms        ? ?/sec    1.00   1977.1±7.43µs        ? ?/sec
physical_plan_clickbench_q23                          1.03      2.2±0.01ms        ? ?/sec    1.00      2.1±0.01ms        ? ?/sec
physical_plan_clickbench_q24                          1.02      4.8±0.01ms        ? ?/sec    1.00      4.7±0.01ms        ? ?/sec
physical_plan_clickbench_q25                          1.00   1771.1±5.51µs        ? ?/sec    1.01   1782.4±5.91µs        ? ?/sec
physical_plan_clickbench_q26                          1.00   1639.5±5.69µs        ? ?/sec    1.01   1651.1±6.03µs        ? ?/sec
physical_plan_clickbench_q27                          1.00   1801.0±6.40µs        ? ?/sec    1.00   1808.2±6.24µs        ? ?/sec
physical_plan_clickbench_q28                          1.02      2.1±0.01ms        ? ?/sec    1.00      2.1±0.01ms        ? ?/sec
physical_plan_clickbench_q29                          1.02      2.3±0.01ms        ? ?/sec    1.00      2.2±0.01ms        ? ?/sec
physical_plan_clickbench_q3                           1.00   1522.2±5.53µs        ? ?/sec    1.03   1566.4±5.12µs        ? ?/sec
physical_plan_clickbench_q30                          1.00     12.4±0.05ms        ? ?/sec    1.00     12.3±0.04ms        ? ?/sec
physical_plan_clickbench_q31                          1.02      2.2±0.01ms        ? ?/sec    1.00      2.2±0.01ms        ? ?/sec
physical_plan_clickbench_q32                          1.00      2.2±0.01ms        ? ?/sec    1.00      2.2±0.01ms        ? ?/sec
physical_plan_clickbench_q33                          1.00   1863.5±5.15µs        ? ?/sec    1.00   1871.3±5.22µs        ? ?/sec
physical_plan_clickbench_q34                          1.00   1650.8±5.43µs        ? ?/sec    1.02   1683.1±5.31µs        ? ?/sec
physical_plan_clickbench_q35                          1.02   1739.5±4.94µs        ? ?/sec    1.00   1710.8±6.36µs        ? ?/sec
physical_plan_clickbench_q36                          1.00   1918.9±6.72µs        ? ?/sec    1.00   1927.5±6.19µs        ? ?/sec
physical_plan_clickbench_q37                          1.00      2.4±0.01ms        ? ?/sec    1.01      2.4±0.00ms        ? ?/sec
physical_plan_clickbench_q38                          1.01      2.4±0.01ms        ? ?/sec    1.00      2.4±0.01ms        ? ?/sec
physical_plan_clickbench_q39                          1.00      2.4±0.01ms        ? ?/sec    1.02      2.5±0.02ms        ? ?/sec
physical_plan_clickbench_q4                           1.00   1366.3±4.96µs        ? ?/sec    1.03  1405.4±12.22µs        ? ?/sec
physical_plan_clickbench_q40                          1.00      3.1±0.01ms        ? ?/sec    1.00      3.1±0.01ms        ? ?/sec
physical_plan_clickbench_q41                          1.00      2.8±0.01ms        ? ?/sec    1.01      2.8±0.01ms        ? ?/sec
physical_plan_clickbench_q42                          1.00      2.8±0.02ms        ? ?/sec    1.01      2.8±0.01ms        ? ?/sec
physical_plan_clickbench_q43                          1.03      3.0±0.01ms        ? ?/sec    1.00      2.9±0.01ms        ? ?/sec
physical_plan_clickbench_q44                          1.00   1446.6±4.61µs        ? ?/sec    1.01  1456.7±19.50µs        ? ?/sec
physical_plan_clickbench_q45                          1.00   1450.9±4.89µs        ? ?/sec    1.01  1459.2±12.18µs        ? ?/sec
physical_plan_clickbench_q46                          1.00   1737.8±4.24µs        ? ?/sec    1.00   1730.4±6.40µs        ? ?/sec
physical_plan_clickbench_q47                          1.00      2.2±0.01ms        ? ?/sec    1.02      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.5±0.01ms        ? ?/sec    1.00      2.5±0.01ms        ? ?/sec
physical_plan_clickbench_q5                           1.01   1523.8±8.13µs        ? ?/sec    1.00   1510.8±6.79µs        ? ?/sec
physical_plan_clickbench_q50                          1.00      2.6±0.01ms        ? ?/sec    1.00      2.6±0.01ms        ? ?/sec
physical_plan_clickbench_q51                          1.01   1844.4±5.18µs        ? ?/sec    1.00   1833.0±5.86µs        ? ?/sec
physical_plan_clickbench_q52                          1.01      2.3±0.01ms        ? ?/sec    1.00      2.3±0.01ms        ? ?/sec
physical_plan_clickbench_q53                          1.00  1654.2±11.57µs        ? ?/sec    1.01   1673.7±6.84µs        ? ?/sec
physical_plan_clickbench_q54                          1.00   1672.4±4.39µs        ? ?/sec    1.00   1674.9±6.32µs        ? ?/sec
physical_plan_clickbench_q55                          1.00   1602.1±5.61µs        ? ?/sec    1.02   1626.7±6.49µs        ? ?/sec
physical_plan_clickbench_q56                          1.00   1589.0±4.96µs        ? ?/sec    1.03   1640.5±6.65µs        ? ?/sec
physical_plan_clickbench_q57                          1.00   1720.0±6.81µs        ? ?/sec    1.03   1763.5±5.31µs        ? ?/sec
physical_plan_clickbench_q58                          1.01      2.2±0.01ms        ? ?/sec    1.00      2.2±0.01ms        ? ?/sec
physical_plan_clickbench_q59                          1.00   1606.8±6.44µs        ? ?/sec    1.01   1620.2±7.14µs        ? ?/sec
physical_plan_clickbench_q6                           1.00   1480.8±6.02µs        ? ?/sec    1.02   1508.1±5.22µs        ? ?/sec
physical_plan_clickbench_q60                          1.00   1593.5±5.09µs        ? ?/sec    1.03   1644.3±6.78µs        ? ?/sec
physical_plan_clickbench_q7                           1.01  1379.5±11.44µs        ? ?/sec    1.00   1359.7±3.35µs        ? ?/sec
physical_plan_clickbench_q8                           1.00   1838.0±7.88µs        ? ?/sec    1.01   1850.7±5.90µs        ? ?/sec
physical_plan_clickbench_q9                           1.00   1766.1±6.03µs        ? ?/sec    1.01   1776.2±5.48µs        ? ?/sec
physical_plan_struct_join_agg_sort                    1.02   1227.8±5.47µs        ? ?/sec    1.00   1198.7±2.22µs        ? ?/sec
physical_plan_tpcds_all                               1.00    571.0±1.69ms        ? ?/sec    1.00    568.9±0.78ms        ? ?/sec
physical_plan_tpch_all                                1.02     40.5±0.15ms        ? ?/sec    1.00     39.8±0.07ms        ? ?/sec
physical_plan_tpch_q1                                 1.00   1399.0±2.31µs        ? ?/sec    1.00   1400.9±3.15µs        ? ?/sec
physical_plan_tpch_q10                                1.00      2.1±0.00ms        ? ?/sec    1.01      2.1±0.00ms        ? ?/sec
physical_plan_tpch_q11                                1.00      2.1±0.00ms        ? ?/sec    1.00      2.1±0.01ms        ? ?/sec
physical_plan_tpch_q12                                1.02   1231.8±2.40µs        ? ?/sec    1.00   1209.4±2.85µs        ? ?/sec
physical_plan_tpch_q13                                1.00    984.0±1.92µs        ? ?/sec    1.00    987.7±2.86µs        ? ?/sec
physical_plan_tpch_q14                                1.01   1276.7±3.37µs        ? ?/sec    1.00   1263.9±2.82µs        ? ?/sec
physical_plan_tpch_q16                                1.00   1529.9±2.79µs        ? ?/sec    1.00   1536.8±2.94µs        ? ?/sec
physical_plan_tpch_q17                                1.00   1528.6±4.12µs        ? ?/sec    1.00   1530.4±3.88µs        ? ?/sec
physical_plan_tpch_q18                                1.00   1757.0±3.55µs        ? ?/sec    1.02   1783.4±3.43µs        ? ?/sec
physical_plan_tpch_q19                                1.01   1994.3±4.19µs        ? ?/sec    1.00   1973.2±4.55µs        ? ?/sec
physical_plan_tpch_q2                                 1.01      3.3±0.00ms        ? ?/sec    1.00      3.2±0.00ms        ? ?/sec
physical_plan_tpch_q20                                1.01   1974.8±3.67µs        ? ?/sec    1.00   1946.1±3.20µs        ? ?/sec
physical_plan_tpch_q21                                1.01      2.4±0.01ms        ? ?/sec    1.00      2.4±0.00ms        ? ?/sec
physical_plan_tpch_q22                                1.02   1497.9±3.51µs        ? ?/sec    1.00   1473.5±2.57µs        ? ?/sec
physical_plan_tpch_q3                                 1.00   1626.7±2.95µs        ? ?/sec    1.01   1648.5±2.58µs        ? ?/sec
physical_plan_tpch_q4                                 1.00   1091.4±2.68µs        ? ?/sec    1.00   1087.9±4.66µs        ? ?/sec
physical_plan_tpch_q5                                 1.00      2.2±0.00ms        ? ?/sec    1.02      2.2±0.00ms        ? ?/sec
physical_plan_tpch_q6                                 1.01    716.8±2.04µs        ? ?/sec    1.00    708.9±2.37µs        ? ?/sec
physical_plan_tpch_q7                                 1.00      2.5±0.00ms        ? ?/sec    1.00      2.5±0.00ms        ? ?/sec
physical_plan_tpch_q8                                 1.00      3.3±0.01ms        ? ?/sec    1.01      3.3±0.01ms        ? ?/sec
physical_plan_tpch_q9                                 1.00      2.5±0.00ms        ? ?/sec    1.00      2.5±0.00ms        ? ?/sec
physical_select_aggregates_from_200                   1.01      7.5±0.01ms        ? ?/sec    1.00      7.4±0.02ms        ? ?/sec
physical_select_all_from_1000                         1.01     16.9±0.07ms        ? ?/sec    1.00     16.8±0.05ms        ? ?/sec
physical_select_one_from_700                          1.02    645.8±3.23µs        ? ?/sec    1.00    631.5±3.38µ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.05ms        ? ?/sec
physical_sorted_union_order_by_50_int64               1.01     75.1±0.21ms        ? ?/sec    1.00     74.7±0.26ms        ? ?/sec
physical_sorted_union_order_by_50_uint64              1.01    252.0±0.94ms        ? ?/sec    1.00    249.2±0.76ms        ? ?/sec
physical_theta_join_consider_sort                     1.02    997.6±1.96µs        ? ?/sec    1.00    979.9±2.01µs        ? ?/sec
physical_unnest_to_join                               1.03    562.3±2.48µs        ? ?/sec    1.00    547.1±1.79µs        ? ?/sec
physical_window_function_partition_by_12_on_values    1.01    634.0±1.77µs        ? ?/sec    1.00    626.8±1.11µs        ? ?/sec
physical_window_function_partition_by_30_on_values    1.01   1210.5±3.97µs        ? ?/sec    1.00   1196.2±4.59µs        ? ?/sec
physical_window_function_partition_by_4_on_values     1.00    395.9±3.95µs        ? ?/sec    1.04    412.2±1.14µs        ? ?/sec
physical_window_function_partition_by_7_on_values     1.00    477.6±1.22µs        ? ?/sec    1.00    476.8±0.84µs        ? ?/sec
physical_window_function_partition_by_8_on_values     1.02    517.6±1.58µs        ? ?/sec    1.00    509.4±1.39µs        ? ?/sec
with_param_values_many_columns                        1.02    374.6±2.06µs        ? ?/sec    1.00    368.2±1.86µs        ? ?/sec

Resource Usage

sql_planner — base (merge-base)

Metric Value
Wall time 1790.4s
Peak memory 139.4 MiB
Avg memory 101.3 MiB
CPU user 1968.5s
CPU sys 1.6s
Peak spill 0 B

sql_planner — branch

Metric Value
Wall time 1870.4s
Peak memory 143.6 MiB
Avg memory 101.4 MiB
CPU user 1977.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 ffi Changes to the ffi crate optimizer Optimizer rules physical-expr Changes to the physical-expr crates sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants