[FEAT MERGE] ENHANCE CARDINALITY ESTIMATION AND OPTIMIZER STATS MANAGEMENT

Co-authored-by: ChangerR <dingjinchengyx@163.com>
Co-authored-by: wangt1xiuyi <13547954130@163.com>
This commit is contained in:
xianyu-w
2024-08-15 13:15:09 +00:00
committed by ob-robot
parent 1320abda92
commit f2b2472f5e
108 changed files with 7295 additions and 1545 deletions

View File

@ -5964,7 +5964,8 @@ Outputs & filters:
-------------------------------------
0 - output([T_FUN_COUNT(*)]), filter(nil), rowset=256
group(nil), agg_func([T_FUN_COUNT(*)])
1 - output(nil), filter([result.t2c0 = 1489403758], [concat(result.t1c0, '') = 'q6h]zjLt)|[?S*C'], [concat(result.t0c0, '') IS NULL], [result.t0c1 = 398204275]), rowset=256
1 - output(nil), filter([result.t0c1 = 398204275], [result.t2c0 = 1489403758], [concat(result.t1c0, '') = 'q6h]zjLt)|[?S*C'], [concat(result.t0c0, '')
IS NULL]), rowset=256
access([result.t0c0], [result.t0c1], [result.t2c0], [result.t1c0])
2 - output([t0.c0], [t0.c1], [t2.c0], [t1.c0]), filter(nil), rowset=256
limit(2147483647), offset(0)
@ -6020,7 +6021,8 @@ Outputs & filters:
-------------------------------------
0 - output([T_FUN_COUNT(*)]), filter(nil), rowset=256
group(nil), agg_func([T_FUN_COUNT(*)])
1 - output(nil), filter([result.t2c0 = 1489403758], [concat(result.t1c0, '') = 'q6h]zjLt)|[?S*C'], [concat(result.t0c0, '') IS NULL], [result.t0c1 = 398204275]), rowset=256
1 - output(nil), filter([result.t0c1 = 398204275], [result.t2c0 = 1489403758], [concat(result.t1c0, '') = 'q6h]zjLt)|[?S*C'], [concat(result.t0c0, '')
IS NULL]), rowset=256
access([result.t0c0], [result.t0c1], [result.t2c0], [result.t1c0])
2 - output([t0.c0], [t0.c1], [t2.c0], [t1.c0]), filter(nil), rowset=256
limit(2147483647), offset(0)

View File

