Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mtr修改 #177

Merged
merged 2 commits into from
Oct 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions mysql-test/r/explain_other.result-pq
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@ Warnings:
Warning 1681 Integer display width is deprecated and will be removed in a future release.
EXPLAIN SELECT alias1.pk AS field1 FROM h2 AS alias1 LEFT JOIN aa3 AS alias2 ON alias1.pk = alias2.col_int_key WHERE alias1.pk <> 9 GROUP BY field1 ORDER BY field1 LIMIT 1 OFFSET 3;;
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers)
2 SIMPLE alias1 NULL index PRIMARY PRIMARY 4 NULL 4 100.00 Using where; Using index
2 SIMPLE alias2 NULL ref col_int_key col_int_key 5 mysqltest1.alias1.pk 1 100.00 Using index
Warnings:
Expand Down Expand Up @@ -1479,7 +1479,7 @@ select 1 from t1 inner join t2 using(a); ;
SET DEBUG_SYNC= 'now WAIT_FOR ready_for_explain';
SET DEBUG_SYNC= 'after_explain_other SIGNAL explained';
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (3 workers)
2 SIMPLE t2 NULL index a a 11 NULL 3 100.00 Using index
2 SIMPLE t1 NULL ALL a NULL NULL NULL 4 100.00 Range checked for each record (index map: 0x1)
connection: cq
Expand All @@ -1493,7 +1493,7 @@ select 1 from t1 inner join t2 using(a);;
SET DEBUG_SYNC= 'now WAIT_FOR ready_for_explain';
SET DEBUG_SYNC= 'after_explain_other SIGNAL explained';
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (3 workers)
2 SIMPLE t2 NULL index a a 11 NULL 3 100.00 Using index
2 SIMPLE t1 NULL ALL a NULL NULL NULL 4 100.00 Range checked for each record (index map: 0x1)
connection: cq
Expand All @@ -1507,7 +1507,7 @@ select 1 from t1 inner join t2 using(a);;
SET DEBUG_SYNC= 'now WAIT_FOR ready_for_explain';
SET DEBUG_SYNC= 'after_explain_other SIGNAL explained';
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (3 workers)
2 SIMPLE t2 NULL index a a 11 NULL 3 100.00 Using index
2 SIMPLE t1 NULL ALL a NULL NULL NULL 4 100.00 Range checked for each record (index map: 0x1)
connection: cq
Expand Down
28 changes: 14 additions & 14 deletions mysql-test/r/group_min_max.result-pq
Original file line number Diff line number Diff line change
Expand Up @@ -4168,7 +4168,7 @@ NULL 7
EXPLAIN SELECT group_by_col, MIN(aggr_col) FROM a
WHERE (group_by_col IN (70 ,9)) OR (aggr_col > 2) GROUP BY group_by_col;
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 6 55.55 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 6 55.55 Parallel execute (4 workers)
2 SIMPLE a NULL index aggr_col_key,group_by_col_key group_by_col_key 10 NULL 6 55.55 Using where; Using index
Warnings:
Note 1003 /* select#1 */ select `test`.`a`.`group_by_col` AS `group_by_col`,min(`test`.`a`.`aggr_col`) AS `MIN(aggr_col)` from `test`.`a` where ((`test`.`a`.`group_by_col` in (70,9)) or (`test`.`a`.`aggr_col` > 2)) group by `test`.`a`.`group_by_col`
Expand All @@ -4185,7 +4185,7 @@ NULL 7
EXPLAIN SELECT group_by_col, MAX(aggr_col) FROM a
WHERE (group_by_col IN (70 , 9)) OR (aggr_col < 9) GROUP BY group_by_col;
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 6 55.55 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 6 55.55 Parallel execute (4 workers)
2 SIMPLE a NULL index aggr_col_key,group_by_col_key group_by_col_key 10 NULL 6 55.55 Using where; Using index
Warnings:
Note 1003 /* select#1 */ select `test`.`a`.`group_by_col` AS `group_by_col`,max(`test`.`a`.`aggr_col`) AS `MAX(aggr_col)` from `test`.`a` where ((`test`.`a`.`group_by_col` in (70,9)) or (`test`.`a`.`aggr_col` < 9)) group by `test`.`a`.`group_by_col`
Expand All @@ -4204,7 +4204,7 @@ NULL 7
EXPLAIN SELECT group_by_col, MIN(aggr_col) FROM a
WHERE (group_by_col IN (70, 9)) OR (aggr_col > 2) GROUP BY group_by_col;
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 6 55.55 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 6 55.55 Parallel execute (4 workers)
2 SIMPLE a NULL index group_by_col_key group_by_col_key 10 NULL 6 55.55 Using where; Using index
Warnings:
Note 1003 /* select#1 */ select `test`.`a`.`group_by_col` AS `group_by_col`,min(`test`.`a`.`aggr_col`) AS `MIN(aggr_col)` from `test`.`a` where ((`test`.`a`.`group_by_col` in (70,9)) or (`test`.`a`.`aggr_col` > 2)) group by `test`.`a`.`group_by_col`
Expand All @@ -4221,7 +4221,7 @@ NULL 7
EXPLAIN SELECT group_by_col, MAX(aggr_col) FROM a
WHERE (group_by_col IN (70, 9)) OR (aggr_col < 9) GROUP BY group_by_col;
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 6 55.55 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 6 55.55 Parallel execute (4 workers)
2 SIMPLE a NULL index group_by_col_key group_by_col_key 10 NULL 6 55.55 Using where; Using index
Warnings:
Note 1003 /* select#1 */ select `test`.`a`.`group_by_col` AS `group_by_col`,max(`test`.`a`.`aggr_col`) AS `MAX(aggr_col)` from `test`.`a` where ((`test`.`a`.`group_by_col` in (70,9)) or (`test`.`a`.`aggr_col` < 9)) group by `test`.`a`.`group_by_col`
Expand All @@ -4238,7 +4238,7 @@ NULL 9 9
EXPLAIN SELECT group_by_col, MIN(aggr_col), MAX(aggr_col) FROM a
WHERE (group_by_col IN (3, 9)) OR (aggr_col = 9) GROUP BY group_by_col;
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 6 44.44 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 6 44.44 Parallel execute (4 workers)
2 SIMPLE a NULL index group_by_col_key group_by_col_key 10 NULL 6 44.44 Using where; Using index
Warnings:
Note 1003 /* select#1 */ select `test`.`a`.`group_by_col` AS `group_by_col`,min(`test`.`a`.`aggr_col`) AS `MIN(aggr_col)`,max(`test`.`a`.`aggr_col`) AS `MAX(aggr_col)` from `test`.`a` where ((`test`.`a`.`group_by_col` in (3,9)) or (`test`.`a`.`aggr_col` = 9)) group by `test`.`a`.`group_by_col`
Expand All @@ -4256,7 +4256,7 @@ NULL 9 9
EXPLAIN SELECT group_by_col, MIN(aggr_col), MAX(aggr_col) FROM a
WHERE (group_by_col = 3) OR (aggr_col > 8) GROUP BY group_by_col;
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 6 55.55 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 6 55.55 Parallel execute (4 workers)
2 SIMPLE a NULL index group_by_col_key group_by_col_key 10 NULL 6 55.55 Using where; Using index
Warnings:
Note 1003 /* select#1 */ select `test`.`a`.`group_by_col` AS `group_by_col`,min(`test`.`a`.`aggr_col`) AS `MIN(aggr_col)`,max(`test`.`a`.`aggr_col`) AS `MAX(aggr_col)` from `test`.`a` where ((`test`.`a`.`group_by_col` = 3) or (`test`.`a`.`aggr_col` > 8)) group by `test`.`a`.`group_by_col`
Expand All @@ -4282,7 +4282,7 @@ NULL 7 9
EXPLAIN SELECT group_by_col, MIN(aggr_col), MAX(aggr_col) FROM a
WHERE group_by_col = 9 OR aggr_col GROUP BY group_by_col;
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 9 91.11 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 9 91.11 Parallel execute (4 workers)
2 SIMPLE a NULL index group_by_col_key group_by_col_key 10 NULL 9 91.11 Using where; Using index
Warnings:
Note 1003 /* select#1 */ select `test`.`a`.`group_by_col` AS `group_by_col`,min(`test`.`a`.`aggr_col`) AS `MIN(aggr_col)`,max(`test`.`a`.`aggr_col`) AS `MAX(aggr_col)` from `test`.`a` where ((`test`.`a`.`group_by_col` = 9) or (0 <> `test`.`a`.`aggr_col`)) group by `test`.`a`.`group_by_col`
Expand All @@ -4302,7 +4302,7 @@ NULL 7 7
EXPLAIN SELECT group_by_col, MIN(aggr_col), MAX(aggr_col) FROM a
WHERE group_by_col OR (aggr_col < 9) GROUP BY group_by_col;
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 9 92.59 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 9 92.59 Parallel execute (4 workers)
2 SIMPLE a NULL index group_by_col_key group_by_col_key 10 NULL 9 92.59 Using where; Using index
Warnings:
Note 1003 /* select#1 */ select `test`.`a`.`group_by_col` AS `group_by_col`,min(`test`.`a`.`aggr_col`) AS `MIN(aggr_col)`,max(`test`.`a`.`aggr_col`) AS `MAX(aggr_col)` from `test`.`a` where ((0 <> `test`.`a`.`group_by_col`) or (`test`.`a`.`aggr_col` < 9)) group by `test`.`a`.`group_by_col`
Expand All @@ -4319,7 +4319,7 @@ group_by_col MIN(aggr_col) MAX(aggr_col)
EXPLAIN SELECT group_by_col, MIN(aggr_col), MAX(aggr_col) FROM a
WHERE aggr_col = group_by_col GROUP BY group_by_col;
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 12 100.00 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 12 100.00 Parallel execute (4 workers)
2 SIMPLE a NULL index group_by_col_key group_by_col_key 10 NULL 12 100.00 Using where; Using index
Warnings:
Note 1003 /* select#1 */ select `test`.`a`.`group_by_col` AS `group_by_col`,min(`test`.`a`.`aggr_col`) AS `MIN(aggr_col)`,max(`test`.`a`.`aggr_col`) AS `MAX(aggr_col)` from `test`.`a` where (`test`.`a`.`group_by_col` = `test`.`a`.`aggr_col`) group by `test`.`a`.`group_by_col`
Expand All @@ -4338,7 +4338,7 @@ group_by_col MIN(aggr_col) MAX(aggr_col)
EXPLAIN SELECT group_by_col, MIN(aggr_col), MAX(aggr_col) FROM a
WHERE aggr_col < group_by_col GROUP BY group_by_col;
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 12 33.33 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 12 33.33 Parallel execute (4 workers)
2 SIMPLE a NULL index group_by_col_key group_by_col_key 10 NULL 12 33.33 Using where; Using index
Warnings:
Note 1003 /* select#1 */ select `test`.`a`.`group_by_col` AS `group_by_col`,min(`test`.`a`.`aggr_col`) AS `MIN(aggr_col)`,max(`test`.`a`.`aggr_col`) AS `MAX(aggr_col)` from `test`.`a` where (`test`.`a`.`aggr_col` < `test`.`a`.`group_by_col`) group by `test`.`a`.`group_by_col`
Expand All @@ -4361,7 +4361,7 @@ NULL 7 9
EXPLAIN SELECT group_by_col, MIN(aggr_col), MAX(aggr_col) FROM a
WHERE aggr_col OR group_by_col GROUP BY group_by_col;
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 15 99.00 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 15 99.00 Parallel execute (4 workers)
2 SIMPLE a NULL index group_by_col_key group_by_col_key 10 NULL 15 99.00 Using where; Using index
Warnings:
Note 1003 /* select#1 */ select `test`.`a`.`group_by_col` AS `group_by_col`,min(`test`.`a`.`aggr_col`) AS `MIN(aggr_col)`,max(`test`.`a`.`aggr_col`) AS `MAX(aggr_col)` from `test`.`a` where ((0 <> `test`.`a`.`aggr_col`) or (0 <> `test`.`a`.`group_by_col`)) group by `test`.`a`.`group_by_col`
Expand All @@ -4380,7 +4380,7 @@ group_by_col MIN(aggr_col) MAX(aggr_col)
EXPLAIN SELECT group_by_col, MIN(aggr_col), MAX(aggr_col) FROM a
WHERE aggr_col AND group_by_col GROUP BY group_by_col;
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 15 81.00 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 15 81.00 Parallel execute (4 workers)
2 SIMPLE a NULL index group_by_col_key group_by_col_key 10 NULL 15 81.00 Using where; Using index
Warnings:
Note 1003 /* select#1 */ select `test`.`a`.`group_by_col` AS `group_by_col`,min(`test`.`a`.`aggr_col`) AS `MIN(aggr_col)`,max(`test`.`a`.`aggr_col`) AS `MAX(aggr_col)` from `test`.`a` where ((0 <> `test`.`a`.`aggr_col`) and (0 <> `test`.`a`.`group_by_col`)) group by `test`.`a`.`group_by_col`
Expand All @@ -4399,7 +4399,7 @@ group_by_col MIN(aggr_col) MAX(aggr_col)
EXPLAIN SELECT group_by_col, MIN(aggr_col), MAX(aggr_col) FROM a
WHERE aggr_col<>0 AND group_by_col<>0 GROUP BY group_by_col;
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE a NULL range group_by_col_key group_by_col_key 10 NULL 4 100.00 Using where; Using index for group-by
1 SIMPLE a NULL range group_by_col_key group_by_col_key 10 NULL 5 100.00 Using where; Using index for group-by
Warnings:
Note 1003 /* select#1 */ select `test`.`a`.`group_by_col` AS `group_by_col`,min(`test`.`a`.`aggr_col`) AS `MIN(aggr_col)`,max(`test`.`a`.`aggr_col`) AS `MAX(aggr_col)` from `test`.`a` where ((`test`.`a`.`aggr_col` <> 0) and (`test`.`a`.`group_by_col` <> 0)) group by `test`.`a`.`group_by_col`
SELECT TRACE RLIKE 'minmax_keypart_in_disjunctive_query' AS OK
Expand All @@ -4419,7 +4419,7 @@ group_by_col MIN(aggr_col) MAX(aggr_col)
EXPLAIN SELECT group_by_col, MIN(aggr_col), MAX(aggr_col) FROM a
WHERE group_by_col OR (group_by_col < (aggr_col = 1)) GROUP BY group_by_col;
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 15 93.33 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 15 93.33 Parallel execute (4 workers)
2 SIMPLE a NULL index group_by_col_key group_by_col_key 10 NULL 15 93.33 Using where; Using index
Warnings:
Note 1003 /* select#1 */ select `test`.`a`.`group_by_col` AS `group_by_col`,min(`test`.`a`.`aggr_col`) AS `MIN(aggr_col)`,max(`test`.`a`.`aggr_col`) AS `MAX(aggr_col)` from `test`.`a` where ((0 <> `test`.`a`.`group_by_col`) or (`test`.`a`.`group_by_col` < (`test`.`a`.`aggr_col` = 1))) group by `test`.`a`.`group_by_col`
Expand Down
10 changes: 5 additions & 5 deletions mysql-test/r/status.result-pq
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ Variable_name Value
Last_query_cost 0.449000
EXPLAIN SELECT a FROM t1;
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (2 workers)
2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 2 100.00 NULL
Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1`
Expand Down Expand Up @@ -369,7 +369,7 @@ Table Op Msg_type Msg_text
test.t1 analyze status OK
EXPLAIN SELECT * FROM t1;
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (3 workers)
2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 3 100.00 NULL
Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`x` AS `x`,`test`.`t1`.`y` AS `y` from `test`.`t1`
Expand Down Expand Up @@ -406,7 +406,7 @@ Variable_name Value
Last_query_cost 4.535526
EXPLAIN SELECT * FROM t1 WHERE x > 0;
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 3 33.33 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 3 33.33 Parallel execute (3 workers)
2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 3 33.33 Using where
Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`x` AS `x`,`test`.`t1`.`y` AS `y` from `test`.`t1` where (`test`.`t1`.`x` > 0)
Expand All @@ -415,7 +415,7 @@ Variable_name Value
Last_query_cost 0.549000
EXPLAIN SELECT * FROM t1 WHERE y > 0;
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 3 33.33 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 3 33.33 Parallel execute (3 workers)
2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 3 33.33 Using where
Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`x` AS `x`,`test`.`t1`.`y` AS `y` from `test`.`t1` where (`test`.`t1`.`y` > 0)
Expand Down Expand Up @@ -510,7 +510,7 @@ test.t1 analyze status OK
test.t2 analyze status OK
EXPLAIN SELECT * FROM t1, t2 WHERE t1.i1 = t2.i1 ORDER BY t1.i1 LIMIT 10;
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 10 100.00 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 10 100.00 Parallel execute (4 workers)
2 SIMPLE t1 NULL index k1,k2 k2 9 NULL 10 100.00 Using where; Using index
2 SIMPLE t2 NULL ref k1 k1 4 test.t1.i1 1 100.00 Using index
Warnings:
Expand Down
4 changes: 2 additions & 2 deletions mysql-test/r/subquery_sj_all.result-pq
Original file line number Diff line number Diff line change
Expand Up @@ -9918,7 +9918,7 @@ WHERE (ot1.col_varchar_key, ot2.col_varchar_nokey) IN (
SELECT it2.col_varchar_nokey, it1.col_varchar_key
FROM t2 AS it1 JOIN t1 AS it2 ON it2.col_int_key = it1.pk);
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 20 100.00 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 20 100.00 Parallel execute (4 workers)
2 SIMPLE ot2 NULL ALL NULL NULL NULL NULL 20 100.00 NULL
2 SIMPLE it1 NULL ref PRIMARY,col_varchar_key col_varchar_key 6 test.ot2.col_varchar_nokey 1 100.00 Using index; Start temporary
2 SIMPLE it2 NULL ref col_int_key col_int_key 4 test.it1.pk 1 100.00 NULL
Expand Down Expand Up @@ -9980,7 +9980,7 @@ AND NOT ot.col_int_nokey < 2
)
ORDER BY col_varchar_nokey;
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 20 33.33 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 20 33.33 Parallel execute (4 workers)
2 SIMPLE ot NULL ALL NULL NULL NULL NULL 20 33.33 Using where; Using filesort
2 SIMPLE it NULL ref col_varchar_key col_varchar_key 6 test.ot.col_varchar_nokey 1 100.00 FirstMatch(ot)
Warnings:
Expand Down
4 changes: 2 additions & 2 deletions mysql-test/r/subquery_sj_all_bka.result-pq
Original file line number Diff line number Diff line change
Expand Up @@ -9923,7 +9923,7 @@ WHERE (ot1.col_varchar_key, ot2.col_varchar_nokey) IN (
SELECT it2.col_varchar_nokey, it1.col_varchar_key
FROM t2 AS it1 JOIN t1 AS it2 ON it2.col_int_key = it1.pk);
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 20 100.00 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 20 100.00 Parallel execute (4 workers)
2 SIMPLE ot2 NULL ALL NULL NULL NULL NULL 20 100.00 Start temporary
2 SIMPLE it1 NULL ref PRIMARY,col_varchar_key col_varchar_key 6 test.ot2.col_varchar_nokey 1 100.00 Using index
2 SIMPLE it2 NULL ref col_int_key col_int_key 4 test.it1.pk 1 100.00 Using join buffer (Batched Key Access)
Expand Down Expand Up @@ -9985,7 +9985,7 @@ AND NOT ot.col_int_nokey < 2
)
ORDER BY col_varchar_nokey;
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 20 33.33 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 20 33.33 Parallel execute (4 workers)
2 SIMPLE ot NULL ALL NULL NULL NULL NULL 20 33.33 Using where; Using temporary; Using filesort
2 SIMPLE it NULL ref col_varchar_key col_varchar_key 6 test.ot.col_varchar_nokey 1 100.00 FirstMatch(ot); Using join buffer (Batched Key Access)
Warnings:
Expand Down
Loading