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修改 #184

Merged
merged 1 commit into from
Oct 18, 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
4 changes: 2 additions & 2 deletions mysql-test/r/binary.result-pq
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ hex(a)
1F9480179366F2BF567E1C4B964C1EF029087575
EXPLAIN SELECT hex(a) FROM t1 order by a;
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 index NULL idx 20 NULL 3 100.00 Using index
Warnings:
Note 1003 /* select#1 */ select hex(`test`.`t1`.`a`) AS `hex(a)` from `test`.`t1` order by `test`.`t1`.`a`
Expand All @@ -191,7 +191,7 @@ hex(a)
EXPLAIN
SELECT hex(a) from t1 WHERE a=unhex('1F9480179366F2BF567E1C4B964C1EF029082020');
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (2 workers)
2 SIMPLE t1 NULL ref idx idx 20 const 1 100.00 Using where; Using index
Warnings:
Note 1003 /* select#1 */ select hex(`test`.`t1`.`a`) AS `hex(a)` from `test`.`t1` where (`test`.`t1`.`a` = <cache>(unhex('1F9480179366F2BF567E1C4B964C1EF029082020')))
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/r/case.result-pq
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Table Op Msg_type Msg_text
test.t1 analyze status OK
explain select case a when 1 then 2 when 2 then 3 else 0 end as fcase, count(*) from t1 group by fcase;
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 t1 NULL ALL NULL NULL NULL NULL 4 100.00 Using temporary
Warnings:
Note 1003 /* select#1 */ select (case `test`.`t1`.`a` when 1 then 2 when 2 then 3 else 0 end) AS `fcase`,count(0) AS `count(*)` from `test`.`t1` group by `fcase`
Expand Down
8 changes: 4 additions & 4 deletions mysql-test/r/cast.result-pq
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ INSERT INTO t1 VALUES (3,1,'1988-12-20');
INSERT INTO t1 VALUES (4,2,'1972-12-12');
EXPLAIN SELECT MIN(t1.userID) = MIN(date) FROM t1 GROUP BY userid;
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 t1 NULL ALL NULL NULL NULL NULL 4 100.00 Using temporary
Warnings:
Note 1003 /* select#1 */ select (cast(min(`<temporary>`.`min(t1.userID)`) as double) = cast(min(`<temporary>`.`min(t1.``date``)`) as double)) AS `MIN(t1.userID) = MIN(date)` from `test`.`t1` group by `test`.`t1`.`userID`
Expand All @@ -894,19 +894,19 @@ Note 1003 /* select#1 */ select `test`.`t1`.`date` AS `date`,(cast(`test`.`t1`.`
#
EXPLAIN SELECT * from t1 WHERE userID = DATE'2012-02-20';
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 25.00 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 4 25.00 Parallel execute (4 workers)
2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 4 25.00 Using where
Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`spID` AS `spID`,`test`.`t1`.`userID` AS `userID`,`test`.`t1`.`date` AS `date` from `test`.`t1` where (`test`.`t1`.`userID` = DATE'2012-02-20')
EXPLAIN SELECT * FROM t1 WHERE date = NULL;
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 25.00 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 4 25.00 Parallel execute (4 workers)
2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 4 25.00 Using where
Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`spID` AS `spID`,`test`.`t1`.`userID` AS `userID`,`test`.`t1`.`date` AS `date` from `test`.`t1` where (`test`.`t1`.`date` = NULL)
EXPLAIN SELECT * FROM t1 WHERE date = CAST('20:21:22' AS TIME);
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 25.00 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 4 25.00 Parallel execute (4 workers)
2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 4 25.00 Using where
Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`spID` AS `spID`,`test`.`t1`.`userID` AS `userID`,`test`.`t1`.`date` AS `date` from `test`.`t1` where (`test`.`t1`.`date` = <cache>(cast('20:21:22' as time)))
Expand Down
4 changes: 2 additions & 2 deletions mysql-test/r/compare.result-pq
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Table Op Msg_type Msg_text
test.t1 analyze status OK
explain select * from t1 where id=000000000001;
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 50.00 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 2 50.00 Parallel execute (2 workers)
2 SIMPLE t1 NULL index PRIMARY PRIMARY 48 NULL 2 50.00 Using where; Using index
Warnings:
Warning 1739 Cannot use ref access on index 'PRIMARY' due to type or collation conversion on field 'id'
Expand Down Expand Up @@ -82,7 +82,7 @@ Table Op Msg_type Msg_text
test.t1 analyze status OK
EXPLAIN SELECT b,c FROM t1 WHERE b = 1 AND CONCAT(b,c) = '0101';
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL x 33.33 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL x 33.33 Parallel execute (3 workers)
2 SIMPLE t1 NULL ALL NULL NULL NULL NULL x 33.33 Using where
Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c` from `test`.`t1` where ((`test`.`t1`.`b` = 1) and (concat('01',`test`.`t1`.`c`) = '0101'))
Expand Down
14 changes: 7 additions & 7 deletions mysql-test/r/ctype_utf8mb4_innodb.result-pq
Original file line number Diff line number Diff line change
Expand Up @@ -1502,25 +1502,25 @@ Kali Kali 2+4
Kali Kali 2+4
EXPLAIN SELECT a FROM t1 WHERE a LIKE 'Käli Käli 2+4';
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 t1 NULL range a a 53 NULL 4 100.00 Using where; Using index
Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where (`test`.`t1`.`a` like 'Käli Käli 2+4')
EXPLAIN SELECT a FROM t1 WHERE a = 'Käli Käli 2+4';
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 t1 NULL ref a a 53 const 4 100.00 Using index
Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where (`test`.`t1`.`a` = 'Käli Käli 2+4')
EXPLAIN SELECT a FROM t2 WHERE a LIKE 'Kali Kali 2+4';
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 t2 NULL range a a 14 NULL 4 100.00 Using where; Using index
Warnings:
Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a` from `test`.`t2` where (`test`.`t2`.`a` like 'Kali Kali 2+4')
EXPLAIN SELECT a FROM t2 WHERE a = 'Kali Kali 2+4';
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 t2 NULL ref a a 14 const 4 100.00 Using index
Warnings:
Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a` from `test`.`t2` where (`test`.`t2`.`a` = 'Kali Kali 2+4')
Expand Down Expand Up @@ -1626,7 +1626,7 @@ COUNT(*)
1
explain select a from t1 group by a;
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 Using temporary
Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` group by `test`.`t1`.`a`
Expand All @@ -1639,7 +1639,7 @@ insert into t1 values ('123'), ('456');
explain
select substr(z.a,-1), z.a from t1 as y join t1 as z on y.a=z.a order by 1;
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 y NULL ALL NULL NULL NULL NULL 2 100.00 Using temporary; Using filesort
2 SIMPLE z NULL ALL NULL NULL NULL NULL 2 50.00 Using where; Using join buffer (hash join)
Warnings:
Expand All @@ -1662,7 +1662,7 @@ crash
INSERT INTO crashtest VALUES ('-1000');
EXPLAIN SELECT * FROM crashtest ORDER BY CHAR(crash USING utf8mb4);
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 crashtest NULL ALL NULL NULL NULL NULL 4 100.00 Using filesort
Warnings:
Note 1003 /* select#1 */ select `crashtest`.`crashtest`.`crash` AS `crash` from `crashtest`.`crashtest` order by `char(crashtest.crash)`
Expand Down
12 changes: 6 additions & 6 deletions mysql-test/r/func_str.result-pq
Original file line number Diff line number Diff line change
Expand Up @@ -1246,31 +1246,31 @@ CREATE TABLE t1 (s varchar(10));
INSERT INTO t1 VALUES ('yadda'), ('yaddy');
EXPLAIN SELECT s FROM t1 WHERE TRIM(s) > 'ab';
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 Using where
Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`s` AS `s` from `test`.`t1` where (trim(`test`.`t1`.`s`) > 'ab')
EXPLAIN SELECT s FROM t1 WHERE TRIM('y' FROM s) > 'ab';
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 Using where
Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`s` AS `s` from `test`.`t1` where (trim('y' from `test`.`t1`.`s`) > 'ab')
EXPLAIN SELECT s FROM t1 WHERE TRIM(LEADING 'y' FROM s) > 'ab';
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 Using where
Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`s` AS `s` from `test`.`t1` where (trim(leading 'y' from `test`.`t1`.`s`) > 'ab')
EXPLAIN SELECT s FROM t1 WHERE TRIM(TRAILING 'y' FROM s) > 'ab';
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 Using where
Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`s` AS `s` from `test`.`t1` where (trim(trailing 'y' from `test`.`t1`.`s`) > 'ab')
EXPLAIN SELECT s FROM t1 WHERE TRIM(BOTH 'y' FROM s) > 'ab';
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 Using where
Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`s` AS `s` from `test`.`t1` where (trim(both 'y' from `test`.`t1`.`s`) > 'ab')
Expand Down Expand Up @@ -1336,7 +1336,7 @@ SELECT * FROM t1 INNER JOIN t2 ON code=id
WHERE id='a12' AND (LENGTH(code)=5 OR code < 'a00');
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t2 NULL const PRIMARY PRIMARY 42 const 1 100.00 Using index
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 t2 NULL const PRIMARY PRIMARY 42 const 1 100.00 Using index
2 SIMPLE t1 NULL ref code code 43 const 4 100.00 Using where; Using index
Warnings:
Expand Down
12 changes: 6 additions & 6 deletions mysql-test/r/greedy_search.result-pq
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ JOIN price_ranges ON vehicles.price_range_id = price_ranges.id_pk
JOIN countries ON vehicles.assembled_in = countries.id_pk
JOIN brands ON models.brand_id = brands.id_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 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 subtypes NULL ALL PRIMARY NULL NULL NULL 10 100.00 NULL
2 SIMPLE vehicles NULL ALL NULL NULL NULL NULL 80 10.00 Using where; Using join buffer (hash join)
2 SIMPLE heating NULL eq_ref PRIMARY PRIMARY 4 test.vehicles.heating_id 1 100.00 NULL
Expand Down Expand Up @@ -74,7 +74,7 @@ JOIN price_ranges ON vehicles.price_range_id = price_ranges.id_pk
JOIN countries ON vehicles.assembled_in = countries.id_pk
JOIN brands ON models.brand_id = brands.id_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 7 100.00 Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 7 100.00 Parallel execute (4 workers)
2 SIMPLE brands NULL ALL NULL NULL NULL NULL 7 100.00 Using where
2 SIMPLE models NULL ref brand_id brand_id 5 test.brands.id_nokey 5 100.00 NULL
2 SIMPLE vehicles NULL ALL NULL NULL NULL NULL 80 10.00 Using where; Using join buffer (hash join)
Expand Down Expand Up @@ -113,7 +113,7 @@ price_ranges, countries, brands, wheels, engine;
#
EXPLAIN SELECT * FROM t10_1 JOIN t100_1 ON t10_1.colidx = t100_1.pk JOIN t10_2 ON t100_1.colidx = t10_2.pk JOIN t100_2 ON t10_2.colidx = t100_2.pk JOIN t10_3 ON t100_2.colidx = t10_3.pk JOIN t100_3 ON t10_3.colidx = t100_3.pk JOIN t10_4 ON t100_3.colidx = t10_4.pk JOIN t100_4 ON t10_4.colidx = t100_4.pk JOIN t10_5 ON t100_4.colidx = t10_5.pk JOIN t100_5 ON t10_5.colidx = t100_5.pk JOIN t10_6 ON t100_5.colidx = t10_6.pk JOIN t100_6 ON t10_6.colidx = t100_6.pk JOIN t10_7 ON t100_6.colidx = t10_7.pk JOIN t100_7 ON t10_7.colidx = t100_7.pk JOIN t10_8 ON t100_7.colidx = t10_8.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 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 t10_1 NULL ALL colidx NULL NULL NULL 10 100.00 Using where
2 SIMPLE t10_2 NULL ALL PRIMARY,colidx NULL NULL NULL 10 100.00 Using where; Using join buffer (hash join)
2 SIMPLE t100_1 NULL eq_ref PRIMARY,colidx PRIMARY 4 test.t10_1.colidx 1 10.00 Using where
Expand All @@ -138,7 +138,7 @@ FLUSH STATUS;
#
EXPLAIN SELECT * FROM t10_1 JOIN t100_1 ON t10_1.col = t100_1.colidx JOIN t10_2 ON t100_1.col = t10_2.pk JOIN t100_2 ON t10_2.col = t100_2.colidx JOIN t10_3 ON t100_2.col = t10_3.pk JOIN t100_3 ON t10_3.col = t100_3.colidx JOIN t10_4 ON t100_3.col = t10_4.pk JOIN t100_4 ON t10_4.col = t100_4.colidx JOIN t10_5 ON t100_4.col = t10_5.pk JOIN t100_5 ON t10_5.col = t100_5.colidx JOIN t10_6 ON t100_5.col = t10_6.pk JOIN t100_6 ON t10_6.col = t100_6.colidx JOIN t10_7 ON t100_6.col = t10_7.pk JOIN t100_7 ON t10_7.col = t100_7.colidx JOIN t10_8 ON t100_7.col = t10_8.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 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 t10_1 NULL ALL NULL NULL NULL NULL 10 100.00 Using where
2 SIMPLE t100_1 NULL ref colidx colidx 5 test.t10_1.col 10 100.00 NULL
2 SIMPLE t10_2 NULL ALL PRIMARY NULL NULL NULL 10 10.00 Using where; Using join buffer (hash join)
Expand All @@ -163,7 +163,7 @@ FLUSH STATUS;
#
EXPLAIN SELECT * FROM t10_1 JOIN t100_1 ON t10_1.colidx = t100_1.col JOIN t10_2 ON t100_1.pk = t10_2.col JOIN t100_2 ON t10_2.colidx = t100_2.col JOIN t10_3 ON t100_2.pk = t10_3.col JOIN t100_3 ON t10_3.colidx = t100_3.col JOIN t10_4 ON t100_3.pk = t10_4.col JOIN t100_4 ON t10_4.colidx = t100_4.col JOIN t10_5 ON t100_4.pk = t10_5.col JOIN t100_5 ON t10_5.colidx = t100_5.col JOIN t10_6 ON t100_5.pk = t10_6.col JOIN t100_6 ON t10_6.colidx = t100_6.col JOIN t10_7 ON t100_6.pk = t10_7.col JOIN t100_7 ON t10_7.colidx = t100_7.col JOIN t10_8 ON t100_7.pk = t10_8.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 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 t10_7 NULL ALL colidx NULL NULL NULL 10 100.00 Using where
2 SIMPLE t10_8 NULL ALL NULL NULL NULL NULL 10 100.00 Using where; Using join buffer (hash join)
2 SIMPLE t100_6 NULL eq_ref PRIMARY PRIMARY 4 test.t10_7.col 1 100.00 Using where
Expand All @@ -188,7 +188,7 @@ FLUSH STATUS;
#
EXPLAIN SELECT * FROM t10_1 JOIN t100_1 ON t10_1.colidx = t100_1.pk JOIN t10_2 ON t100_1.col = t10_2.pk JOIN t100_2 ON t10_2.colidx = t100_2.pk JOIN t10_3 ON t100_2.col = t10_3.pk JOIN t100_3 ON t10_3.colidx = t100_3.pk JOIN t10_4 ON t100_3.col = t10_4.pk JOIN t100_4 ON t10_4.colidx = t100_4.pk JOIN t10_5 ON t100_4.col = t10_5.pk JOIN t100_5 ON t10_5.colidx = t100_5.pk JOIN t10_6 ON t100_5.col = t10_6.pk JOIN t100_6 ON t10_6.colidx = t100_6.pk JOIN t10_7 ON t100_6.col = t10_7.pk JOIN t100_7 ON t10_7.colidx = t100_7.pk JOIN t10_8 ON t100_7.col = t10_8.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 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 t10_2 NULL ALL PRIMARY,colidx NULL NULL NULL 10 100.00 Using where
2 SIMPLE t10_1 NULL ALL colidx NULL NULL NULL 10 100.00 Using where; Using join buffer (hash join)
2 SIMPLE t100_1 NULL eq_ref PRIMARY PRIMARY 4 test.t10_1.colidx 1 10.00 Using where
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/r/group_by_fd_no_prot.result-pq
Original file line number Diff line number Diff line change
Expand Up @@ -1478,7 +1478,7 @@ from customer1 left join customer2 on customer1.a=customer2.b
where customer2.pk in (7,9)
group by customer2.b;
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 customer1 NULL ALL NULL NULL NULL NULL 2 100.00 Using temporary
2 SIMPLE customer2 NULL range PRIMARY PRIMARY 4 NULL 2 50.00 Using where; Using join buffer (hash join)
Warnings:
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/r/heap.result-pq
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ a
alter table t1 engine=innodb;
explain select * from t1 where a in (869751,736494,226312,802616);
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL # # Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL # # Parallel execute (4 workers)
2 SIMPLE t1 NULL index uniq_id uniq_id 4 NULL # # Using where; Using index
Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where (`test`.`t1`.`a` in (869751,736494,226312,802616))
Expand Down
Loading