@ -1251,8 +1251,8 @@ Query Plan
==============================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
------------------------------------------------------------------------------
|0 |SORT | |1 |6064 |
|1 |└─SUBPLAN FILTER | |1 |6064 |
|0 |SORT | |2 |6064 |
|1 |└─SUBPLAN FILTER | |2 |6064 |
|2 | ├─PX COORDINATOR | |5 |9 |
|3 | │ └─EXCHANGE OUT DISTR |:EX10000|5 |8 |
|4 | │ └─PX BLOCK ITERATOR | |5 |6 |
@ -1775,7 +1775,7 @@ Optimization Info:
table_dop:1
dop_method:Table DOP
avaiable_index_name:[t1]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:1
estimation method:[DYNAMIC SAMPLING FULL]
t2:
@ -1787,7 +1787,7 @@ Optimization Info:
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
Plan Type:
@ -1879,7 +1879,7 @@ Optimization Info:
table_dop:1
dop_method:Table DOP
avaiable_index_name:[t1]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:1
estimation method:[DYNAMIC SAMPLING FULL]
t2:
@ -1887,11 +1887,11 @@ Optimization Info:
physical_range_rows:7
logical_range_rows:7
index_back_rows:0
output_rows:2
output_rows:4
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
Plan Type:
@ -1983,7 +1983,7 @@ Optimization Info:
table_dop:1
dop_method:Table DOP
avaiable_index_name:[t1]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:1
estimation method:[DYNAMIC SAMPLING FULL]
t2:
@ -1995,7 +1995,7 @@ Optimization Info:
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
Plan Type:
@ -2095,7 +2095,7 @@ Optimization Info:
table_dop:1
dop_method:Table DOP
avaiable_index_name:[t1]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:1
estimation method:[DYNAMIC SAMPLING FULL]
t2:
@ -2107,7 +2107,7 @@ Optimization Info:
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
t2:
@ -2119,7 +2119,7 @@ Optimization Info:
table_dop:1
dop_method:Table DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
Plan Type:
@ -2219,7 +2219,7 @@ Optimization Info:
table_dop:1
dop_method:Table DOP
avaiable_index_name:[t1]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:1
estimation method:[DYNAMIC SAMPLING FULL]
t2:
@ -2231,7 +2231,7 @@ Optimization Info:
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
t2:
@ -2243,7 +2243,7 @@ Optimization Info:
table_dop:1
dop_method:Table DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
Plan Type:
@ -2343,7 +2343,7 @@ Optimization Info:
table_dop:1
dop_method:Table DOP
avaiable_index_name:[t1]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:1
estimation method:[DYNAMIC SAMPLING FULL]
t2:
@ -2355,7 +2355,7 @@ Optimization Info:
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
t2:
@ -2367,7 +2367,7 @@ Optimization Info:
table_dop:1
dop_method:Table DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
Plan Type:
@ -2467,7 +2467,7 @@ Optimization Info:
table_dop:1
dop_method:Table DOP
avaiable_index_name:[t1]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:1
estimation method:[DYNAMIC SAMPLING FULL]
t2:
@ -2479,7 +2479,7 @@ Optimization Info:
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
t2:
@ -2491,7 +2491,7 @@ Optimization Info:
table_dop:1
dop_method:Table DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
Plan Type:
@ -2600,7 +2600,7 @@ Optimization Info:
table_dop:1
dop_method:Table DOP
avaiable_index_name:[t1]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:1
estimation method:[DYNAMIC SAMPLING FULL]
t2:
@ -2612,7 +2612,7 @@ Optimization Info:
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
t2:
@ -2624,7 +2624,7 @@ Optimization Info:
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
t2:
@ -2636,7 +2636,7 @@ Optimization Info:
table_dop:1
dop_method:Table DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
Plan Type:
@ -2787,7 +2787,7 @@ Optimization Info:
table_dop:1
dop_method:Table DOP
avaiable_index_name:[t1]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:1
estimation method:[DYNAMIC SAMPLING FULL]
t2:
@ -2799,7 +2799,7 @@ Optimization Info:
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
t2:
@ -2811,7 +2811,7 @@ Optimization Info:
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
t2:
@ -2823,7 +2823,7 @@ Optimization Info:
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
t2:
@ -2835,7 +2835,7 @@ Optimization Info:
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
t2:
@ -2847,7 +2847,7 @@ Optimization Info:
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
t2:
@ -2859,7 +2859,7 @@ Optimization Info:
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
t2:
@ -2871,7 +2871,7 @@ Optimization Info:
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
Plan Type:
@ -3022,7 +3022,7 @@ Optimization Info:
table_dop:1
dop_method:Table DOP
avaiable_index_name:[t1]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:1
estimation method:[DYNAMIC SAMPLING FULL]
t2:
@ -3034,7 +3034,7 @@ Optimization Info:
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
t2:
@ -3046,7 +3046,7 @@ Optimization Info:
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
t2:
@ -3058,7 +3058,7 @@ Optimization Info:
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
t2:
@ -3070,7 +3070,7 @@ Optimization Info:
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
t2:
@ -3082,7 +3082,7 @@ Optimization Info:
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
t2:
@ -3094,7 +3094,7 @@ Optimization Info:
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
t2:
@ -3106,7 +3106,7 @@ Optimization Info:
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
Plan Type:
@ -3257,7 +3257,7 @@ Optimization Info:
table_dop:1
dop_method:Table DOP
avaiable_index_name:[t1]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:1
estimation method:[DYNAMIC SAMPLING FULL]
t2:
@ -3269,7 +3269,7 @@ Optimization Info:
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
t2:
@ -3281,7 +3281,7 @@ Optimization Info:
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
t2:
@ -3293,7 +3293,7 @@ Optimization Info:
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
t2:
@ -3305,7 +3305,7 @@ Optimization Info:
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
t2:
@ -3317,7 +3317,7 @@ Optimization Info:
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
t2:
@ -3329,7 +3329,7 @@ Optimization Info:
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
t2:
@ -3341,7 +3341,7 @@ Optimization Info:
table_dop:1
dop_method:DAS DOP
avaiable_index_name:[t2]
stats version:0
stats info:[version=0, is_locked=0, is_expired=0]
dynamic sampling level:0
estimation method:[DEFAULT, STORAGE]
Plan Type:

View File

@ -183,7 +183,7 @@ Query Plan
==================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
--------------------------------------------------
|0 |TABLE RANGE SCAN|t1(i1)|1 |7 |
|0 |TABLE RANGE SCAN|t1(i1)|1 |8 |
==================================================
Outputs & filters:
-------------------------------------
@ -251,7 +251,7 @@ Query Plan
===================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
---------------------------------------------------
|0 |TABLE RANGE SCAN|t1(idx)|1 |7 |
|0 |TABLE RANGE SCAN|t1(idx)|2 |10 |
===================================================
Outputs & filters:
-------------------------------------
@ -275,7 +275,7 @@ Query Plan
===================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
---------------------------------------------------
|0 |TABLE RANGE SCAN|t1(idx)|1 |19 |
|0 |TABLE RANGE SCAN|t1(idx)|2 |20 |
===================================================
Outputs & filters:
-------------------------------------