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

Olap kp dev #105

Merged
merged 2 commits into from
Jun 23, 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
2 changes: 1 addition & 1 deletion mysql-test/r/innodb_tmp_table_heap_to_disk.result-pq
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ a b c
set optimizer_switch='materialization=off';
explain select * from t1 where a in (select a from t11) order by 1, 2, 3 limit 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 x 100.00 Start temporary; Parallel execute (4 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL x 100.00 Parallel execute (4 workers)
2 SIMPLE t11 NULL ALL NULL NULL NULL NULL x 100.00 Using temporary; Using filesort; Start temporary
2 SIMPLE t1 NULL ALL NULL NULL NULL NULL x 10.00 Using where; End temporary; Using join buffer (hash join)
Warnings:
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/r/join_cache_bka.result-pq
Original file line number Diff line number Diff line change
Expand Up @@ -2589,7 +2589,7 @@ Note 1003 /* select#1 */ select `test`.`t3`.`c1` AS `c1` from `test`.`t3` where
explain SELECT t3.c1 FROM t3
WHERE t3.c1 IN (SELECT t1.c2_key FROM t2 JOIN t1 ON t2.pk < t1.c1);
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 Start temporary; Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (1 workers)
2 SIMPLE t1 NULL ALL col_int_key NULL NULL NULL 1 100.00 Start temporary
2 SIMPLE t2 NULL ALL PRIMARY NULL NULL NULL 1 100.00 Range checked for each record (index map: 0x1)
2 SIMPLE t3 NULL ref k1 k1 5 test.t1.c2_key 1 100.00 Using index; End temporary
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/r/join_cache_bka_nobnl.result-pq
Original file line number Diff line number Diff line change
Expand Up @@ -2589,7 +2589,7 @@ Note 1003 /* select#1 */ select `test`.`t3`.`c1` AS `c1` from `test`.`t3` where
explain SELECT t3.c1 FROM t3
WHERE t3.c1 IN (SELECT t1.c2_key FROM t2 JOIN t1 ON t2.pk < t1.c1);
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 Start temporary; Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (1 workers)
2 SIMPLE t1 NULL ALL col_int_key NULL NULL NULL 1 100.00 Start temporary
2 SIMPLE t2 NULL ALL PRIMARY NULL NULL NULL 1 100.00 Range checked for each record (index map: 0x1)
2 SIMPLE t3 NULL ref k1 k1 5 test.t1.c2_key 1 100.00 Using index; End temporary
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/r/join_cache_bnl.result-pq
Original file line number Diff line number Diff line change
Expand Up @@ -2590,7 +2590,7 @@ Note 1003 /* select#1 */ select `test`.`t3`.`c1` AS `c1` from `test`.`t3` where
explain SELECT t3.c1 FROM t3
WHERE t3.c1 IN (SELECT t1.c2_key FROM t2 JOIN t1 ON t2.pk < t1.c1);
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 Start temporary; Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (1 workers)
2 SIMPLE t1 NULL ALL col_int_key NULL NULL NULL 1 100.00 Start temporary
2 SIMPLE t2 NULL ALL PRIMARY NULL NULL NULL 1 100.00 Range checked for each record (index map: 0x1)
2 SIMPLE t3 NULL ref k1 k1 5 test.t1.c2_key 1 100.00 Using index; End temporary
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/r/join_cache_nojb.result-pq
Original file line number Diff line number Diff line change
Expand Up @@ -2590,7 +2590,7 @@ Note 1003 /* select#1 */ select `test`.`t3`.`c1` AS `c1` from `test`.`t3` where
explain SELECT t3.c1 FROM t3
WHERE t3.c1 IN (SELECT t1.c2_key FROM t2 JOIN t1 ON t2.pk < t1.c1);
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 Start temporary; Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (1 workers)
2 SIMPLE t1 NULL ALL col_int_key NULL NULL NULL 1 100.00 Start temporary
2 SIMPLE t2 NULL ALL PRIMARY NULL NULL NULL 1 100.00 Range checked for each record (index map: 0x1)
2 SIMPLE t3 NULL ref k1 k1 5 test.t1.c2_key 1 100.00 Using index; End temporary
Expand Down
50 changes: 0 additions & 50 deletions mysql-test/r/mysql_binary_mode.result-pq

This file was deleted.

24 changes: 12 additions & 12 deletions mysql-test/r/opt_hints_join_order.result-pq
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ count(*)
explain SELECT count(*) FROM t1 JOIN t2 JOIN t3
WHERE t1.f1 IN (SELECT f1 FROM t4) AND t2.f1 IN (SELECT f1 FROM t5);
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 Start temporary; Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (1 workers)
2 SIMPLE t5 NULL index PRIMARY PRIMARY 4 NULL 1 100.00 Using index; Start temporary
2 SIMPLE t4 NULL ALL NULL NULL NULL NULL 2 100.00 Using join buffer (hash join)
2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 3 33.33 Using where; End temporary; Using join buffer (hash join)
Expand Down Expand Up @@ -80,7 +80,7 @@ explain SELECT /*+ JOIN_SUFFIX(t3, t2) JOIN_SUFFIX(t2, t1) */ count(*) FROM t1 J
WHERE t1.f1 IN (SELECT /*+ QB_NAME(subq1) */ f1 FROM t4)
AND t2.f1 IN (SELECT /*+ QB_NAME(subq2) */ f1 FROM t5);
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 Start temporary; Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (1 workers)
2 SIMPLE t5 NULL index PRIMARY PRIMARY 4 NULL 1 100.00 Using index; Start temporary
2 SIMPLE t4 NULL ALL NULL NULL NULL NULL 2 100.00 Using join buffer (hash join)
2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 3 33.33 Using where; End temporary; Using join buffer (hash join)
Expand All @@ -99,7 +99,7 @@ explain SELECT /*+ JOIN_ORDER(t3, t2) JOIN_ORDER(t1, t2, t5) */ count(*) FROM t1
WHERE t1.f1 IN (SELECT /*+ QB_NAME(subq1) */ f1 FROM t4)
AND t2.f1 IN (SELECT /*+ QB_NAME(subq2) */ f1 FROM t5);
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 Start temporary; Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers)
2 SIMPLE t4 NULL ALL NULL NULL NULL NULL 2 100.00 Start temporary
2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 3 33.33 Using where; End temporary; Using join buffer (hash join)
2 SIMPLE t3 NULL ALL NULL NULL NULL NULL 5 100.00 Using join buffer (hash join)
Expand All @@ -119,7 +119,7 @@ explain SELECT /*+ JOIN_ORDER(t1, t7, t5) */ count(*) FROM t1 JOIN t2 JOIN t3
WHERE t1.f1 IN (SELECT /*+ QB_NAME(subq1) */ f1 FROM t4)
AND t2.f1 IN (SELECT /*+ QB_NAME(subq2) */ f1 FROM t5);
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 Start temporary; Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (1 workers)
2 SIMPLE t5 NULL index PRIMARY PRIMARY 4 NULL 1 100.00 Using index; Start temporary
2 SIMPLE t4 NULL ALL NULL NULL NULL NULL 2 100.00 Using join buffer (hash join)
2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 3 33.33 Using where; End temporary; Using join buffer (hash join)
Expand Down Expand Up @@ -158,7 +158,7 @@ explain SELECT /*+ JOIN_ORDER(t3, t2) JOIN_ORDER(t2, t3) */ count(*) FROM t1 JOI
WHERE t1.f1 IN (SELECT /*+ QB_NAME(subq1) */ f1 FROM t4)
AND t2.f1 IN (SELECT /*+ QB_NAME(subq2) */ f1 FROM t5);
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 Start temporary; Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (1 workers)
2 SIMPLE t5 NULL index PRIMARY PRIMARY 4 NULL 1 100.00 Using index; Start temporary
2 SIMPLE t4 NULL ALL NULL NULL NULL NULL 2 100.00 Using join buffer (hash join)
2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 3 33.33 Using where; End temporary; Using join buffer (hash join)
Expand All @@ -176,7 +176,7 @@ explain SELECT /*+ JOIN_ORDER(t3, t2) JOIN_SUFFIX(t3) */ count(*) FROM t1 JOIN t
WHERE t1.f1 IN (SELECT /*+ QB_NAME(subq1) */ f1 FROM t4)
AND t2.f1 IN (SELECT /*+ QB_NAME(subq2) */ f1 FROM t5);
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 Start temporary; Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (1 workers)
2 SIMPLE t5 NULL index PRIMARY PRIMARY 4 NULL 1 100.00 Using index; Start temporary
2 SIMPLE t4 NULL ALL NULL NULL NULL NULL 2 100.00 Using join buffer (hash join)
2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 3 33.33 Using where; End temporary; Using join buffer (hash join)
Expand All @@ -194,7 +194,7 @@ explain SELECT /*+ JOIN_ORDER(t3, t2) JOIN_PREFIX(t2) */ count(*) FROM t1 JOIN t
WHERE t1.f1 IN (SELECT /*+ QB_NAME(subq1) */ f1 FROM t4)
AND t2.f1 IN (SELECT /*+ QB_NAME(subq2) */ f1 FROM t5);
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 Start temporary; Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (1 workers)
2 SIMPLE t5 NULL index PRIMARY PRIMARY 4 NULL 1 100.00 Using index; Start temporary
2 SIMPLE t4 NULL ALL NULL NULL NULL NULL 2 100.00 Using join buffer (hash join)
2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 3 33.33 Using where; End temporary; Using join buffer (hash join)
Expand Down Expand Up @@ -344,7 +344,7 @@ explain SELECT /*+ QB_NAME(q1) */ count(*) FROM t1 JOIN t2 JOIN t3
WHERE t1.f1 IN (SELECT /*+ QB_NAME(subq1) */ f1 FROM t4)
AND t2.f1 IN (SELECT /*+ QB_NAME(subq2) */ f1 FROM t5);
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 Start temporary; Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (1 workers)
2 SIMPLE t5 NULL index PRIMARY PRIMARY 4 NULL 1 100.00 Using index; Start temporary
2 SIMPLE t4 NULL ALL NULL NULL NULL NULL 2 100.00 Using join buffer (hash join)
2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 3 33.33 Using where; End temporary; Using join buffer (hash join)
Expand All @@ -359,7 +359,7 @@ count(*)
explain SELECT count(*) FROM t1 JOIN t2 STRAIGHT_JOIN t3
WHERE t1.f1 IN (SELECT f1 FROM t4) AND t2.f1 IN (SELECT f1 FROM t5);
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 Start temporary; Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (1 workers)
2 SIMPLE t5 NULL index PRIMARY PRIMARY 4 NULL 1 100.00 Using index; Start temporary
2 SIMPLE t4 NULL ALL NULL NULL NULL NULL 2 100.00 Using join buffer (hash join)
2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 3 33.33 Using where; End temporary; Using join buffer (hash join)
Expand All @@ -375,7 +375,7 @@ count(*)
explain SELECT /*+ JOIN_PREFIX(t3, t1) */ count(*) FROM t1 JOIN t2 STRAIGHT_JOIN t3
WHERE t1.f1 IN (SELECT f1 FROM t4) AND t2.f1 IN (SELECT f1 FROM t5);
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 Start temporary; Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (1 workers)
2 SIMPLE t5 NULL index PRIMARY PRIMARY 4 NULL 1 100.00 Using index; Start temporary
2 SIMPLE t4 NULL ALL NULL NULL NULL NULL 2 100.00 Using join buffer (hash join)
2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 3 33.33 Using where; End temporary; Using join buffer (hash join)
Expand Down Expand Up @@ -1127,7 +1127,7 @@ COUNT(*) FROM t1 JOIN t2 AS ta3 JOIN t2 AS ta4
WHERE ta4.f1 IN (SELECT /*+ QB_NAME(qb1) */ f1 FROM t4) AND
ta3.f2 IN (SELECT /*+ QB_NAME(qb2) */ f2 FROM t2);
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 Start temporary; Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (1 workers)
2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 1 100.00 Start temporary
2 SIMPLE t4 NULL ALL NULL NULL NULL NULL 1 100.00 Using where; Using join buffer (hash join)
2 SIMPLE ta4 NULL eq_ref PRIMARY PRIMARY 4 test.t4.f1 1 100.00 Using index; End temporary
Expand All @@ -1146,7 +1146,7 @@ COUNT(*) FROM t1 JOIN t2 AS ta3 JOIN t2 AS ta4
WHERE ta4.f1 IN (SELECT /*+ QB_NAME(qb1) */ f1 FROM t4) AND
ta3.f2 IN (SELECT /*+ QB_NAME(qb2) */ f2 FROM t2);
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 Start temporary; Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers)
2 SIMPLE t2 NULL index f2 f2 5 NULL 3 100.00 Using where; Using index; Start temporary
2 SIMPLE t4 NULL ALL NULL NULL NULL NULL 1 100.00 Using where; Using join buffer (hash join)
2 SIMPLE ta3 NULL ref f2 f2 5 test.t2.f2 1 100.00 Using index
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/r/opt_hints_set_var.result-pq
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`t
EXPLAIN SELECT /*+ SET_VAR(optimizer_search_depth=1) */ * FROM t1 JOIN t2 ON t1.b = t2.a WHERE
t2.a IN (SELECT t3.b FROM t3 JOIN t1 t4 ON t3.b = t4.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 3 100.00 Start temporary; Parallel execute (1 workers)
1 SIMPLE <gather2> NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers)
2 SIMPLE t3 NULL index NULL a 10 NULL 3 100.00 Using where; Using index; Start temporary
2 SIMPLE t2 NULL ref a a 5 test.t3.b 1 100.00 Using index
2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 4 25.00 Using where; Using join buffer (hash join)
Expand Down
Loading