fix mysqltest

This commit is contained in:
chimyue
2023-06-12 07:12:59 +00:00
committed by ob-robot
parent e16be514e6
commit e4c374680c
2 changed files with 22 additions and 30 deletions

View File

@ -274,7 +274,6 @@ void ObSqlCtx::clear()
spm_ctx_.bl_key_.reset(); spm_ctx_.bl_key_.reset();
cur_stmt_ = nullptr; cur_stmt_ = nullptr;
is_text_ps_mode_ = false; is_text_ps_mode_ = false;
is_strict_defensive_check_ = false;
} }
OB_SERIALIZE_MEMBER(ObSqlCtx, stmt_type_); OB_SERIALIZE_MEMBER(ObSqlCtx, stmt_type_);

View File

@ -294,42 +294,35 @@ call dbms_stats.gather_table_stats('test','t_p');
call dbms_stats.gather_table_stats('test','t_p4'); call dbms_stats.gather_table_stats('test','t_p4');
explain basic delete /*+no_use_px, use_nl(t_p,t_p4), parallel(10)*/ t_p from t_p,t_p4 where t_p.c1 = t_p4.c1 and t_p.c1 >= 5; explain basic delete /*+no_use_px, use_nl(t_p,t_p4), parallel(10)*/ t_p from t_p,t_p4 where t_p.c1 = t_p4.c1 and t_p.c1 >= 5;
Query Plan Query Plan
================================================= ========================================
|ID|OPERATOR |NAME | |ID|OPERATOR |NAME |
------------------------------------------------- ----------------------------------------
|0 |DISTRIBUTED DELETE | | |0 |PX COORDINATOR | |
|1 |└─PX COORDINATOR | | |1 |└─EXCHANGE OUT DISTR |:EX10000|
|2 | └─EXCHANGE OUT DISTR |:EX10001| |2 | └─PX PARTITION ITERATOR | |
|3 | └─NESTED-LOOP JOIN | | |3 | └─DELETE | |
|4 | ├─EXCHANGE IN DISTR | | |4 | └─NESTED-LOOP JOIN | |
|5 | │ └─EXCHANGE OUT DISTR (PKEY)|:EX10000| |5 | ├─TABLE RANGE SCAN|t_p |
|6 | └─PX BLOCK ITERATOR | | |6 | └─TABLE GET |t_p4 |
|7 | │ └─TABLE RANGE SCAN |t_p | ========================================
|8 | └─PX PARTITION ITERATOR | |
|9 | └─TABLE GET |t_p4 |
=================================================
Outputs & filters: Outputs & filters:
------------------------------------- -------------------------------------
0 - output(nil), filter(nil) 0 - output(nil), filter(nil), rowset=256
table_columns([{t_p: ({t_p: (t_p.c1, t_p.c2, t_p.c3)})}]) 1 - output(nil), filter(nil), rowset=256
1 - output([t_p.c1], [t_p.c2], [t_p.c3]), filter(nil), rowset=256
2 - output([t_p.c1], [t_p.c2], [t_p.c3]), filter(nil), rowset=256
dop=4 dop=4
3 - output([t_p.c1], [t_p.c2], [t_p.c3]), filter(nil), rowset=256 2 - output(nil), filter(nil), rowset=256
conds(nil), nl_params_([t_p.c1(:0)]), use_batch=false partition wise, force partition granule
4 - output([t_p.c1], [t_p.c2], [t_p.c3], [PARTITION_ID]), filter(nil), rowset=256 3 - output(nil), filter(nil)
5 - output([t_p.c1], [t_p.c2], [t_p.c3], [PARTITION_ID]), filter(nil), rowset=256 table_columns([{t_p: ({t_p: (t_p.c1, t_p.c2, t_p.c3)})}])
(#keys=1, [t_p.c1]), dop=10 4 - output([t_p.c1], [t_p.c2], [t_p.c3]), filter(nil), rowset=256
6 - output([t_p.c1], [t_p.c2], [t_p.c3]), filter(nil), rowset=256 conds(nil), nl_params_([t_p.c1(:0)]), use_batch=true
7 - output([t_p.c1], [t_p.c2], [t_p.c3]), filter(nil), rowset=256 5 - output([t_p.c1], [t_p.c2], [t_p.c3]), filter(nil), rowset=256
access([t_p.c1], [t_p.c2], [t_p.c3]), partitions(p[0-3]) access([t_p.c1], [t_p.c2], [t_p.c3]), partitions(p[0-3])
is_index_back=false, is_global_index=false, is_index_back=false, is_global_index=false,
range_key([t_p.c1]), range[5 ; MAX), range_key([t_p.c1]), range[5 ; MAX),
range_cond([t_p.c1 >= 5]) range_cond([t_p.c1 >= 5])
8 - output(nil), filter(nil), rowset=256 6 - output(nil), filter(nil), rowset=256
affinitize access([GROUP_ID]), partitions(p[0-3])
9 - output(nil), filter(nil), rowset=256
access(nil), partitions(p[0-3])
is_index_back=false, is_global_index=false, is_index_back=false, is_global_index=false,
range_key([t_p4.c1]), range(MIN ; MAX), range_key([t_p4.c1]), range(MIN ; MAX),
range_cond([:0 = t_p4.c1]) range_cond([:0 = t_p4.c1])