From 5b2127c49a307b94c062844ba199a764b15d335d Mon Sep 17 00:00:00 2001 From: SevenJ-swj Date: Mon, 31 Jul 2023 08:48:32 +0000 Subject: [PATCH] fix mysqltest --- .../mysql/transformer_predicate_deduce.result | 77 +++++++++---------- 1 file changed, 38 insertions(+), 39 deletions(-) diff --git a/tools/deploy/mysql_test/test_suite/transformer/r/mysql/transformer_predicate_deduce.result b/tools/deploy/mysql_test/test_suite/transformer/r/mysql/transformer_predicate_deduce.result index 7129ffe757..a9aef4d528 100644 --- a/tools/deploy/mysql_test/test_suite/transformer/r/mysql/transformer_predicate_deduce.result +++ b/tools/deploy/mysql_test/test_suite/transformer/r/mysql/transformer_predicate_deduce.result @@ -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 | -==================================================== +============================================================ +|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)| +------------------------------------------------------------ +|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 | -==================================================== +============================================================ +|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)| +------------------------------------------------------------ +|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