Skip to content

perf(optimizer): avoid redundant aggregate planning work - #24977

Open
neilconway wants to merge 2 commits into
apache:mainfrom
neilconway:neilc/perf-planner-agg-unchanged
Open

perf(optimizer): avoid redundant aggregate planning work#24977
neilconway wants to merge 2 commits into
apache:mainfrom
neilconway:neilc/perf-planner-agg-unchanged

Conversation

@neilconway

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

  • N/A

Rationale for this change

Reduce redundant work in EliminateDuplicatedExpr with two independent optimizations:

  1. Before deduplication, return immediately for zero or one grouping expression. These lists cannot contain duplicate entries, so avoid constructing the deduplication set as well.

  2. After deduplication, reuse the Aggregate if no grouping expressions were removed. This avoids repeating validation, schema construction, and functional-dependency derivation.

This improves query optimizer performance on the TPC-H and TPC-DS queries by about 5%.

What changes are included in this PR?

  • Implement both optimizations described above
  • Add unit tests

What is the testing strategy for this PR?

Existing tests pass. New unit tests added to (1) confirm existing behavior (duplicate removal) (2) confirm optimization (schema reused when no duplicate removal work needs to be done).

I checked that the tests in category (2) fail if the optimization is disabled.

Are there any user-facing changes?

No.

Reduce work in EliminateDuplicatedExpr with two independent optimizations:

1. Before deduplication, return immediately for zero or one grouping
   expression. These lists cannot contain duplicate entries, so avoid
   constructing the deduplication set as well.

2. After deduplication, reuse the Aggregate if no grouping expressions
   were removed. This avoids repeating validation, schema construction,
   and functional-dependency derivation.

This improves query optimizer performance on the TPC-H and TPC-DS
queries by about 5%.
@github-actions github-actions Bot added the optimizer Optimizer rules label Sep 6, 2026
@neilconway

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-c5559700027-2174-rs64g 6.12.94+ #1 SMP Fri Jul 17 09:42:57 UTC 2026 aarch64 GNU/Linux

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

Comparing neilc/perf-planner-agg-unchanged (675cc46) to 722cbf2 (merge-base) diff

Run configuration
run benchmark sql_planner

Results will be posted here when complete


File an issue against this benchmark runner

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 81.53846% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.67%. Comparing base (722cbf2) to head (8c303c4).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...afusion/optimizer/src/eliminate_duplicated_expr.rs 81.53% 2 Missing and 10 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #24977      +/-   ##
==========================================
- Coverage   81.67%   81.67%   -0.01%     
==========================================
  Files        1126     1126              
  Lines      414533   414591      +58     
  Branches   414533   414591      +58     
==========================================
+ Hits       338562   338602      +40     
- Misses      56058    56063       +5     
- Partials    19913    19926      +13     

☔ 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.

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

Checked both fast paths and the existing duplicate-removal path. For zero or one grouping expression the aggregate is returned directly; for a larger duplicate-free list, IndexSet preserves first-occurrence order and moves the same Expr values back while retaining the existing schema and functional dependencies. When duplicates are present, Aggregate::try_new is still used so validation and derived schema state are recomputed. The added tests exercise schema identity and ordered deduplication, and the reported CI matrix is green.

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

