fix mysqltest

This commit is contained in:
SevenJ-swj
2023-07-31 08:48:32 +00:00
committed by ob-robot
parent fe9f8c754d
commit 5b2127c49a

View File

@ -3942,58 +3942,57 @@ drop table if exists v0;
CREATE TABLE v0 ( v1 varchar(127));
EXPLAIN select * from v0 where v1 in (select -127 minus select _BINARY 'x');
Query Plan
====================================================
============================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
----------------------------------------------------
|0 |MERGE JOIN | |1 |5 |
|1 |├─SUBPLAN SCAN |VIEW1|1 |1 |
|2 |│ └─EXPRESSION | |1 |1 |
|3 |└─SORT | |1 |4 |
|4 | └─TABLE FULL SCAN|v0 |1 |4 |
====================================================
------------------------------------------------------------
|0 |NESTED-LOOP JOIN CARTESIAN | |1 |4 |
|1 |├─TABLE FULL SCAN |v0 |1 |4 |
|2 |└─MATERIAL | |1 |1 |
|3 | └─SUBPLAN SCAN |VIEW1|1 |1 |
|4 | └─EXPRESSION | |1 |1 |
============================================================
Outputs & filters:
-------------------------------------
0 - output([v0.v1]), filter(nil), rowset=256
equal_conds([v0.v1 = VIEW1.-127]), other_conds(nil)
merge_directions([ASC])
1 - output([VIEW1.-127]), filter(nil), rowset=256
access([VIEW1.-127])
2 - output([cast(-127, VARCHAR(20))]), filter(nil)
values({cast(-127, VARCHAR(20))})
3 - output([v0.v1]), filter(nil), rowset=256
sort_keys([v0.v1, ASC])
4 - output([v0.v1]), filter(nil), rowset=256
conds(nil), nl_params_(nil), use_batch=false
1 - output([v0.v1]), filter([v0.v1 = cast(cast(-127, VARCHAR(20)), VARCHAR(1048576))]), rowset=256
access([v0.v1]), partitions(p0)
is_index_back=false, is_global_index=false,
is_index_back=false, is_global_index=false, filter_before_indexback[false],
range_key([v0.__pk_increment]), range(MIN ; MAX)always true
2 - output(nil), filter(nil), rowset=256
3 - output(nil), filter(nil), rowset=256
access(nil)
4 - output([1]), filter(nil)
values({1})
select * from v0 where v1 in (select -127 minus select _BINARY 'x');
ERROR HY000: Internal error
+------+
| v1 |
+------+
+------+
explain select * from v0 where v1 in (select -127 minus select _BINARY 'x');
Query Plan
====================================================
============================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
----------------------------------------------------
|0 |MERGE JOIN | |1 |5 |
|1 |├─SUBPLAN SCAN |VIEW1|1 |1 |
|2 |│ └─EXPRESSION | |1 |1 |
|3 |└─SORT | |1 |4 |
|4 | └─TABLE FULL SCAN|v0 |1 |4 |
====================================================
------------------------------------------------------------
|0 |NESTED-LOOP JOIN CARTESIAN | |1 |4 |
|1 |├─TABLE FULL SCAN |v0 |1 |4 |
|2 |└─MATERIAL | |1 |1 |
|3 | └─SUBPLAN SCAN |VIEW1|1 |1 |
|4 | └─EXPRESSION | |1 |1 |
============================================================
Outputs & filters:
-------------------------------------
0 - output([v0.v1]), filter(nil), rowset=256
equal_conds([v0.v1 = VIEW1.-127]), other_conds(nil)
merge_directions([ASC])
1 - output([VIEW1.-127]), filter(nil), rowset=256
access([VIEW1.-127])
2 - output([cast(-127, VARCHAR(20))]), filter(nil)
values({cast(-127, VARCHAR(20))})
3 - output([v0.v1]), filter(nil), rowset=256
sort_keys([v0.v1, ASC])
4 - output([v0.v1]), filter(nil), rowset=256
conds(nil), nl_params_(nil), use_batch=false
1 - output([v0.v1]), filter([v0.v1 = cast(cast(-127, VARCHAR(20)), VARCHAR(1048576))]), rowset=256
access([v0.v1]), partitions(p0)
is_index_back=false, is_global_index=false,
is_index_back=false, is_global_index=false, filter_before_indexback[false],
range_key([v0.__pk_increment]), range(MIN ; MAX)always true
2 - output(nil), filter(nil), rowset=256
3 - output(nil), filter(nil), rowset=256
access(nil)
4 - output([1]), filter(nil)
values({1})
drop table if exists v0;
explain_protocol: 0