Comparing neilc/perf-planner-agg-unchanged (675cc46) to 722cbf2 (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                                   neilc_perf-planner-agg-unchanged
-----                                                 ----                                   --------------------------------
logical_aggregate_with_join                           1.00    410.0±0.83µs        ? ?/sec    1.01    412.2±1.25µs        ? ?/sec
logical_correlated_subquery_exists                    1.01    244.5±0.74µs        ? ?/sec    1.00    243.0±0.97µs        ? ?/sec
logical_correlated_subquery_in                        1.01    246.3±0.82µs        ? ?/sec    1.00    244.9±0.77µs        ? ?/sec
logical_distinct_many_columns                         1.01    527.5±2.50µs        ? ?/sec    1.00    523.4±1.55µs        ? ?/sec
logical_join_4_with_agg_and_filter                    1.00    210.7±0.57µs        ? ?/sec    1.01    211.9±0.69µs        ? ?/sec
logical_join_8_with_agg_sort_limit                    1.00    380.2±1.63µs        ? ?/sec    1.00    381.9±1.72µs        ? ?/sec
logical_join_chain_16                                 1.01    635.0±3.42µs        ? ?/sec    1.00    631.2±3.59µs        ? ?/sec
logical_join_chain_4                                  1.02     82.2±0.34µs        ? ?/sec    1.00     80.3±0.40µs        ? ?/sec
logical_join_chain_8                                  1.00    209.1±1.00µs        ? ?/sec    1.00    209.7±1.12µs        ? ?/sec
logical_multiple_subqueries                           1.00    473.4±1.82µs        ? ?/sec    1.00    473.5±1.69µs        ? ?/sec
logical_nested_cte_4_levels                           1.02    220.5±1.97µs        ? ?/sec    1.00    215.5±0.90µs        ? ?/sec
logical_plan_struct_join_agg_sort                     1.00    135.7±0.86µs        ? ?/sec    1.00    135.4±0.70µs        ? ?/sec
logical_plan_tpcds_all                                1.00     88.8±0.18ms        ? ?/sec    1.00     89.2±0.20ms        ? ?/sec
logical_plan_tpch_all                                 1.00      5.6±0.02ms        ? ?/sec    1.00      5.6±0.02ms        ? ?/sec
logical_scalar_subquery                               1.01    266.2±0.59µs        ? ?/sec    1.00    264.7±0.63µs        ? ?/sec
logical_select_all_from_1000                          1.03    106.4±1.56ms        ? ?/sec    1.00    103.5±0.13ms        ? ?/sec
logical_select_one_from_700                           1.00    287.8±1.81µs        ? ?/sec    1.00    287.3±1.38µs        ? ?/sec
logical_trivial_join_high_numbered_columns            1.00    245.1±0.45µs        ? ?/sec    1.00    245.8±0.68µs        ? ?/sec
logical_trivial_join_low_numbered_columns             1.00    232.9±0.67µs        ? ?/sec    1.00    232.1±0.73µs        ? ?/sec
logical_union_4_branches                              1.01    383.8±1.21µs        ? ?/sec    1.00    381.4±1.24µs        ? ?/sec
logical_union_8_branches                              1.00    764.4±2.21µs        ? ?/sec    1.00    765.5±2.11µs        ? ?/sec
logical_wide_aggregate_100_exprs                      1.00      4.5±0.01ms        ? ?/sec    1.00      4.5±0.01ms        ? ?/sec
logical_wide_case_50_exprs                            1.00      2.3±0.01ms        ? ?/sec    1.00      2.3±0.01ms        ? ?/sec
logical_wide_filter_200_predicates                    1.00   1263.9±7.05µs        ? ?/sec    1.01   1280.6±6.66µs        ? ?/sec
logical_wide_filter_50_predicates                     1.00    346.1±2.25µs        ? ?/sec    1.00    345.6±2.44µs        ? ?/sec
optimizer_correlated_exists                           1.00    224.0±0.52µs        ? ?/sec    1.01    226.4±0.62µs        ? ?/sec
optimizer_join_4_with_agg_filter                      1.04    430.8±1.26µs        ? ?/sec    1.00    415.2±1.60µs        ? ?/sec
optimizer_join_chain_4                                1.00    157.6±0.26µs        ? ?/sec    1.00    158.2±0.31µs        ? ?/sec
optimizer_join_chain_8                                1.00    541.1±1.08µs        ? ?/sec    1.00    541.1±1.08µ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    240.7±0.94µs        ? ?/sec    1.00    240.1±0.62µs        ? ?/sec
optimizer_tpcds_all                                   1.05    301.4±0.25ms        ? ?/sec    1.00    287.3±0.56ms        ? ?/sec
optimizer_tpch_all                                    1.04     16.3±0.03ms        ? ?/sec    1.00     15.6±0.03ms        ? ?/sec
optimizer_wide_aggregate_100                          1.27      2.2±0.00ms        ? ?/sec    1.00   1747.6±2.20µs        ? ?/sec
optimizer_wide_filter_200                             1.00      3.7±0.01ms        ? ?/sec    1.00      3.7±0.01ms        ? ?/sec
physical_intersection                                 1.03    570.8±1.69µs        ? ?/sec    1.00    552.1±2.02µs        ? ?/sec
physical_join_consider_sort                           1.00   1000.6±1.87µs        ? ?/sec    1.00   1005.5±4.41µs        ? ?/sec
physical_join_distinct                                1.00    226.8±0.54µs        ? ?/sec    1.00    226.0±0.68µs        ? ?/sec
physical_many_self_joins                              1.00      7.7±0.03ms        ? ?/sec    1.00      7.7±0.01ms        ? ?/sec
physical_plan_clickbench_all                          1.01    126.4±0.35ms        ? ?/sec    1.00    125.2±0.27ms        ? ?/sec
physical_plan_clickbench_q1                           1.00   1332.6±5.39µs        ? ?/sec    1.00   1331.9±7.07µs        ? ?/sec
physical_plan_clickbench_q10                          1.00      2.0±0.01ms        ? ?/sec    1.00      2.0±0.01ms        ? ?/sec
physical_plan_clickbench_q11                          1.00      2.2±0.01ms        ? ?/sec    1.01      2.2±0.01ms        ? ?/sec
physical_plan_clickbench_q12                          1.02      2.3±0.01ms        ? ?/sec    1.00      2.3±0.01ms        ? ?/sec
physical_plan_clickbench_q13                          1.02      2.0±0.01ms        ? ?/sec    1.00      2.0±0.01ms        ? ?/sec
physical_plan_clickbench_q14                          1.01      2.2±0.01ms        ? ?/sec    1.00      2.2±0.01ms        ? ?/sec
physical_plan_clickbench_q15                          1.01      2.1±0.01ms        ? ?/sec    1.00      2.1±0.01ms        ? ?/sec
physical_plan_clickbench_q16                          1.01  1797.2±13.17µs        ? ?/sec    1.00   1775.6±7.99µs        ? ?/sec
physical_plan_clickbench_q17                          1.02  1850.5±18.11µs        ? ?/sec    1.00   1810.4±5.88µs        ? ?/sec
physical_plan_clickbench_q18                          1.02   1664.5±7.89µs        ? ?/sec    1.00   1634.8±7.47µs        ? ?/sec
physical_plan_clickbench_q19                          1.03      2.1±0.01ms        ? ?/sec    1.00      2.0±0.01ms        ? ?/sec
physical_plan_clickbench_q2                           1.00   1717.6±6.81µs        ? ?/sec    1.00   1725.4±9.55µs        ? ?/sec
physical_plan_clickbench_q20                          1.01   1511.1±4.97µs        ? ?/sec    1.00   1491.1±5.89µs        ? ?/sec
physical_plan_clickbench_q21                          1.00   1723.0±7.17µs        ? ?/sec    1.00   1727.6±9.18µs        ? ?/sec
physical_plan_clickbench_q22                          1.00      2.1±0.01ms        ? ?/sec    1.01      2.2±0.02ms        ? ?/sec
physical_plan_clickbench_q23                          1.00      2.3±0.01ms        ? ?/sec    1.00      2.3±0.01ms        ? ?/sec
physical_plan_clickbench_q24                          1.00      6.5±0.01ms        ? ?/sec    1.00      6.5±0.02ms        ? ?/sec
physical_plan_clickbench_q25                          1.01   1845.6±6.74µs        ? ?/sec    1.00   1835.2±5.64µs        ? ?/sec
physical_plan_clickbench_q26                          1.01   1684.5±6.74µs        ? ?/sec    1.00   1670.5±4.63µs        ? ?/sec
physical_plan_clickbench_q27                          1.00   1873.9±6.51µs        ? ?/sec    1.00   1867.4±7.56µs        ? ?/sec
physical_plan_clickbench_q28                          1.00      2.3±0.01ms        ? ?/sec    1.01      2.3±0.01ms        ? ?/sec
physical_plan_clickbench_q29                          1.00      2.4±0.01ms        ? ?/sec    1.00      2.4±0.01ms        ? ?/sec
physical_plan_clickbench_q3                           1.00   1619.7±6.68µs        ? ?/sec    1.00   1611.8±5.75µs        ? ?/sec
physical_plan_clickbench_q30                          1.00     15.0±0.06ms        ? ?/sec    1.00     15.0±0.04ms        ? ?/sec
physical_plan_clickbench_q31                          1.00      2.4±0.01ms        ? ?/sec    1.01      2.4±0.01ms        ? ?/sec
physical_plan_clickbench_q32                          1.00      2.4±0.01ms        ? ?/sec    1.00      2.4±0.01ms        ? ?/sec
physical_plan_clickbench_q33                          1.01      2.0±0.01ms        ? ?/sec    1.00      2.0±0.00ms        ? ?/sec
physical_plan_clickbench_q34                          1.00   1763.3±6.34µs        ? ?/sec    1.01   1772.1±5.38µs        ? ?/sec
physical_plan_clickbench_q35                          1.00   1806.3±6.97µs        ? ?/sec    1.00   1812.4±5.94µs        ? ?/sec
physical_plan_clickbench_q36                          1.01      2.1±0.01ms        ? ?/sec    1.00      2.1±0.01ms        ? ?/sec
physical_plan_clickbench_q37                          1.00      2.5±0.01ms        ? ?/sec    1.00      2.5±0.01ms        ? ?/sec
physical_plan_clickbench_q38                          1.00      2.5±0.01ms        ? ?/sec    1.02      2.5±0.01ms        ? ?/sec
physical_plan_clickbench_q39                          1.00      2.6±0.02ms        ? ?/sec    1.00      2.6±0.01ms        ? ?/sec
physical_plan_clickbench_q4                           1.00   1434.2±5.63µs        ? ?/sec    1.00   1434.7±6.47µs        ? ?/sec
physical_plan_clickbench_q40                          1.00      3.3±0.01ms        ? ?/sec    1.00      3.3±0.01ms        ? ?/sec
physical_plan_clickbench_q41                          1.00      2.8±0.01ms        ? ?/sec    1.00      2.8±0.01ms        ? ?/sec
physical_plan_clickbench_q42                          1.01      3.0±0.01ms        ? ?/sec    1.00      3.0±0.01ms        ? ?/sec
physical_plan_clickbench_q43                          1.01      3.2±0.01ms        ? ?/sec    1.00      3.1±0.01ms        ? ?/sec
physical_plan_clickbench_q44                          1.02   1553.4±6.05µs        ? ?/sec    1.00   1517.2±5.30µs        ? ?/sec
physical_plan_clickbench_q45                          1.04   1580.9±6.74µs        ? ?/sec    1.00   1520.7±5.41µs        ? ?/sec
physical_plan_clickbench_q46                          1.03   1868.5±7.17µs        ? ?/sec    1.00   1822.0±4.67µs        ? ?/sec
physical_plan_clickbench_q47                          1.02      2.5±0.01ms        ? ?/sec    1.00      2.5±0.01ms        ? ?/sec
physical_plan_clickbench_q48                          1.01      2.7±0.01ms        ? ?/sec    1.00      2.7±0.01ms        ? ?/sec
physical_plan_clickbench_q49                          1.02      2.8±0.01ms        ? ?/sec    1.00      2.7±0.01ms        ? ?/sec
physical_plan_clickbench_q5                           1.00   1579.2±6.66µs        ? ?/sec    1.00   1573.1±5.27µs        ? ?/sec
physical_plan_clickbench_q50                          1.00      2.7±0.01ms        ? ?/sec    1.00      2.7±0.02ms        ? ?/sec
physical_plan_clickbench_q51                          1.00   1991.4±8.13µs        ? ?/sec    1.00   1987.1±8.79µs        ? ?/sec
physical_plan_clickbench_q6                           1.00   1585.3±6.19µs        ? ?/sec    1.00   1579.3±6.74µs        ? ?/sec
physical_plan_clickbench_q7                           1.01   1411.4±5.72µs        ? ?/sec    1.00   1392.9±6.43µs        ? ?/sec
physical_plan_clickbench_q8                           1.00   1922.4±6.63µs        ? ?/sec    1.00   1913.5±6.08µs        ? ?/sec
physical_plan_clickbench_q9                           1.00  1915.1±13.30µs        ? ?/sec    1.00   1914.9±6.24µs        ? ?/sec
physical_plan_struct_join_agg_sort                    1.03   1279.8±3.17µs        ? ?/sec    1.00   1242.6±2.53µs        ? ?/sec
physical_plan_tpcds_all                               1.03    708.3±0.73ms        ? ?/sec    1.00    690.9±3.04ms        ? ?/sec
physical_plan_tpch_all                                1.03     43.9±0.06ms        ? ?/sec    1.00     42.6±0.08ms        ? ?/sec
physical_plan_tpch_q1                                 1.05   1512.0±3.79µs        ? ?/sec    1.00   1441.1±4.33µs        ? ?/sec
physical_plan_tpch_q10                                1.02      2.7±0.00ms        ? ?/sec    1.00      2.7±0.02ms        ? ?/sec
physical_plan_tpch_q11                                1.01      2.2±0.00ms        ? ?/sec    1.00      2.2±0.00ms        ? ?/sec
physical_plan_tpch_q12                                1.00   1192.0±3.45µs        ? ?/sec    1.00   1193.5±2.25µs        ? ?/sec
physical_plan_tpch_q13                                1.00    987.9±2.52µs        ? ?/sec    1.00    983.9±2.63µs        ? ?/sec
physical_plan_tpch_q14                                1.04   1365.5±3.31µs        ? ?/sec    1.00   1309.9±4.93µs        ? ?/sec
physical_plan_tpch_q16                                1.02   1599.7±2.82µs        ? ?/sec    1.00  1564.3±11.41µs        ? ?/sec
physical_plan_tpch_q17                                1.01   1592.0±3.71µs        ? ?/sec    1.00   1571.6±3.51µs        ? ?/sec
physical_plan_tpch_q18                                1.03   1925.4±4.67µs        ? ?/sec    1.00   1872.7±3.18µs        ? ?/sec
physical_plan_tpch_q19                                1.05  1862.3±12.20µs        ? ?/sec    1.00   1778.9±3.17µs        ? ?/sec
physical_plan_tpch_q2                                 1.00      3.6±0.00ms        ? ?/sec    1.00      3.5±0.01ms        ? ?/sec
physical_plan_tpch_q20                                1.02      2.1±0.00ms        ? ?/sec    1.00      2.1±0.00ms        ? ?/sec
physical_plan_tpch_q21                                1.01      2.8±0.00ms        ? ?/sec    1.00      2.8±0.00ms        ? ?/sec
physical_plan_tpch_q22                                1.03   1484.4±3.01µs        ? ?/sec    1.00   1443.2±1.84µs        ? ?/sec
physical_plan_tpch_q3                                 1.03   1834.5±3.87µs        ? ?/sec    1.00   1786.0±4.65µs        ? ?/sec
physical_plan_tpch_q4                                 1.01   1171.9±3.83µs        ? ?/sec    1.00   1160.8±2.31µs        ? ?/sec
physical_plan_tpch_q5                                 1.03      2.7±0.01ms        ? ?/sec    1.00      2.6±0.00ms        ? ?/sec
physical_plan_tpch_q6                                 1.01    578.3±1.85µs        ? ?/sec    1.00    570.9±2.26µs        ? ?/sec
physical_plan_tpch_q7                                 1.01      2.8±0.00ms        ? ?/sec    1.00      2.8±0.00ms        ? ?/sec
physical_plan_tpch_q8                                 1.01      3.8±0.00ms        ? ?/sec    1.00      3.8±0.01ms        ? ?/sec
physical_plan_tpch_q9                                 1.00      2.6±0.00ms        ? ?/sec    1.00      2.6±0.00ms        ? ?/sec
physical_select_aggregates_from_200                   1.03     15.3±0.05ms        ? ?/sec    1.00     14.9±0.05ms        ? ?/sec
physical_select_all_from_1000                         1.00    115.0±0.44ms        ? ?/sec    1.02    116.8±1.79ms        ? ?/sec
physical_select_one_from_700                          1.00    730.7±2.37µs        ? ?/sec    1.00    729.8±1.72µs        ? ?/sec
physical_sorted_union_order_by_10_int64               1.00      4.0±0.01ms        ? ?/sec    1.00      4.0±0.00ms        ? ?/sec
physical_sorted_union_order_by_10_uint64              1.00      7.8±0.01ms        ? ?/sec    1.00      7.9±0.01ms        ? ?/sec
physical_sorted_union_order_by_50_int64               1.00     91.7±0.24ms        ? ?/sec    1.00     92.1±0.46ms        ? ?/sec
physical_sorted_union_order_by_50_uint64              1.01    313.2±0.78ms        ? ?/sec    1.00    311.3±0.79ms        ? ?/sec
physical_theta_join_consider_sort                     1.00   1027.8±2.68µs        ? ?/sec    1.00   1028.5±2.40µs        ? ?/sec
physical_unnest_to_join                               1.01    597.4±1.96µs        ? ?/sec    1.00    592.2±5.50µs        ? ?/sec
physical_window_function_partition_by_12_on_values    1.00    658.1±3.59µs        ? ?/sec    1.00    659.1±1.65µs        ? ?/sec
physical_window_function_partition_by_30_on_values    1.00   1348.4±6.06µs        ? ?/sec    1.00   1347.1±2.65µs        ? ?/sec
physical_window_function_partition_by_4_on_values     1.00    379.8±1.06µs        ? ?/sec    1.02    385.9±2.17µs        ? ?/sec
physical_window_function_partition_by_7_on_values     1.00    478.9±1.10µs        ? ?/sec    1.01    484.3±3.88µs        ? ?/sec
physical_window_function_partition_by_8_on_values     1.00    516.9±1.86µs        ? ?/sec    1.01    522.5±1.36µs        ? ?/sec
with_param_values_many_columns                        1.00    426.7±2.19µs        ? ?/sec    1.01    431.5±2.44µs        ? ?/sec

Resource Usage

sql_planner — base (merge-base)

Metric Value
Wall time 2415.5s
Peak memory 129.8 MiB
Avg memory 64.6 MiB
CPU user 1864.5s
CPU sys 1.3s
Peak spill 0 B

sql_planner — branch

Metric Value
Wall time 2420.5s
Peak memory 127.1 MiB
Avg memory 63.9 MiB
CPU user 1860.8s
CPU sys 1.3s
Peak spill 0 B

File an issue against this benchmark runner

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

Labels

optimizer Optimizer rules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants