diff --git a/mysql-test/r/ctype_binary.result-pq b/mysql-test/r/ctype_binary.result-pq index f85e55eeafae..f46b3838892d 100644 --- a/mysql-test/r/ctype_binary.result-pq +++ b/mysql-test/r/ctype_binary.result-pq @@ -2649,7 +2649,7 @@ Table Op Msg_type Msg_text test.t1 analyze status OK EXPLAIN SELECT * FROM t1 WHERE date_column BETWEEN '2010-09-01' AND '2010-10-01'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (2 workers) 2 SIMPLE t1 NULL range date_column date_column 4 NULL 2 100.00 Using index condition Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`id` AS `id`,`test`.`t1`.`date_column` AS `date_column` from `test`.`t1` where (`test`.`t1`.`date_column` between '2010-09-01' and '2010-10-01') @@ -2659,7 +2659,7 @@ Table Op Msg_type Msg_text test.t1 analyze status OK EXPLAIN SELECT * FROM t1 WHERE date_column BETWEEN '2010-09-01' AND '2010-10-01'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (2 workers) 2 SIMPLE t1 NULL range date_column date_column 6 NULL 2 100.00 Using index condition Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`id` AS `id`,`test`.`t1`.`date_column` AS `date_column` from `test`.`t1` where (`test`.`t1`.`date_column` between '2010-09-01' and '2010-10-01') diff --git a/mysql-test/r/ctype_cp1251.result-pq b/mysql-test/r/ctype_cp1251.result-pq index 34c34706ed96..e351921d4167 100644 --- a/mysql-test/r/ctype_cp1251.result-pq +++ b/mysql-test/r/ctype_cp1251.result-pq @@ -3038,7 +3038,7 @@ Table Op Msg_type Msg_text test.t1 analyze status OK EXPLAIN SELECT * FROM t1 WHERE date_column BETWEEN '2010-09-01' AND '2010-10-01'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (2 workers) 2 SIMPLE t1 NULL range date_column date_column 4 NULL 2 100.00 Using index condition Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`id` AS `id`,`test`.`t1`.`date_column` AS `date_column` from `test`.`t1` where (`test`.`t1`.`date_column` between '2010-09-01' and '2010-10-01') @@ -3048,7 +3048,7 @@ Table Op Msg_type Msg_text test.t1 analyze status OK EXPLAIN SELECT * FROM t1 WHERE date_column BETWEEN '2010-09-01' AND '2010-10-01'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (2 workers) 2 SIMPLE t1 NULL range date_column date_column 6 NULL 2 100.00 Using index condition Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`id` AS `id`,`test`.`t1`.`date_column` AS `date_column` from `test`.`t1` where (`test`.`t1`.`date_column` between '2010-09-01' and '2010-10-01') diff --git a/mysql-test/r/ctype_uca.result-pq b/mysql-test/r/ctype_uca.result-pq index c715ee9bec11..c37ce8041a6b 100644 --- a/mysql-test/r/ctype_uca.result-pq +++ b/mysql-test/r/ctype_uca.result-pq @@ -7475,7 +7475,7 @@ F09090A8 30D2 𐐨 ALTER TABLE t1 ADD KEY(c); EXPLAIN SELECT hex(c) FROM t1 WHERE c LIKE 'a%' ORDER BY c; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range c c 43 NULL 4 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select hex(`test`.`t1`.`c`) AS `hex(c)` from `test`.`t1` where (`test`.`t1`.`c` like 'a%') order by `test`.`t1`.`c` diff --git a/mysql-test/r/ctype_ucs.result-pq b/mysql-test/r/ctype_ucs.result-pq index e158201628d0..4625953f6df9 100644 --- a/mysql-test/r/ctype_ucs.result-pq +++ b/mysql-test/r/ctype_ucs.result-pq @@ -244,13 +244,13 @@ t1 CREATE TABLE `t1` ( insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test"); explain select * from t1 where a like 'abc%'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (3 workers) 2 SIMPLE t1 NULL range a a 23 NULL 2 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 'abc%') explain select * from t1 where a like concat('abc','%'); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (3 workers) 2 SIMPLE t1 NULL range a a 23 NULL 2 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 (concat('abc','%'))) @@ -3850,7 +3850,7 @@ Table Op Msg_type Msg_text test.t1 analyze status OK EXPLAIN SELECT * FROM t1 WHERE date_column BETWEEN '2010-09-01' AND '2010-10-01'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE 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`.`id` AS `id`,`test`.`t1`.`date_column` AS `date_column` from `test`.`t1` where (convert(`test`.`t1`.`date_column` using ucs2) between '2010-09-01' and '2010-10-01') @@ -3860,7 +3860,7 @@ Table Op Msg_type Msg_text test.t1 analyze status OK EXPLAIN SELECT * FROM t1 WHERE date_column BETWEEN '2010-09-01' AND '2010-10-01'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE 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`.`id` AS `id`,`test`.`t1`.`date_column` AS `date_column` from `test`.`t1` where (convert(`test`.`t1`.`date_column` using ucs2) between '2010-09-01' and '2010-10-01') diff --git a/mysql-test/r/ctype_utf16.result-pq b/mysql-test/r/ctype_utf16.result-pq index 36c029ae86ef..8d7a5e327a56 100644 --- a/mysql-test/r/ctype_utf16.result-pq +++ b/mysql-test/r/ctype_utf16.result-pq @@ -131,13 +131,13 @@ t1 CREATE TABLE `t1` ( insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test"); explain select * from t1 where a like 'abc%'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (3 workers) 2 SIMPLE t1 NULL range a a 43 NULL 2 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 'abc%') explain select * from t1 where a like concat('abc','%'); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (3 workers) 2 SIMPLE t1 NULL range a a 43 NULL 2 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 (concat('abc','%'))) diff --git a/mysql-test/r/ctype_utf16_uca.result-pq b/mysql-test/r/ctype_utf16_uca.result-pq index dc100b696461..856b7427da15 100644 --- a/mysql-test/r/ctype_utf16_uca.result-pq +++ b/mysql-test/r/ctype_utf16_uca.result-pq @@ -3573,7 +3573,7 @@ D801DC28 30D2 𐐨 ALTER TABLE t1 ADD KEY(c); EXPLAIN SELECT hex(c) FROM t1 WHERE c LIKE 'a%' ORDER BY c; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range c c 43 NULL 4 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select hex(`test`.`t1`.`c`) AS `hex(c)` from `test`.`t1` where (`test`.`t1`.`c` like 'a%') order by `test`.`t1`.`c` diff --git a/mysql-test/r/ctype_utf16le.result-pq b/mysql-test/r/ctype_utf16le.result-pq index dc6483a38f23..988115a28ede 100644 --- a/mysql-test/r/ctype_utf16le.result-pq +++ b/mysql-test/r/ctype_utf16le.result-pq @@ -138,13 +138,13 @@ t1 CREATE TABLE `t1` ( insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test"); explain select * from t1 where a like 'abc%'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (3 workers) 2 SIMPLE t1 NULL range a a 43 NULL 2 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 'abc%') explain select * from t1 where a like concat('abc','%'); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (3 workers) 2 SIMPLE t1 NULL range a a 43 NULL 2 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 (concat('abc','%'))) @@ -1043,8 +1043,8 @@ a CAST(a AS SIGNED) -18446744073709551614 -9223372036854775808 -18446744073709551615 -9223372036854775808 Warnings: -Warning 1292 Truncated incorrect INTEGER value: '-18446744073709551614' Warning 1292 Truncated incorrect INTEGER value: '-18446744073709551615' +Warning 1292 Truncated incorrect INTEGER value: '-18446744073709551614' DROP TABLE t1; # # Testing cs->cset->strntoull10rnd diff --git a/mysql-test/r/ctype_utf32.result-pq b/mysql-test/r/ctype_utf32.result-pq index a4b91c5ca245..1abacaf95ebf 100644 --- a/mysql-test/r/ctype_utf32.result-pq +++ b/mysql-test/r/ctype_utf32.result-pq @@ -130,13 +130,13 @@ t1 CREATE TABLE `t1` ( insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test"); explain select * from t1 where a like 'abc%'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (3 workers) 2 SIMPLE t1 NULL range a a 43 NULL 2 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 'abc%') explain select * from t1 where a like concat('abc','%'); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (3 workers) 2 SIMPLE t1 NULL range a a 43 NULL 2 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 (concat('abc','%'))) diff --git a/mysql-test/r/ctype_utf32_uca.result-pq b/mysql-test/r/ctype_utf32_uca.result-pq index d4ac7c480ba4..b72969c4ecd3 100644 --- a/mysql-test/r/ctype_utf32_uca.result-pq +++ b/mysql-test/r/ctype_utf32_uca.result-pq @@ -3597,7 +3597,7 @@ hex(c) hex(weight_string(c)) c ALTER TABLE t1 ADD KEY(c); EXPLAIN SELECT hex(c) FROM t1 WHERE c LIKE 'a%' ORDER BY c; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range c c 43 NULL 4 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select hex(`test`.`t1`.`c`) AS `hex(c)` from `test`.`t1` where (`test`.`t1`.`c` like 'a%') order by `test`.`t1`.`c` diff --git a/mysql-test/r/delete.result-pq b/mysql-test/r/delete.result-pq index 4151a61ed56b..22ed7e1ed8e7 100644 --- a/mysql-test/r/delete.result-pq +++ b/mysql-test/r/delete.result-pq @@ -265,7 +265,7 @@ Table Op Msg_type Msg_text test.t3 analyze status OK explain select * from t1,t2,t3 where t1.a=t2.a AND t2.b=t3.a and t1.b=t3.b; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE 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 2 SIMPLE t2 NULL ref PRIMARY PRIMARY 4 test.t1.a 1 100.00 Using index 2 SIMPLE t3 NULL eq_ref PRIMARY PRIMARY 8 test.t2.b,test.t1.b 1 100.00 Using index diff --git a/mysql-test/r/derived_correlated.result-pq b/mysql-test/r/derived_correlated.result-pq index d97ed2cba1fe..17eab39cad2a 100644 --- a/mysql-test/r/derived_correlated.result-pq +++ b/mysql-test/r/derived_correlated.result-pq @@ -376,7 +376,7 @@ LATERAL # prevents join buffer if materialized (but not if merged) explain select dt.a from t1, lateral (select t1.a from t2) dt; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE 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 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 2 100.00 Using join buffer (hash join) Warnings: @@ -774,7 +774,7 @@ Handler_write 2 # Show the trace of planning of lateral derived tables explain select * from t1, lateral (select t1.a from t2 as t3, t2 as t4) as dt, t2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE 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 2 SIMPLE t3 NULL ALL NULL NULL NULL NULL 2 100.00 Using join buffer (hash join) 2 SIMPLE t4 NULL ALL NULL NULL NULL NULL 2 100.00 Using join buffer (hash join) @@ -1509,7 +1509,7 @@ test.t3 analyze status OK explain select * from t1, lateral (select t3.b from t3 where t3.a=t1.a) dt where dt.b=t1.a+9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE 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 2 SIMPLE t3 NULL ALL NULL NULL NULL NULL 4 25.00 Using where; Using join buffer (hash join) Warnings: diff --git a/mysql-test/r/distinct_innodb.result-pq b/mysql-test/r/distinct_innodb.result-pq index a0fd256bee12..c00fe5edb231 100644 --- a/mysql-test/r/distinct_innodb.result-pq +++ b/mysql-test/r/distinct_innodb.result-pq @@ -225,7 +225,7 @@ Verify that DISTINCT is optimized away even if the aggregate function is hidden in a subquery EXPLAIN SELECT DISTINCT MAX(b) FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE 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 NULL Warnings: Note 1003 /* select#1 */ select max(`test`.`t1`.`b`) AS `MAX(b)` from `test`.`t1` @@ -455,7 +455,7 @@ Verify that DISTINCT is optimized away even if the aggregate function is hidden in a subquery EXPLAIN SELECT DISTINCT MAX(b) FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE 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 NULL Warnings: Note 1003 /* select#1 */ select max(`test`.`t1`.`b`) AS `MAX(b)` from `test`.`t1` @@ -685,7 +685,7 @@ Verify that DISTINCT is optimized away even if the aggregate function is hidden in a subquery EXPLAIN SELECT DISTINCT MAX(b) FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE 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 NULL Warnings: Note 1003 /* select#1 */ select max(`test`.`t1`.`b`) AS `MAX(b)` from `test`.`t1` @@ -915,7 +915,7 @@ Verify that DISTINCT is optimized away even if the aggregate function is hidden in a subquery EXPLAIN SELECT DISTINCT MAX(b) FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE 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 NULL Warnings: Note 1003 /* select#1 */ select max(`test`.`t1`.`b`) AS `MAX(b)` from `test`.`t1` diff --git a/mysql-test/r/endspace.result-pq b/mysql-test/r/endspace.result-pq index 6463166de38b..ae304d79bd88 100644 --- a/mysql-test/r/endspace.result-pq +++ b/mysql-test/r/endspace.result-pq @@ -47,7 +47,7 @@ teststring teststring explain select * from t1 order by text1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (3 workers) 2 SIMPLE t1 NULL index NULL key1 34 NULL 3 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`text1` AS `text1` from `test`.`t1` order by `test`.`t1`.`text1` @@ -199,7 +199,7 @@ teststring teststring explain select * from t1 order by text1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (3 workers) 2 SIMPLE t1 NULL index NULL key1 34 NULL 3 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`text1` AS `text1` from `test`.`t1` order by `test`.`t1`.`text1` diff --git a/mysql-test/r/filter_single_col_idx_small.result-pq b/mysql-test/r/filter_single_col_idx_small.result-pq index b4ef167bbdb1..8e243fa1cfc7 100644 --- a/mysql-test/r/filter_single_col_idx_small.result-pq +++ b/mysql-test/r/filter_single_col_idx_small.result-pq @@ -11,7 +11,7 @@ INSERT INTO t1 VALUES (0,0),(1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7); # COND_FILTER_EQUALITY EXPLAIN SELECT * FROM t1 WHERE col2 = 2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 8 12.50 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 8 12.50 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 8 12.50 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1_pk` AS `col1_pk`,`test`.`t1`.`col2` AS `col2` from `test`.`t1` where (`test`.`t1`.`col2` = 2) @@ -19,7 +19,7 @@ Note 1003 /* select#1 */ select `test`.`t1`.`col1_pk` AS `col1_pk`,`test`.`t1`.` # and less than COND_FILTER_EQUALITY EXPLAIN SELECT * FROM t1 WHERE col2 <> 2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 8 87.50 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 8 87.50 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 8 87.50 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1_pk` AS `col1_pk`,`test`.`t1`.`col2` AS `col2` from `test`.`t1` where (`test`.`t1`.`col2` <> 2) @@ -27,7 +27,7 @@ Note 1003 /* select#1 */ select `test`.`t1`.`col1_pk` AS `col1_pk`,`test`.`t1`.` # COND_FILTER_BETWEEN EXPLAIN SELECT * FROM t1 WHERE col2 BETWEEN 2 AND 4; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 8 12.50 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 8 12.50 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 8 12.50 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1_pk` AS `col1_pk`,`test`.`t1`.`col2` AS `col2` from `test`.`t1` where (`test`.`t1`.`col2` between 2 and 4) @@ -35,7 +35,7 @@ Note 1003 /* select#1 */ select `test`.`t1`.`col1_pk` AS `col1_pk`,`test`.`t1`.` # and less than COND_FILTER_BETWEEN EXPLAIN SELECT * FROM t1 WHERE col2 NOT BETWEEN 2 AND 4; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 8 87.50 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 8 87.50 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 8 87.50 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1_pk` AS `col1_pk`,`test`.`t1`.`col2` AS `col2` from `test`.`t1` where (`test`.`t1`.`col2` not between 2 and 4) @@ -45,7 +45,7 @@ INSERT INTO t1 VALUES (0,0),(1,1); # COND_FILTER_INEQUALITY EXPLAIN SELECT * FROM t1 WHERE col2 > 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 50.00 Parallel execute (2 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 2 50.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1_pk` AS `col1_pk`,`test`.`t1`.`col2` AS `col2` from `test`.`t1` where (`test`.`t1`.`col2` > 1) @@ -69,79 +69,79 @@ INSERT INTO t1 SELECT 1+RAND()*7, RAND()*2, RAND()*8 FROM t1; INSERT INTO t1 SELECT 1+RAND()*7, RAND()*2, RAND()*8 FROM t1; EXPLAIN SELECT * FROM t1 WHERE bit1 = b'1'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 128 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 128 50.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 128 50.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`day_of_week` AS `day_of_week`,`test`.`t1`.`bit1` AS `bit1`,`test`.`t1`.`bit3` AS `bit3` from `test`.`t1` where (`test`.`t1`.`bit1` = 0x01) EXPLAIN SELECT * FROM t1 WHERE bit1 <=>b'1'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 128 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 128 50.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 128 50.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`day_of_week` AS `day_of_week`,`test`.`t1`.`bit1` AS `bit1`,`test`.`t1`.`bit3` AS `bit3` from `test`.`t1` where (`test`.`t1`.`bit1` <=> 0x01) EXPLAIN SELECT * FROM t1 WHERE bit1 > b'0'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 128 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 128 50.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 128 50.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`day_of_week` AS `day_of_week`,`test`.`t1`.`bit1` AS `bit1`,`test`.`t1`.`bit3` AS `bit3` from `test`.`t1` where (`test`.`t1`.`bit1` > 0x00) EXPLAIN SELECT * FROM t1 WHERE bit1 >= b'0'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 128 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 128 50.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 128 50.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`day_of_week` AS `day_of_week`,`test`.`t1`.`bit1` AS `bit1`,`test`.`t1`.`bit3` AS `bit3` from `test`.`t1` where (`test`.`t1`.`bit1` >= 0x00) EXPLAIN SELECT * FROM t1 WHERE bit1 < b'0'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 128 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 128 50.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 128 50.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`day_of_week` AS `day_of_week`,`test`.`t1`.`bit1` AS `bit1`,`test`.`t1`.`bit3` AS `bit3` from `test`.`t1` where (`test`.`t1`.`bit1` < 0x00) EXPLAIN SELECT * FROM t1 WHERE bit1 <= b'0'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 128 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 128 50.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 128 50.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`day_of_week` AS `day_of_week`,`test`.`t1`.`bit1` AS `bit1`,`test`.`t1`.`bit3` AS `bit3` from `test`.`t1` where (`test`.`t1`.`bit1` <= 0x00) EXPLAIN SELECT * FROM t1 WHERE bit3 = b'1'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 128 12.50 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 128 12.50 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 128 12.50 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`day_of_week` AS `day_of_week`,`test`.`t1`.`bit1` AS `bit1`,`test`.`t1`.`bit3` AS `bit3` from `test`.`t1` where (`test`.`t1`.`bit3` = 0x01) EXPLAIN SELECT * FROM t1 WHERE day_of_week; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 128 85.71 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 128 85.71 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 128 85.71 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`day_of_week` AS `day_of_week`,`test`.`t1`.`bit1` AS `bit1`,`test`.`t1`.`bit3` AS `bit3` from `test`.`t1` where (0 <> `test`.`t1`.`day_of_week`) EXPLAIN SELECT * FROM t1 WHERE day_of_week = 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 128 14.29 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 128 14.29 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 128 14.29 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`day_of_week` AS `day_of_week`,`test`.`t1`.`bit1` AS `bit1`,`test`.`t1`.`bit3` AS `bit3` from `test`.`t1` where (`test`.`t1`.`day_of_week` = 1) EXPLAIN SELECT * FROM t1 WHERE day_of_week IN (1); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 128 14.29 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 128 14.29 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 128 14.29 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`day_of_week` AS `day_of_week`,`test`.`t1`.`bit1` AS `bit1`,`test`.`t1`.`bit3` AS `bit3` from `test`.`t1` where (`test`.`t1`.`day_of_week` = 1) EXPLAIN SELECT * FROM t1 WHERE day_of_week IN (1,2); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 128 28.57 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 128 28.57 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 128 28.57 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`day_of_week` AS `day_of_week`,`test`.`t1`.`bit1` AS `bit1`,`test`.`t1`.`bit3` AS `bit3` from `test`.`t1` where (`test`.`t1`.`day_of_week` in (1,2)) EXPLAIN SELECT * FROM t1 WHERE day_of_week LIKE 'foo'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 128 14.29 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 128 14.29 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 128 14.29 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`day_of_week` AS `day_of_week`,`test`.`t1`.`bit1` AS `bit1`,`test`.`t1`.`bit3` AS `bit3` from `test`.`t1` where (`test`.`t1`.`day_of_week` like 'foo') EXPLAIN SELECT * FROM t1 WHERE NOT day_of_week = 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 128 85.71 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 128 85.71 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 128 85.71 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`day_of_week` AS `day_of_week`,`test`.`t1`.`bit1` AS `bit1`,`test`.`t1`.`bit3` AS `bit3` from `test`.`t1` where (`test`.`t1`.`day_of_week` <> 1) diff --git a/mysql-test/r/func_if.result-pq b/mysql-test/r/func_if.result-pq index 572e8a0ae078..f1ed2db2a946 100644 --- a/mysql-test/r/func_if.result-pq +++ b/mysql-test/r/func_if.result-pq @@ -60,7 +60,7 @@ NULL 0 explain select nullif(u, 1) from t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 7 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 7 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 7 100.00 NULL Warnings: Note 1003 /* select#1 */ select nullif(`test`.`t1`.`u`,1) AS `nullif(u, 1)` from `test`.`t1` diff --git a/mysql-test/r/func_like.result-pq b/mysql-test/r/func_like.result-pq index 8e928cc8b029..44ba57e104b5 100644 --- a/mysql-test/r/func_like.result-pq +++ b/mysql-test/r/func_like.result-pq @@ -6,13 +6,13 @@ Table Op Msg_type Msg_text test.t1 analyze status OK explain select * from t1 where a like 'abc%'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (3 workers) 2 SIMPLE t1 NULL range a a 43 NULL 2 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 'abc%') explain select * from t1 where a like concat('abc','%'); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (3 workers) 2 SIMPLE t1 NULL range a a 43 NULL 2 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 (concat('abc','%'))) diff --git a/mysql-test/r/histogram_singleton.result-pq b/mysql-test/r/histogram_singleton.result-pq index d30afae19e62..23a92e8cc6f9 100644 --- a/mysql-test/r/histogram_singleton.result-pq +++ b/mysql-test/r/histogram_singleton.result-pq @@ -12,103 +12,103 @@ test.tbl_int histogram status Histogram statistics created for column 'col1'. # Expect "80.0" in column "filtered" EXPLAIN SELECT * FROM tbl_int WHERE col1 > 0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` > 0) EXPLAIN SELECT * FROM tbl_int WHERE 0 < col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (0 < `test`.`tbl_int`.`col1`) # Expect "10.0" in column "filtered" (we never estimate 0%) EXPLAIN SELECT * FROM tbl_int WHERE col1 > 8; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` > 8) EXPLAIN SELECT * FROM tbl_int WHERE 8 < col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (8 < `test`.`tbl_int`.`col1`) # Expect "10.0" in column "filtered" (we never estimate 0%) EXPLAIN SELECT * FROM tbl_int WHERE col1 < 0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` < 0) EXPLAIN SELECT * FROM tbl_int WHERE 0 > col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (0 > `test`.`tbl_int`.`col1`) # Expect "80.0" in column "filtered" EXPLAIN SELECT * FROM tbl_int WHERE col1 < 10; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` < 10) EXPLAIN SELECT * FROM tbl_int WHERE 10 > col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (10 > `test`.`tbl_int`.`col1`) # Expect "30.0" in column "filtered" EXPLAIN SELECT * FROM tbl_int WHERE col1 >= 6; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 30.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` >= 6) EXPLAIN SELECT * FROM tbl_int WHERE 6 <= col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 30.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (6 <= `test`.`tbl_int`.`col1`) # Expect "80.0" in column "filtered" EXPLAIN SELECT * FROM tbl_int WHERE col1 >= -100; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` >= (-(100))) EXPLAIN SELECT * FROM tbl_int WHERE -100 <= col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where ((-(100)) <= `test`.`tbl_int`.`col1`) # Expect "70.0" in column "filtered" EXPLAIN SELECT * FROM tbl_int WHERE col1 != 8; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` <> 8) EXPLAIN SELECT * FROM tbl_int WHERE 8 != col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (8 <> `test`.`tbl_int`.`col1`) EXPLAIN SELECT * FROM tbl_int WHERE col1 <> 8; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` <> 8) EXPLAIN SELECT * FROM tbl_int WHERE 8 <> col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (8 <> `test`.`tbl_int`.`col1`) @@ -116,55 +116,55 @@ Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`t # always assumes that at least one row will match. EXPLAIN SELECT * FROM tbl_int WHERE col1 = 10; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` = 10) EXPLAIN SELECT * FROM tbl_int WHERE 10 = col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` = 10) # Expect "20.0" in column "filtered" EXPLAIN SELECT * FROM tbl_int WHERE col1 IS NULL; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` is null) # Expect "80.0" in column "filtered" EXPLAIN SELECT * FROM tbl_int WHERE col1 IS NOT NULL; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` is not null) # Expect "30.0" in column "filtered" EXPLAIN SELECT * FROM tbl_int WHERE col1 BETWEEN 1 AND 3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 30.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` between 1 and 3) # Expect "50.0" in column "filtered" EXPLAIN SELECT * FROM tbl_int WHERE col1 NOT BETWEEN 1 AND 3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 50.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 50.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` not between 1 and 3) # Expect "60.0" in column "filtered" EXPLAIN SELECT * FROM tbl_int WHERE col1 IN (1, 3, 4, 5, 6, 7); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 60.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` in (1,3,4,5,6,7)) # Expect "20.0" in column "filtered" EXPLAIN SELECT * FROM tbl_int WHERE col1 NOT IN (1, 3, 4, 5, 6, 7); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` not in (1,3,4,5,6,7)) @@ -186,40 +186,40 @@ test.tbl_varchar analyze status OK # Expect "30.0" in column "filtered" EXPLAIN SELECT * FROM tbl_varchar WHERE col1 > "b"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (4 workers) 2 SIMPLE tbl_varchar NULL ALL NULL NULL NULL NULL 10 30.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_varchar`.`col1` AS `col1` from `test`.`tbl_varchar` where (`test`.`tbl_varchar`.`col1` > 'b') EXPLAIN SELECT * FROM tbl_varchar WHERE "b" < col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (4 workers) 2 SIMPLE tbl_varchar NULL ALL NULL NULL NULL NULL 10 30.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_varchar`.`col1` AS `col1` from `test`.`tbl_varchar` where ('b' < `test`.`tbl_varchar`.`col1`) # Expect "10.0" in column "filtered" (we never estimate 0%) EXPLAIN SELECT * FROM tbl_varchar WHERE col1 > "lp"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_varchar NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_varchar`.`col1` AS `col1` from `test`.`tbl_varchar` where (`test`.`tbl_varchar`.`col1` > 'lp') EXPLAIN SELECT * FROM tbl_varchar WHERE "lp" < col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_varchar NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_varchar`.`col1` AS `col1` from `test`.`tbl_varchar` where ('lp' < `test`.`tbl_varchar`.`col1`) # Expect "10.0" in column "filtered" (we never estimate 0%) EXPLAIN SELECT * FROM tbl_varchar WHERE col1 < "🍡"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_varchar NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Warning 1300 Cannot convert string '\xF0\x9F\x8D\xA1' from utf8mb4 to utf8 Note 1003 /* select#1 */ select `test`.`tbl_varchar`.`col1` AS `col1` from `test`.`tbl_varchar` where (`test`.`tbl_varchar`.`col1` < '?') EXPLAIN SELECT * FROM tbl_varchar WHERE "🍡" > col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_varchar NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Warning 1300 Cannot convert string '\xF0\x9F\x8D\xA1' from utf8mb4 to utf8 @@ -227,64 +227,64 @@ Note 1003 /* select#1 */ select `test`.`tbl_varchar`.`col1` AS `col1` from `test # Expect "80.0" in column "filtered" EXPLAIN SELECT * FROM tbl_varchar WHERE col1 < "sierra"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_varchar NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_varchar`.`col1` AS `col1` from `test`.`tbl_varchar` where (`test`.`tbl_varchar`.`col1` < 'sierra') EXPLAIN SELECT * FROM tbl_varchar WHERE "sierra" > col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_varchar NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_varchar`.`col1` AS `col1` from `test`.`tbl_varchar` where ('sierra' > `test`.`tbl_varchar`.`col1`) # Expect "50.0" in column "filtered" EXPLAIN SELECT * FROM tbl_varchar WHERE col1 >= "abcd"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 50.00 Parallel execute (4 workers) 2 SIMPLE tbl_varchar NULL ALL NULL NULL NULL NULL 10 50.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_varchar`.`col1` AS `col1` from `test`.`tbl_varchar` where (`test`.`tbl_varchar`.`col1` >= 'abcd') EXPLAIN SELECT * FROM tbl_varchar WHERE "abcd" <= col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 50.00 Parallel execute (4 workers) 2 SIMPLE tbl_varchar NULL ALL NULL NULL NULL NULL 10 50.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_varchar`.`col1` AS `col1` from `test`.`tbl_varchar` where ('abcd' <= `test`.`tbl_varchar`.`col1`) # Expect "80.0" in column "filtered" EXPLAIN SELECT * FROM tbl_varchar WHERE col1 >= ""; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_varchar NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_varchar`.`col1` AS `col1` from `test`.`tbl_varchar` where (`test`.`tbl_varchar`.`col1` >= '') EXPLAIN SELECT * FROM tbl_varchar WHERE "" <= col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_varchar NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_varchar`.`col1` AS `col1` from `test`.`tbl_varchar` where ('' <= `test`.`tbl_varchar`.`col1`) # Expect "70.0" in column "filtered" EXPLAIN SELECT * FROM tbl_varchar WHERE col1 != "lorem ipsum"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_varchar NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_varchar`.`col1` AS `col1` from `test`.`tbl_varchar` where (`test`.`tbl_varchar`.`col1` <> 'lorem ipsum') EXPLAIN SELECT * FROM tbl_varchar WHERE "lorem ipsum" != col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_varchar NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_varchar`.`col1` AS `col1` from `test`.`tbl_varchar` where ('lorem ipsum' <> `test`.`tbl_varchar`.`col1`) EXPLAIN SELECT * FROM tbl_varchar WHERE col1 <> "lorem ipsum"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_varchar NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_varchar`.`col1` AS `col1` from `test`.`tbl_varchar` where (`test`.`tbl_varchar`.`col1` <> 'lorem ipsum') EXPLAIN SELECT * FROM tbl_varchar WHERE "lorem ipsum" <> col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_varchar NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_varchar`.`col1` AS `col1` from `test`.`tbl_varchar` where ('lorem ipsum' <> `test`.`tbl_varchar`.`col1`) @@ -292,48 +292,48 @@ Note 1003 /* select#1 */ select `test`.`tbl_varchar`.`col1` AS `col1` from `test # always assumes that at least one row will match. EXPLAIN SELECT * FROM tbl_varchar WHERE col1 = "sierra"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_varchar NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_varchar`.`col1` AS `col1` from `test`.`tbl_varchar` where (`test`.`tbl_varchar`.`col1` = 'sierra') EXPLAIN SELECT * FROM tbl_varchar WHERE "sierra" = col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_varchar NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_varchar`.`col1` AS `col1` from `test`.`tbl_varchar` where (`test`.`tbl_varchar`.`col1` = 'sierra') # Expect "20.0" in column "filtered" EXPLAIN SELECT * FROM tbl_varchar WHERE col1 IS NULL; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (4 workers) 2 SIMPLE tbl_varchar NULL ALL NULL NULL NULL NULL 10 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_varchar`.`col1` AS `col1` from `test`.`tbl_varchar` where (`test`.`tbl_varchar`.`col1` is null) # Expect "80.0" in column "filtered" EXPLAIN SELECT * FROM tbl_varchar WHERE col1 IS NOT NULL; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_varchar NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_varchar`.`col1` AS `col1` from `test`.`tbl_varchar` where (`test`.`tbl_varchar`.`col1` is not null) # Expect "30.0" in column "filtered" EXPLAIN SELECT * FROM tbl_varchar WHERE col1 BETWEEN "a" AND "b"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (4 workers) 2 SIMPLE tbl_varchar NULL ALL NULL NULL NULL NULL 10 30.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_varchar`.`col1` AS `col1` from `test`.`tbl_varchar` where (`test`.`tbl_varchar`.`col1` between 'a' and 'b') # Expect "50.0" in column "filtered" EXPLAIN SELECT * FROM tbl_varchar WHERE col1 NOT BETWEEN "a" AND "b"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 50.00 Parallel execute (4 workers) 2 SIMPLE tbl_varchar NULL ALL NULL NULL NULL NULL 10 50.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_varchar`.`col1` AS `col1` from `test`.`tbl_varchar` where (`test`.`tbl_varchar`.`col1` not between 'a' and 'b') # Expect "30.0" in column "filtered" EXPLAIN SELECT * FROM tbl_varchar WHERE col1 IN ("ag", "ef", "🍣"); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (4 workers) 2 SIMPLE tbl_varchar NULL ALL NULL NULL NULL NULL 10 30.00 Using where Warnings: Warning 1300 Cannot convert string '\xF0\x9F\x8D\xA3' from utf8mb4 to utf8 @@ -341,7 +341,7 @@ Note 1003 /* select#1 */ select `test`.`tbl_varchar`.`col1` AS `col1` from `test # Expect "50.0" in column "filtered" EXPLAIN SELECT * FROM tbl_varchar WHERE col1 NOT IN ("ag", "ef", "🍣"); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 50.00 Parallel execute (4 workers) 2 SIMPLE tbl_varchar NULL ALL NULL NULL NULL NULL 10 50.00 Using where Warnings: Warning 1300 Cannot convert string '\xF0\x9F\x8D\xA3' from utf8mb4 to utf8 @@ -361,103 +361,103 @@ test.tbl_double analyze status OK # Expect "60.0" in column "filtered" EXPLAIN SELECT * FROM tbl_double WHERE col1 > 0.0e0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (4 workers) 2 SIMPLE tbl_double NULL ALL NULL NULL NULL NULL 10 60.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_double`.`col1` AS `col1` from `test`.`tbl_double` where (`test`.`tbl_double`.`col1` > 0.0e0) EXPLAIN SELECT * FROM tbl_double WHERE 0.0e0 < col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (4 workers) 2 SIMPLE tbl_double NULL ALL NULL NULL NULL NULL 10 60.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_double`.`col1` AS `col1` from `test`.`tbl_double` where (0.0e0 < `test`.`tbl_double`.`col1`) # Expect "10.0" in column "filtered" (we never estimate 0%) EXPLAIN SELECT * FROM tbl_double WHERE col1 > 6.6e0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_double NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_double`.`col1` AS `col1` from `test`.`tbl_double` where (`test`.`tbl_double`.`col1` > 6.6e0) EXPLAIN SELECT * FROM tbl_double WHERE 6.6e0 < col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_double NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_double`.`col1` AS `col1` from `test`.`tbl_double` where (6.6e0 < `test`.`tbl_double`.`col1`) # Expect "10.0" in column "filtered" (we never estimate 0%) EXPLAIN SELECT * FROM tbl_double WHERE col1 < -2.2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_double NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_double`.`col1` AS `col1` from `test`.`tbl_double` where (`test`.`tbl_double`.`col1` < -2.2) EXPLAIN SELECT * FROM tbl_double WHERE -2.2 > col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_double NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_double`.`col1` AS `col1` from `test`.`tbl_double` where (-2.2 > `test`.`tbl_double`.`col1`) # Expect "80.0" in column "filtered" EXPLAIN SELECT * FROM tbl_double WHERE col1 < 10.0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_double NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_double`.`col1` AS `col1` from `test`.`tbl_double` where (`test`.`tbl_double`.`col1` < 10) EXPLAIN SELECT * FROM tbl_double WHERE 10.0 > col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_double NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_double`.`col1` AS `col1` from `test`.`tbl_double` where (10 > `test`.`tbl_double`.`col1`) # Expect "40.0" in column "filtered" EXPLAIN SELECT * FROM tbl_double WHERE col1 >= 3.3e0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_double NULL ALL NULL NULL NULL NULL 10 40.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_double`.`col1` AS `col1` from `test`.`tbl_double` where (`test`.`tbl_double`.`col1` >= 3.3e0) EXPLAIN SELECT * FROM tbl_double WHERE 3.3e0 <= col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_double NULL ALL NULL NULL NULL NULL 10 40.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_double`.`col1` AS `col1` from `test`.`tbl_double` where (3.3e0 <= `test`.`tbl_double`.`col1`) # Expect "80.0" in column "filtered" EXPLAIN SELECT * FROM tbl_double WHERE col1 >= -2.0e0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_double NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_double`.`col1` AS `col1` from `test`.`tbl_double` where (`test`.`tbl_double`.`col1` >= -2) EXPLAIN SELECT * FROM tbl_double WHERE -2.0e0 <= col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_double NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_double`.`col1` AS `col1` from `test`.`tbl_double` where (-2 <= `test`.`tbl_double`.`col1`) # Expect "70.0" in column "filtered" EXPLAIN SELECT * FROM tbl_double WHERE col1 != 0.0e0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_double NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_double`.`col1` AS `col1` from `test`.`tbl_double` where (`test`.`tbl_double`.`col1` <> 0.0e0) EXPLAIN SELECT * FROM tbl_double WHERE 0.0e0 != col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_double NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_double`.`col1` AS `col1` from `test`.`tbl_double` where (0.0e0 <> `test`.`tbl_double`.`col1`) EXPLAIN SELECT * FROM tbl_double WHERE col1 <> 0.0e0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_double NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_double`.`col1` AS `col1` from `test`.`tbl_double` where (`test`.`tbl_double`.`col1` <> 0.0e0) EXPLAIN SELECT * FROM tbl_double WHERE 0.0e0 <> col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_double NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_double`.`col1` AS `col1` from `test`.`tbl_double` where (0.0e0 <> `test`.`tbl_double`.`col1`) @@ -465,55 +465,55 @@ Note 1003 /* select#1 */ select `test`.`tbl_double`.`col1` AS `col1` from `test` # always assumes that at least one row will match. EXPLAIN SELECT * FROM tbl_double WHERE col1 = 100.0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_double NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_double`.`col1` AS `col1` from `test`.`tbl_double` where (`test`.`tbl_double`.`col1` = 100) EXPLAIN SELECT * FROM tbl_double WHERE 100.0 = col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_double NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_double`.`col1` AS `col1` from `test`.`tbl_double` where (100 = `test`.`tbl_double`.`col1`) # Expect "20.0" in column "filtered" EXPLAIN SELECT * FROM tbl_double WHERE col1 IS NULL; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (4 workers) 2 SIMPLE tbl_double NULL ALL NULL NULL NULL NULL 10 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_double`.`col1` AS `col1` from `test`.`tbl_double` where (`test`.`tbl_double`.`col1` is null) # Expect "80.0" in column "filtered" EXPLAIN SELECT * FROM tbl_double WHERE col1 IS NOT NULL; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_double NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_double`.`col1` AS `col1` from `test`.`tbl_double` where (`test`.`tbl_double`.`col1` is not null) # Expect "30.0" in column "filtered" EXPLAIN SELECT * FROM tbl_double WHERE col1 BETWEEN 1.1e0 AND 3.3e0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (4 workers) 2 SIMPLE tbl_double NULL ALL NULL NULL NULL NULL 10 30.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_double`.`col1` AS `col1` from `test`.`tbl_double` where (`test`.`tbl_double`.`col1` between 1.1e0 and 3.3e0) # Expect "50.0" in column "filtered" EXPLAIN SELECT * FROM tbl_double WHERE col1 NOT BETWEEN 1.1e0 AND 3.3e0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 50.00 Parallel execute (4 workers) 2 SIMPLE tbl_double NULL ALL NULL NULL NULL NULL 10 50.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_double`.`col1` AS `col1` from `test`.`tbl_double` where (`test`.`tbl_double`.`col1` not between 1.1e0 and 3.3e0) # Expect "40.0" in column "filtered" EXPLAIN SELECT * FROM tbl_double WHERE col1 IN (-1.1e0, 0.0e0, 1.1e0, 2.2e0); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_double NULL ALL NULL NULL NULL NULL 10 40.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_double`.`col1` AS `col1` from `test`.`tbl_double` where (`test`.`tbl_double`.`col1` in ((-(1.1e0)),0.0e0,1.1e0,2.2e0)) # Expect "40.0" in column "filtered" EXPLAIN SELECT * FROM tbl_double WHERE col1 NOT IN (-1.1e0, 0.0e0, 1.1e0, 2.2e0); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_double NULL ALL NULL NULL NULL NULL 10 40.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_double`.`col1` AS `col1` from `test`.`tbl_double` where (`test`.`tbl_double`.`col1` not in ((-(1.1e0)),0.0e0,1.1e0,2.2e0)) @@ -534,103 +534,103 @@ test.tbl_time analyze status OK # Expect "60.0" in column "filtered" EXPLAIN SELECT * FROM tbl_time WHERE col1 > "00:00:00"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 10 60.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_time`.`col1` AS `col1` from `test`.`tbl_time` where (`test`.`tbl_time`.`col1` > TIME'00:00:00') EXPLAIN SELECT * FROM tbl_time WHERE "00:00:00" < col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 10 60.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_time`.`col1` AS `col1` from `test`.`tbl_time` where (TIME'00:00:00' < `test`.`tbl_time`.`col1`) # Expect "10.0" in column "filtered" (we never estimate 0%) EXPLAIN SELECT * FROM tbl_time WHERE col1 > "03:00:00"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_time`.`col1` AS `col1` from `test`.`tbl_time` where (`test`.`tbl_time`.`col1` > TIME'03:00:00') EXPLAIN SELECT * FROM tbl_time WHERE "03:00:00" < col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_time`.`col1` AS `col1` from `test`.`tbl_time` where (TIME'03:00:00' < `test`.`tbl_time`.`col1`) # Expect "10.0" in column "filtered" (we never estimate 0%) EXPLAIN SELECT * FROM tbl_time WHERE col1 < "-02:00:00"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_time`.`col1` AS `col1` from `test`.`tbl_time` where (`test`.`tbl_time`.`col1` < TIME'-02:00:00') EXPLAIN SELECT * FROM tbl_time WHERE "-02:00:00" > col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_time`.`col1` AS `col1` from `test`.`tbl_time` where (TIME'-02:00:00' > `test`.`tbl_time`.`col1`) # Expect "80.0" in column "filtered" EXPLAIN SELECT * FROM tbl_time WHERE col1 < "10:00:00"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_time`.`col1` AS `col1` from `test`.`tbl_time` where (`test`.`tbl_time`.`col1` < TIME'10:00:00') EXPLAIN SELECT * FROM tbl_time WHERE "10:00:00" > col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_time`.`col1` AS `col1` from `test`.`tbl_time` where (TIME'10:00:00' > `test`.`tbl_time`.`col1`) # Expect "60.0" in column "filtered" EXPLAIN SELECT * FROM tbl_time WHERE col1 >= "00:00:01"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 10 60.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_time`.`col1` AS `col1` from `test`.`tbl_time` where (`test`.`tbl_time`.`col1` >= TIME'00:00:01') EXPLAIN SELECT * FROM tbl_time WHERE "00:00:01" <= col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 10 60.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_time`.`col1` AS `col1` from `test`.`tbl_time` where (TIME'00:00:01' <= `test`.`tbl_time`.`col1`) # Expect "80.0" in column "filtered" EXPLAIN SELECT * FROM tbl_time WHERE col1 >= "-01:00:00"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_time`.`col1` AS `col1` from `test`.`tbl_time` where (`test`.`tbl_time`.`col1` >= TIME'-01:00:00') EXPLAIN SELECT * FROM tbl_time WHERE "-01:00:00" <= col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_time`.`col1` AS `col1` from `test`.`tbl_time` where (TIME'-01:00:00' <= `test`.`tbl_time`.`col1`) # Expect "70.0" in column "filtered" EXPLAIN SELECT * FROM tbl_time WHERE col1 != "01:01:00"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_time`.`col1` AS `col1` from `test`.`tbl_time` where (`test`.`tbl_time`.`col1` <> TIME'01:01:00') EXPLAIN SELECT * FROM tbl_time WHERE "01:01:00" != col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_time`.`col1` AS `col1` from `test`.`tbl_time` where (TIME'01:01:00' <> `test`.`tbl_time`.`col1`) EXPLAIN SELECT * FROM tbl_time WHERE col1 <> "01:01:00"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_time`.`col1` AS `col1` from `test`.`tbl_time` where (`test`.`tbl_time`.`col1` <> TIME'01:01:00') EXPLAIN SELECT * FROM tbl_time WHERE "01:01:00" <> col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_time`.`col1` AS `col1` from `test`.`tbl_time` where (TIME'01:01:00' <> `test`.`tbl_time`.`col1`) @@ -638,55 +638,55 @@ Note 1003 /* select#1 */ select `test`.`tbl_time`.`col1` AS `col1` from `test`.` # always assumes that at least one row will match. EXPLAIN SELECT * FROM tbl_time WHERE col1 = "10:00:00"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_time`.`col1` AS `col1` from `test`.`tbl_time` where (`test`.`tbl_time`.`col1` = TIME'10:00:00') EXPLAIN SELECT * FROM tbl_time WHERE "10:00:00" = col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_time`.`col1` AS `col1` from `test`.`tbl_time` where (TIME'10:00:00' = `test`.`tbl_time`.`col1`) # Expect "20.0" in column "filtered" EXPLAIN SELECT * FROM tbl_time WHERE col1 IS NULL; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 10 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_time`.`col1` AS `col1` from `test`.`tbl_time` where (`test`.`tbl_time`.`col1` is null) # Expect "80.0" in column "filtered" EXPLAIN SELECT * FROM tbl_time WHERE col1 IS NOT NULL; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_time`.`col1` AS `col1` from `test`.`tbl_time` where (`test`.`tbl_time`.`col1` is not null) # Expect "50.0" in column "filtered" EXPLAIN SELECT * FROM tbl_time WHERE col1 BETWEEN "00:00:01" AND "02:00:00"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 50.00 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 10 50.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_time`.`col1` AS `col1` from `test`.`tbl_time` where (`test`.`tbl_time`.`col1` between '00:00:01' and '02:00:00') # Expect "30.0" in column "filtered" EXPLAIN SELECT * FROM tbl_time WHERE col1 NOT BETWEEN "00:00:01" AND "02:00:00"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 10 30.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_time`.`col1` AS `col1` from `test`.`tbl_time` where (`test`.`tbl_time`.`col1` not between '00:00:01' and '02:00:00') # Expect "30.0" in column "filtered" EXPLAIN SELECT * FROM tbl_time WHERE col1 IN ("-01:00:00", "00:00:00", "03:00:00"); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 10 30.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_time`.`col1` AS `col1` from `test`.`tbl_time` where (`test`.`tbl_time`.`col1` in ('-01:00:00','00:00:00','03:00:00')) # Expect "50.0" in column "filtered" EXPLAIN SELECT * FROM tbl_time WHERE col1 NOT IN ("-01:00:00", "00:00:00", "03:00:00"); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 50.00 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 10 50.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_time`.`col1` AS `col1` from `test`.`tbl_time` where (`test`.`tbl_time`.`col1` not in ('-01:00:00','00:00:00','03:00:00')) @@ -707,103 +707,103 @@ test.tbl_date analyze status OK # Expect "50.0" in column "filtered" EXPLAIN SELECT * FROM tbl_date WHERE col1 > "2017-01-02"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 50.00 Parallel execute (4 workers) 2 SIMPLE tbl_date NULL ALL NULL NULL NULL NULL 10 50.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_date`.`col1` AS `col1` from `test`.`tbl_date` where (`test`.`tbl_date`.`col1` > DATE'2017-01-02') EXPLAIN SELECT * FROM tbl_date WHERE "2017-01-02" < col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 50.00 Parallel execute (4 workers) 2 SIMPLE tbl_date NULL ALL NULL NULL NULL NULL 10 50.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_date`.`col1` AS `col1` from `test`.`tbl_date` where (DATE'2017-01-02' < `test`.`tbl_date`.`col1`) # Expect "10.0" in column "filtered" (we never estimate 0%) EXPLAIN SELECT * FROM tbl_date WHERE col1 > "9999-12-31"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_date NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_date`.`col1` AS `col1` from `test`.`tbl_date` where (`test`.`tbl_date`.`col1` > DATE'9999-12-31') EXPLAIN SELECT * FROM tbl_date WHERE "9999-12-31" < col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_date NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_date`.`col1` AS `col1` from `test`.`tbl_date` where (DATE'9999-12-31' < `test`.`tbl_date`.`col1`) # Expect "10.0" in column "filtered" (we never estimate 0%) EXPLAIN SELECT * FROM tbl_date WHERE col1 < "1000-01-01"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_date NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_date`.`col1` AS `col1` from `test`.`tbl_date` where (`test`.`tbl_date`.`col1` < DATE'1000-01-01') EXPLAIN SELECT * FROM tbl_date WHERE "1000-01-01" > col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_date NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_date`.`col1` AS `col1` from `test`.`tbl_date` where (DATE'1000-01-01' > `test`.`tbl_date`.`col1`) # Expect "80.0" in column "filtered" EXPLAIN SELECT * FROM tbl_date WHERE col1 < "9999-12-31"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_date NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_date`.`col1` AS `col1` from `test`.`tbl_date` where (`test`.`tbl_date`.`col1` < DATE'9999-12-31') EXPLAIN SELECT * FROM tbl_date WHERE "9999-12-31" > col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_date NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_date`.`col1` AS `col1` from `test`.`tbl_date` where (DATE'9999-12-31' > `test`.`tbl_date`.`col1`) # Expect "40.0" in column "filtered" EXPLAIN SELECT * FROM tbl_date WHERE col1 >= "2018-01-01"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_date NULL ALL NULL NULL NULL NULL 10 40.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_date`.`col1` AS `col1` from `test`.`tbl_date` where (`test`.`tbl_date`.`col1` >= DATE'2018-01-01') EXPLAIN SELECT * FROM tbl_date WHERE "2018-01-01" <= col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_date NULL ALL NULL NULL NULL NULL 10 40.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_date`.`col1` AS `col1` from `test`.`tbl_date` where (DATE'2018-01-01' <= `test`.`tbl_date`.`col1`) # Expect "80.0" in column "filtered" EXPLAIN SELECT * FROM tbl_date WHERE col1 >= "1000-01-02"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_date NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_date`.`col1` AS `col1` from `test`.`tbl_date` where (`test`.`tbl_date`.`col1` >= DATE'1000-01-02') EXPLAIN SELECT * FROM tbl_date WHERE "1000-01-02" <= col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_date NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_date`.`col1` AS `col1` from `test`.`tbl_date` where (DATE'1000-01-02' <= `test`.`tbl_date`.`col1`) # Expect "70.0" in column "filtered" EXPLAIN SELECT * FROM tbl_date WHERE col1 != "2017-01-02"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_date NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_date`.`col1` AS `col1` from `test`.`tbl_date` where (`test`.`tbl_date`.`col1` <> DATE'2017-01-02') EXPLAIN SELECT * FROM tbl_date WHERE "2017-01-02" != col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_date NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_date`.`col1` AS `col1` from `test`.`tbl_date` where (DATE'2017-01-02' <> `test`.`tbl_date`.`col1`) EXPLAIN SELECT * FROM tbl_date WHERE col1 <> "2017-01-02"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_date NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_date`.`col1` AS `col1` from `test`.`tbl_date` where (`test`.`tbl_date`.`col1` <> DATE'2017-01-02') EXPLAIN SELECT * FROM tbl_date WHERE "2017-01-02" <> col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_date NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_date`.`col1` AS `col1` from `test`.`tbl_date` where (DATE'2017-01-02' <> `test`.`tbl_date`.`col1`) @@ -811,55 +811,55 @@ Note 1003 /* select#1 */ select `test`.`tbl_date`.`col1` AS `col1` from `test`.` # always assumes that at least one row will match. EXPLAIN SELECT * FROM tbl_date WHERE col1 = "9999-12-31"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_date NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_date`.`col1` AS `col1` from `test`.`tbl_date` where (`test`.`tbl_date`.`col1` = DATE'9999-12-31') EXPLAIN SELECT * FROM tbl_date WHERE "9999-12-31" = col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_date NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_date`.`col1` AS `col1` from `test`.`tbl_date` where (`test`.`tbl_date`.`col1` = DATE'9999-12-31') # Expect "20.0" in column "filtered" EXPLAIN SELECT * FROM tbl_date WHERE col1 IS NULL; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (4 workers) 2 SIMPLE tbl_date NULL ALL NULL NULL NULL NULL 10 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_date`.`col1` AS `col1` from `test`.`tbl_date` where (`test`.`tbl_date`.`col1` is null) # Expect "80.0" in column "filtered" EXPLAIN SELECT * FROM tbl_date WHERE col1 IS NOT NULL; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_date NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_date`.`col1` AS `col1` from `test`.`tbl_date` where (`test`.`tbl_date`.`col1` is not null) # Expect "60.0" in column "filtered" EXPLAIN SELECT * FROM tbl_date WHERE col1 BETWEEN "2017-01-01" AND "3019-01-01"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (4 workers) 2 SIMPLE tbl_date NULL ALL NULL NULL NULL NULL 10 60.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_date`.`col1` AS `col1` from `test`.`tbl_date` where (`test`.`tbl_date`.`col1` between '2017-01-01' and '3019-01-01') # Expect "20.0" in column "filtered" EXPLAIN SELECT * FROM tbl_date WHERE col1 NOT BETWEEN "2017-01-01" AND "3019-01-01"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (4 workers) 2 SIMPLE tbl_date NULL ALL NULL NULL NULL NULL 10 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_date`.`col1` AS `col1` from `test`.`tbl_date` where (`test`.`tbl_date`.`col1` not between '2017-01-01' and '3019-01-01') # Expect "30.0" in column "filtered" EXPLAIN SELECT * FROM tbl_date WHERE col1 IN ("1000-01-02", "2017-01-02", "2018-01-01"); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (4 workers) 2 SIMPLE tbl_date NULL ALL NULL NULL NULL NULL 10 30.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_date`.`col1` AS `col1` from `test`.`tbl_date` where (`test`.`tbl_date`.`col1` in ('1000-01-02','2017-01-02','2018-01-01')) # Expect "50.0" in column "filtered" EXPLAIN SELECT * FROM tbl_date WHERE col1 NOT IN ("1000-01-02", "2017-01-02", "2018-01-01"); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 50.00 Parallel execute (4 workers) 2 SIMPLE tbl_date NULL ALL NULL NULL NULL NULL 10 50.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_date`.`col1` AS `col1` from `test`.`tbl_date` where (`test`.`tbl_date`.`col1` not in ('1000-01-02','2017-01-02','2018-01-01')) @@ -882,103 +882,103 @@ test.tbl_datetime analyze status OK # Expect "40.0" in column "filtered" EXPLAIN SELECT * FROM tbl_datetime WHERE col1 > "2018-01-01 00:00:00"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_datetime NULL ALL NULL NULL NULL NULL 10 40.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_datetime`.`col1` AS `col1` from `test`.`tbl_datetime` where (`test`.`tbl_datetime`.`col1` > TIMESTAMP'2018-01-01 00:00:00') EXPLAIN SELECT * FROM tbl_datetime WHERE "2018-01-01 00:00:00" < col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_datetime NULL ALL NULL NULL NULL NULL 10 40.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_datetime`.`col1` AS `col1` from `test`.`tbl_datetime` where (TIMESTAMP'2018-01-01 00:00:00' < `test`.`tbl_datetime`.`col1`) # Expect "10.0" in column "filtered" (we never estimate 0%) EXPLAIN SELECT * FROM tbl_datetime WHERE col1 > "9999-12-31 23:59:59.999998"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_datetime NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_datetime`.`col1` AS `col1` from `test`.`tbl_datetime` where (`test`.`tbl_datetime`.`col1` > TIMESTAMP'9999-12-31 23:59:59.999998') EXPLAIN SELECT * FROM tbl_datetime WHERE "9999-12-31 23:59:59.999998" < col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_datetime NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_datetime`.`col1` AS `col1` from `test`.`tbl_datetime` where (TIMESTAMP'9999-12-31 23:59:59.999998' < `test`.`tbl_datetime`.`col1`) # Expect "10.0" in column "filtered" (we never estimate 0%) EXPLAIN SELECT * FROM tbl_datetime WHERE col1 < "1000-01-01 00:00:00"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_datetime NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_datetime`.`col1` AS `col1` from `test`.`tbl_datetime` where (`test`.`tbl_datetime`.`col1` < TIMESTAMP'1000-01-01 00:00:00') EXPLAIN SELECT * FROM tbl_datetime WHERE "1000-01-01 00:00:00" > col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_datetime NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_datetime`.`col1` AS `col1` from `test`.`tbl_datetime` where (TIMESTAMP'1000-01-01 00:00:00' > `test`.`tbl_datetime`.`col1`) # Expect "80.0" in column "filtered" EXPLAIN SELECT * FROM tbl_datetime WHERE col1 < "9999-12-31 23:59:59.999999"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_datetime NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_datetime`.`col1` AS `col1` from `test`.`tbl_datetime` where (`test`.`tbl_datetime`.`col1` < TIMESTAMP'9999-12-31 23:59:59.999999') EXPLAIN SELECT * FROM tbl_datetime WHERE "9999-12-31 23:59:59.999999" > col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_datetime NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_datetime`.`col1` AS `col1` from `test`.`tbl_datetime` where (TIMESTAMP'9999-12-31 23:59:59.999999' > `test`.`tbl_datetime`.`col1`) # Expect "40.0" in column "filtered" EXPLAIN SELECT * FROM tbl_datetime WHERE col1 >= "2018-01-01 00:00:00.999999"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_datetime NULL ALL NULL NULL NULL NULL 10 40.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_datetime`.`col1` AS `col1` from `test`.`tbl_datetime` where (`test`.`tbl_datetime`.`col1` >= TIMESTAMP'2018-01-01 00:00:00.999999') EXPLAIN SELECT * FROM tbl_datetime WHERE "2018-01-01 00:00:00.999999" <= col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_datetime NULL ALL NULL NULL NULL NULL 10 40.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_datetime`.`col1` AS `col1` from `test`.`tbl_datetime` where (TIMESTAMP'2018-01-01 00:00:00.999999' <= `test`.`tbl_datetime`.`col1`) # Expect "80.0" in column "filtered" EXPLAIN SELECT * FROM tbl_datetime WHERE col1 >= "1000-01-01 00:00:01.000000"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_datetime NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_datetime`.`col1` AS `col1` from `test`.`tbl_datetime` where (`test`.`tbl_datetime`.`col1` >= TIMESTAMP'1000-01-01 00:00:01') EXPLAIN SELECT * FROM tbl_datetime WHERE "1000-01-01 00:00:01.000000" <= col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_datetime NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_datetime`.`col1` AS `col1` from `test`.`tbl_datetime` where (TIMESTAMP'1000-01-01 00:00:01' <= `test`.`tbl_datetime`.`col1`) # Expect "70.0" in column "filtered" EXPLAIN SELECT * FROM tbl_datetime WHERE col1 != "3019-01-01 10:10:10.101010"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_datetime NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_datetime`.`col1` AS `col1` from `test`.`tbl_datetime` where (`test`.`tbl_datetime`.`col1` <> TIMESTAMP'3019-01-01 10:10:10.10101') EXPLAIN SELECT * FROM tbl_datetime WHERE "3019-01-01 10:10:10.101010" != col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_datetime NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_datetime`.`col1` AS `col1` from `test`.`tbl_datetime` where (TIMESTAMP'3019-01-01 10:10:10.10101' <> `test`.`tbl_datetime`.`col1`) EXPLAIN SELECT * FROM tbl_datetime WHERE col1 <> "3019-01-01 10:10:10.101010"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_datetime NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_datetime`.`col1` AS `col1` from `test`.`tbl_datetime` where (`test`.`tbl_datetime`.`col1` <> TIMESTAMP'3019-01-01 10:10:10.10101') EXPLAIN SELECT * FROM tbl_datetime WHERE "3019-01-01 10:10:10.101010" <> col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_datetime NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_datetime`.`col1` AS `col1` from `test`.`tbl_datetime` where (TIMESTAMP'3019-01-01 10:10:10.10101' <> `test`.`tbl_datetime`.`col1`) @@ -986,55 +986,55 @@ Note 1003 /* select#1 */ select `test`.`tbl_datetime`.`col1` AS `col1` from `tes # always assumes that at least one row will match. EXPLAIN SELECT * FROM tbl_datetime WHERE col1 = "9999-12-31 23:59:59.999999"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_datetime NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_datetime`.`col1` AS `col1` from `test`.`tbl_datetime` where (`test`.`tbl_datetime`.`col1` = TIMESTAMP'9999-12-31 23:59:59.999999') EXPLAIN SELECT * FROM tbl_datetime WHERE "9999-12-31 23:59:59.999999" = col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_datetime NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_datetime`.`col1` AS `col1` from `test`.`tbl_datetime` where (`test`.`tbl_datetime`.`col1` = TIMESTAMP'9999-12-31 23:59:59.999999') # Expect "20.0" in column "filtered" EXPLAIN SELECT * FROM tbl_datetime WHERE col1 IS NULL; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (4 workers) 2 SIMPLE tbl_datetime NULL ALL NULL NULL NULL NULL 10 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_datetime`.`col1` AS `col1` from `test`.`tbl_datetime` where (`test`.`tbl_datetime`.`col1` is null) # Expect "80.0" in column "filtered" EXPLAIN SELECT * FROM tbl_datetime WHERE col1 IS NOT NULL; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_datetime NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_datetime`.`col1` AS `col1` from `test`.`tbl_datetime` where (`test`.`tbl_datetime`.`col1` is not null) # Expect "50.0" in column "filtered" EXPLAIN SELECT * FROM tbl_datetime WHERE col1 BETWEEN "2017-01-01 00:00:00.000001" AND "3019-01-01 10:10:10.101010"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 50.00 Parallel execute (4 workers) 2 SIMPLE tbl_datetime NULL ALL NULL NULL NULL NULL 10 50.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_datetime`.`col1` AS `col1` from `test`.`tbl_datetime` where (`test`.`tbl_datetime`.`col1` between '2017-01-01 00:00:00.000001' and '3019-01-01 10:10:10.101010') # Expect "30.0" in column "filtered" EXPLAIN SELECT * FROM tbl_datetime WHERE col1 NOT BETWEEN "2017-01-01 00:00:00.000001" AND "3019-01-01 10:10:10.101010"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (4 workers) 2 SIMPLE tbl_datetime NULL ALL NULL NULL NULL NULL 10 30.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_datetime`.`col1` AS `col1` from `test`.`tbl_datetime` where (`test`.`tbl_datetime`.`col1` not between '2017-01-01 00:00:00.000001' and '3019-01-01 10:10:10.101010') # Expect "30.0" in column "filtered" EXPLAIN SELECT * FROM tbl_datetime WHERE col1 IN ("1000-01-01 00:00:01.000000", "2018-01-01 00:00:00.999999", "9999-12-31 23:59:59.999998"); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (4 workers) 2 SIMPLE tbl_datetime NULL ALL NULL NULL NULL NULL 10 30.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_datetime`.`col1` AS `col1` from `test`.`tbl_datetime` where (`test`.`tbl_datetime`.`col1` in ('1000-01-01 00:00:01.000000','2018-01-01 00:00:00.999999','9999-12-31 23:59:59.999998')) # Expect "50.0" in column "filtered" EXPLAIN SELECT * FROM tbl_datetime WHERE col1 NOT IN ("1000-01-01 00:00:01.000000", "2018-01-01 00:00:00.999999", "9999-12-31 23:59:59.999998"); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 50.00 Parallel execute (4 workers) 2 SIMPLE tbl_datetime NULL ALL NULL NULL NULL NULL 10 50.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_datetime`.`col1` AS `col1` from `test`.`tbl_datetime` where (`test`.`tbl_datetime`.`col1` not in ('1000-01-01 00:00:01.000000','2018-01-01 00:00:00.999999','9999-12-31 23:59:59.999998')) @@ -1057,13 +1057,13 @@ test.tbl_decimal analyze status OK # Expect "40.0" in column "filtered" EXPLAIN SELECT * FROM tbl_decimal WHERE col1 > 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_decimal NULL ALL NULL NULL NULL NULL 10 40.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test`.`tbl_decimal` where (`test`.`tbl_decimal`.`col1` > 1.000000000000000000000000000000) EXPLAIN SELECT * FROM tbl_decimal WHERE 1 < col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_decimal NULL ALL NULL NULL NULL NULL 10 40.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test`.`tbl_decimal` where (1.000000000000000000000000000000 < `test`.`tbl_decimal`.`col1`) @@ -1081,77 +1081,77 @@ Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test # Expect "10.0" in column "filtered" (we never estimate 0%) EXPLAIN SELECT * FROM tbl_decimal WHERE col1 < -99999999999999999999999999999999999.999999999999999999999999999999; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_decimal NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test`.`tbl_decimal` where (`test`.`tbl_decimal`.`col1` < (-(99999999999999999999999999999999999.999999999999999999999999999999))) EXPLAIN SELECT * FROM tbl_decimal WHERE -99999999999999999999999999999999999.999999999999999999999999999999 > col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_decimal NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test`.`tbl_decimal` where ((-(99999999999999999999999999999999999.999999999999999999999999999999)) > `test`.`tbl_decimal`.`col1`) # Expect "80.0" in column "filtered" EXPLAIN SELECT * FROM tbl_decimal WHERE col1 < 99999999999999999999999999999999999.999999999999999999999999999999; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_decimal NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test`.`tbl_decimal` where (`test`.`tbl_decimal`.`col1` < 99999999999999999999999999999999999.999999999999999999999999999999) EXPLAIN SELECT * FROM tbl_decimal WHERE 99999999999999999999999999999999999.999999999999999999999999999999 > col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_decimal NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test`.`tbl_decimal` where (99999999999999999999999999999999999.999999999999999999999999999999 > `test`.`tbl_decimal`.`col1`) # Expect "40.0" in column "filtered" EXPLAIN SELECT * FROM tbl_decimal WHERE col1 >= 4; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (4 workers) 2 SIMPLE tbl_decimal NULL ALL NULL NULL NULL NULL 10 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test`.`tbl_decimal` where (`test`.`tbl_decimal`.`col1` >= 4.000000000000000000000000000000) EXPLAIN SELECT * FROM tbl_decimal WHERE 4 <= col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (4 workers) 2 SIMPLE tbl_decimal NULL ALL NULL NULL NULL NULL 10 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test`.`tbl_decimal` where (4.000000000000000000000000000000 <= `test`.`tbl_decimal`.`col1`) # Expect "70.0" in column "filtered" EXPLAIN SELECT * FROM tbl_decimal WHERE col1 >= -1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_decimal NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test`.`tbl_decimal` where (`test`.`tbl_decimal`.`col1` >= -1.000000000000000000000000000000) EXPLAIN SELECT * FROM tbl_decimal WHERE -1 <= col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_decimal NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test`.`tbl_decimal` where (-1.000000000000000000000000000000 <= `test`.`tbl_decimal`.`col1`) # Expect "70.0" in column "filtered" EXPLAIN SELECT * FROM tbl_decimal WHERE col1 != 2.0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_decimal NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test`.`tbl_decimal` where (`test`.`tbl_decimal`.`col1` <> 2.000000000000000000000000000000) EXPLAIN SELECT * FROM tbl_decimal WHERE 2.0 != col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_decimal NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test`.`tbl_decimal` where (2.000000000000000000000000000000 <> `test`.`tbl_decimal`.`col1`) EXPLAIN SELECT * FROM tbl_decimal WHERE col1 <> 2.0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_decimal NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test`.`tbl_decimal` where (`test`.`tbl_decimal`.`col1` <> 2.000000000000000000000000000000) EXPLAIN SELECT * FROM tbl_decimal WHERE 2.0 <> col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_decimal NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test`.`tbl_decimal` where (2.000000000000000000000000000000 <> `test`.`tbl_decimal`.`col1`) @@ -1159,41 +1159,41 @@ Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test # always assumes that at least one row will match. EXPLAIN SELECT * FROM tbl_decimal WHERE col1 = "99999999999999999999999999999999999.999999999999999999999999999999"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_decimal NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test`.`tbl_decimal` where (`test`.`tbl_decimal`.`col1` = 99999999999999999999999999999999999.999999999999999999999999999999) EXPLAIN SELECT * FROM tbl_decimal WHERE "99999999999999999999999999999999999.999999999999999999999999999999" = col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_decimal NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test`.`tbl_decimal` where (99999999999999999999999999999999999.999999999999999999999999999999 = `test`.`tbl_decimal`.`col1`) # Expect "20.0" in column "filtered" EXPLAIN SELECT * FROM tbl_decimal WHERE col1 IS NULL; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (4 workers) 2 SIMPLE tbl_decimal NULL ALL NULL NULL NULL NULL 10 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test`.`tbl_decimal` where (`test`.`tbl_decimal`.`col1` is null) # Expect "80.0" in column "filtered" EXPLAIN SELECT * FROM tbl_decimal WHERE col1 IS NOT NULL; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_decimal NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test`.`tbl_decimal` where (`test`.`tbl_decimal`.`col1` is not null) # Expect "60.0" in column "filtered" EXPLAIN SELECT * FROM tbl_decimal WHERE col1 BETWEEN -1.0 AND 4.0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (4 workers) 2 SIMPLE tbl_decimal NULL ALL NULL NULL NULL NULL 10 60.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test`.`tbl_decimal` where (`test`.`tbl_decimal`.`col1` between (-(1.0)) and 4.0) # Expect "20.0" in column "filtered" EXPLAIN SELECT * FROM tbl_decimal WHERE col1 NOT BETWEEN -1.0 AND 4.0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (4 workers) 2 SIMPLE tbl_decimal NULL ALL NULL NULL NULL NULL 10 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test`.`tbl_decimal` where (`test`.`tbl_decimal`.`col1` not between (-(1.0)) and 4.0) @@ -1201,7 +1201,7 @@ Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test EXPLAIN SELECT * FROM tbl_decimal WHERE col1 IN (-99999999999999999999999999999999999.999999999999999999999999999998, 1.0, 2.0); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (4 workers) 2 SIMPLE tbl_decimal NULL ALL NULL NULL NULL NULL 10 30.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test`.`tbl_decimal` where (`test`.`tbl_decimal`.`col1` in ((-(99999999999999999999999999999999999.999999999999999999999999999998)),1.0,2.0)) @@ -1209,7 +1209,7 @@ Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test EXPLAIN SELECT * FROM tbl_decimal WHERE col1 NOT IN (-99999999999999999999999999999999999.999999999999999999999999999998, 1.0, 2.0); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 50.00 Parallel execute (4 workers) 2 SIMPLE tbl_decimal NULL ALL NULL NULL NULL NULL 10 50.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test`.`tbl_decimal` where (`test`.`tbl_decimal`.`col1` not in ((-(99999999999999999999999999999999999.999999999999999999999999999998)),1.0,2.0)) @@ -1231,91 +1231,91 @@ test.tbl_enum analyze status OK # Expect "22.22" in column "filtered" EXPLAIN SELECT * FROM tbl_enum WHERE col1 = 'red'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 9 22.22 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 22.22 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 22.22 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_enum`.`col1` AS `col1` from `test`.`tbl_enum` where (`test`.`tbl_enum`.`col1` = 'red') EXPLAIN SELECT * FROM tbl_enum WHERE 'red' = col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 9 22.22 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 22.22 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 22.22 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_enum`.`col1` AS `col1` from `test`.`tbl_enum` where (`test`.`tbl_enum`.`col1` = 'red') # Expect "55.56" in column "filtered" EXPLAIN SELECT * FROM tbl_enum WHERE col1 != 'black'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 9 55.56 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 55.56 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 55.56 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_enum`.`col1` AS `col1` from `test`.`tbl_enum` where (`test`.`tbl_enum`.`col1` <> 'black') EXPLAIN SELECT * FROM tbl_enum WHERE 'black' != col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 9 55.56 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 55.56 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 55.56 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_enum`.`col1` AS `col1` from `test`.`tbl_enum` where ('black' <> `test`.`tbl_enum`.`col1`) EXPLAIN SELECT * FROM tbl_enum WHERE col1 <> 'black'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 9 55.56 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 55.56 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 55.56 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_enum`.`col1` AS `col1` from `test`.`tbl_enum` where (`test`.`tbl_enum`.`col1` <> 'black') EXPLAIN SELECT * FROM tbl_enum WHERE 'black' <> col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 9 55.56 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 55.56 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 55.56 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_enum`.`col1` AS `col1` from `test`.`tbl_enum` where ('black' <> `test`.`tbl_enum`.`col1`) # Expect "66.67" in column "filtered" EXPLAIN SELECT * FROM tbl_enum WHERE col1 != ''; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 9 66.67 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 66.67 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 66.67 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_enum`.`col1` AS `col1` from `test`.`tbl_enum` where (`test`.`tbl_enum`.`col1` <> '') EXPLAIN SELECT * FROM tbl_enum WHERE col1 != 0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 9 66.67 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 66.67 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 66.67 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_enum`.`col1` AS `col1` from `test`.`tbl_enum` where (`test`.`tbl_enum`.`col1` <> 0) EXPLAIN SELECT * FROM tbl_enum WHERE col1 <> ''; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 9 66.67 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 66.67 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 66.67 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_enum`.`col1` AS `col1` from `test`.`tbl_enum` where (`test`.`tbl_enum`.`col1` <> '') EXPLAIN SELECT * FROM tbl_enum WHERE col1 <> 0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 9 66.67 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 66.67 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 66.67 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_enum`.`col1` AS `col1` from `test`.`tbl_enum` where (`test`.`tbl_enum`.`col1` <> 0) # Expect "44.44" in column "filtered" EXPLAIN SELECT * FROM tbl_enum WHERE col1 IN ('black', 'blue', 'green'); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 9 44.44 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 44.44 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 44.44 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_enum`.`col1` AS `col1` from `test`.`tbl_enum` where (`test`.`tbl_enum`.`col1` in ('black','blue','green')) # Expect "33.33" in column "filtered" EXPLAIN SELECT * FROM tbl_enum WHERE col1 NOT IN ('green', 'blue'); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 9 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 33.33 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 33.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_enum`.`col1` AS `col1` from `test`.`tbl_enum` where (`test`.`tbl_enum`.`col1` not in ('green','blue')) # Expect "33.33" in column "filtered" EXPLAIN SELECT * FROM tbl_enum WHERE col1 IS NULL; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 9 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 33.33 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 33.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_enum`.`col1` AS `col1` from `test`.`tbl_enum` where (`test`.`tbl_enum`.`col1` is null) # Expect "66.67" in column "filtered" EXPLAIN SELECT * FROM tbl_enum WHERE col1 IS NOT NULL; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 9 66.67 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 66.67 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 66.67 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_enum`.`col1` AS `col1` from `test`.`tbl_enum` where (`test`.`tbl_enum`.`col1` is not null) @@ -1324,38 +1324,38 @@ Note 1003 /* select#1 */ select `test`.`tbl_enum`.`col1` AS `col1` from `test`.` # Expect "22.22" in column "filtered" EXPLAIN SELECT * FROM tbl_enum WHERE col1 = 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 9 22.22 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 22.22 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 22.22 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_enum`.`col1` AS `col1` from `test`.`tbl_enum` where (`test`.`tbl_enum`.`col1` = 1) EXPLAIN SELECT * FROM tbl_enum WHERE 1 = col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 9 22.22 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 22.22 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 22.22 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_enum`.`col1` AS `col1` from `test`.`tbl_enum` where (1 = `test`.`tbl_enum`.`col1`) # Expect "55.56" in column "filtered" EXPLAIN SELECT * FROM tbl_enum WHERE col1 != 2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 9 55.56 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 55.56 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 55.56 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_enum`.`col1` AS `col1` from `test`.`tbl_enum` where (`test`.`tbl_enum`.`col1` <> 2) EXPLAIN SELECT * FROM tbl_enum WHERE 2 != col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 9 55.56 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 55.56 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 55.56 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_enum`.`col1` AS `col1` from `test`.`tbl_enum` where (2 <> `test`.`tbl_enum`.`col1`) EXPLAIN SELECT * FROM tbl_enum WHERE col1 <> 2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 9 55.56 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 55.56 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 55.56 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_enum`.`col1` AS `col1` from `test`.`tbl_enum` where (`test`.`tbl_enum`.`col1` <> 2) EXPLAIN SELECT * FROM tbl_enum WHERE 2 <> col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 9 55.56 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 55.56 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 55.56 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_enum`.`col1` AS `col1` from `test`.`tbl_enum` where (2 <> `test`.`tbl_enum`.`col1`) @@ -1363,27 +1363,27 @@ Note 1003 /* select#1 */ select `test`.`tbl_enum`.`col1` AS `col1` from `test`.` # always assumes that at least one row will match. EXPLAIN SELECT * FROM tbl_enum WHERE col1 = 100; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 9 11.11 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 11.11 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 11.11 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_enum`.`col1` AS `col1` from `test`.`tbl_enum` where (`test`.`tbl_enum`.`col1` = 100) EXPLAIN SELECT * FROM tbl_enum WHERE 100 = col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 9 11.11 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 11.11 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 11.11 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_enum`.`col1` AS `col1` from `test`.`tbl_enum` where (100 = `test`.`tbl_enum`.`col1`) # Expect "44.44" in column "filtered" EXPLAIN SELECT * FROM tbl_enum WHERE col1 IN (2, 3, 4); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 9 44.44 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 44.44 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 44.44 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_enum`.`col1` AS `col1` from `test`.`tbl_enum` where (`test`.`tbl_enum`.`col1` in (2,3,4)) # Expect "33.33" in column "filtered" EXPLAIN SELECT * FROM tbl_enum WHERE col1 NOT IN (4, 3); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 9 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 33.33 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 33.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_enum`.`col1` AS `col1` from `test`.`tbl_enum` where (`test`.`tbl_enum`.`col1` not in (4,3)) @@ -1407,91 +1407,91 @@ test.tbl_set analyze status OK # Expect "18.18" in column "filtered" EXPLAIN SELECT * FROM tbl_set WHERE col1 = 'red,green'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 18.18 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 18.18 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 18.18 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`tbl_set` where (`test`.`tbl_set`.`col1` = 'red,green') EXPLAIN SELECT * FROM tbl_set WHERE 'red,green' = col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 18.18 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 18.18 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 18.18 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`tbl_set` where (`test`.`tbl_set`.`col1` = 'red,green') # Expect "63.64" in column "filtered" EXPLAIN SELECT * FROM tbl_set WHERE col1 != 'red'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 63.64 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 63.64 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 63.64 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`tbl_set` where (`test`.`tbl_set`.`col1` <> 'red') EXPLAIN SELECT * FROM tbl_set WHERE 'red' != col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 63.64 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 63.64 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 63.64 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`tbl_set` where ('red' <> `test`.`tbl_set`.`col1`) EXPLAIN SELECT * FROM tbl_set WHERE col1 <> 'red'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 63.64 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 63.64 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 63.64 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`tbl_set` where (`test`.`tbl_set`.`col1` <> 'red') EXPLAIN SELECT * FROM tbl_set WHERE 'red' <> col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 63.64 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 63.64 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 63.64 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`tbl_set` where ('red' <> `test`.`tbl_set`.`col1`) # Expect "72.73" in column "filtered" EXPLAIN SELECT * FROM tbl_set WHERE col1 != ''; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 72.73 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 72.73 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 72.73 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`tbl_set` where (`test`.`tbl_set`.`col1` <> '') EXPLAIN SELECT * FROM tbl_set WHERE col1 != 0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 72.73 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 72.73 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 72.73 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`tbl_set` where (`test`.`tbl_set`.`col1` <> 0) EXPLAIN SELECT * FROM tbl_set WHERE col1 <> ''; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 72.73 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 72.73 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 72.73 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`tbl_set` where (`test`.`tbl_set`.`col1` <> '') EXPLAIN SELECT * FROM tbl_set WHERE col1 <> 0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 72.73 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 72.73 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 72.73 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`tbl_set` where (`test`.`tbl_set`.`col1` <> 0) # Expect "36.36" in column "filtered" EXPLAIN SELECT * FROM tbl_set WHERE col1 IN ('green', 'black,blue,green'); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 36.36 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 36.36 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 36.36 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`tbl_set` where (`test`.`tbl_set`.`col1` in ('green','black,blue,green')) # Expect "36.36" in column "filtered" EXPLAIN SELECT * FROM tbl_set WHERE col1 NOT IN ('green', 'black,blue,green'); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 36.36 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 36.36 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 36.36 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`tbl_set` where (`test`.`tbl_set`.`col1` not in ('green','black,blue,green')) # Expect "27.27" in column "filtered" EXPLAIN SELECT * FROM tbl_set WHERE col1 IS NULL; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 27.27 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 27.27 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 27.27 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`tbl_set` where (`test`.`tbl_set`.`col1` is null) # Expect "72.73" in column "filtered" EXPLAIN SELECT * FROM tbl_set WHERE col1 IS NOT NULL; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 72.73 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 72.73 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 72.73 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`tbl_set` where (`test`.`tbl_set`.`col1` is not null) @@ -1500,63 +1500,63 @@ Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`t # Expect "18.18" in column "filtered" EXPLAIN SELECT * FROM tbl_set WHERE col1 = 9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 18.18 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 18.18 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 18.18 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`tbl_set` where (`test`.`tbl_set`.`col1` = 9) EXPLAIN SELECT * FROM tbl_set WHERE 9 = col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 18.18 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 18.18 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 18.18 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`tbl_set` where (9 = `test`.`tbl_set`.`col1`) # Expect "63.64" in column "filtered" EXPLAIN SELECT * FROM tbl_set WHERE col1 != 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 63.64 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 63.64 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 63.64 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`tbl_set` where (`test`.`tbl_set`.`col1` <> 1) EXPLAIN SELECT * FROM tbl_set WHERE 1 != col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 63.64 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 63.64 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 63.64 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`tbl_set` where (1 <> `test`.`tbl_set`.`col1`) EXPLAIN SELECT * FROM tbl_set WHERE col1 <> 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 63.64 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 63.64 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 63.64 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`tbl_set` where (`test`.`tbl_set`.`col1` <> 1) EXPLAIN SELECT * FROM tbl_set WHERE 1 <> col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 63.64 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 63.64 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 63.64 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`tbl_set` where (1 <> `test`.`tbl_set`.`col1`) # Expect "72.73" in column "filtered" EXPLAIN SELECT * FROM tbl_set WHERE col1 != ''; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 72.73 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 72.73 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 72.73 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`tbl_set` where (`test`.`tbl_set`.`col1` <> '') EXPLAIN SELECT * FROM tbl_set WHERE col1 != 0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 72.73 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 72.73 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 72.73 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`tbl_set` where (`test`.`tbl_set`.`col1` <> 0) EXPLAIN SELECT * FROM tbl_set WHERE col1 <> ''; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 72.73 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 72.73 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 72.73 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`tbl_set` where (`test`.`tbl_set`.`col1` <> '') EXPLAIN SELECT * FROM tbl_set WHERE col1 <> 0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 72.73 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 72.73 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 72.73 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`tbl_set` where (`test`.`tbl_set`.`col1` <> 0) @@ -1564,27 +1564,27 @@ Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`t # always assumes that at least one row will match. EXPLAIN SELECT * FROM tbl_set WHERE col1 = 100; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 9.09 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 9.09 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 9.09 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`tbl_set` where (`test`.`tbl_set`.`col1` = 100) EXPLAIN SELECT * FROM tbl_set WHERE 100 = col1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 9.09 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 9.09 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 9.09 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`tbl_set` where (100 = `test`.`tbl_set`.`col1`) # Expect "36.36" in column "filtered" EXPLAIN SELECT * FROM tbl_set WHERE col1 IN (8, 14); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 36.36 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 36.36 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 36.36 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`tbl_set` where (`test`.`tbl_set`.`col1` in (8,14)) # Expect "36.36" in column "filtered" EXPLAIN SELECT * FROM tbl_set WHERE col1 NOT IN (8, 14); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 36.36 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 36.36 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 36.36 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`tbl_set` where (`test`.`tbl_set`.`col1` not in (8,14)) diff --git a/mysql-test/r/histograms.result-pq b/mysql-test/r/histograms.result-pq index ec805e737f0c..3eeacb85cea0 100644 --- a/mysql-test/r/histograms.result-pq +++ b/mysql-test/r/histograms.result-pq @@ -1137,7 +1137,7 @@ test.t1 histogram status Histogram statistics created for column 'eighty'. EXPLAIN SELECT a.forty, b.twenty FROM t1 AS a, t1 AS b WHERE a.twenty = b.ten AND b.eighty >= (3 + 20); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 50 60.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 50 60.00 Parallel execute (4 workers) 2 SIMPLE b NULL ALL idx NULL NULL NULL 50 60.00 Using where 2 SIMPLE a NULL ref idx3 idx3 5 test.b.ten 2 100.00 NULL Warnings: @@ -1250,13 +1250,13 @@ Table Op Msg_type Msg_text test.t1 histogram status Histogram statistics created for column 'tenPercent'. EXPLAIN SELECT b.tenPercent FROM t1 AS b WHERE b.tenPercent NOT BETWEEN 3 AND 0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 5 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 5 100.00 Parallel execute (4 workers) 2 SIMPLE b NULL ALL NULL NULL NULL NULL 5 100.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`b`.`tenPercent` AS `tenPercent` from `test`.`t1` `b` where (`test`.`b`.`tenPercent` not between 3 and 0) EXPLAIN SELECT b.tenPercent FROM t1 AS b WHERE b.tenPercent BETWEEN 3 AND 0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 5 20.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 5 20.00 Parallel execute (4 workers) 2 SIMPLE b NULL ALL NULL NULL NULL NULL 5 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`b`.`tenPercent` AS `tenPercent` from `test`.`t1` `b` where (`test`.`b`.`tenPercent` between 3 and 0) @@ -1435,7 +1435,7 @@ UPDATE mysql.innodb_table_stats SET n_rows = 3 WHERE database_name = "test" AND table_name = "t1"; EXPLAIN SELECT * FROM t1 WHERE col1 <= 3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE 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 where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where (`test`.`t1`.`col1` <= 3) @@ -1749,13 +1749,13 @@ Table Op Msg_type Msg_text test.t1 histogram status Histogram statistics created for column 'col1'. EXPLAIN SELECT * FROM t1 WHERE col1 BETWEEN 4 AND 2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 5 20.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 5 20.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 5 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where (`test`.`t1`.`col1` between 4 and 2) EXPLAIN SELECT * FROM t1 WHERE col1 NOT BETWEEN 4 AND 2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 5 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 5 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 5 100.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where (`test`.`t1`.`col1` not between 4 and 2) @@ -1777,7 +1777,7 @@ Table Op Msg_type Msg_text test.t1 histogram status Histogram statistics created for column 'col1'. EXPLAIN SELECT * FROM t1 WHERE col1 <= 0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 30 49.57 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 30 49.57 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 30 49.57 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where (`test`.`t1`.`col1` <= 0) @@ -1798,7 +1798,7 @@ Table Op Msg_type Msg_text test.t1 histogram status Histogram statistics created for column 'col1'. EXPLAIN SELECT * FROM t1 WHERE col1 BETWEEN 'b' AND 'z'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 20 99.95 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 20 99.95 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 20 99.95 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where (`test`.`t1`.`col1` between 'b' and 'z') @@ -1816,7 +1816,7 @@ test.t1 histogram status Histogram statistics created for column 'col1'. # condition EXPLAIN SELECT * FROM t1 WHERE col1 > 3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 33.33 Parallel execute (1 workers) +1 SIMPLE 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`.`col1` AS `col1` from `test`.`t1` where (`test`.`t1`.`col1` > 3) @@ -1826,7 +1826,7 @@ INSERT INTO t1 VALUES (4), (5), (6); # the histogram statistics. EXPLAIN SELECT * FROM t1 WHERE col1 > 3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 3 33.33 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 3 33.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where (`test`.`t1`.`col1` > 3) @@ -1837,7 +1837,7 @@ test.t1 histogram status Histogram statistics created for column 'col1'. # condition. EXPLAIN SELECT * FROM t1 WHERE col1 > 3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 3 100.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where (`test`.`t1`.`col1` > 3) @@ -2167,559 +2167,559 @@ SCHEMA_NAME TABLE_NAME COLUMN_NAME JSON_REMOVE(histogram, '$."last-updated"') test tbl_int col1 {"buckets": [[1, 2, 0.4, 2], [3, 8, 0.8, 3]], "data-type": "int", "null-values": 0.2, "collation-id": 8, "sampling-rate": 1.0, "histogram-type": "equi-height", "number-of-buckets-specified": 2} EXPLAIN SELECT * FROM tbl_int WHERE col1 > 0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` > 0) EXPLAIN SELECT * FROM tbl_int WHERE col1 > 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 60.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` > 1) EXPLAIN SELECT * FROM tbl_int WHERE col1 > 2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 40.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` > 2) EXPLAIN SELECT * FROM tbl_int WHERE col1 > 3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 33.33 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 33.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` > 3) EXPLAIN SELECT * FROM tbl_int WHERE col1 > 4; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 26.67 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 26.67 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 26.67 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` > 4) EXPLAIN SELECT * FROM tbl_int WHERE col1 > 5; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` > 5) EXPLAIN SELECT * FROM tbl_int WHERE col1 > 6; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 13.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 13.33 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 13.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` > 6) EXPLAIN SELECT * FROM tbl_int WHERE col1 > 7; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` > 7) EXPLAIN SELECT * FROM tbl_int WHERE col1 > 8; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` > 8) EXPLAIN SELECT * FROM tbl_int WHERE col1 > 9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` > 9) EXPLAIN SELECT * FROM tbl_int WHERE col1 >= 0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` >= 0) EXPLAIN SELECT * FROM tbl_int WHERE col1 >= 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` >= 1) EXPLAIN SELECT * FROM tbl_int WHERE col1 >= 2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 60.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` >= 2) EXPLAIN SELECT * FROM tbl_int WHERE col1 >= 3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 40.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` >= 3) EXPLAIN SELECT * FROM tbl_int WHERE col1 >= 4; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 33.33 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 33.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` >= 4) EXPLAIN SELECT * FROM tbl_int WHERE col1 >= 5; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 26.67 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 26.67 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 26.67 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` >= 5) EXPLAIN SELECT * FROM tbl_int WHERE col1 >= 6; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` >= 6) EXPLAIN SELECT * FROM tbl_int WHERE col1 >= 7; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 13.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 13.33 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 13.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` >= 7) EXPLAIN SELECT * FROM tbl_int WHERE col1 >= 8; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` >= 8) EXPLAIN SELECT * FROM tbl_int WHERE col1 >= 9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` >= 9) EXPLAIN SELECT * FROM tbl_int WHERE col1 = 0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` = 0) EXPLAIN SELECT * FROM tbl_int WHERE col1 = 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` = 1) EXPLAIN SELECT * FROM tbl_int WHERE col1 = 2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` = 2) EXPLAIN SELECT * FROM tbl_int WHERE col1 = 3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` = 3) EXPLAIN SELECT * FROM tbl_int WHERE col1 = 4; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` = 4) EXPLAIN SELECT * FROM tbl_int WHERE col1 = 5; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` = 5) EXPLAIN SELECT * FROM tbl_int WHERE col1 = 6; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` = 6) EXPLAIN SELECT * FROM tbl_int WHERE col1 = 7; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` = 7) EXPLAIN SELECT * FROM tbl_int WHERE col1 = 8; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` = 8) EXPLAIN SELECT * FROM tbl_int WHERE col1 = 9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` = 9) EXPLAIN SELECT * FROM tbl_int WHERE col1 <= 0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` <= 0) EXPLAIN SELECT * FROM tbl_int WHERE col1 <= 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` <= 1) EXPLAIN SELECT * FROM tbl_int WHERE col1 <= 2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 40.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` <= 2) EXPLAIN SELECT * FROM tbl_int WHERE col1 <= 3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 46.67 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 46.67 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 46.67 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` <= 3) EXPLAIN SELECT * FROM tbl_int WHERE col1 <= 4; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 53.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 53.33 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 53.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` <= 4) EXPLAIN SELECT * FROM tbl_int WHERE col1 <= 5; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 60.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` <= 5) EXPLAIN SELECT * FROM tbl_int WHERE col1 <= 6; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 66.67 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 66.67 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 66.67 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` <= 6) EXPLAIN SELECT * FROM tbl_int WHERE col1 <= 7; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 73.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 73.33 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 73.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` <= 7) EXPLAIN SELECT * FROM tbl_int WHERE col1 <= 8; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` <= 8) EXPLAIN SELECT * FROM tbl_int WHERE col1 <= 9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` <= 9) EXPLAIN SELECT * FROM tbl_int WHERE col1 < 0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` < 0) EXPLAIN SELECT * FROM tbl_int WHERE col1 < 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` < 1) EXPLAIN SELECT * FROM tbl_int WHERE col1 < 2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` < 2) EXPLAIN SELECT * FROM tbl_int WHERE col1 < 3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 40.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` < 3) EXPLAIN SELECT * FROM tbl_int WHERE col1 < 4; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 46.67 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 46.67 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 46.67 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` < 4) EXPLAIN SELECT * FROM tbl_int WHERE col1 < 5; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 53.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 53.33 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 53.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` < 5) EXPLAIN SELECT * FROM tbl_int WHERE col1 < 6; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 60.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` < 6) EXPLAIN SELECT * FROM tbl_int WHERE col1 < 7; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 66.67 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 66.67 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 66.67 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` < 7) EXPLAIN SELECT * FROM tbl_int WHERE col1 < 8; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 73.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 73.33 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 73.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` < 8) EXPLAIN SELECT * FROM tbl_int WHERE col1 < 9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` < 9) EXPLAIN SELECT * FROM tbl_int WHERE col1 <> 0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` <> 0) EXPLAIN SELECT * FROM tbl_int WHERE col1 <> 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 60.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` <> 1) EXPLAIN SELECT * FROM tbl_int WHERE col1 <> 2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 60.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` <> 2) EXPLAIN SELECT * FROM tbl_int WHERE col1 <> 3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 73.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 73.33 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 73.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` <> 3) EXPLAIN SELECT * FROM tbl_int WHERE col1 <> 4; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 73.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 73.33 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 73.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` <> 4) EXPLAIN SELECT * FROM tbl_int WHERE col1 <> 5; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 73.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 73.33 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 73.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` <> 5) EXPLAIN SELECT * FROM tbl_int WHERE col1 <> 6; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 73.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 73.33 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 73.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` <> 6) EXPLAIN SELECT * FROM tbl_int WHERE col1 <> 7; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 73.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 73.33 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 73.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` <> 7) EXPLAIN SELECT * FROM tbl_int WHERE col1 <> 8; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 73.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 73.33 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 73.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` <> 8) EXPLAIN SELECT * FROM tbl_int WHERE col1 <> 9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` <> 9) EXPLAIN SELECT * FROM tbl_int WHERE col1 BETWEEN 0 AND 0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` between 0 and 0) EXPLAIN SELECT * FROM tbl_int WHERE col1 BETWEEN 0 AND 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` between 0 and 1) EXPLAIN SELECT * FROM tbl_int WHERE col1 BETWEEN 0 AND 2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 40.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` between 0 and 2) EXPLAIN SELECT * FROM tbl_int WHERE col1 BETWEEN 0 AND 3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 46.67 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 46.67 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 46.67 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` between 0 and 3) EXPLAIN SELECT * FROM tbl_int WHERE col1 BETWEEN 0 AND 4; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 53.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 53.33 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 53.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` between 0 and 4) EXPLAIN SELECT * FROM tbl_int WHERE col1 BETWEEN 0 AND 5; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 60.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` between 0 and 5) EXPLAIN SELECT * FROM tbl_int WHERE col1 BETWEEN 0 AND 6; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 66.67 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 66.67 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 66.67 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` between 0 and 6) EXPLAIN SELECT * FROM tbl_int WHERE col1 BETWEEN 0 AND 7; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 73.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 73.33 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 73.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` between 0 and 7) EXPLAIN SELECT * FROM tbl_int WHERE col1 BETWEEN 0 AND 8; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` between 0 and 8) EXPLAIN SELECT * FROM tbl_int WHERE col1 BETWEEN 0 AND 9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` between 0 and 9) EXPLAIN SELECT * FROM tbl_int WHERE col1 BETWEEN 0 AND 9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` between 0 and 9) EXPLAIN SELECT * FROM tbl_int WHERE col1 BETWEEN 1 AND 9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` between 1 and 9) EXPLAIN SELECT * FROM tbl_int WHERE col1 BETWEEN 2 AND 9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 60.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` between 2 and 9) EXPLAIN SELECT * FROM tbl_int WHERE col1 BETWEEN 3 AND 9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 40.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` between 3 and 9) EXPLAIN SELECT * FROM tbl_int WHERE col1 BETWEEN 4 AND 9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 33.33 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 33.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` between 4 and 9) EXPLAIN SELECT * FROM tbl_int WHERE col1 BETWEEN 5 AND 9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 26.67 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 26.67 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 26.67 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` between 5 and 9) EXPLAIN SELECT * FROM tbl_int WHERE col1 BETWEEN 6 AND 9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` between 6 and 9) EXPLAIN SELECT * FROM tbl_int WHERE col1 BETWEEN 7 AND 9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 13.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 13.33 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 13.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` between 7 and 9) EXPLAIN SELECT * FROM tbl_int WHERE col1 BETWEEN 8 AND 9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` between 8 and 9) EXPLAIN SELECT * FROM tbl_int WHERE col1 BETWEEN 9 AND 9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` between 9 and 9) EXPLAIN SELECT * FROM tbl_int WHERE col1 IN (0,1,2,3,4,5,6,7,8,9); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` in (0,1,2,3,4,5,6,7,8,9)) EXPLAIN SELECT * FROM tbl_int WHERE col1 IN (2,3,4,5,6,7,8,9); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 60.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` in (2,3,4,5,6,7,8,9)) EXPLAIN SELECT * FROM tbl_int WHERE col1 IN (3,4,5,6,7,8,9); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 40.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` in (3,4,5,6,7,8,9)) EXPLAIN SELECT * FROM tbl_int WHERE col1 IN (4,5,6,7,8,9); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 33.33 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 33.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` in (4,5,6,7,8,9)) EXPLAIN SELECT * FROM tbl_int WHERE col1 IN (5,6,7,8,9); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 26.67 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 26.67 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 26.67 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` in (5,6,7,8,9)) EXPLAIN SELECT * FROM tbl_int WHERE col1 IN (6,7,8,9); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` in (6,7,8,9)) EXPLAIN SELECT * FROM tbl_int WHERE col1 IN (7,8,9); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 13.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 13.33 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 13.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` in (7,8,9)) EXPLAIN SELECT * FROM tbl_int WHERE col1 IN (8,9); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` in (8,9)) EXPLAIN SELECT * FROM tbl_int WHERE col1 IN (9); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` = 9) EXPLAIN SELECT * FROM tbl_int WHERE col1 IN (1,3,5,7); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 40.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` in (1,3,5,7)) EXPLAIN SELECT * FROM tbl_int WHERE col1 IN (2,4,6,8); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 40.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` in (2,4,6,8)) EXPLAIN SELECT * FROM tbl_int WHERE col1 IN (2,5,6); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 33.33 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 33.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` in (2,5,6)) EXPLAIN SELECT * FROM tbl_int WHERE col1 IN (9,10,11,12,13); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_int NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_int`.`col1` AS `col1` from `test`.`tbl_int` where (`test`.`tbl_int`.`col1` in (9,10,11,12,13)) @@ -2740,559 +2740,559 @@ SCHEMA_NAME TABLE_NAME COLUMN_NAME JSON_REMOVE(histogram, '$."last-updated"') test tbl_float col {"buckets": [[0.1, 0.2, 0.2, 2], [0.3, 0.3, 0.4, 1], [0.4, 0.5, 0.7, 2], [0.8, 0.8, 0.8, 1]], "data-type": "double", "null-values": 0.2, "collation-id": 8, "sampling-rate": 1.0, "histogram-type": "equi-height", "number-of-buckets-specified": 4} EXPLAIN SELECT * FROM tbl_float WHERE col > 0.0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` > 0) EXPLAIN SELECT * FROM tbl_float WHERE col > 0.1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` > 0.1) EXPLAIN SELECT * FROM tbl_float WHERE col > 0.2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 60.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` > 0.2) EXPLAIN SELECT * FROM tbl_float WHERE col > 0.3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 40.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` > 0.3) EXPLAIN SELECT * FROM tbl_float WHERE col > 0.4; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 40.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` > 0.4) EXPLAIN SELECT * FROM tbl_float WHERE col > 0.5; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` > 0.5) EXPLAIN SELECT * FROM tbl_float WHERE col > 0.6; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` > 0.6) EXPLAIN SELECT * FROM tbl_float WHERE col > 0.7; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` > 0.7) EXPLAIN SELECT * FROM tbl_float WHERE col > 0.8; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` > 0.8) EXPLAIN SELECT * FROM tbl_float WHERE col > 0.9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` > 0.9) EXPLAIN SELECT * FROM tbl_float WHERE col >= 0.0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` >= 0) EXPLAIN SELECT * FROM tbl_float WHERE col >= 0.1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` >= 0.1) EXPLAIN SELECT * FROM tbl_float WHERE col >= 0.2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 60.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` >= 0.2) EXPLAIN SELECT * FROM tbl_float WHERE col >= 0.3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 60.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` >= 0.3) EXPLAIN SELECT * FROM tbl_float WHERE col >= 0.4; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 40.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` >= 0.4) EXPLAIN SELECT * FROM tbl_float WHERE col >= 0.5; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` >= 0.5) EXPLAIN SELECT * FROM tbl_float WHERE col >= 0.6; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` >= 0.6) EXPLAIN SELECT * FROM tbl_float WHERE col >= 0.7; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` >= 0.7) EXPLAIN SELECT * FROM tbl_float WHERE col >= 0.8; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` >= 0.8) EXPLAIN SELECT * FROM tbl_float WHERE col >= 0.9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` >= 0.9) EXPLAIN SELECT * FROM tbl_float WHERE col = 0.0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` = 0) EXPLAIN SELECT * FROM tbl_float WHERE col = 0.1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` = 0.1) EXPLAIN SELECT * FROM tbl_float WHERE col = 0.2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` = 0.2) EXPLAIN SELECT * FROM tbl_float WHERE col = 0.3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` = 0.3) EXPLAIN SELECT * FROM tbl_float WHERE col = 0.4; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` = 0.4) EXPLAIN SELECT * FROM tbl_float WHERE col = 0.5; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` = 0.5) EXPLAIN SELECT * FROM tbl_float WHERE col = 0.6; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` = 0.6) EXPLAIN SELECT * FROM tbl_float WHERE col = 0.7; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` = 0.7) EXPLAIN SELECT * FROM tbl_float WHERE col = 0.8; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` = 0.8) EXPLAIN SELECT * FROM tbl_float WHERE col = 0.9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` = 0.9) EXPLAIN SELECT * FROM tbl_float WHERE col <= 0.0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` <= 0) EXPLAIN SELECT * FROM tbl_float WHERE col <= 0.1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` <= 0.1) EXPLAIN SELECT * FROM tbl_float WHERE col <= 0.2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` <= 0.2) EXPLAIN SELECT * FROM tbl_float WHERE col <= 0.3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 40.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` <= 0.3) EXPLAIN SELECT * FROM tbl_float WHERE col <= 0.4; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 40.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` <= 0.4) EXPLAIN SELECT * FROM tbl_float WHERE col <= 0.5; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` <= 0.5) EXPLAIN SELECT * FROM tbl_float WHERE col <= 0.6; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` <= 0.6) EXPLAIN SELECT * FROM tbl_float WHERE col <= 0.7; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` <= 0.7) EXPLAIN SELECT * FROM tbl_float WHERE col <= 0.8; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` <= 0.8) EXPLAIN SELECT * FROM tbl_float WHERE col <= 0.9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` <= 0.9) EXPLAIN SELECT * FROM tbl_float WHERE col < 0.0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` < 0) EXPLAIN SELECT * FROM tbl_float WHERE col < 0.1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` < 0.1) EXPLAIN SELECT * FROM tbl_float WHERE col < 0.2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` < 0.2) EXPLAIN SELECT * FROM tbl_float WHERE col < 0.3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` < 0.3) EXPLAIN SELECT * FROM tbl_float WHERE col < 0.4; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 40.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` < 0.4) EXPLAIN SELECT * FROM tbl_float WHERE col < 0.5; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` < 0.5) EXPLAIN SELECT * FROM tbl_float WHERE col < 0.6; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` < 0.6) EXPLAIN SELECT * FROM tbl_float WHERE col < 0.7; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` < 0.7) EXPLAIN SELECT * FROM tbl_float WHERE col < 0.8; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` < 0.8) EXPLAIN SELECT * FROM tbl_float WHERE col < 0.9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` < 0.9) EXPLAIN SELECT * FROM tbl_float WHERE col <> 0.0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` <> 0) EXPLAIN SELECT * FROM tbl_float WHERE col <> 0.1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` <> 0.1) EXPLAIN SELECT * FROM tbl_float WHERE col <> 0.2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` <> 0.2) EXPLAIN SELECT * FROM tbl_float WHERE col <> 0.3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 60.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` <> 0.3) EXPLAIN SELECT * FROM tbl_float WHERE col <> 0.4; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` <> 0.4) EXPLAIN SELECT * FROM tbl_float WHERE col <> 0.5; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` <> 0.5) EXPLAIN SELECT * FROM tbl_float WHERE col <> 0.6; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` <> 0.6) EXPLAIN SELECT * FROM tbl_float WHERE col <> 0.7; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` <> 0.7) EXPLAIN SELECT * FROM tbl_float WHERE col <> 0.8; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` <> 0.8) EXPLAIN SELECT * FROM tbl_float WHERE col <> 0.9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` <> 0.9) EXPLAIN SELECT * FROM tbl_float WHERE col BETWEEN 0.0 AND 0.0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` between 0.0 and 0.0) EXPLAIN SELECT * FROM tbl_float WHERE col BETWEEN 0.0 AND 0.1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` between 0.0 and 0.1) EXPLAIN SELECT * FROM tbl_float WHERE col BETWEEN 0.0 AND 0.2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` between 0.0 and 0.2) EXPLAIN SELECT * FROM tbl_float WHERE col BETWEEN 0.0 AND 0.3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 40.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` between 0.0 and 0.3) EXPLAIN SELECT * FROM tbl_float WHERE col BETWEEN 0.0 AND 0.4; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 40.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` between 0.0 and 0.4) EXPLAIN SELECT * FROM tbl_float WHERE col BETWEEN 0.0 AND 0.5; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` between 0.0 and 0.5) EXPLAIN SELECT * FROM tbl_float WHERE col BETWEEN 0.0 AND 0.6; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` between 0.0 and 0.6) EXPLAIN SELECT * FROM tbl_float WHERE col BETWEEN 0.0 AND 0.7; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` between 0.0 and 0.7) EXPLAIN SELECT * FROM tbl_float WHERE col BETWEEN 0.0 AND 0.8; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` between 0.0 and 0.8) EXPLAIN SELECT * FROM tbl_float WHERE col BETWEEN 0.0 AND 0.9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` between 0.0 and 0.9) EXPLAIN SELECT * FROM tbl_float WHERE col BETWEEN 0.0 AND 0.9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` between 0.0 and 0.9) EXPLAIN SELECT * FROM tbl_float WHERE col BETWEEN 0.1 AND 0.9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 80.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 80.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` between 0.1 and 0.9) EXPLAIN SELECT * FROM tbl_float WHERE col BETWEEN 0.2 AND 0.9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 60.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` between 0.2 and 0.9) EXPLAIN SELECT * FROM tbl_float WHERE col BETWEEN 0.3 AND 0.9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 60.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 60.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` between 0.3 and 0.9) EXPLAIN SELECT * FROM tbl_float WHERE col BETWEEN 0.4 AND 0.9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 40.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` between 0.4 and 0.9) EXPLAIN SELECT * FROM tbl_float WHERE col BETWEEN 0.5 AND 0.9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` between 0.5 and 0.9) EXPLAIN SELECT * FROM tbl_float WHERE col BETWEEN 0.6 AND 0.9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` between 0.6 and 0.9) EXPLAIN SELECT * FROM tbl_float WHERE col BETWEEN 0.7 AND 0.9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` between 0.7 and 0.9) EXPLAIN SELECT * FROM tbl_float WHERE col BETWEEN 0.8 AND 0.9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` between 0.8 and 0.9) EXPLAIN SELECT * FROM tbl_float WHERE col BETWEEN 0.9 AND 0.9; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` between 0.9 and 0.9) EXPLAIN SELECT * FROM tbl_float WHERE col IN (0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 30.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` in (0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9)) EXPLAIN SELECT * FROM tbl_float WHERE col IN (0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 30.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` in (0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9)) EXPLAIN SELECT * FROM tbl_float WHERE col IN (0.3,0.4,0.5,0.6,0.7,0.8,0.9); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 30.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 30.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` in (0.3,0.4,0.5,0.6,0.7,0.8,0.9)) EXPLAIN SELECT * FROM tbl_float WHERE col IN (0.4,0.5,0.6,0.7,0.8,0.9); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` in (0.4,0.5,0.6,0.7,0.8,0.9)) EXPLAIN SELECT * FROM tbl_float WHERE col IN (0.5,0.6,0.7,0.8,0.9); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` in (0.5,0.6,0.7,0.8,0.9)) EXPLAIN SELECT * FROM tbl_float WHERE col IN (0.6,0.7,0.8,0.9); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` in (0.6,0.7,0.8,0.9)) EXPLAIN SELECT * FROM tbl_float WHERE col IN (0.7,0.8,0.9); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` in (0.7,0.8,0.9)) EXPLAIN SELECT * FROM tbl_float WHERE col IN (0.8,0.9); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` in (0.8,0.9)) EXPLAIN SELECT * FROM tbl_float WHERE col IN (0.9); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` = 0.9) EXPLAIN SELECT * FROM tbl_float WHERE col IN (0.1,0.3,0.5,0.7); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` in (0.1,0.3,0.5,0.7)) EXPLAIN SELECT * FROM tbl_float WHERE col IN (0.2,0.4,0.6,0.8); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` in (0.2,0.4,0.6,0.8)) EXPLAIN SELECT * FROM tbl_float WHERE col IN (0.2,0.5,0.6); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` in (0.2,0.5,0.6)) EXPLAIN SELECT * FROM tbl_float WHERE col IN (0.9,1.0,1.1,1.2,1.3); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE tbl_float NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_float`.`col` AS `col` from `test`.`tbl_float` where (`test`.`tbl_float`.`col` in (0.9,1.0,1.1,1.2,1.3)) @@ -3312,19 +3312,19 @@ Table Op Msg_type Msg_text test.t1 analyze status OK EXPLAIN SELECT * FROM t1 WHERE col1 < 100; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 33.33 Parallel execute (1 workers) +1 SIMPLE 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`.`col1` AS `col1`,`test`.`t1`.`col2` AS `col2`,`test`.`t1`.`col3` AS `col3` from `test`.`t1` where (`test`.`t1`.`col1` < 100) EXPLAIN SELECT * FROM t1 WHERE col2 < 100; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 33.33 Parallel execute (1 workers) +1 SIMPLE 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`.`col1` AS `col1`,`test`.`t1`.`col2` AS `col2`,`test`.`t1`.`col3` AS `col3` from `test`.`t1` where (`test`.`t1`.`col2` < 100) EXPLAIN SELECT * FROM t1 WHERE col3 < 100; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 33.33 Parallel execute (1 workers) +1 SIMPLE 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`.`col1` AS `col1`,`test`.`t1`.`col2` AS `col2`,`test`.`t1`.`col3` AS `col3` from `test`.`t1` where (`test`.`t1`.`col3` < 100) diff --git a/mysql-test/r/index_merge_innodb.result-pq b/mysql-test/r/index_merge_innodb.result-pq index dfa1cbe4098a..c6b56d9bef3e 100644 --- a/mysql-test/r/index_merge_innodb.result-pq +++ b/mysql-test/r/index_merge_innodb.result-pq @@ -80,7 +80,7 @@ Warnings: Note 1003 /* select#1 */ select `test`.`t0`.`key1` AS `key1`,`test`.`t0`.`key2` AS `key2`,`test`.`t0`.`key3` AS `key3`,`test`.`t0`.`key4` AS `key4`,`test`.`t0`.`key5` AS `key5`,`test`.`t0`.`key6` AS `key6`,`test`.`t0`.`key7` AS `key7`,`test`.`t0`.`key8` AS `key8` from `test`.`t0` IGNORE INDEX (`i2`) where ((`test`.`t0`.`key1` < 3) or (`test`.`t0`.`key2` < 4)) explain select * from t0 where (key1 < 3 or key2 <4) and key3 = 50; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL # 55.55 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL # 55.55 Parallel execute (2 workers) 2 SIMPLE t0 NULL ref i1,i2,i3 i3 4 const # 55.55 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t0`.`key1` AS `key1`,`test`.`t0`.`key2` AS `key2`,`test`.`t0`.`key3` AS `key3`,`test`.`t0`.`key4` AS `key4`,`test`.`t0`.`key5` AS `key5`,`test`.`t0`.`key6` AS `key6`,`test`.`t0`.`key7` AS `key7`,`test`.`t0`.`key8` AS `key8` from `test`.`t0` where ((`test`.`t0`.`key3` = 50) and ((`test`.`t0`.`key1` < 3) or (`test`.`t0`.`key2` < 4))) @@ -112,7 +112,7 @@ Note 1003 /* select#1 */ select `test`.`t0`.`key1` AS `key1`,`test`.`t0`.`key2` # verify fallback to "range" if there is only one non-confluent condition explain select * from t0 where key2 = 45 or key1 <=> null; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL # 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL # 100.00 Parallel execute (2 workers) 2 SIMPLE t0 NULL range i1,i2 i2 4 NULL # 100.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t0`.`key1` AS `key1`,`test`.`t0`.`key2` AS `key2`,`test`.`t0`.`key3` AS `key3`,`test`.`t0`.`key4` AS `key4`,`test`.`t0`.`key5` AS `key5`,`test`.`t0`.`key6` AS `key6`,`test`.`t0`.`key7` AS `key7`,`test`.`t0`.`key8` AS `key8` from `test`.`t0` where ((`test`.`t0`.`key2` = 45) or (`test`.`t0`.`key1` <=> NULL)) @@ -124,7 +124,7 @@ Warnings: Note 1003 /* select#1 */ select `test`.`t0`.`key1` AS `key1`,`test`.`t0`.`key2` AS `key2`,`test`.`t0`.`key3` AS `key3`,`test`.`t0`.`key4` AS `key4`,`test`.`t0`.`key5` AS `key5`,`test`.`t0`.`key6` AS `key6`,`test`.`t0`.`key7` AS `key7`,`test`.`t0`.`key8` AS `key8` from `test`.`t0` where true explain select * from t0 where key2 = 45 or key1 is null; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL # 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL # 100.00 Parallel execute (2 workers) 2 SIMPLE t0 NULL ref i2 i2 4 const # 100.00 NULL Warnings: Note 1003 /* select#1 */ select `test`.`t0`.`key1` AS `key1`,`test`.`t0`.`key2` AS `key2`,`test`.`t0`.`key3` AS `key3`,`test`.`t0`.`key4` AS `key4`,`test`.`t0`.`key5` AS `key5`,`test`.`t0`.`key6` AS `key6`,`test`.`t0`.`key7` AS `key7`,`test`.`t0`.`key8` AS `key8` from `test`.`t0` where (`test`.`t0`.`key2` = 45) @@ -347,13 +347,13 @@ Note 1003 /* select#1 */ select `test`.`t4`.`key1a` AS `key1a`,`test`.`t4`.`key1 # and the following will not explain select * from t4 where key2 = 1 and (key2_1 = 1 or key3 = 5); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 19.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 19.00 Parallel execute (4 workers) 2 SIMPLE t4 NULL ref i2_1,i2_2 i2_1 4 const 10 19.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t4`.`key1a` AS `key1a`,`test`.`t4`.`key1b` AS `key1b`,`test`.`t4`.`key2` AS `key2`,`test`.`t4`.`key2_1` AS `key2_1`,`test`.`t4`.`key2_2` AS `key2_2`,`test`.`t4`.`key3` AS `key3` from `test`.`t4` where ((`test`.`t4`.`key2` = 1) and ((`test`.`t4`.`key2_1` = 1) or (`test`.`t4`.`key3` = 5))) explain select * from t4 where key2 = 1 and (key2_1 = 1 or key2_2 = 5); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 19.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 19.00 Parallel execute (4 workers) 2 SIMPLE t4 NULL ref i2_1,i2_2 i2_1 4 const 10 19.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t4`.`key1a` AS `key1a`,`test`.`t4`.`key1b` AS `key1b`,`test`.`t4`.`key2` AS `key2`,`test`.`t4`.`key2_1` AS `key2_1`,`test`.`t4`.`key2_2` AS `key2_2`,`test`.`t4`.`key3` AS `key3` from `test`.`t4` where ((`test`.`t4`.`key2` = 1) and ((`test`.`t4`.`key2_1` = 1) or (`test`.`t4`.`key2_2` = 5))) @@ -392,7 +392,7 @@ explain select * from t0,t1 where (t0.key1=t1.key1) and (t0.key1=3 or t0.key2<4) and t1.key1=2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 1 5.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 1 5.00 Parallel execute (2 workers) 2 SIMPLE t0 NULL ref i1,i2 i1 4 const 1 5.00 Using where 2 SIMPLE t1 NULL ref i1 i1 4 const 1 100.00 NULL Warnings: @@ -401,7 +401,7 @@ Note 1003 /* select#1 */ select `test`.`t0`.`key1` AS `key1`,`test`.`t0`.`key2` explain select * from t0,t1 where t0.key1 = 5 and (t1.key1 = t0.key1 or t1.key8 = t0.key1); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (2 workers) 2 SIMPLE t0 NULL ref i1 i1 4 const 1 100.00 NULL 2 SIMPLE t1 NULL index_merge i1,i8 i1,i8 4,4 NULL 2 100.00 Using union(i1,i8); Using where; Using join buffer (hash join) Warnings: @@ -410,7 +410,7 @@ Note 1003 /* select#1 */ select `test`.`t0`.`key1` AS `key1`,`test`.`t0`.`key2` explain select * from t0,t1 where t0.key1 < 3 and (t1.key1 = t0.key1 or t1.key8 = t0.key1); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL # 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL # 100.00 Parallel execute (3 workers) 2 SIMPLE t0 NULL range i1 i1 4 NULL # 100.00 Using index condition 2 SIMPLE t1 NULL ALL i1,i8 NULL NULL NULL # 0.20 Range checked for each record (index map: 0x81) Warnings: @@ -706,7 +706,7 @@ explain select * from t1 where exists (select 1 from t2, t3 where t2.a=t1.a and (t3.a=t2.b or t3.b=t2.b or t3.b=t2.b+1)); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL # # Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL # # Parallel execute (2 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL # # NULL 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL # # Using where 2 SIMPLE t3 NULL ALL a,b NULL NULL NULL # # Range checked for each record (index map: 0x3); FirstMatch(t1) @@ -1084,7 +1084,7 @@ count(a) # BUG#1: expla_or_bin select count(a_or_b) from t2 where a_or_b='AAAAAAAA' a_or_bnd a_or_b='AAAAAAAA'; id select_type ta_or_ba_or_ble pa_or_brtitions type possia_or_ble_keys key key_len ref rows filtered Extra_or_b -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 12.50 Pa_or_bra_or_bllel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 12.50 Pa_or_bra_or_bllel execute (4 workers) 2 SIMPLE t2 NULL ref a_or_b,a_or_b a_or_b 21 const 4 12.50 Using where Warnings: Note 1003 /* select#1 */ select count(`test`.`t2`.`a_or_b`) AS `count(a_or_b)` from `test`.`t2` where ((`test`.`t2`.`a_or_b` = 'AAAAAAAA') a_or_bnd (`test`.`t2`.`a_or_b` = 'AAAAAAAA')) @@ -1097,7 +1097,7 @@ count(a) insert into t2 values ('ab', 'ab', 'uh', 'oh'); explain select a from t2 where a='ab'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (2 workers) 2 SIMPLE t2 NULL ref a a 21 const 1 100.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a` from `test`.`t2` where (`test`.`t2`.`a` = 'ab') @@ -1503,7 +1503,7 @@ SELECT a FROM t1 WHERE c = 1 AND b = 1 AND d = 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (2 workers) 2 SIMPLE t1 NULL ref c,bd bd 10 const,const 2 100.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where ((`test`.`t1`.`d` = 1) and (`test`.`t1`.`b` = 1) and (`test`.`t1`.`c` = 1)) @@ -1559,7 +1559,7 @@ WHERE col_varchar_key >= 'l' OR (((pk BETWEEN 141 AND 141) OR col_varchar_key <> 'l') AND ((pk BETWEEN 141 AND 141) OR (col_int_key > 141))); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 78.12 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 78.12 Parallel execute (2 workers) 2 SIMPLE t1 NULL index PRIMARY,col_int_key,col_varchar_key col_varchar_key 10 NULL 2 78.12 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col_int_key` AS `col_int_key` from `test`.`t1` where ((`test`.`t1`.`col_varchar_key` >= 'l') or (((`test`.`t1`.`pk` between 141 and 141) or (`test`.`t1`.`col_varchar_key` <> 'l')) and ((`test`.`t1`.`pk` between 141 and 141) or (`test`.`t1`.`col_int_key` > 141)))) @@ -1743,7 +1743,7 @@ primary key (pk1, pk2) # Column 9, rows, can change depending on innodb-page-size. explain select * from t1 where pk1 = 1 and pk2 < 80 and key1=0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL ROWS # Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL ROWS # Parallel execute (4 workers) 2 SIMPLE t1 NULL range PRIMARY,key1 PRIMARY 8 NULL ROWS # Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`pk1` AS `pk1`,`test`.`t1`.`pk2` AS `pk2`,`test`.`t1`.`key1` AS `key1`,`test`.`t1`.`key2` AS `key2`,`test`.`t1`.`pktail1ok` AS `pktail1ok`,`test`.`t1`.`pktail2ok` AS `pktail2ok`,`test`.`t1`.`pktail3bad` AS `pktail3bad`,`test`.`t1`.`pktail4bad` AS `pktail4bad`,`test`.`t1`.`pktail5bad` AS `pktail5bad`,`test`.`t1`.`pk2copy` AS `pk2copy`,`test`.`t1`.`badkey` AS `badkey`,`test`.`t1`.`filler1` AS `filler1`,`test`.`t1`.`filler2` AS `filler2` from `test`.`t1` where ((`test`.`t1`.`key1` = 0) and (`test`.`t1`.`pk1` = 1) and (`test`.`t1`.`pk2` < 80)) @@ -1783,7 +1783,7 @@ pk1 pk2 # The expected number of rows can vary depending on page size explain select * from t1 where badkey=1 and key1=10; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL ROWS 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL ROWS 10.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ref key1 key1 4 const ROWS 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`pk1` AS `pk1`,`test`.`t1`.`pk2` AS `pk2`,`test`.`t1`.`key1` AS `key1`,`test`.`t1`.`key2` AS `key2`,`test`.`t1`.`pktail1ok` AS `pktail1ok`,`test`.`t1`.`pktail2ok` AS `pktail2ok`,`test`.`t1`.`pktail3bad` AS `pktail3bad`,`test`.`t1`.`pktail4bad` AS `pktail4bad`,`test`.`t1`.`pktail5bad` AS `pktail5bad`,`test`.`t1`.`pk2copy` AS `pk2copy`,`test`.`t1`.`badkey` AS `badkey`,`test`.`t1`.`filler1` AS `filler1`,`test`.`t1`.`filler2` AS `filler2` from `test`.`t1` where ((`test`.`t1`.`key1` = 10) and (`test`.`t1`.`badkey` = 1)) @@ -1813,19 +1813,19 @@ Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`pk1` AS `pk1`,`test`.`t1`.`pk2` AS `pk2`,`test`.`t1`.`key1` AS `key1`,`test`.`t1`.`key2` AS `key2`,`test`.`t1`.`pktail1ok` AS `pktail1ok`,`test`.`t1`.`pktail2ok` AS `pktail2ok`,`test`.`t1`.`pktail3bad` AS `pktail3bad`,`test`.`t1`.`pktail4bad` AS `pktail4bad`,`test`.`t1`.`pktail5bad` AS `pktail5bad`,`test`.`t1`.`pk2copy` AS `pk2copy`,`test`.`t1`.`badkey` AS `badkey`,`test`.`t1`.`filler1` AS `filler1`,`test`.`t1`.`filler2` AS `filler2` from `test`.`t1` where (((`test`.`t1`.`pktail2ok` = 1) and (`test`.`t1`.`pk1` < 50000)) or (`test`.`t1`.`key1` = 10)) explain select * from t1 where pktail3bad=1 and key1=10; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL EITHER_KEY NULL NULL ROWS 1.03 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL EITHER_KEY NULL NULL ROWS 1.03 Parallel execute (4 workers) 2 SIMPLE t1 NULL ref key1,pktail3bad EITHER_KEY 4 const ROWS 1.03 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`pk1` AS `pk1`,`test`.`t1`.`pk2` AS `pk2`,`test`.`t1`.`key1` AS `key1`,`test`.`t1`.`key2` AS `key2`,`test`.`t1`.`pktail1ok` AS `pktail1ok`,`test`.`t1`.`pktail2ok` AS `pktail2ok`,`test`.`t1`.`pktail3bad` AS `pktail3bad`,`test`.`t1`.`pktail4bad` AS `pktail4bad`,`test`.`t1`.`pktail5bad` AS `pktail5bad`,`test`.`t1`.`pk2copy` AS `pk2copy`,`test`.`t1`.`badkey` AS `badkey`,`test`.`t1`.`filler1` AS `filler1`,`test`.`t1`.`filler2` AS `filler2` from `test`.`t1` where ((`test`.`t1`.`key1` = 10) and (`test`.`t1`.`pktail3bad` = 1)) explain select * from t1 where pktail4bad=1 and key1=10; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL ROWS 1.03 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL ROWS 1.03 Parallel execute (4 workers) 2 SIMPLE t1 NULL ref key1,pktail4bad key1 4 const ROWS 1.03 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`pk1` AS `pk1`,`test`.`t1`.`pk2` AS `pk2`,`test`.`t1`.`key1` AS `key1`,`test`.`t1`.`key2` AS `key2`,`test`.`t1`.`pktail1ok` AS `pktail1ok`,`test`.`t1`.`pktail2ok` AS `pktail2ok`,`test`.`t1`.`pktail3bad` AS `pktail3bad`,`test`.`t1`.`pktail4bad` AS `pktail4bad`,`test`.`t1`.`pktail5bad` AS `pktail5bad`,`test`.`t1`.`pk2copy` AS `pk2copy`,`test`.`t1`.`badkey` AS `badkey`,`test`.`t1`.`filler1` AS `filler1`,`test`.`t1`.`filler2` AS `filler2` from `test`.`t1` where ((`test`.`t1`.`key1` = 10) and (`test`.`t1`.`pktail4bad` = 1)) explain select * from t1 where pktail5bad=1 and key1=10; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL ROWS 1.03 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL ROWS 1.03 Parallel execute (4 workers) 2 SIMPLE t1 NULL ref key1,pktail5bad key1 4 const ROWS 1.03 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`pk1` AS `pk1`,`test`.`t1`.`pk2` AS `pk2`,`test`.`t1`.`key1` AS `key1`,`test`.`t1`.`key2` AS `key2`,`test`.`t1`.`pktail1ok` AS `pktail1ok`,`test`.`t1`.`pktail2ok` AS `pktail2ok`,`test`.`t1`.`pktail3bad` AS `pktail3bad`,`test`.`t1`.`pktail4bad` AS `pktail4bad`,`test`.`t1`.`pktail5bad` AS `pktail5bad`,`test`.`t1`.`pk2copy` AS `pk2copy`,`test`.`t1`.`badkey` AS `badkey`,`test`.`t1`.`filler1` AS `filler1`,`test`.`t1`.`filler2` AS `filler2` from `test`.`t1` where ((`test`.`t1`.`key1` = 10) and (`test`.`t1`.`pktail5bad` = 1)) @@ -2082,7 +2082,7 @@ INSERT INTO t1 SELECT id + 8, id2 + 8, id3 +8 FROM t1; INSERT INTO t1 SELECT id + 16, 7, 0 FROM t1; EXPLAIN SELECT count(*) FROM t1 WHERE id2=7 AND id3=0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 16 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 16 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ref id2,id3,covering_index covering_index 8 const,const 16 100.00 Using index Warnings: Note 1003 /* select#1 */ select count(0) AS `count(*)` from `test`.`t1` where ((`test`.`t1`.`id3` = 0) and (`test`.`t1`.`id2` = 7)) diff --git a/mysql-test/r/innodb_icp.result-pq b/mysql-test/r/innodb_icp.result-pq index 8b59a10fee22..fcf08a01776c 100644 --- a/mysql-test/r/innodb_icp.result-pq +++ b/mysql-test/r/innodb_icp.result-pq @@ -358,7 +358,7 @@ WHERE ts BETWEEN '0000-00-00' AND '2010-00-01 00:00:00' ORDER BY ts DESC LIMIT 2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range PRIMARY PRIMARY 4 NULL 4 100.00 Using where; Backward index scan DROP TABLE t1; @@ -468,7 +468,7 @@ WHERE (pk BETWEEN 4 AND 5 OR pk < 2) AND c1 < 240 ORDER BY c1 LIMIT 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 37.50 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 37.50 Parallel execute (4 workers) 2 SIMPLE t1 NULL range PRIMARY,k1 k1 5 NULL 4 37.50 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`pk` AS `pk`,`test`.`t1`.`c1` AS `c1` from `test`.`t1` where (((`test`.`t1`.`pk` between 4 and 5) or (`test`.`t1`.`pk` < 2)) and (`test`.`t1`.`c1` < 240)) order by `test`.`t1`.`c1` limit 1 @@ -983,7 +983,7 @@ FROM t1 AS alias1 STRAIGHT_JOIN t1 AS alias2 ON alias2.pk AND alias2.pk <= alias1.c1 WHERE alias2.pk = 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (2 workers) 2 SIMPLE alias1 NULL ALL NULL NULL NULL NULL 2 100.00 NULL 2 SIMPLE alias2 NULL const PRIMARY PRIMARY 4 const 1 100.00 Using where Warnings: @@ -1016,7 +1016,7 @@ EXPLAIN SELECT t1.d1, t2.pk, t2.i1 FROM t1 STRAIGHT_JOIN t2 ON t2.i1 WHERE t2.pk <> t1.d1 AND t2.pk = 4; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (3 workers) 2 SIMPLE t1 NULL index NULL k1 9 NULL 3 100.00 Using index 2 SIMPLE t2 NULL const PRIMARY PRIMARY 4 const 1 100.00 Using where Warnings: @@ -1052,7 +1052,7 @@ FROM t2 USE INDEX(col_int_key) STRAIGHT_JOIN t1 ON t2.col_int_key WHERE t2.pk < 7 AND t2.col_int_key <> 7 GROUP BY field1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 6 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 6 33.33 Parallel execute (4 workers) 2 SIMPLE t2 NULL index col_int_key col_int_key 5 NULL 6 33.33 Using where; Using index 2 SIMPLE t1 NULL index NULL col_int_key 5 NULL 4 100.00 Using index Warnings: diff --git a/mysql-test/r/innodb_icp_all.result-pq b/mysql-test/r/innodb_icp_all.result-pq index acbda2294ce6..3876d9f101de 100644 --- a/mysql-test/r/innodb_icp_all.result-pq +++ b/mysql-test/r/innodb_icp_all.result-pq @@ -358,7 +358,7 @@ WHERE ts BETWEEN '0000-00-00' AND '2010-00-01 00:00:00' ORDER BY ts DESC LIMIT 2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range PRIMARY PRIMARY 4 NULL 4 100.00 Using where; Backward index scan DROP TABLE t1; @@ -468,7 +468,7 @@ WHERE (pk BETWEEN 4 AND 5 OR pk < 2) AND c1 < 240 ORDER BY c1 LIMIT 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 37.50 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 37.50 Parallel execute (4 workers) 2 SIMPLE t1 NULL range PRIMARY,k1 k1 5 NULL 4 37.50 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`pk` AS `pk`,`test`.`t1`.`c1` AS `c1` from `test`.`t1` where (((`test`.`t1`.`pk` between 4 and 5) or (`test`.`t1`.`pk` < 2)) and (`test`.`t1`.`c1` < 240)) order by `test`.`t1`.`c1` limit 1 @@ -983,7 +983,7 @@ FROM t1 AS alias1 STRAIGHT_JOIN t1 AS alias2 ON alias2.pk AND alias2.pk <= alias1.c1 WHERE alias2.pk = 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (2 workers) 2 SIMPLE alias1 NULL ALL NULL NULL NULL NULL 2 100.00 NULL 2 SIMPLE alias2 NULL const PRIMARY PRIMARY 4 const 1 100.00 Using where Warnings: @@ -1016,7 +1016,7 @@ EXPLAIN SELECT t1.d1, t2.pk, t2.i1 FROM t1 STRAIGHT_JOIN t2 ON t2.i1 WHERE t2.pk <> t1.d1 AND t2.pk = 4; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (3 workers) 2 SIMPLE t1 NULL index NULL k1 9 NULL 3 100.00 Using index 2 SIMPLE t2 NULL const PRIMARY PRIMARY 4 const 1 100.00 Using where Warnings: @@ -1052,7 +1052,7 @@ FROM t2 USE INDEX(col_int_key) STRAIGHT_JOIN t1 ON t2.col_int_key WHERE t2.pk < 7 AND t2.col_int_key <> 7 GROUP BY field1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 6 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 6 33.33 Parallel execute (4 workers) 2 SIMPLE t2 NULL index col_int_key col_int_key 5 NULL 6 33.33 Using where; Using index 2 SIMPLE t1 NULL index NULL col_int_key 5 NULL 4 100.00 Using index Warnings: diff --git a/mysql-test/r/innodb_icp_none.result-pq b/mysql-test/r/innodb_icp_none.result-pq index 0fc11c05e8ce..62f1f82ef668 100644 --- a/mysql-test/r/innodb_icp_none.result-pq +++ b/mysql-test/r/innodb_icp_none.result-pq @@ -357,7 +357,7 @@ WHERE ts BETWEEN '0000-00-00' AND '2010-00-01 00:00:00' ORDER BY ts DESC LIMIT 2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range PRIMARY PRIMARY 4 NULL 4 100.00 Using where; Backward index scan DROP TABLE t1; @@ -467,7 +467,7 @@ WHERE (pk BETWEEN 4 AND 5 OR pk < 2) AND c1 < 240 ORDER BY c1 LIMIT 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 37.50 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 37.50 Parallel execute (4 workers) 2 SIMPLE t1 NULL range PRIMARY,k1 k1 5 NULL 4 37.50 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`pk` AS `pk`,`test`.`t1`.`c1` AS `c1` from `test`.`t1` where (((`test`.`t1`.`pk` between 4 and 5) or (`test`.`t1`.`pk` < 2)) and (`test`.`t1`.`c1` < 240)) order by `test`.`t1`.`c1` limit 1 @@ -982,7 +982,7 @@ FROM t1 AS alias1 STRAIGHT_JOIN t1 AS alias2 ON alias2.pk AND alias2.pk <= alias1.c1 WHERE alias2.pk = 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (2 workers) 2 SIMPLE alias1 NULL ALL NULL NULL NULL NULL 2 100.00 NULL 2 SIMPLE alias2 NULL const PRIMARY PRIMARY 4 const 1 100.00 Using where Warnings: @@ -1015,7 +1015,7 @@ EXPLAIN SELECT t1.d1, t2.pk, t2.i1 FROM t1 STRAIGHT_JOIN t2 ON t2.i1 WHERE t2.pk <> t1.d1 AND t2.pk = 4; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (3 workers) 2 SIMPLE t1 NULL index NULL k1 9 NULL 3 100.00 Using index 2 SIMPLE t2 NULL const PRIMARY PRIMARY 4 const 1 100.00 Using where Warnings: @@ -1051,7 +1051,7 @@ FROM t2 USE INDEX(col_int_key) STRAIGHT_JOIN t1 ON t2.col_int_key WHERE t2.pk < 7 AND t2.col_int_key <> 7 GROUP BY field1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 6 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 6 33.33 Parallel execute (4 workers) 2 SIMPLE t2 NULL index col_int_key col_int_key 5 NULL 6 33.33 Using where; Using index 2 SIMPLE t1 NULL index NULL col_int_key 5 NULL 4 100.00 Using index Warnings: diff --git a/mysql-test/r/insert_update.result-pq b/mysql-test/r/insert_update.result-pq index 7f5d80c4cee1..f59bf9be4926 100644 --- a/mysql-test/r/insert_update.result-pq +++ b/mysql-test/r/insert_update.result-pq @@ -65,7 +65,7 @@ Table Op Msg_type Msg_text test.t1 analyze status OK explain SELECT *, VALUES(a) FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL # 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL # 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL # 100.00 NULL Warnings: Warning 1#81 'VALUES function' is deprecated and will be removed in a future release. diff --git a/mysql-test/r/invisible_indexes.result-pq b/mysql-test/r/invisible_indexes.result-pq index afdd92db3148..121728d6ebac 100644 --- a/mysql-test/r/invisible_indexes.result-pq +++ b/mysql-test/r/invisible_indexes.result-pq @@ -41,34 +41,34 @@ test.t1 analyze status OK test.t2 analyze status OK EXPLAIN SELECT a FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 5 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 5 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL a 5 NULL 5 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` ALTER TABLE t1 ALTER INDEX a INVISIBLE; EXPLAIN SELECT a FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 5 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 5 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 5 100.00 NULL Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` ALTER TABLE t1 ALTER INDEX a VISIBLE; EXPLAIN SELECT a FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 5 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 5 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL a 5 NULL 5 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` EXPLAIN SELECT a FROM t2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 5 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 5 100.00 Parallel execute (4 workers) 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 5 100.00 NULL Warnings: Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a` from `test`.`t2` ALTER TABLE t2 ALTER INDEX a VISIBLE; EXPLAIN SELECT a FROM t2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 5 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 5 100.00 Parallel execute (4 workers) 2 SIMPLE t2 NULL index NULL a 5 NULL 5 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a` from `test`.`t2` @@ -389,7 +389,7 @@ Table Op Msg_type Msg_text test.t1 analyze status OK EXPLAIN SELECT a FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (3 workers) 2 SIMPLE t1 NULL index NULL a 4 NULL 3 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` @@ -399,7 +399,7 @@ Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_par t1 1 a 1 a A 3 NULL NULL BTREE NO NULL EXPLAIN SELECT a FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE 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`.`a` AS `a` from `test`.`t1` @@ -533,7 +533,7 @@ CREATE TABLE t1 ( a INT, KEY( a ) INVISIBLE ); INSERT INTO t1 VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10); EXPLAIN SELECT a FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL X 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL X 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL X 100.00 NULL Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` @@ -542,14 +542,14 @@ SELECT @@optimizer_switch; index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=on,index_condition_pushdown=on,mrr=on,mrr_cost_based=on,block_nested_loop=on,batched_key_access=off,materialization=on,semijoin=on,loosescan=on,firstmatch=on,duplicateweedout=on,subquery_materialization_cost_based=on,use_index_extensions=on,condition_fanout_filter=on,derived_merge=on,use_invisible_indexes=off,skip_scan=on,hash_join=on EXPLAIN SELECT a FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL X 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL X 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL X 100.00 NULL Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` SET @@optimizer_switch='use_invisible_indexes=on'; EXPLAIN SELECT a FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL X 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL X 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL a 5 NULL X 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` @@ -558,7 +558,7 @@ SELECT @@optimizer_switch; index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=on,index_condition_pushdown=on,mrr=on,mrr_cost_based=on,block_nested_loop=on,batched_key_access=off,materialization=on,semijoin=on,loosescan=on,firstmatch=on,duplicateweedout=on,subquery_materialization_cost_based=on,use_index_extensions=on,condition_fanout_filter=on,derived_merge=on,use_invisible_indexes=off,skip_scan=on,hash_join=on EXPLAIN SELECT a FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL X 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL X 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL X 100.00 NULL Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` @@ -568,13 +568,13 @@ index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_inters SET @@optimizer_switch='use_invisible_indexes=off'; EXPLAIN SELECT a FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL X 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL X 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL X 100.00 NULL Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` EXPLAIN SELECT a FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL X 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL X 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL X 100.00 NULL Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` diff --git a/mysql-test/r/key_diff.result-pq b/mysql-test/r/key_diff.result-pq index e7c402f3b4d5..43052ba8a065 100644 --- a/mysql-test/r/key_diff.result-pq +++ b/mysql-test/r/key_diff.result-pq @@ -38,7 +38,7 @@ Table Op Msg_type Msg_text test.t1 analyze status OK explain select t1.*,t2.* from t1,t1 as t2 where t1.A=t2.B; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 5 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 5 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL a NULL NULL NULL 5 100.00 NULL 2 SIMPLE t2 NULL ref b b 16 test.t1.a 1 100.00 Using index condition Warnings: diff --git a/mysql-test/r/limit.result-pq b/mysql-test/r/limit.result-pq index df00b8fb7659..e17220d2f9ca 100644 --- a/mysql-test/r/limit.result-pq +++ b/mysql-test/r/limit.result-pq @@ -560,7 +560,7 @@ Table Op Msg_type Msg_text test.t1 analyze status OK explain select count(*) c FROM t1 WHERE a > 0 ORDER BY c LIMIT 3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 7 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 7 33.33 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 7 33.33 Using where Warnings: Note 1003 /* select#1 */ select count(0) AS `c` from `test`.`t1` where (`test`.`t1`.`a` > 0) limit 3 @@ -569,7 +569,7 @@ c 7 explain select sum(a) c FROM t1 WHERE a > 0 ORDER BY c LIMIT 3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 7 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 7 33.33 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 7 33.33 Using where Warnings: Note 1003 /* select#1 */ select sum(`test`.`t1`.`a`) AS `c` from `test`.`t1` where (`test`.`t1`.`a` > 0) limit 3 diff --git a/mysql-test/r/negation_elimination.result-pq b/mysql-test/r/negation_elimination.result-pq index a68de371f7fa..2e07aefdb036 100644 --- a/mysql-test/r/negation_elimination.result-pq +++ b/mysql-test/r/negation_elimination.result-pq @@ -7,7 +7,7 @@ Table Op Msg_type Msg_text test.t1 analyze status OK explain select * from t1 where not(not(a)); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 21 90.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 21 90.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL a 5 NULL 21 90.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where (0 <> `test`.`t1`.`a`) @@ -34,7 +34,7 @@ a 19 explain select * from t1 where not(not(not(a > 10))); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range a a 5 NULL 11 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where (`test`.`t1`.`a` <= 10) @@ -53,7 +53,7 @@ a 10 explain select * from t1 where not(not(not(a < 5) and not(a > 10))); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 6 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 6 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range a a 5 NULL 6 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where ((`test`.`t1`.`a` >= 5) and (`test`.`t1`.`a` <= 10)) @@ -94,7 +94,7 @@ a 19 explain select * from t1 where not(a != 10); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (2 workers) 2 SIMPLE t1 NULL ref a a 5 const 1 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where (`test`.`t1`.`a` = 10) @@ -103,7 +103,7 @@ a 1 explain select * from t1 where not(a < 10); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range a a 5 NULL 10 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where (`test`.`t1`.`a` >= 10) @@ -121,7 +121,7 @@ a 19 explain select * from t1 where not(a >= 10); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range a a 5 NULL 10 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where (`test`.`t1`.`a` < 10) @@ -139,7 +139,7 @@ a 9 explain select * from t1 where not(a > 10); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range a a 5 NULL 11 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where (`test`.`t1`.`a` <= 10) @@ -158,7 +158,7 @@ a 10 explain select * from t1 where not(a <= 10); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 9 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range a a 5 NULL 9 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where (`test`.`t1`.`a` > 10) @@ -175,7 +175,7 @@ a 19 explain select * from t1 where not(a is null); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 20 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 20 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range a a 5 NULL 20 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where (`test`.`t1`.`a` is not null) @@ -203,7 +203,7 @@ a 19 explain select * from t1 where not(a is not null); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (2 workers) 2 SIMPLE t1 NULL ref a a 5 const 1 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where (`test`.`t1`.`a` is null) @@ -212,7 +212,7 @@ a NULL explain select * from t1 where not(a < 5 or a > 15); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range a a 5 NULL 11 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where ((`test`.`t1`.`a` >= 5) and (`test`.`t1`.`a` <= 15)) @@ -269,7 +269,7 @@ a 19 explain select * from t1 where a > 5 and not(a > 10); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 5 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 5 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range a a 5 NULL 5 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where ((`test`.`t1`.`a` > 5) and (`test`.`t1`.`a` <= 10)) @@ -282,7 +282,7 @@ a 10 explain select * from t1 where a > 5 xor a < 10; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 21 44.44 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 21 44.44 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL a 5 NULL 21 44.44 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where ((`test`.`t1`.`a` > 5) xor (`test`.`t1`.`a` < 10)) @@ -365,7 +365,7 @@ a 19 explain select * from t1 where not(NULL and a > 5); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 6 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 6 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range a a 5 NULL 6 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where (`test`.`t1`.`a` <= 5) @@ -386,7 +386,7 @@ select * from t1 where not(NULL or a); a explain select * from t1 where not(NULL and a); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (2 workers) 2 SIMPLE t1 NULL ref a a 5 const 1 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where (`test`.`t1`.`a` = 0) @@ -395,7 +395,7 @@ a 0 explain select * from t1 where not((a < 5 or a < 10) and (not(a > 16) or a > 17)); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range a a 5 NULL 10 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where (((`test`.`t1`.`a` >= 5) and (`test`.`t1`.`a` >= 10)) or ((`test`.`t1`.`a` > 16) and (`test`.`t1`.`a` <= 17))) @@ -413,7 +413,7 @@ a 19 explain select * from t1 where not((a < 5 and a < 10) and (not(a > 16) or a > 17)); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 15 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 15 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range a a 5 NULL 15 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where ((`test`.`t1`.`a` >= 5) or (`test`.`t1`.`a` >= 10) or ((`test`.`t1`.`a` > 16) and (`test`.`t1`.`a` <= 17))) @@ -436,7 +436,7 @@ a 19 explain select * from t1 where ((a between 5 and 15) and (not(a like 10))); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 11 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range a a 5 NULL 11 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where ((`test`.`t1`.`a` between 5 and 15) and (not((`test`.`t1`.`a` like 10)))) @@ -557,14 +557,14 @@ a # Should be simplified to "...WHERE (a XOR a) EXPLAIN SELECT * FROM t1 WHERE NOT ((NOT a) XOR (a)); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 21 18.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 21 18.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL a 5 NULL 21 18.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where ((0 <> `test`.`t1`.`a`) xor (0 <> `test`.`t1`.`a`)) # Should be simplified to "...WHERE (a XOR a) EXPLAIN SELECT * FROM t1 WHERE NOT (a XOR (NOT a)); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 21 18.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 21 18.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL a 5 NULL 21 18.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where ((0 = `test`.`t1`.`a`) xor (0 = `test`.`t1`.`a`)) @@ -582,7 +582,7 @@ Table Op Msg_type Msg_text test.t1 analyze status OK explain select a, not(not(a)), not(a <= 2 and not(a)), not(a not like "1"), not (a not in (1,2)), not(a != 2) from t1 where not(not(a)) having not(not(a)); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 5 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 5 80.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL a 5 NULL 5 80.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,(0 <> `test`.`t1`.`a`) AS `not(not(a))`,((`test`.`t1`.`a` > 2) or (0 <> `test`.`t1`.`a`)) AS `not(a <= 2 and not(a))`,(`test`.`t1`.`a` like '1') AS `not(a not like "1")`,(`test`.`t1`.`a` in (1,2)) AS `not (a not in (1,2))`,(`test`.`t1`.`a` = 2) AS `not(a != 2)` from `test`.`t1` where (0 <> `test`.`t1`.`a`) having (0 <> `test`.`t1`.`a`) diff --git a/mysql-test/r/null.result-pq b/mysql-test/r/null.result-pq index 1852bd00f8d6..ef28ed044fc0 100644 --- a/mysql-test/r/null.result-pq +++ b/mysql-test/r/null.result-pq @@ -167,13 +167,13 @@ Table Op Msg_type Msg_text test.t1 analyze status OK explain select * from t1 where a between 2 and 3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (3 workers) 2 SIMPLE t1 NULL range idx idx 4 NULL 2 100.00 Using index condition Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`a` between 2 and 3) explain select * from t1 where a between 2 and 3 or b is null; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (3 workers) 2 SIMPLE t1 NULL range idx idx 4 NULL 2 100.00 Using index condition Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`a` between 2 and 3) @@ -211,7 +211,7 @@ Warning 1265 Data truncated for column 'i' at row 513 SET sql_mode = default; explain select * from t1 where i=2 or i is null; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 9 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ref i i 4 const 9 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`i` AS `i` from `test`.`t1` where (`test`.`t1`.`i` = 2) @@ -411,7 +411,7 @@ SELECT STRAIGHT_JOIN * FROM t1 LEFT OUTER JOIN t1 AS t2 ON t1.col_int_unique = t2.col_int_unique; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 8 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 8 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 8 100.00 NULL 2 SIMPLE t2 NULL eq_ref ix1 ix1 5 test.t1.col_int_unique 1 100.00 NULL Warnings: diff --git a/mysql-test/r/null_key_none_innodb.result-pq b/mysql-test/r/null_key_none_innodb.result-pq index c6e84d796c25..5ba6ddd4bdb2 100644 --- a/mysql-test/r/null_key_none_innodb.result-pq +++ b/mysql-test/r/null_key_none_innodb.result-pq @@ -81,7 +81,7 @@ COUNT(*) EXPLAIN SELECT SQL_CALC_FOUND_ROWS * FROM t1 LEFT JOIN t2 ON t1.a=t2.a LEFT JOIN t3 ON t2.b=t3.b; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL # 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL # 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL # 100.00 NULL 2 SIMPLE t2 NULL ALL idx NULL NULL NULL # 100.00 Using where; Using join buffer (hash join) 2 SIMPLE t3 NULL ref idx idx 5 test.t2.b # 100.00 Using index @@ -105,13 +105,13 @@ Warnings: Warning 1287 FOUND_ROWS() is deprecated and will be removed in a future release. Consider using COUNT(*) instead. SHOW STATUS LIKE "handler_read%"; Variable_name Value -Handler_read_first 2 -Handler_read_key 4 +Handler_read_first 5 +Handler_read_key 7 Handler_read_last 0 Handler_read_next 0 Handler_read_prev 0 Handler_read_rnd 0 -Handler_read_rnd_next 8 +Handler_read_rnd_next 20 DROP TABLE t1,t2,t3,t4; CREATE TABLE t1 ( a int(11) default NULL, diff --git a/mysql-test/r/opt_hints.result-pq b/mysql-test/r/opt_hints.result-pq index 8ea59cc2c8bf..000261940787 100644 --- a/mysql-test/r/opt_hints.result-pq +++ b/mysql-test/r/opt_hints.result-pq @@ -47,7 +47,7 @@ Handler_read_last 0 Handler_read_next 0 Handler_read_prev 0 Handler_read_rnd 0 -Handler_read_rnd_next 3 +Handler_read_rnd_next 5 # Check statistics with hint FLUSH STATUS; SELECT /*+ NO_RANGE_OPTIMIZATION(t3) */ f1 FROM t3 WHERE f1 > 30 AND f1 < 33; @@ -62,10 +62,10 @@ Handler_read_last 0 Handler_read_next 0 Handler_read_prev 0 Handler_read_rnd 0 -Handler_read_rnd_next 57 +Handler_read_rnd_next 60 EXPLAIN SELECT f1 FROM t3 WHERE f1 > 30 AND f1 < 33; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (3 workers) 2 SIMPLE t3 NULL range PRIMARY,f2_idx,f3_idx f2_idx 4 NULL 2 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t3`.`f1` AS `f1` from `test`.`t3` where ((`test`.`t3`.`f1` > 30) and (`test`.`t3`.`f1` < 33)) @@ -73,7 +73,7 @@ Note 1003 /* select#1 */ select `test`.`t3`.`f1` AS `f1` from `test`.`t3` where # Should use range access by f2_idx key EXPLAIN SELECT /*+ NO_RANGE_OPTIMIZATION(t3 PRIMARY) */ f1 FROM t3 WHERE f1 > 30 AND f1 < 33; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (3 workers) 2 SIMPLE t3 NULL range PRIMARY,f2_idx,f3_idx f2_idx 4 NULL 2 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select /*+ NO_RANGE_OPTIMIZATION(`t3`@`select#1` `PRIMARY`) */ `test`.`t3`.`f1` AS `f1` from `test`.`t3` where ((`test`.`t3`.`f1` > 30) and (`test`.`t3`.`f1` < 33)) @@ -88,7 +88,7 @@ Note 1003 /* select#1 */ select /*+ NO_RANGE_OPTIMIZATION(`t3`@`select#1` `PRIMA # Should use index access EXPLAIN SELECT /*+ NO_RANGE_OPTIMIZATION(t3) */ f1 FROM t3 WHERE f1 > 30 AND f1 < 33; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 56 11.11 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 56 11.11 Parallel execute (4 workers) 2 SIMPLE t3 NULL index PRIMARY,f2_idx f2_idx 4 NULL 56 11.11 Using where; Using index Warnings: Note 1003 /* select#1 */ select /*+ NO_RANGE_OPTIMIZATION(`t3`@`select#1`) */ `test`.`t3`.`f1` AS `f1` from `test`.`t3` where ((`test`.`t3`.`f1` > 30) and (`test`.`t3`.`f1` < 33)) @@ -105,7 +105,7 @@ EXPLAIN SELECT f2 FROM (SELECT f2, f3, f1 FROM t3 WHERE f1 > 27 AND f3 = 'poiu') AS TD WHERE TD.f1 > 27 AND TD.f3 = 'poiu'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 100.00 Parallel execute (4 workers) 2 SIMPLE t3 NULL range PRIMARY,f2_idx,f3_idx f3_idx 135 NULL 10 100.00 Using index condition Warnings: Note 1003 /* select#1 */ select `test`.`t3`.`f2` AS `f2` from `test`.`t3` where ((`test`.`t3`.`f3` = 'poiu') and (`test`.`t3`.`f1` > 27) and (`test`.`t3`.`f1` > 27)) @@ -113,7 +113,7 @@ EXPLAIN SELECT /*+ NO_ICP(t3@qb1 f3_idx) */ f2 FROM (SELECT /*+ QB_NAME(QB1) */ f2, f3, f1 FROM t3 WHERE f1 > 27 AND f3 = 'poiu') AS TD WHERE TD.f1 > 27 AND TD.f3 = 'poiu'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 100.00 Parallel execute (4 workers) 2 SIMPLE t3 NULL range PRIMARY,f2_idx,f3_idx f3_idx 135 NULL 10 100.00 Using where Warnings: Note 1003 /* select#1 */ select /*+ NO_ICP(`t3`@`QB1` `f3_idx`) */ `test`.`t3`.`f2` AS `f2` from `test`.`t3` where ((`test`.`t3`.`f3` = 'poiu') and (`test`.`t3`.`f1` > 27) and (`test`.`t3`.`f1` > 27)) @@ -121,7 +121,7 @@ EXPLAIN SELECT /*+ NO_ICP(t3@qb1) */ f2 FROM (SELECT /*+ QB_NAME(QB1) */ f2, f3, f1 FROM t3 WHERE f1 > 27 AND f3 = 'poiu') AS TD WHERE TD.f1 > 27 AND TD.f3 = 'poiu'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 100.00 Parallel execute (4 workers) 2 SIMPLE t3 NULL range PRIMARY,f2_idx,f3_idx f3_idx 135 NULL 10 100.00 Using where Warnings: Note 1003 /* select#1 */ select /*+ NO_ICP(`t3`@`QB1`) */ `test`.`t3`.`f2` AS `f2` from `test`.`t3` where ((`test`.`t3`.`f3` = 'poiu') and (`test`.`t3`.`f1` > 27) and (`test`.`t3`.`f1` > 27)) @@ -130,7 +130,7 @@ EXPLAIN SELECT f2 FROM (SELECT /*+ NO_ICP(t3 f3_idx, f1_idx, f2_idx) */ f2, f3, f1 FROM t3 WHERE f1 > 27 AND f3 = 'poiu') AS TD WHERE TD.f1 > 27 AND TD.f3 = 'poiu'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 100.00 Parallel execute (4 workers) 2 SIMPLE t3 NULL range PRIMARY,f2_idx,f3_idx f3_idx 135 NULL 10 100.00 Using where Warnings: Warning 3128 Unresolved name `t3`@`select#2` `f1_idx` for NO_ICP hint @@ -140,7 +140,7 @@ EXPLAIN SELECT f2 FROM (SELECT /*+ NO_ICP(t3 f1_idx, f2_idx) */ f2, f3, f1 FROM t3 WHERE f1 > 27 AND f3 = 'poiu') AS TD WHERE TD.f1 > 27 AND TD.f3 = 'poiu'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 100.00 Parallel execute (4 workers) 2 SIMPLE t3 NULL range PRIMARY,f2_idx,f3_idx f3_idx 135 NULL 10 100.00 Using index condition Warnings: Warning 3128 Unresolved name `t3`@`select#2` `f1_idx` for NO_ICP hint @@ -165,7 +165,7 @@ Handler_read_last 0 Handler_read_next 4 Handler_read_prev 0 Handler_read_rnd 0 -Handler_read_rnd_next 4 +Handler_read_rnd_next 6 # Check statistics with hint FLUSH STATUS; SELECT /*+ BKA() */ t2.f1, t2.f2, t2.f3 FROM t1,t2 @@ -183,11 +183,11 @@ Handler_read_last 0 Handler_read_next 20 Handler_read_prev 0 Handler_read_rnd 4 -Handler_read_rnd_next 4 +Handler_read_rnd_next 6 EXPLAIN SELECT t2.f1, t2.f2, t2.f3 FROM t1,t2 WHERE t1.f1=t2.f1 AND t2.f2 BETWEEN t1.f1 and t1.f2 and t2.f2 + 1 >= t1.f1 + 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE 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 where 2 SIMPLE t2 NULL ref f1 f1 4 test.t1.f1 7 11.11 Using index condition Warnings: @@ -195,7 +195,7 @@ Note 1003 /* select#1 */ select `test`.`t2`.`f1` AS `f1`,`test`.`t2`.`f2` AS `f2 EXPLAIN SELECT /*+ BKA(t2) */ t2.f1, t2.f2, t2.f3 FROM t1,t2 WHERE t1.f1=t2.f1 AND t2.f2 BETWEEN t1.f1 and t1.f2 and t2.f2 + 1 >= t1.f1 + 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE 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 where 2 SIMPLE t2 NULL ref f1 f1 4 test.t1.f1 7 11.11 Using index condition; Using join buffer (Batched Key Access) Warnings: @@ -203,7 +203,7 @@ Note 1003 /* select#1 */ select /*+ BKA(`t2`@`select#1`) */ `test`.`t2`.`f1` AS EXPLAIN SELECT /*+ BKA() */ t2.f1, t2.f2, t2.f3 FROM t1,t2 WHERE t1.f1=t2.f1 AND t2.f2 BETWEEN t1.f1 and t1.f2 and t2.f2 + 1 >= t1.f1 + 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE 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 where 2 SIMPLE t2 NULL ref f1 f1 4 test.t1.f1 7 11.11 Using index condition; Using join buffer (Batched Key Access) Warnings: @@ -211,7 +211,7 @@ Note 1003 /* select#1 */ select /*+ BKA(@`select#1`) */ `test`.`t2`.`f1` AS `f1` EXPLAIN SELECT /*+ BKA(t1, t2) */ t2.f1, t2.f2, t2.f3 FROM t1,t2 WHERE t1.f1=t2.f1 AND t2.f2 BETWEEN t1.f1 and t1.f2 and t2.f2 + 1 >= t1.f1 + 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE 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 where 2 SIMPLE t2 NULL ref f1 f1 4 test.t1.f1 7 11.11 Using index condition; Using join buffer (Batched Key Access) Warnings: @@ -219,7 +219,7 @@ Note 1003 /* select#1 */ select /*+ BKA(`t1`@`select#1`) BKA(`t2`@`select#1`) */ EXPLAIN SELECT /*+ BKA(t1) */ t2.f1, t2.f2, t2.f3 FROM t1,t2 WHERE t1.f1=t2.f1 AND t2.f2 BETWEEN t1.f1 and t1.f2 and t2.f2 + 1 >= t1.f1 + 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE 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 where 2 SIMPLE t2 NULL ref f1 f1 4 test.t1.f1 7 11.11 Using index condition Warnings: @@ -227,7 +227,7 @@ Note 1003 /* select#1 */ select /*+ BKA(`t1`@`select#1`) */ `test`.`t2`.`f1` AS EXPLAIN SELECT /*+ QB_NAME(QB1) BKA(t2@QB1) */ t2.f1, t2.f2, t2.f3 FROM t1,t2 WHERE t1.f1=t2.f1 AND t2.f2 BETWEEN t1.f1 and t1.f2 and t2.f2 + 1 >= t1.f1 + 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE 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 where 2 SIMPLE t2 NULL ref f1 f1 4 test.t1.f1 7 11.11 Using index condition; Using join buffer (Batched Key Access) Warnings: @@ -236,7 +236,7 @@ set optimizer_switch='batched_key_access=off,mrr_cost_based=on'; EXPLAIN SELECT t2.f1, t2.f2, t2.f3 FROM t1,t2 WHERE t1.f1=t2.f1 AND t2.f2 BETWEEN t1.f1 and t1.f2 and t2.f2 + 1 >= t1.f1 + 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE 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 where 2 SIMPLE t2 NULL ref f1 f1 4 test.t1.f1 7 11.11 Using index condition Warnings: @@ -244,7 +244,7 @@ Note 1003 /* select#1 */ select `test`.`t2`.`f1` AS `f1`,`test`.`t2`.`f2` AS `f2 EXPLAIN SELECT /*+ BKA(t2) */ t2.f1, t2.f2, t2.f3 FROM t1,t2 WHERE t1.f1=t2.f1 AND t2.f2 BETWEEN t1.f1 and t1.f2 and t2.f2 + 1 >= t1.f1 + 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE 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 where 2 SIMPLE t2 NULL ref f1 f1 4 test.t1.f1 7 11.11 Using index condition; Using join buffer (Batched Key Access) Warnings: @@ -252,7 +252,7 @@ Note 1003 /* select#1 */ select /*+ BKA(`t2`@`select#1`) */ `test`.`t2`.`f1` AS EXPLAIN SELECT /*+ BKA() */ t2.f1, t2.f2, t2.f3 FROM t1,t2 WHERE t1.f1=t2.f1 AND t2.f2 BETWEEN t1.f1 and t1.f2 and t2.f2 + 1 >= t1.f1 + 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE 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 where 2 SIMPLE t2 NULL ref f1 f1 4 test.t1.f1 7 11.11 Using index condition; Using join buffer (Batched Key Access) Warnings: @@ -260,7 +260,7 @@ Note 1003 /* select#1 */ select /*+ BKA(@`select#1`) */ `test`.`t2`.`f1` AS `f1` EXPLAIN SELECT /*+ BKA(t1, t2) */ t2.f1, t2.f2, t2.f3 FROM t1,t2 WHERE t1.f1=t2.f1 AND t2.f2 BETWEEN t1.f1 and t1.f2 and t2.f2 + 1 >= t1.f1 + 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE 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 where 2 SIMPLE t2 NULL ref f1 f1 4 test.t1.f1 7 11.11 Using index condition; Using join buffer (Batched Key Access) Warnings: @@ -268,7 +268,7 @@ Note 1003 /* select#1 */ select /*+ BKA(`t1`@`select#1`) BKA(`t2`@`select#1`) */ EXPLAIN SELECT /*+ QB_NAME(QB1) BKA(t2@QB1) */ t2.f1, t2.f2, t2.f3 FROM t1,t2 WHERE t1.f1=t2.f1 AND t2.f2 BETWEEN t1.f1 and t1.f2 and t2.f2 + 1 >= t1.f1 + 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE 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 where 2 SIMPLE t2 NULL ref f1 f1 4 test.t1.f1 7 11.11 Using index condition; Using join buffer (Batched Key Access) Warnings: @@ -277,7 +277,7 @@ set optimizer_switch='batched_key_access=on,mrr_cost_based=off'; EXPLAIN SELECT t2.f1, t2.f2, t2.f3 FROM t1,t2 WHERE t1.f1=t2.f1 AND t2.f2 BETWEEN t1.f1 and t1.f2 and t2.f2 + 1 >= t1.f1 + 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE 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 where 2 SIMPLE t2 NULL ref f1 f1 4 test.t1.f1 7 11.11 Using index condition; Using join buffer (Batched Key Access) Warnings: @@ -286,7 +286,7 @@ set optimizer_switch='mrr=off'; EXPLAIN SELECT t2.f1, t2.f2, t2.f3 FROM t1,t2 WHERE t1.f1=t2.f1 AND t2.f2 BETWEEN t1.f1 and t1.f2 and t2.f2 + 1 >= t1.f1 + 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE 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 where 2 SIMPLE t2 NULL ref f1 f1 4 test.t1.f1 7 11.11 Using index condition Warnings: @@ -296,7 +296,7 @@ Note 1003 /* select#1 */ select `test`.`t2`.`f1` AS `f1`,`test`.`t2`.`f2` AS `f2 EXPLAIN SELECT /*+ BKA(t2) */ t2.f1, t2.f2, t2.f3 FROM t1,t2 WHERE t1.f1=t2.f1 AND t2.f2 BETWEEN t1.f1 and t1.f2 and t2.f2 + 1 >= t1.f1 + 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE 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 where 2 SIMPLE t2 NULL ref f1 f1 4 test.t1.f1 7 11.11 Using index condition; Using join buffer (Batched Key Access) Warnings: @@ -305,7 +305,7 @@ set optimizer_switch='mrr=on'; EXPLAIN SELECT /*+ NO_BKA(t2) */ t2.f1, t2.f2, t2.f3 FROM t1,t2 WHERE t1.f1=t2.f1 AND t2.f2 BETWEEN t1.f1 and t1.f2 and t2.f2 + 1 >= t1.f1 + 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE 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 where 2 SIMPLE t2 NULL ref f1 f1 4 test.t1.f1 7 11.11 Using index condition Warnings: @@ -313,7 +313,7 @@ Note 1003 /* select#1 */ select /*+ NO_BKA(`t2`@`select#1`) */ `test`.`t2`.`f1` EXPLAIN SELECT /*+ NO_BKA() */ t2.f1, t2.f2, t2.f3 FROM t1,t2 WHERE t1.f1=t2.f1 AND t2.f2 BETWEEN t1.f1 and t1.f2 and t2.f2 + 1 >= t1.f1 + 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE 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 where 2 SIMPLE t2 NULL ref f1 f1 4 test.t1.f1 7 11.11 Using index condition Warnings: @@ -321,7 +321,7 @@ Note 1003 /* select#1 */ select /*+ NO_BKA(@`select#1`) */ `test`.`t2`.`f1` AS ` EXPLAIN SELECT /*+ NO_BKA(t1, t2) */ t2.f1, t2.f2, t2.f3 FROM t1,t2 WHERE t1.f1=t2.f1 AND t2.f2 BETWEEN t1.f1 and t1.f2 and t2.f2 + 1 >= t1.f1 + 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE 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 where 2 SIMPLE t2 NULL ref f1 f1 4 test.t1.f1 7 11.11 Using index condition Warnings: @@ -329,7 +329,7 @@ Note 1003 /* select#1 */ select /*+ NO_BKA(`t1`@`select#1`) NO_BKA(`t2`@`select# EXPLAIN SELECT /*+ QB_NAME(QB1) NO_BKA(t2@QB1) */ t2.f1, t2.f2, t2.f3 FROM t1,t2 WHERE t1.f1=t2.f1 AND t2.f2 BETWEEN t1.f1 and t1.f2 and t2.f2 + 1 >= t1.f1 + 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE 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 where 2 SIMPLE t2 NULL ref f1 f1 4 test.t1.f1 7 11.11 Using index condition Warnings: @@ -453,7 +453,7 @@ Note 1003 replace /*+ NO_ICP(`t2`@`qb1`) */ into `test`.`t3` (`test`.`t3`.`f1`,` # Should issue warning EXPLAIN SELECT /*+ QB_NAME(qb1) QB_NAME(qb1 ) */ * FROM t2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 28 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 28 100.00 Parallel execute (4 workers) 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 28 100.00 NULL Warnings: Warning 3126 Hint QB_NAME(`qb1`) is ignored as conflicting/duplicated @@ -462,7 +462,7 @@ Note 1003 /* select#1 */ select /*+ QB_NAME(`qb1`) */ `test`.`t2`.`f1` AS `f1`,` EXPLAIN SELECT /*+ BKA(@qb1) QB_NAME(qb1) */ t2.f1, t2.f2, t2.f3 FROM t1,t2 WHERE t1.f1=t2.f1 AND t2.f2 BETWEEN t1.f1 and t1.f2 and t2.f2 + 1 >= t1.f1 + 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE 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 where 2 SIMPLE t2 NULL ref f1 f1 4 test.t1.f1 7 11.11 Using index condition Warnings: @@ -488,7 +488,7 @@ DEALLOCATE PREPARE stmt1; EXPLAIN SELECT tbl2.f1, tbl2.f2, tbl2.f3 FROM t1 tbl1,t2 tbl2 WHERE tbl1.f1=tbl2.f1 AND tbl2.f2 BETWEEN tbl1.f1 and tbl1.f2 and tbl2.f2 + 1 >= tbl1.f1 + 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (3 workers) 2 SIMPLE tbl1 NULL ALL NULL NULL NULL NULL 3 100.00 Using where 2 SIMPLE tbl2 NULL ref f1 f1 4 test.tbl1.f1 7 11.11 Using index condition Warnings: @@ -497,7 +497,7 @@ Note 1003 /* select#1 */ select `test`.`tbl2`.`f1` AS `f1`,`test`.`tbl2`.`f2` AS EXPLAIN SELECT /*+ BKA(tbl1, tbl2) */ tbl2.f1, tbl2.f2, tbl2.f3 FROM t1 tbl1,t2 tbl2 WHERE tbl1.f1=tbl2.f1 AND tbl2.f2 BETWEEN tbl1.f1 and tbl1.f2 and tbl2.f2 + 1 >= tbl1.f1 + 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (3 workers) 2 SIMPLE tbl1 NULL ALL NULL NULL NULL NULL 3 100.00 Using where 2 SIMPLE tbl2 NULL ref f1 f1 4 test.tbl1.f1 7 11.11 Using index condition; Using join buffer (Batched Key Access) Warnings: @@ -508,7 +508,7 @@ SELECT /*+ BKA(t2) NO_BNL(t1) BKA(t3) NO_RANGE_OPTIMIZATION(t3 idx1) NO_RANGE_OP t2.f1, t2.f2, t2.f3 FROM t1,t2 WHERE t1.f1=t2.f1 AND t2.f2 BETWEEN t1.f1 AND t1.f2 AND t2.f2 + 1 >= t1.f1 + 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE 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 where 2 SIMPLE t2 NULL ref f1 f1 4 test.t1.f1 7 11.11 Using index condition; Using join buffer (Batched Key Access) Warnings: @@ -521,7 +521,7 @@ EXPLAIN SELECT /*+ BKA(qb1 t3@qb1) */ f2 FROM (SELECT /*+ QB_NAME(qb1) */ f2, f3, f1 FROM t3 WHERE f1 > 2 AND f3 = 'poiu') AS TD WHERE TD.f1 > 2 AND TD.f3 = 'poiu'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 16 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 16 100.00 Parallel execute (4 workers) 2 SIMPLE t3 NULL range PRIMARY,f2_idx,f3_idx f3_idx 135 NULL 16 100.00 Using index condition; Using MRR Warnings: Warning 1064 Optimizer hint syntax error near 't3@qb1) */ f2 FROM @@ -531,7 +531,7 @@ Note 1003 /* select#1 */ select `test`.`t3`.`f2` AS `f2` from `test`.`t3` where EXPLAIN SELECT * FROM (SELECT /*+ QB_NAME(qb1) BKA(@qb1 t1@qb1, t2@qb1, t3) */ t2.f1, t2.f2, t2.f3 FROM t1,t2,t3) tt; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE 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 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 28 100.00 Using join buffer (hash join) 2 SIMPLE t3 NULL index NULL f2_idx 4 NULL 56 100.00 Using index; Using join buffer (hash join) @@ -542,7 +542,7 @@ Note 1003 /* select#1 */ select `test`.`t2`.`f1` AS `f1`,`test`.`t2`.`f2` AS `f2 EXPLAIN SELECT /*+ BKA(@qb1 t2) */ * FROM (SELECT /*+ QB_NAME(QB1) */ t2.f1, t2.f2, t2.f3 FROM t1,t2 WHERE t1.f1=t2.f1 AND t2.f2 BETWEEN t1.f1 and t1.f2 and t2.f2 + 1 >= t1.f1 + 1) AS s1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE 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 where 2 SIMPLE t2 NULL ref f1 f1 4 test.t1.f1 7 11.11 Using index condition; Using join buffer (Batched Key Access) Warnings: @@ -551,7 +551,7 @@ Note 1003 /* select#1 */ select /*+ BKA(`t2`@`QB1`) */ `test`.`t2`.`f1` AS `f1`, EXPLAIN SELECT * FROM (SELECT /*+ BKA(t2) */ tb2.f1, tb2.f2, tb2.f3 FROM t1 tb1,t2 tb2 WHERE tb1.f1=tb2.f1 AND tb2.f2 BETWEEN tb1.f1 and tb1.f2 and tb2.f2 + 1 >= tb1.f1 + 1) AS s1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (3 workers) 2 SIMPLE tb1 NULL ALL NULL NULL NULL NULL 3 100.00 Using where 2 SIMPLE tb2 NULL ref f1 f1 4 test.tb1.f1 7 11.11 Using index condition Warnings: @@ -561,7 +561,7 @@ Note 1003 /* select#1 */ select `test`.`tb2`.`f1` AS `f1`,`test`.`tb2`.`f2` AS ` EXPLAIN SELECT * FROM (SELECT /*+ BKA(tb2) */ tb2.f1, tb2.f2, tb2.f3 FROM t1 tb1,t2 tb2 WHERE tb1.f1=tb2.f1 AND tb2.f2 BETWEEN tb1.f1 and tb1.f2 and tb2.f2 + 1 >= tb1.f1 + 1) AS s1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (3 workers) 2 SIMPLE tb1 NULL ALL NULL NULL NULL NULL 3 100.00 Using where 2 SIMPLE tb2 NULL ref f1 f1 4 test.tb1.f1 7 11.11 Using index condition; Using join buffer (Batched Key Access) Warnings: @@ -583,7 +583,7 @@ Handler_read_last 0 Handler_read_next 20 Handler_read_prev 0 Handler_read_rnd 4 -Handler_read_rnd_next 4 +Handler_read_rnd_next 6 PREPARE stmt1 FROM "SELECT /*+ BKA(@qb1 t2) */ * FROM (SELECT /*+ QB_NAME(QB1) */ t2.f1, t2.f2, t2.f3 FROM t1,t2 WHERE t1.f1=t2.f1 AND t2.f2 BETWEEN t1.f1 and t1.f2 and t2.f2 + 1 >= t1.f1 + 1) AS s1"; FLUSH STATUS; @@ -649,7 +649,7 @@ Handler_read_last 0 Handler_read_next 0 Handler_read_prev 0 Handler_read_rnd 0 -Handler_read_rnd_next 9 +Handler_read_rnd_next 10 # Check statistics with hint FLUSH STATUS; SELECT /*+ NO_BNL() */t1.* FROM t1,t2,t3; @@ -670,10 +670,10 @@ Handler_read_last 0 Handler_read_next 0 Handler_read_prev 0 Handler_read_rnd 0 -Handler_read_rnd_next 21 +Handler_read_rnd_next 22 EXPLAIN SELECT t1.* FROM t1,t2,t3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE 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 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 2 100.00 Using join buffer (hash join) 2 SIMPLE t3 NULL ALL NULL NULL NULL NULL 2 100.00 Using join buffer (hash join) @@ -681,7 +681,7 @@ Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` join `test`.`t2` join `test`.`t3` EXPLAIN SELECT /*+ NO_BNL() */t1.* FROM t1,t2,t3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE 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 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 2 100.00 NULL 2 SIMPLE t3 NULL ALL NULL NULL NULL NULL 2 100.00 NULL @@ -689,7 +689,7 @@ Warnings: Note 1003 /* select#1 */ select /*+ NO_BNL(@`select#1`) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` join `test`.`t2` join `test`.`t3` EXPLAIN SELECT /*+ NO_BNL(t2, t3) */t1.* FROM t1,t2,t3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE 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 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 2 100.00 NULL 2 SIMPLE t3 NULL ALL NULL NULL NULL NULL 2 100.00 NULL @@ -697,7 +697,7 @@ Warnings: Note 1003 /* select#1 */ select /*+ NO_BNL(`t2`@`select#1`) NO_BNL(`t3`@`select#1`) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` join `test`.`t2` join `test`.`t3` EXPLAIN SELECT /*+ NO_BNL(t1, t3) */t1.* FROM t1,t2,t3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE 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 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 2 100.00 Using join buffer (hash join) 2 SIMPLE t3 NULL ALL NULL NULL NULL NULL 2 100.00 NULL @@ -706,7 +706,7 @@ Note 1003 /* select#1 */ select /*+ NO_BNL(`t1`@`select#1`) NO_BNL(`t3`@`select# set optimizer_switch='block_nested_loop=off'; EXPLAIN SELECT t1.* FROM t1,t2,t3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE 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 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 2 100.00 NULL 2 SIMPLE t3 NULL ALL NULL NULL NULL NULL 2 100.00 NULL @@ -714,7 +714,7 @@ Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` join `test`.`t2` join `test`.`t3` EXPLAIN SELECT /*+ BNL() */t1.* FROM t1,t2,t3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE 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 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 2 100.00 Using join buffer (hash join) 2 SIMPLE t3 NULL ALL NULL NULL NULL NULL 2 100.00 Using join buffer (hash join) @@ -722,7 +722,7 @@ Warnings: Note 1003 /* select#1 */ select /*+ BNL(@`select#1`) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` join `test`.`t2` join `test`.`t3` EXPLAIN SELECT /*+ BNL(t2, t3) */t1.* FROM t1,t2,t3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE 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 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 2 100.00 Using join buffer (hash join) 2 SIMPLE t3 NULL ALL NULL NULL NULL NULL 2 100.00 Using join buffer (hash join) @@ -730,7 +730,7 @@ Warnings: Note 1003 /* select#1 */ select /*+ BNL(`t2`@`select#1`) BNL(`t3`@`select#1`) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` join `test`.`t2` join `test`.`t3` EXPLAIN SELECT /*+ BNL(t1, t3) */t1.* FROM t1,t2,t3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE 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 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 2 100.00 NULL 2 SIMPLE t3 NULL ALL NULL NULL NULL NULL 2 100.00 Using join buffer (hash join) @@ -738,7 +738,7 @@ Warnings: Note 1003 /* select#1 */ select /*+ BNL(`t1`@`select#1`) BNL(`t3`@`select#1`) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` join `test`.`t2` join `test`.`t3` EXPLAIN SELECT /*+ BNL(t2) BNL(t3) */t1.* FROM t1,t2,t3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE 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 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 2 100.00 Using join buffer (hash join) 2 SIMPLE t3 NULL ALL NULL NULL NULL NULL 2 100.00 Using join buffer (hash join) @@ -870,7 +870,7 @@ Handler_read_last 1 Handler_read_next 0 Handler_read_prev 0 Handler_read_rnd 0 -Handler_read_rnd_next 3 +Handler_read_rnd_next 4 # Check statistics with hint FLUSH STATUS; SELECT /*+ NO_MRR(t1) */ * FROM t1 WHERE f2 <= 3 AND 3 <= f3; @@ -885,87 +885,87 @@ Handler_read_last 1 Handler_read_next 0 Handler_read_prev 0 Handler_read_rnd 0 -Handler_read_rnd_next 3 +Handler_read_rnd_next 4 EXPLAIN SELECT * FROM t1 WHERE f2 <= 3 AND 3 <= f3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (2 workers) 2 SIMPLE t1 NULL range idx1,idx2 idx2 4 NULL 2 100.00 Using index condition; Using where; Using MRR Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f2` AS `f2`,`test`.`t1`.`f3` AS `f3` from `test`.`t1` where ((`test`.`t1`.`f2` <= 3) and (3 <= `test`.`t1`.`f3`)) # Turn off MRR. MRR should not be used. EXPLAIN SELECT /*+ NO_MRR(t1) */ * FROM t1 WHERE f2 <= 3 AND 3 <= f3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (2 workers) 2 SIMPLE t1 NULL range idx1,idx2 idx2 4 NULL 2 100.00 Using index condition; Using where Warnings: Note 1003 /* select#1 */ select /*+ NO_MRR(`t1`@`select#1`) */ `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f2` AS `f2`,`test`.`t1`.`f3` AS `f3` from `test`.`t1` where ((`test`.`t1`.`f2` <= 3) and (3 <= `test`.`t1`.`f3`)) # Turn off MRR. MRR should not be used. EXPLAIN SELECT /*+ NO_MRR(t1 idx2) */ * FROM t1 WHERE f2 <= 3 AND 3 <= f3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (2 workers) 2 SIMPLE t1 NULL range idx1,idx2 idx2 4 NULL 2 100.00 Using index condition; Using where Warnings: Note 1003 /* select#1 */ select /*+ NO_MRR(`t1`@`select#1` `idx2`) */ `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f2` AS `f2`,`test`.`t1`.`f3` AS `f3` from `test`.`t1` where ((`test`.`t1`.`f2` <= 3) and (3 <= `test`.`t1`.`f3`)) # Turn off MRR for unused key. MRR should be used. EXPLAIN SELECT /*+ NO_MRR(t1 idx1) */ * FROM t1 WHERE f2 <= 3 AND 3 <= f3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (2 workers) 2 SIMPLE t1 NULL range idx1,idx2 idx2 4 NULL 2 100.00 Using index condition; Using where; Using MRR Warnings: Note 1003 /* select#1 */ select /*+ NO_MRR(`t1`@`select#1` `idx1`) */ `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f2` AS `f2`,`test`.`t1`.`f3` AS `f3` from `test`.`t1` where ((`test`.`t1`.`f2` <= 3) and (3 <= `test`.`t1`.`f3`)) set optimizer_switch='mrr=off,mrr_cost_based=off'; EXPLAIN SELECT * FROM t1 WHERE f2 <= 3 AND 3 <= f3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (2 workers) 2 SIMPLE t1 NULL range idx1,idx2 idx2 4 NULL 2 100.00 Using index condition; Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f2` AS `f2`,`test`.`t1`.`f3` AS `f3` from `test`.`t1` where ((`test`.`t1`.`f2` <= 3) and (3 <= `test`.`t1`.`f3`)) # Turn on MRR. MRR should be used. EXPLAIN SELECT /*+ MRR(t1) */ * FROM t1 WHERE f2 <= 3 AND 3 <= f3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (2 workers) 2 SIMPLE t1 NULL range idx1,idx2 idx2 4 NULL 2 100.00 Using index condition; Using where; Using MRR Warnings: Note 1003 /* select#1 */ select /*+ MRR(`t1`@`select#1`) */ `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f2` AS `f2`,`test`.`t1`.`f3` AS `f3` from `test`.`t1` where ((`test`.`t1`.`f2` <= 3) and (3 <= `test`.`t1`.`f3`)) # Turn on MRR. MRR should be used. EXPLAIN SELECT /*+ MRR(t1 IDX2) */ * FROM t1 WHERE f2 <= 3 AND 3 <= f3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (2 workers) 2 SIMPLE t1 NULL range idx1,idx2 idx2 4 NULL 2 100.00 Using index condition; Using where; Using MRR Warnings: Note 1003 /* select#1 */ select /*+ MRR(`t1`@`select#1` `IDX2`) */ `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f2` AS `f2`,`test`.`t1`.`f3` AS `f3` from `test`.`t1` where ((`test`.`t1`.`f2` <= 3) and (3 <= `test`.`t1`.`f3`)) # Turn on MRR for unused key. MRR should not be used. EXPLAIN SELECT /*+ MRR(t1 idx1) */ * FROM t1 WHERE f2 <= 3 AND 3 <= f3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (2 workers) 2 SIMPLE t1 NULL range idx1,idx2 idx2 4 NULL 2 100.00 Using index condition; Using where Warnings: Note 1003 /* select#1 */ select /*+ MRR(`t1`@`select#1` `idx1`) */ `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f2` AS `f2`,`test`.`t1`.`f3` AS `f3` from `test`.`t1` where ((`test`.`t1`.`f2` <= 3) and (3 <= `test`.`t1`.`f3`)) set optimizer_switch='mrr=off,mrr_cost_based=on'; EXPLAIN SELECT * FROM t1 WHERE f2 <= 3 AND 3 <= f3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (2 workers) 2 SIMPLE t1 NULL range idx1,idx2 idx2 4 NULL 2 100.00 Using index condition; Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f2` AS `f2`,`test`.`t1`.`f3` AS `f3` from `test`.`t1` where ((`test`.`t1`.`f2` <= 3) and (3 <= `test`.`t1`.`f3`)) # Turn on MRR. MRR should be used. EXPLAIN SELECT /*+ MRR(t1) */ * FROM t1 WHERE f2 <= 3 AND 3 <= f3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (2 workers) 2 SIMPLE t1 NULL range idx1,idx2 idx2 4 NULL 2 100.00 Using index condition; Using where; Using MRR Warnings: Note 1003 /* select#1 */ select /*+ MRR(`t1`@`select#1`) */ `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f2` AS `f2`,`test`.`t1`.`f3` AS `f3` from `test`.`t1` where ((`test`.`t1`.`f2` <= 3) and (3 <= `test`.`t1`.`f3`)) # Turn on MRR. MRR should be used. EXPLAIN SELECT /*+ MRR(t1 idx2) */ * FROM t1 WHERE f2 <= 3 AND 3 <= f3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (2 workers) 2 SIMPLE t1 NULL range idx1,idx2 idx2 4 NULL 2 100.00 Using index condition; Using where; Using MRR Warnings: Note 1003 /* select#1 */ select /*+ MRR(`t1`@`select#1` `idx2`) */ `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f2` AS `f2`,`test`.`t1`.`f3` AS `f3` from `test`.`t1` where ((`test`.`t1`.`f2` <= 3) and (3 <= `test`.`t1`.`f3`)) # Turn on MRR for unused key. MRR should not be used. EXPLAIN SELECT /*+ MRR(t1 IDX1) */ * FROM t1 WHERE f2 <= 3 AND 3 <= f3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (2 workers) 2 SIMPLE t1 NULL range idx1,idx2 idx2 4 NULL 2 100.00 Using index condition; Using where Warnings: Note 1003 /* select#1 */ select /*+ MRR(`t1`@`select#1` `IDX1`) */ `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f2` AS `f2`,`test`.`t1`.`f3` AS `f3` from `test`.`t1` where ((`test`.`t1`.`f2` <= 3) and (3 <= `test`.`t1`.`f3`)) diff --git a/mysql-test/r/opt_hints_index.result-pq b/mysql-test/r/opt_hints_index.result-pq index 9a3d11935d89..4a8a2b6df7fb 100644 --- a/mysql-test/r/opt_hints_index.result-pq +++ b/mysql-test/r/opt_hints_index.result-pq @@ -14,70 +14,70 @@ Table Op Msg_type Msg_text test.t1 analyze status OK EXPLAIN SELECT /*+ INDEX(t1) JOIN_INDEX(t1) */ a FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL i_a 5 NULL 256 100.00 Using index Warnings: Warning 3126 Hint JOIN_INDEX(`t1` ) is ignored as conflicting/duplicated Note 1003 /* select#1 */ select /*+ INDEX(`t1`@`select#1`) */ `test`.`t1`.`a` AS `a` from `test`.`t1` EXPLAIN SELECT /*+ INDEX(t1 i_a, i_b, i_c) INDEX(t1 i_d) */ a FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL i_a 5 NULL 256 100.00 Using index Warnings: Warning 3126 Hint INDEX(`t1` `i_d`) is ignored as conflicting/duplicated Note 1003 /* select#1 */ select /*+ INDEX(`t1`@`select#1` `i_a`, `i_b`, `i_c`) */ `test`.`t1`.`a` AS `a` from `test`.`t1` EXPLAIN SELECT /*+ INDEX(t1 i_a) JOIN_INDEX(t1 i_a, i_b) JOIN_INDEX(t1 i_b) */ a FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL i_a 5 NULL 256 100.00 Using index Warnings: Warning 3126 Hint JOIN_INDEX(`t1` `i_a`, `i_b`) is ignored as conflicting/duplicated Note 1003 /* select#1 */ select /*+ INDEX(`t1`@`select#1` `i_a`) JOIN_INDEX(`t1`@`select#1` `i_b`) */ `test`.`t1`.`a` AS `a` from `test`.`t1` EXPLAIN SELECT /*+ INDEX(t1 i_a) GROUP_INDEX(t1 i_a, i_b) GROUP_INDEX(t1 i_b) */ a FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL i_a 5 NULL 256 100.00 Using index Warnings: Warning 3126 Hint GROUP_INDEX(`t1` `i_a`, `i_b`) is ignored as conflicting/duplicated Note 1003 /* select#1 */ select /*+ INDEX(`t1`@`select#1` `i_a`) GROUP_INDEX(`t1`@`select#1` `i_b`) */ `test`.`t1`.`a` AS `a` from `test`.`t1` EXPLAIN SELECT /*+ INDEX(t1 i_a) GROUP_INDEX(t1) */ a FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL i_a 5 NULL 256 100.00 Using index Warnings: Warning 3126 Hint GROUP_INDEX(`t1` ) is ignored as conflicting/duplicated Note 1003 /* select#1 */ select /*+ INDEX(`t1`@`select#1` `i_a`) */ `test`.`t1`.`a` AS `a` from `test`.`t1` EXPLAIN SELECT /*+ INDEX(t1 i_a) ORDER_INDEX(t1 i_a, i_b) ORDER_INDEX(t1 i_b) */ a FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL i_a 5 NULL 256 100.00 Using index Warnings: Warning 3126 Hint ORDER_INDEX(`t1` `i_a`, `i_b`) is ignored as conflicting/duplicated Note 1003 /* select#1 */ select /*+ INDEX(`t1`@`select#1` `i_a`) ORDER_INDEX(`t1`@`select#1` `i_b`) */ `test`.`t1`.`a` AS `a` from `test`.`t1` EXPLAIN SELECT /*+ INDEX(t1 i_a) ORDER_INDEX(t1) */ a FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL i_a 5 NULL 256 100.00 Using index Warnings: Warning 3126 Hint ORDER_INDEX(`t1` ) is ignored as conflicting/duplicated Note 1003 /* select#1 */ select /*+ INDEX(`t1`@`select#1` `i_a`) */ `test`.`t1`.`a` AS `a` from `test`.`t1` EXPLAIN SELECT /*+ ORDER_INDEX(t1 i_a, i_b) ORDER_INDEX(t1 i_b) INDEX(t1 i_c)*/ a FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL i_a 5 NULL 256 100.00 Using index Warnings: Warning 3126 Hint ORDER_INDEX(`t1` `i_b`) is ignored as conflicting/duplicated Note 1003 /* select#1 */ select /*+ INDEX(`t1`@`select#1` `i_c`) ORDER_INDEX(`t1`@`select#1` `i_a`, `i_b`) */ `test`.`t1`.`a` AS `a` from `test`.`t1` EXPLAIN SELECT /*+ ORDER_INDEX(t1 i_a, i_b) GROUP_INDEX(t1 i_b) INDEX(t1)*/ a FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL i_a 5 NULL 256 100.00 Using index Warnings: Warning 3126 Hint INDEX(`t1` ) is ignored as conflicting/duplicated Note 1003 /* select#1 */ select /*+ GROUP_INDEX(`t1`@`select#1` `i_b`) ORDER_INDEX(`t1`@`select#1` `i_a`, `i_b`) */ `test`.`t1`.`a` AS `a` from `test`.`t1` EXPLAIN SELECT /*+ ORDER_INDEX(t1) GROUP_INDEX(t1) INDEX(t1)*/ a FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL i_a 5 NULL 256 100.00 Using index Warnings: Warning 3126 Hint INDEX(`t1` ) is ignored as conflicting/duplicated @@ -95,25 +95,25 @@ Warnings: Note 1003 /* select#1 */ select /*+ INDEX(`t1`@`select#1` `i_a`, `i_ab`) */ `test`.`t1`.`a` AS `a` from `test`.`t1` where ((`test`.`t1`.`c` = 3) and (`test`.`t1`.`b` = 2) and (`test`.`t1`.`a` = 1)) EXPLAIN SELECT /*+ INDEX(t1 i_a, i_b) JOIN_INDEX(t1 i_c) */ * FROM t1 WHERE a = 1 AND b = 2 AND c = 3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 1 5.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 1 5.00 Parallel execute (2 workers) 2 SIMPLE t1 NULL ref i_a,i_b,i_c i_c 5 const 1 5.00 Using where Warnings: Note 1003 /* select#1 */ select /*+ INDEX(`t1`@`select#1` `i_a`, `i_b`) JOIN_INDEX(`t1`@`select#1` `i_c`) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c`,`test`.`t1`.`d` AS `d` from `test`.`t1` where ((`test`.`t1`.`c` = 3) and (`test`.`t1`.`b` = 2) and (`test`.`t1`.`a` = 1)) EXPLAIN SELECT /*+ NO_INDEX(t1 i_ab) */ a, max(b) FROM t1 WHERE b = 2 GROUP BY a; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 32 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 32 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ref i_a,i_b i_b 5 const 32 100.00 Using temporary Warnings: Note 1003 /* select#1 */ select /*+ NO_INDEX(`t1`@`select#1` `i_ab`) */ `test`.`t1`.`a` AS `a`,max(`test`.`t1`.`b`) AS `max(b)` from `test`.`t1` where (`test`.`t1`.`b` = 2) group by `test`.`t1`.`a` EXPLAIN SELECT /*+ NO_JOIN_INDEX(t1 i_ab) */ a, max(b) FROM t1 WHERE b = 2 GROUP BY a; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 32 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 32 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ref i_a,i_b,i_ab i_b 5 const 32 100.00 Using temporary Warnings: Note 1003 /* select#1 */ select /*+ NO_JOIN_INDEX(`t1`@`select#1` `i_ab`) */ `test`.`t1`.`a` AS `a`,max(`test`.`t1`.`b`) AS `max(b)` from `test`.`t1` where (`test`.`t1`.`b` = 2) group by `test`.`t1`.`a` EXPLAIN SELECT /*+ GROUP_INDEX(t1 i_ab) */ a, max(b) FROM t1 GROUP BY a; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index i_ab i_ab 10 NULL 256 100.00 Using index Warnings: Note 1003 /* select#1 */ select /*+ GROUP_INDEX(`t1`@`select#1` `i_ab`) */ `test`.`t1`.`a` AS `a`,max(`test`.`t1`.`b`) AS `max(b)` from `test`.`t1` group by `test`.`t1`.`a` @@ -125,41 +125,41 @@ Note 1003 /* select#1 */ select /*+ JOIN_INDEX(`t1`@`select#1` `i_ab`) */ `test` EXPLAIN SELECT /*+ NO_ORDER_INDEX(t1 i_ab) */ a FROM t1 ORDER BY a; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL i_a 5 NULL 256 100.00 Using index Warnings: Note 1003 /* select#1 */ select /*+ NO_ORDER_INDEX(`t1`@`select#1` `i_ab`) */ `test`.`t1`.`a` AS `a` from `test`.`t1` order by `test`.`t1`.`a` EXPLAIN SELECT /*+ NO_ORDER_INDEX(t1 i_a) */ a FROM t1 ORDER BY a; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL i_a 5 NULL 256 100.00 Using index; Using filesort Warnings: Note 1003 /* select#1 */ select /*+ NO_ORDER_INDEX(`t1`@`select#1` `i_a`) */ `test`.`t1`.`a` AS `a` from `test`.`t1` order by `test`.`t1`.`a` EXPLAIN SELECT /*+ ORDER_INDEX(t1 i_ab) */ a FROM t1 ORDER BY a; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL i_ab 10 NULL 256 100.00 Using index Warnings: Note 1003 /* select#1 */ select /*+ ORDER_INDEX(`t1`@`select#1` `i_ab`) */ `test`.`t1`.`a` AS `a` from `test`.`t1` order by `test`.`t1`.`a` EXPLAIN SELECT /*+ ORDER_INDEX(t1 i_a) */ a FROM t1 ORDER BY a; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL i_a 5 NULL 256 100.00 Using index Warnings: Note 1003 /* select#1 */ select /*+ ORDER_INDEX(`t1`@`select#1` `i_a`) */ `test`.`t1`.`a` AS `a` from `test`.`t1` order by `test`.`t1`.`a` EXPLAIN SELECT /*+ ORDER_INDEX(t1 i_a) */ * FROM t1 ORDER BY a; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 256 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL i_a 5 NULL 256 100.00 NULL Warnings: Note 1003 /* select#1 */ select /*+ ORDER_INDEX(`t1`@`select#1` `i_a`) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c`,`test`.`t1`.`d` AS `d` from `test`.`t1` order by `test`.`t1`.`a` EXPLAIN SELECT /*+ NO_INDEX(t1) */ * FROM t1 WHERE a = 1 AND b = 2 AND c = 3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 256 0.39 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 256 0.39 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 256 0.39 Using where Warnings: Note 1003 /* select#1 */ select /*+ NO_INDEX(`t1`@`select#1`) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c`,`test`.`t1`.`d` AS `d` from `test`.`t1` where ((`test`.`t1`.`c` = 3) and (`test`.`t1`.`b` = 2) and (`test`.`t1`.`a` = 1)) @@ -220,7 +220,7 @@ Note 1003 /* select#1 */ select /*+ INDEX(`tb`@`select#1` `i_a`) */ `test`.`tb`. EXPLAIN SELECT /*+ INDEX(t1 i_a) */ * FROM t1 IGNORE INDEX(i_a) WHERE a = 1 AND b = 2 AND c = 3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 32 0.39 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 32 0.39 Parallel execute (4 workers) 2 SIMPLE t1 NULL ref i_a i_a 5 const 32 0.39 Using where Warnings: Note 1003 /* select#1 */ select /*+ INDEX(`t1`@`select#1` `i_a`) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c`,`test`.`t1`.`d` AS `d` from `test`.`t1` IGNORE INDEX (`i_a`) where ((`test`.`t1`.`c` = 3) and (`test`.`t1`.`b` = 2) and (`test`.`t1`.`a` = 1)) diff --git a/mysql-test/r/opt_hints_index_merge.result-pq b/mysql-test/r/opt_hints_index_merge.result-pq index 567f8b657ae9..196db555eacf 100644 --- a/mysql-test/r/opt_hints_index_merge.result-pq +++ b/mysql-test/r/opt_hints_index_merge.result-pq @@ -64,14 +64,14 @@ Warning 3126 Hint NO_INDEX_MERGE(`t1` ) is ignored as conflicting/duplicated Note 1003 /* select#1 */ select /*+ INDEX_MERGE(`t1`@`select#1` `f2`, `f3`, `f4`) */ `test`.`t1`.`f2` AS `f2` from `test`.`t1` where ((`test`.`t1`.`f3` = 'b') and (`test`.`t1`.`f2` = 2) and (`test`.`t1`.`f4` = 'h')) EXPLAIN SELECT /*+ NO_INDEX_MERGE(t1) INDEX_MERGE(t1 f2, f3, f4) */ f2 FROM t1 WHERE f4 = 'h' AND f2 = 2 AND f3 = 'b'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 128 19.75 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 128 19.75 Parallel execute (4 workers) 2 SIMPLE t1 NULL ref f2,f3,f4 f2 5 const 128 19.75 Using where Warnings: Warning 3126 Hint INDEX_MERGE(`t1` `f2`, `f3`, `f4`) is ignored as conflicting/duplicated Note 1003 /* select#1 */ select /*+ NO_INDEX_MERGE(`t1`@`select#1`) */ `test`.`t1`.`f2` AS `f2` from `test`.`t1` where ((`test`.`t1`.`f3` = 'b') and (`test`.`t1`.`f2` = 2) and (`test`.`t1`.`f4` = 'h')) EXPLAIN SELECT /*+ NO_INDEX_MERGE(t1 f2, f4) INDEX_MERGE(t1 f2, f3, f4) */ f2 FROM t1 WHERE f4 = 'h' AND f2 = 2 AND f3 = 'b'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 128 19.75 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 128 19.75 Parallel execute (4 workers) 2 SIMPLE t1 NULL ref f2,f3,f4 f2 5 const 128 19.75 Using where Warnings: Warning 3126 Hint INDEX_MERGE(`t1` `f2`, `f3`, `f4`) is ignored as conflicting/duplicated @@ -159,7 +159,7 @@ Warnings: Note 1003 /* select#1 */ select /*+ INDEX_MERGE(`t1`@`select#1` `f2`, `PRIMARY`) */ count(0) AS `count(*)` from `test`.`t1` where ((`test`.`t1`.`f3` = 'c') and (`test`.`t1`.`f2` = 3) and (`test`.`t1`.`f5` > '')) EXPLAIN SELECT /*+ INDEX_MERGE(t1 f2, f4, f5) */ f3 FROM t1 WHERE f4 = 'h' AND f2 = 2 AND f3 = 'b'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 128 19.75 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 128 19.75 Parallel execute (4 workers) 2 SIMPLE t1 NULL ref f2,f3,f4 f2 5 const 128 19.75 Using where Warnings: Warning 3128 Unresolved name `t1`@`select#1` `f5` for INDEX_MERGE hint @@ -192,7 +192,7 @@ Note 1003 /* select#1 */ select /*+ INDEX_MERGE(`t1`@`select#1`) */ count(0) AS SET optimizer_switch='index_merge=off'; EXPLAIN SELECT COUNT(*) FROM t1 WHERE f4 = 'h' AND f2 = 2 AND f3 = 'b'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 128 19.75 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 128 19.75 Parallel execute (4 workers) 2 SIMPLE t1 NULL ref f2,f3,f4 f2 5 const 128 19.75 Using where Warnings: Note 1003 /* select#1 */ select count(0) AS `COUNT(*)` from `test`.`t1` where ((`test`.`t1`.`f3` = 'b') and (`test`.`t1`.`f2` = 2) and (`test`.`t1`.`f4` = 'h')) @@ -205,13 +205,13 @@ SET optimizer_switch='index_merge=on'; SET optimizer_switch='index_merge_intersection=on'; EXPLAIN SELECT /*+ NO_INDEX_MERGE(t1 f4) */ COUNT(*) FROM t1 WHERE f4 = 'h' AND f2 = 2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 128 44.44 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 128 44.44 Parallel execute (4 workers) 2 SIMPLE t1 NULL ref f2,f4 f2 5 const 128 44.44 Using where Warnings: Note 1003 /* select#1 */ select /*+ NO_INDEX_MERGE(`t1`@`select#1` `f4`) */ count(0) AS `COUNT(*)` from `test`.`t1` where ((`test`.`t1`.`f2` = 2) and (`test`.`t1`.`f4` = 'h')) EXPLAIN SELECT /*+ NO_INDEX_MERGE(t1) */ COUNT(*) FROM t1 WHERE f4 = 'h' AND f2 = 2 AND f3 = 'b'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 128 19.75 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 128 19.75 Parallel execute (4 workers) 2 SIMPLE t1 NULL ref f2,f3,f4 f2 5 const 128 19.75 Using where Warnings: Note 1003 /* select#1 */ select /*+ NO_INDEX_MERGE(`t1`@`select#1`) */ count(0) AS `COUNT(*)` from `test`.`t1` where ((`test`.`t1`.`f3` = 'b') and (`test`.`t1`.`f2` = 2) and (`test`.`t1`.`f4` = 'h')) @@ -222,7 +222,7 @@ Warnings: Note 1003 /* select#1 */ select /*+ NO_INDEX_MERGE(`t1`@`select#1` `f3`) */ count(0) AS `COUNT(*)` from `test`.`t1` where ((`test`.`t1`.`f2` = 2) and (`test`.`t1`.`f4` = 'h')) EXPLAIN SELECT /*+ NO_INDEX_MERGE(t1 f4) */ COUNT(*) FROM t1 WHERE f4 = 'h' AND f2 = 2 AND f3 = 'b'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 128 19.75 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 128 19.75 Parallel execute (4 workers) 2 SIMPLE t1 NULL ref f2,f3,f4 f2 5 const 128 19.75 Using where Warnings: Note 1003 /* select#1 */ select /*+ NO_INDEX_MERGE(`t1`@`select#1` `f4`) */ count(0) AS `COUNT(*)` from `test`.`t1` where ((`test`.`t1`.`f3` = 'b') and (`test`.`t1`.`f2` = 2) and (`test`.`t1`.`f4` = 'h')) @@ -244,7 +244,7 @@ Warnings: Note 1003 /* select#1 */ select /*+ NO_INDEX_MERGE(`t1`@`select#1` `f2`) */ count(0) AS `count(*)` from `test`.`t1` where ((`test`.`t1`.`f3` = 'c') and (`test`.`t1`.`f2` = 3) and (`test`.`t1`.`f5` > '')) EXPLAIN SELECT /*+ NO_INDEX_MERGE(t1 f3) */ count(*) FROM t1 WHERE f2 = 3 AND f5 > '' AND f3 = 'c'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 64 25.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 64 25.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range PRIMARY,f2,f3 f2 9 NULL 64 25.00 Using index condition; Using where Warnings: Note 1003 /* select#1 */ select /*+ NO_INDEX_MERGE(`t1`@`select#1` `f3`) */ count(0) AS `count(*)` from `test`.`t1` where ((`test`.`t1`.`f3` = 'c') and (`test`.`t1`.`f2` = 3) and (`test`.`t1`.`f5` > '')) @@ -276,7 +276,7 @@ Warnings: Note 1003 /* select#1 */ select /*+ INDEX_MERGE(`t1`@`select#1` `f4`, `f3`) */ count(0) AS `COUNT(*)` from `test`.`t1` where ((`test`.`t1`.`f3` = 'n') and (`test`.`t1`.`f2` = 5) and (`test`.`t1`.`f4` = 'x')) EXPLAIN SELECT /*+ INDEX_MERGE(t1 f2, f4) */ COUNT(*) FROM t1 WHERE f4 = 'h' AND f2 > 2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 128 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 128 33.33 Parallel execute (4 workers) 2 SIMPLE t1 NULL ref f2,f4 f4 5 const 128 33.33 Using index condition; Using where Warnings: Note 1003 /* select#1 */ select /*+ INDEX_MERGE(`t1`@`select#1` `f2`, `f4`) */ count(0) AS `COUNT(*)` from `test`.`t1` where ((`test`.`t1`.`f4` = 'h') and (`test`.`t1`.`f2` > 2)) @@ -288,7 +288,7 @@ Warnings: Note 1003 /* select#1 */ select /*+ INDEX_MERGE(`t1`@`select#1` `f2`, `f3`, `f4`) */ `test`.`t1`.`f1` AS `f1` from `test`.`t1` where ((`test`.`t1`.`f2` = 5) or (`test`.`t1`.`f3` = 'c') or (`test`.`t1`.`f4` = 'f')) EXPLAIN SELECT /*+ INDEX_MERGE(t1 f2, f3) */ f1 FROM t1 WHERE f2 = 5 OR f3 = 'c' OR f4 = 'f'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 288 53.12 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 288 53.12 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL f2,f3,f4 NULL NULL NULL 288 53.12 Using where Warnings: Note 1003 /* select#1 */ select /*+ INDEX_MERGE(`t1`@`select#1` `f2`, `f3`) */ `test`.`t1`.`f1` AS `f1` from `test`.`t1` where ((`test`.`t1`.`f2` = 5) or (`test`.`t1`.`f3` = 'c') or (`test`.`t1`.`f4` = 'f')) @@ -305,13 +305,13 @@ Note 1003 /* select#1 */ select /*+ INDEX_MERGE(`t1`@`select#1` `PRIMARY`, `f4`) SET optimizer_switch='index_merge_union=on,index_merge=on'; EXPLAIN SELECT /*+ NO_INDEX_MERGE(t1 f2, f3, f4) */ f1 FROM t1 WHERE f2 = 5 OR f3 = 'c' OR f4 = 'f'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 288 53.12 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 288 53.12 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL f2,f3,f4 NULL NULL NULL 288 53.12 Using where Warnings: Note 1003 /* select#1 */ select /*+ NO_INDEX_MERGE(`t1`@`select#1` `f2`, `f3`, `f4`) */ `test`.`t1`.`f1` AS `f1` from `test`.`t1` where ((`test`.`t1`.`f2` = 5) or (`test`.`t1`.`f3` = 'c') or (`test`.`t1`.`f4` = 'f')) EXPLAIN SELECT /*+ NO_INDEX_MERGE(t1 f2, f3) */ f1 FROM t1 WHERE (f2 = 5 OR f3 = 'c') AND (f1 = 4 OR f4 = 'f'); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 288 12.19 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 288 12.19 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL f2,f3,f4 NULL NULL NULL 288 12.19 Using where Warnings: Note 1003 /* select#1 */ select /*+ NO_INDEX_MERGE(`t1`@`select#1` `f2`, `f3`) */ `test`.`t1`.`f1` AS `f1` from `test`.`t1` where (((`test`.`t1`.`f2` = 5) or (`test`.`t1`.`f3` = 'c')) and ((`test`.`t1`.`f1` = 4) or (`test`.`t1`.`f4` = 'f'))) @@ -344,7 +344,7 @@ Warnings: Note 1003 /* select#1 */ select /*+ INDEX_MERGE(`t1`@`select#1` `f2`, `f3`) */ `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f2` AS `f2`,`test`.`t1`.`f3` AS `f3`,`test`.`t1`.`f4` AS `f4`,`test`.`t1`.`f5` AS `f5`,`test`.`t1`.`f6` AS `f6`,`test`.`t1`.`f7` AS `f7` from `test`.`t1` where (((`test`.`t1`.`f2` between 5 and 6) or (`test`.`t1`.`f3` = 'c')) and ((`test`.`t1`.`f2` between 5 and 6) or (`test`.`t1`.`f4` = 'f'))) EXPLAIN SELECT /*+ INDEX_MERGE(t1 f3) */ * FROM t1 WHERE (f2 BETWEEN 5 AND 6 OR f3 = 'c') AND (f2 BETWEEN 5 AND 6 OR f4 = 'f'); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 288 11.11 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 288 11.11 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL f2,f3,f4 NULL NULL NULL 288 11.11 Using where Warnings: Warning 3614 Invalid number of arguments for hint INDEX_MERGE(`t1` `f3`) @@ -358,13 +358,13 @@ Note 1003 /* select#1 */ select /*+ INDEX_MERGE(`t1`@`select#1` `f2`, `f4`) */ ` SET optimizer_switch='index_merge_sort_union=on,index_merge=on'; EXPLAIN SELECT /*+ NO_INDEX_MERGE(t1 f2, f4) */ * FROM t1 WHERE (f2 BETWEEN 5 AND 6 OR f3 = 'c') AND (f2 BETWEEN 5 AND 6 OR f4 = 'f'); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 288 11.11 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 288 11.11 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL f2,f3,f4 NULL NULL NULL 288 11.11 Using where Warnings: Note 1003 /* select#1 */ select /*+ NO_INDEX_MERGE(`t1`@`select#1` `f2`, `f4`) */ `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f2` AS `f2`,`test`.`t1`.`f3` AS `f3`,`test`.`t1`.`f4` AS `f4`,`test`.`t1`.`f5` AS `f5`,`test`.`t1`.`f6` AS `f6`,`test`.`t1`.`f7` AS `f7` from `test`.`t1` where (((`test`.`t1`.`f2` between 5 and 6) or (`test`.`t1`.`f3` = 'c')) and ((`test`.`t1`.`f2` between 5 and 6) or (`test`.`t1`.`f4` = 'f'))) EXPLAIN SELECT /*+ NO_INDEX_MERGE(t1 f2, f3) */ * FROM t1 WHERE (f2 BETWEEN 5 AND 6 OR f3 = 'c') AND (f2 BETWEEN 5 AND 6 OR f4 = 'f'); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 288 11.11 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 288 11.11 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL f2,f3,f4 NULL NULL NULL 288 11.11 Using where Warnings: Note 1003 /* select#1 */ select /*+ NO_INDEX_MERGE(`t1`@`select#1` `f2`, `f3`) */ `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f2` AS `f2`,`test`.`t1`.`f3` AS `f3`,`test`.`t1`.`f4` AS `f4`,`test`.`t1`.`f5` AS `f5`,`test`.`t1`.`f6` AS `f6`,`test`.`t1`.`f7` AS `f7` from `test`.`t1` where (((`test`.`t1`.`f2` between 5 and 6) or (`test`.`t1`.`f3` = 'c')) and ((`test`.`t1`.`f2` between 5 and 6) or (`test`.`t1`.`f4` = 'f'))) @@ -380,7 +380,7 @@ Warnings: Note 1003 /* select#1 */ select /*+ NO_INDEX_MERGE(`t1`@`select#1` `f3`) */ `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f2` AS `f2`,`test`.`t1`.`f3` AS `f3`,`test`.`t1`.`f4` AS `f4`,`test`.`t1`.`f5` AS `f5`,`test`.`t1`.`f6` AS `f6`,`test`.`t1`.`f7` AS `f7` from `test`.`t1` where (((`test`.`t1`.`f2` between 5 and 6) or (`test`.`t1`.`f3` = 'c')) and ((`test`.`t1`.`f2` between 5 and 6) or (`test`.`t1`.`f4` = 'f'))) EXPLAIN SELECT * FROM t1 WHERE (f2 BETWEEN 1 AND 200 OR f3 = 'c') AND (f2 BETWEEN 1 AND 200 OR f4 = 'f'); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 288 11.11 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 288 11.11 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL f2,f3,f4 NULL NULL NULL 288 11.11 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f2` AS `f2`,`test`.`t1`.`f3` AS `f3`,`test`.`t1`.`f4` AS `f4`,`test`.`t1`.`f5` AS `f5`,`test`.`t1`.`f6` AS `f6`,`test`.`t1`.`f7` AS `f7` from `test`.`t1` where (((`test`.`t1`.`f2` between 1 and 200) or (`test`.`t1`.`f3` = 'c')) and ((`test`.`t1`.`f2` between 1 and 200) or (`test`.`t1`.`f4` = 'f'))) @@ -442,7 +442,7 @@ Warnings: Note 1003 /* select#1 */ select /*+ INDEX_MERGE(`t1`@`select#1`) */ `test`.`t1`.`f3` AS `f3` from `test`.`t1` where ((`test`.`t1`.`f5` = '') and (`test`.`t1`.`f4` = 'g') and (`test`.`t1`.`f2` = 3)) EXPLAIN SELECT f3 FROM t1 WHERE f2 = 3 AND f4 = '' AND f5 > ''; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 64 25.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 64 25.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range PRIMARY,f2,f4 f2 9 NULL 64 25.00 Using index condition; Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`f3` AS `f3` from `test`.`t1` where ((`test`.`t1`.`f4` = '') and (`test`.`t1`.`f2` = 3) and (`test`.`t1`.`f5` > '')) @@ -479,27 +479,27 @@ Warnings: Note 1003 /* select#1 */ select /*+ INDEX_MERGE(`t1`@`select#1` `f3`, `f4`) */ `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f2` AS `f2`,`test`.`t1`.`f3` AS `f3`,`test`.`t1`.`f4` AS `f4`,`test`.`t1`.`f5` AS `f5`,`test`.`t1`.`f6` AS `f6`,`test`.`t1`.`f7` AS `f7` from `test`.`t1` IGNORE INDEX (`f3`) where ((`test`.`t1`.`f2` = 400) and ((`test`.`t1`.`f3` = 'x') or (`test`.`t1`.`f4` = 'n'))) EXPLAIN SELECT /*+ INDEX_MERGE(t1 f3, f4) */ * FROM t1 FORCE INDEX (f3) WHERE f2 = 400 AND (f3 = 'x' OR f4 = 'n'); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 288 7.29 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 288 7.29 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL f3 NULL NULL NULL 288 7.29 Using where Warnings: Note 1003 /* select#1 */ select /*+ INDEX_MERGE(`t1`@`select#1` `f3`, `f4`) */ `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f2` AS `f2`,`test`.`t1`.`f3` AS `f3`,`test`.`t1`.`f4` AS `f4`,`test`.`t1`.`f5` AS `f5`,`test`.`t1`.`f6` AS `f6`,`test`.`t1`.`f7` AS `f7` from `test`.`t1` FORCE INDEX (`f3`) where ((`test`.`t1`.`f2` = 400) and ((`test`.`t1`.`f3` = 'x') or (`test`.`t1`.`f4` = 'n'))) EXPLAIN SELECT /*+ INDEX_MERGE(t1 f2, f4) */ * FROM t1 IGNORE INDEX (f4) WHERE (f2 BETWEEN 1 AND 200 OR f3 = 'c') AND (f2 BETWEEN 1 AND 200 OR f4 = 'f'); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 288 11.11 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 288 11.11 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL f2,f3 NULL NULL NULL 288 11.11 Using where Warnings: Note 1003 /* select#1 */ select /*+ INDEX_MERGE(`t1`@`select#1` `f2`, `f4`) */ `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f2` AS `f2`,`test`.`t1`.`f3` AS `f3`,`test`.`t1`.`f4` AS `f4`,`test`.`t1`.`f5` AS `f5`,`test`.`t1`.`f6` AS `f6`,`test`.`t1`.`f7` AS `f7` from `test`.`t1` IGNORE INDEX (`f4`) where (((`test`.`t1`.`f2` between 1 and 200) or (`test`.`t1`.`f3` = 'c')) and ((`test`.`t1`.`f2` between 1 and 200) or (`test`.`t1`.`f4` = 'f'))) EXPLAIN SELECT /*+ INDEX_MERGE(t1 f2, f4) */ * FROM t1 FORCE INDEX (f4) WHERE (f2 BETWEEN 1 AND 200 OR f3 = 'c') AND (f2 BETWEEN 1 AND 200 OR f4 = 'f'); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 288 11.11 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 288 11.11 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL f4 NULL NULL NULL 288 11.11 Using where Warnings: Note 1003 /* select#1 */ select /*+ INDEX_MERGE(`t1`@`select#1` `f2`, `f4`) */ `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f2` AS `f2`,`test`.`t1`.`f3` AS `f3`,`test`.`t1`.`f4` AS `f4`,`test`.`t1`.`f5` AS `f5`,`test`.`t1`.`f6` AS `f6`,`test`.`t1`.`f7` AS `f7` from `test`.`t1` FORCE INDEX (`f4`) where (((`test`.`t1`.`f2` between 1 and 200) or (`test`.`t1`.`f3` = 'c')) and ((`test`.`t1`.`f2` between 1 and 200) or (`test`.`t1`.`f4` = 'f'))) EXPLAIN SELECT /*+ INDEX_MERGE(t1 f2, f3, f4) */ f2 FROM t1 IGNORE INDEX (f2, f3) WHERE f4 = 'h' AND f2 = 2 AND f3 = 'b'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 128 4.17 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 128 4.17 Parallel execute (4 workers) 2 SIMPLE t1 NULL ref f4 f4 5 const 128 4.17 Using index condition; Using where Warnings: Note 1003 /* select#1 */ select /*+ INDEX_MERGE(`t1`@`select#1` `f2`, `f3`, `f4`) */ `test`.`t1`.`f2` AS `f2` from `test`.`t1` IGNORE INDEX (`f3`) IGNORE INDEX (`f2`) where ((`test`.`t1`.`f3` = 'b') and (`test`.`t1`.`f2` = 2) and (`test`.`t1`.`f4` = 'h')) diff --git a/mysql-test/r/opt_hints_lowercase.result-pq b/mysql-test/r/opt_hints_lowercase.result-pq index 6205c820b35f..477ae8aa05b5 100644 --- a/mysql-test/r/opt_hints_lowercase.result-pq +++ b/mysql-test/r/opt_hints_lowercase.result-pq @@ -20,7 +20,7 @@ test.T1 analyze status OK EXPLAIN SELECT /*+ NO_BNL(t1) */ * FROM t1 t1, T1 T1 WHERE T1.f1 between 1 and 3 AND t1.f2 = T1.f2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE 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 2 SIMPLE T1 NULL range PRIMARY,f2_idx PRIMARY 4 NULL 3 10.00 Using where; Using join buffer (hash join) Warnings: @@ -28,7 +28,7 @@ Note 1003 /* select#1 */ select /*+ NO_BNL(`t1`@`select#1`) */ `test`.`t1`.`f1` EXPLAIN SELECT /*+ NO_BNL(T1) */ * FROM t1 t1, T1 T1 WHERE T1.f1 between 1 and 3 AND t1.f2 = T1.f2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE 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 2 SIMPLE T1 NULL range PRIMARY,f2_idx PRIMARY 4 NULL 3 10.00 Using where Warnings: diff --git a/mysql-test/r/opt_hints_subquery.result-pq b/mysql-test/r/opt_hints_subquery.result-pq index cb1c326dca6e..336d7c1f6b77 100644 --- a/mysql-test/r/opt_hints_subquery.result-pq +++ b/mysql-test/r/opt_hints_subquery.result-pq @@ -14,7 +14,7 @@ This query will normally use Table Pull-out EXPLAIN SELECT * FROM t2 WHERE t2.a IN (SELECT a FROM t1); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t2 NULL index a a 4 NULL 4 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 4 test.t2.a 1 100.00 Using index Warnings: @@ -42,7 +42,7 @@ SELECT * FROM t3 WHERE t3.a IN (SELECT a FROM t1 tx) AND t3.b IN (SELECT a FROM t1 ty); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (3 workers) 2 SIMPLE t3 NULL ALL a NULL NULL NULL 3 100.00 Using where 2 SIMPLE tx NULL eq_ref PRIMARY PRIMARY 4 test.t3.a 1 100.00 Using index 2 SIMPLE ty NULL eq_ref PRIMARY PRIMARY 4 test.t3.b 1 100.00 Using index @@ -117,7 +117,7 @@ SELECT * FROM t3 WHERE t3.a IN (SELECT /*+ QB_NAME(subq1) */ a FROM t1 tx WHERE tx.b IN (SELECT /*+ QB_NAME(subq2) */ a FROM t1 ty)); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (3 workers) 2 SIMPLE t3 NULL ALL a NULL NULL NULL 3 100.00 NULL 2 SIMPLE tx NULL eq_ref PRIMARY PRIMARY 4 test.t3.a 1 100.00 Using where 2 SIMPLE ty NULL eq_ref PRIMARY PRIMARY 4 test.tx.b 1 100.00 Using index @@ -178,7 +178,7 @@ EXPLAIN SELECT /*+ NO_SEMIJOIN(@subq1 LOOSESCAN) */ * FROM t2 WHERE t2.a IN (SELECT /*+ QB_NAME(subq1) */ a FROM t3); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t2 NULL index a a 4 NULL 4 100.00 Using index 2 SIMPLE t3 NULL ref a a 4 test.t2.a 1 100.00 Using index; FirstMatch(t2) Warnings: @@ -239,7 +239,7 @@ EXPLAIN SELECT /*+ SEMIJOIN(@subq1 FIRSTMATCH) */ * FROM t2 WHERE t2.a IN (SELECT /*+ QB_NAME(subq1) */ a FROM t3); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t2 NULL index a a 4 NULL 4 100.00 Using index 2 SIMPLE t3 NULL ref a a 4 test.t2.a 1 100.00 Using index; FirstMatch(t2) Warnings: @@ -294,7 +294,7 @@ EXPLAIN SELECT /*+ SEMIJOIN(@subq1 FIRSTMATCH, MATERIALIZATION, DUPSWEEDOUT) */ * FROM t2 WHERE t2.a IN (SELECT /*+ QB_NAME(subq1) */ a FROM t3); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t2 NULL index a a 4 NULL 4 100.00 Using index 2 SIMPLE t3 NULL ref a a 4 test.t2.a 1 100.00 Using index; FirstMatch(t2) Warnings: @@ -314,7 +314,7 @@ EXPLAIN SELECT * FROM t1 WHERE t1.b IN (SELECT /*+ QB_NAME(subq1) */ a FROM t3 WHERE t3.b = t1.a); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL PRIMARY NULL NULL NULL 4 100.00 Using where 2 SIMPLE t3 NULL ref a a 4 test.t1.b 1 33.33 Using where; FirstMatch(t1) Warnings: @@ -382,7 +382,7 @@ SELECT /*+ SEMIJOIN(@subq1 FIRSTMATCH) SEMIJOIN(@subq2 FIRSTMATCH) */ * FROM t1 WHERE t1.a IN (SELECT /*+ QB_NAME(subq1) */ a FROM t3) AND t1.b IN (SELECT /*+ QB_NAME(subq2) */ a FROM t2); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL PRIMARY NULL NULL NULL 4 100.00 Using where 2 SIMPLE t3 NULL ref a a 4 test.t1.a 1 100.00 Using index; FirstMatch(t1) 2 SIMPLE t2 NULL ref a a 4 test.t1.b 1 100.00 Using index; FirstMatch(t3) @@ -532,7 +532,7 @@ SELECT * FROM t1 WHERE t1.a IN (SELECT /*+ QB_NAME(subq1) */ a FROM t3 WHERE t3.b IN (SELECT /*+ QB_NAME(subq2) */ a FROM t2)); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL PRIMARY NULL NULL NULL 4 100.00 NULL 2 SIMPLE t3 NULL ref a a 4 test.t1.a 1 100.00 Using where 2 SIMPLE t2 NULL ref a a 4 test.t3.b 1 100.00 Using index; FirstMatch(t1) @@ -593,7 +593,7 @@ SELECT /*+ SEMIJOIN(@subq1 FIRSTMATCH) */ * FROM t1 WHERE t1.a IN (SELECT /*+ QB_NAME(subq1) */ a FROM t3 WHERE t3.b IN (SELECT /*+ QB_NAME(subq2) */ a FROM t2)); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL PRIMARY NULL NULL NULL 4 100.00 NULL 2 SIMPLE t3 NULL ref a a 4 test.t1.a 1 100.00 Using where 2 SIMPLE t2 NULL ref a a 4 test.t3.b 1 100.00 Using index; FirstMatch(t1) @@ -639,7 +639,7 @@ SELECT /*+ SEMIJOIN(@subq1 FIRSTMATCH, DUPSWEEDOUT) */ * FROM t1 WHERE t1.a IN (SELECT /*+ QB_NAME(subq1) */ a FROM t3 WHERE t3.b IN (SELECT /*+ QB_NAME(subq2) */ a FROM t2)); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL PRIMARY NULL NULL NULL 4 100.00 NULL 2 SIMPLE t3 NULL ref a a 4 test.t1.a 1 100.00 Using where 2 SIMPLE t2 NULL ref a a 4 test.t3.b 1 100.00 Using index; FirstMatch(t1) @@ -650,7 +650,7 @@ SELECT /*+ SEMIJOIN(@subq1 FIRSTMATCH, LOOSESCAN, DUPSWEEDOUT) */ * FROM t1 WHERE t1.a IN (SELECT /*+ QB_NAME(subq1) */ a FROM t3 WHERE t3.b IN (SELECT /*+ QB_NAME(subq2) */ a FROM t2)); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL PRIMARY NULL NULL NULL 4 100.00 NULL 2 SIMPLE t3 NULL ref a a 4 test.t1.a 1 100.00 Using where 2 SIMPLE t2 NULL ref a a 4 test.t3.b 1 100.00 Using index; FirstMatch(t1) @@ -662,7 +662,7 @@ DUPSWEEDOUT) */ * FROM t1 WHERE t1.a IN (SELECT /*+ QB_NAME(subq1) */ a FROM t3 WHERE t3.b IN (SELECT /*+ QB_NAME(subq2) */ a FROM t2)); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL PRIMARY NULL NULL NULL 4 100.00 NULL 2 SIMPLE t3 NULL ref a a 4 test.t1.a 1 100.00 Using where 2 SIMPLE t2 NULL ref a a 4 test.t3.b 1 100.00 Using index; FirstMatch(t1) @@ -697,7 +697,7 @@ SELECT /*+ NO_SEMIJOIN(@subq2 FIRSTMATCH) */ * FROM t1 WHERE t1.a IN (SELECT /*+ QB_NAME(subq1) */ a FROM t3 WHERE t3.b IN (SELECT /*+ QB_NAME(subq2) */ a FROM t2)); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL PRIMARY NULL NULL NULL 4 100.00 NULL 2 SIMPLE t3 NULL ref a a 4 test.t1.a 1 100.00 Using where 2 SIMPLE t2 NULL ref a a 4 test.t3.b 1 100.00 Using index; FirstMatch(t1) @@ -709,7 +709,7 @@ SELECT /*+ SEMIJOIN(@subq2 MATERIALIZATION) */ * FROM t1 WHERE t1.a IN (SELECT /*+ QB_NAME(subq1) */ a FROM t3 WHERE t3.b IN (SELECT /*+ QB_NAME(subq2) */ a FROM t2)); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL PRIMARY NULL NULL NULL 4 100.00 NULL 2 SIMPLE t3 NULL ref a a 4 test.t1.a 1 100.00 Using where 2 SIMPLE t2 NULL ref a a 4 test.t3.b 1 100.00 Using index; FirstMatch(t1) @@ -936,7 +936,7 @@ EXPLAIN SELECT /*+ SEMIJOIN(@subq) */ * FROM t2 WHERE t2.a IN (SELECT /*+ QB_NAME(subq) */ a FROM t1); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t2 NULL index a a 4 NULL 4 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 4 test.t2.a 1 100.00 Using index Warnings: @@ -947,7 +947,7 @@ EXPLAIN SELECT /*+ SEMIJOIN(@subq FIRSTMATCH) */ * FROM t2 WHERE t2.a IN (SELECT /*+ QB_NAME(subq) */ a FROM t1); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t2 NULL index a a 4 NULL 4 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 4 test.t2.a 1 100.00 Using index Warnings: @@ -991,7 +991,7 @@ SELECT /*+ SEMIJOIN(@subq1) SEMIJOIN(@subq2) */ * FROM t3 WHERE t3.a IN (SELECT /*+ QB_NAME(subq1) */ a FROM t1 tx) AND t3.b IN (SELECT /*+ QB_NAME(subq2) */ a FROM t1 ty); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (3 workers) 2 SIMPLE t3 NULL ALL a NULL NULL NULL 3 100.00 Using where 2 SIMPLE tx NULL eq_ref PRIMARY PRIMARY 4 test.t3.a 1 100.00 Using index 2 SIMPLE ty NULL eq_ref PRIMARY PRIMARY 4 test.t3.b 1 100.00 Using index @@ -1036,7 +1036,7 @@ SELECT /*+ SEMIJOIN(@subq1) SEMIJOIN(@subq2) */ * FROM t3 WHERE t3.a IN (SELECT /*+ QB_NAME(subq1) */ a FROM t1 tx WHERE tx.b IN (SELECT /*+ QB_NAME(subq2) */ a FROM t1 ty)); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (3 workers) 2 SIMPLE t3 NULL ALL a NULL NULL NULL 3 100.00 NULL 2 SIMPLE tx NULL eq_ref PRIMARY PRIMARY 4 test.t3.a 1 100.00 Using where 2 SIMPLE ty NULL eq_ref PRIMARY PRIMARY 4 test.tx.b 1 100.00 Using index @@ -1049,7 +1049,7 @@ This query will get LooseScan by default. FirstMatch now. EXPLAIN SELECT * FROM t2 WHERE t2.a IN (SELECT /*+ QB_NAME(subq1) */ a FROM t3); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t2 NULL index a a 4 NULL 4 100.00 Using index 2 SIMPLE t3 NULL ref a a 4 test.t2.a 1 100.00 Using index; FirstMatch(t2) Warnings: @@ -1059,7 +1059,7 @@ EXPLAIN SELECT /*+ NO_SEMIJOIN(@subq1 LOOSESCAN) */ * FROM t2 WHERE t2.a IN (SELECT /*+ QB_NAME(subq1) */ a FROM t3); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t2 NULL index a a 4 NULL 4 100.00 Using index 2 SIMPLE t3 NULL ref a a 4 test.t2.a 1 100.00 Using index; FirstMatch(t2) Warnings: @@ -1136,7 +1136,7 @@ EXPLAIN SELECT /*+ SEMIJOIN(@subq1 FIRSTMATCH, MATERIALIZATION, DUPSWEEDOUT) */ * FROM t2 WHERE t2.a IN (SELECT /*+ QB_NAME(subq1) */ a FROM t3); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t2 NULL index a a 4 NULL 4 100.00 Using index 2 SIMPLE t3 NULL ref a a 4 test.t2.a 1 100.00 Using index; FirstMatch(t2) Warnings: @@ -1177,7 +1177,7 @@ EXPLAIN SELECT /*+ SEMIJOIN(@subq1 LOOSESCAN, FIRSTMATCH) */ * FROM t1 WHERE t1.b IN (SELECT /*+ QB_NAME(subq1) */ a FROM t3 WHERE t3.b = t1.a); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL PRIMARY NULL NULL NULL 4 100.00 Using where 2 SIMPLE t3 NULL ref a a 4 test.t1.b 1 33.33 Using where; FirstMatch(t1) Warnings: @@ -1224,7 +1224,7 @@ SELECT /*+ SEMIJOIN(@subq1 FIRSTMATCH) SEMIJOIN(@subq2 FIRSTMATCH) */ * FROM t1 WHERE t1.a IN (SELECT /*+ QB_NAME(subq1) */ a FROM t3) AND t1.b IN (SELECT /*+ QB_NAME(subq2) */ a FROM t2); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL PRIMARY NULL NULL NULL 4 100.00 Using where 2 SIMPLE t3 NULL ref a a 4 test.t1.a 1 100.00 Using index; FirstMatch(t1) 2 SIMPLE t2 NULL ref a a 4 test.t1.b 1 100.00 Using index; FirstMatch(t3) @@ -1325,7 +1325,7 @@ EXPLAIN SELECT * FROM t1 WHERE t1.b IN (SELECT /*+ QB_NAME(subq1) */ a FROM t3 WHERE t3.b = t1.a); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL PRIMARY NULL NULL NULL 4 100.00 Using where 2 SIMPLE t3 NULL ref a a 4 test.t1.b 1 33.33 Using where; FirstMatch(t1) Warnings: @@ -1379,7 +1379,7 @@ SELECT /*+ SEMIJOIN(@subq1 FIRSTMATCH, MATERIALIZATION) */ * FROM t2 WHERE t2.a IN (SELECT /*+ QB_NAME(subq1) */ a FROM t3); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t2 NULL index a a 4 NULL 4 100.00 Using index 2 SIMPLE t3 NULL ref a a 4 test.t2.a 1 100.00 Using index; FirstMatch(t2) Warnings: @@ -1401,7 +1401,7 @@ EXPLAIN SELECT /*+ SEMIJOIN(@subq1 LOOSESCAN, FIRSTMATCH) */ * FROM t1 WHERE t1.b IN (SELECT /*+ QB_NAME(subq1) */ a FROM t3 WHERE t3.b = t1.a); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL PRIMARY NULL NULL NULL 4 100.00 Using where 2 SIMPLE t3 NULL ref a a 4 test.t1.b 1 33.33 Using where; FirstMatch(t1) Warnings: @@ -1459,7 +1459,7 @@ EXPLAIN SELECT * FROM t2 WHERE t2.a IN (SELECT /*+ SEMIJOIN() NO_SEMIJOIN() */ a FROM t1); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t2 NULL index a a 4 NULL 4 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 4 test.t2.a 1 100.00 Using index Warnings: @@ -1470,7 +1470,7 @@ EXPLAIN SELECT /*+ NO_SEMIJOIN(@subq) */ * FROM t2 WHERE t2.a IN (SELECT /*+ QB_NAME(subq) SEMIJOIN() */ a FROM t1); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t2 NULL index a a 4 NULL 4 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 4 test.t2.a 1 100.00 Using index Warnings: @@ -1491,7 +1491,7 @@ EXPLAIN SELECT /*+ SEMIJOIN(@subq) */ * FROM t2 WHERE t2.a IN (SELECT /*+ QB_NAME(subq) SEMIJOIN() */ a FROM t1); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t2 NULL index a a 4 NULL 4 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 4 test.t2.a 1 100.00 Using index Warnings: @@ -1761,7 +1761,7 @@ FROM t3 WHERE t3.a IN (SELECT /*+ QB_NAME(subq1) */ a FROM t1 tx) AND t3.b IN (SELECT /*+ QB_NAME(subq2) */ a FROM t1 ty); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (3 workers) 2 SIMPLE t3 NULL ALL a NULL NULL NULL 3 100.00 Using where 2 SIMPLE tx NULL eq_ref PRIMARY PRIMARY 4 test.t3.a 1 100.00 Using index 2 SIMPLE ty NULL eq_ref PRIMARY PRIMARY 4 test.t3.b 1 100.00 Using index @@ -1778,7 +1778,7 @@ FROM t3 WHERE t3.a IN (SELECT /*+ QB_NAME(subq1) */ a FROM t1 tx) AND t3.b IN (SELECT /*+ QB_NAME(subq2) */ a FROM t1 ty); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (3 workers) 2 SIMPLE t3 NULL ALL a NULL NULL NULL 3 100.00 Using where 2 SIMPLE tx NULL eq_ref PRIMARY PRIMARY 4 test.t3.a 1 100.00 Using index 2 SIMPLE ty NULL eq_ref PRIMARY PRIMARY 4 test.t3.b 1 100.00 Using index @@ -1858,7 +1858,7 @@ EXPLAIN SELECT /*+ SUBQUERY(@subq MATERIALIZATION) */ * FROM t2 WHERE t2.a IN (SELECT /*+ QB_NAME(subq) SEMIJOIN() */ a FROM t1); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t2 NULL index a a 4 NULL 4 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 4 test.t2.a 1 100.00 Using index Warnings: diff --git a/mysql-test/r/order_by_limit.result-pq b/mysql-test/r/order_by_limit.result-pq index 1dc844976364..3ca5fc01b84e 100644 --- a/mysql-test/r/order_by_limit.result-pq +++ b/mysql-test/r/order_by_limit.result-pq @@ -32,7 +32,7 @@ EXPLAIN SELECT * FROM t1 WHERE i<100 AND j<10 ORDER BY i LIMIT 5; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 9 77.34 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 77.34 Parallel execute (4 workers) 2 SIMPLE t1 NULL range i,j j 5 NULL 9 77.34 Using index condition; Using where; Using filesort Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`pk` AS `pk`,`test`.`t1`.`i` AS `i`,`test`.`t1`.`j` AS `j` from `test`.`t1` where ((`test`.`t1`.`i` < 100) and (`test`.`t1`.`j` < 10)) order by `test`.`t1`.`i` limit 5 @@ -80,7 +80,7 @@ EXPLAIN SELECT * FROM t1 STRAIGHT_JOIN t2 ON t1.i1=t2.i1 WHERE t1.pk > 7000 and t1.i1 > 2 ORDER BY t1.i1 LIMIT 2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 6 29.70 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 6 29.70 Parallel execute (4 workers) 2 SIMPLE t1 NULL index PRIMARY,k1,k2 k1 4 NULL 6 29.70 Using where 2 SIMPLE t2 NULL ref k1 k1 4 test.t1.i1 1 100.00 Using index Warnings: @@ -91,7 +91,7 @@ EXPLAIN SELECT * FROM t1 STRAIGHT_JOIN t2 ON t1.i1=t2.i1 WHERE t1.pk > 7000 and t1.i1 > 2 ORDER BY t1.i1 LIMIT 5; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 30 99.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 30 99.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range PRIMARY,k1,k2 PRIMARY 4 NULL 30 99.00 Using where; Using filesort 2 SIMPLE t2 NULL ref k1 k1 4 test.t1.i1 1 100.00 Using index Warnings: @@ -111,7 +111,7 @@ EXPLAIN SELECT * FROM t1 STRAIGHT_JOIN t2 ON t1.i1=t2.i1 WHERE t1.pk > 7000 and t1.i1 > 800 ORDER BY t1.i1 LIMIT 5; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 20 30.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 20 30.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range PRIMARY,k1,k2 k2 4 NULL 20 30.00 Using where; Using index 2 SIMPLE t2 NULL ref k1 k1 4 test.t1.i1 1 100.00 Using index Warnings: @@ -127,7 +127,7 @@ pk i1 i2 pk i1 EXPLAIN SELECT * FROM t1 STRAIGHT_JOIN t2 ON t1.i1=t2.i1 WHERE t1.pk > 7000 ORDER BY t1.i1 LIMIT 5; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 30 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 30 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range PRIMARY,k1,k2 PRIMARY 4 NULL 30 100.00 Using where; Using filesort 2 SIMPLE t2 NULL ref k1 k1 4 test.t1.i1 1 100.00 Using index Warnings: @@ -143,7 +143,7 @@ pk i1 i2 pk i1 EXPLAIN SELECT * FROM t1 STRAIGHT_JOIN t2 ON t1.i1=t2.i1 WHERE t1.pk > 1000 ORDER BY t1.i1 LIMIT 5; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 5 90.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 5 90.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index PRIMARY,k1,k2 k1 4 NULL 5 90.00 Using where 2 SIMPLE t2 NULL ref k1 k1 4 test.t1.i1 1 100.00 Using index Warnings: @@ -161,7 +161,7 @@ pk i1 i2 pk i1 EXPLAIN SELECT t1.i1,t1.i2 FROM t1 STRAIGHT_JOIN t2 ON t1.i1=t2.i1 WHERE t1.pk > 100 ORDER BY t1.i1 LIMIT 5; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 5 99.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 5 99.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index PRIMARY,k1,k2 k1 4 NULL 5 99.00 Using where 2 SIMPLE t2 NULL ref k1 k1 4 test.t1.i1 1 100.00 Using index Warnings: @@ -179,7 +179,7 @@ i1 i2 EXPLAIN SELECT * FROM t1 STRAIGHT_JOIN t2 ON t1.i1=t2.i1 WHERE t1.pk > 7000 and t2.pk = 100 ORDER BY t1.i1 LIMIT 5; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 30 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 30 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range PRIMARY,k1,k2 PRIMARY 4 NULL 30 100.00 Using where; Using filesort 2 SIMPLE t2 NULL const PRIMARY,k1 PRIMARY 4 const 1 5.00 Using where Warnings: @@ -200,7 +200,7 @@ test.t2 analyze status OK EXPLAIN SELECT * FROM t1 STRAIGHT_JOIN t2 ON t1.i1=t2.i1 WHERE t1.pk > 7000 ORDER BY t1.i1 LIMIT 5; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 6 30.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 6 30.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index PRIMARY,k1,k2 k1 4 NULL 6 30.00 Using where 2 SIMPLE t2 NULL ref k1 k1 4 test.t1.i1 2 100.00 Using index Warnings: @@ -218,7 +218,7 @@ pk i1 i2 pk i1 EXPLAIN SELECT * FROM t1 FORCE INDEX FOR ORDER BY (k2) STRAIGHT_JOIN t2 ON t1.i1=t2.i1 WHERE t1.pk > 7000 ORDER BY t1.i1 LIMIT 5; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 6 30.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 6 30.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index PRIMARY,k1,k2 k2 8 NULL 6 30.00 Using where; Using index 2 SIMPLE t2 NULL ref k1 k1 4 test.t1.i1 2 100.00 Using index Warnings: @@ -310,7 +310,7 @@ ON t2.pk = t1.col_int_unique OR t2.col_int_unique = t1.col_int_key ORDER BY field1 LIMIT 2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL col_int_unique,col_int_key NULL NULL NULL 4 100.00 Using filesort 2 SIMPLE t2 NULL ALL PRIMARY,col_int_unique NULL NULL NULL 3 55.56 Range checked for each record (index map: 0x3) Warnings: diff --git a/mysql-test/r/ps_ddl1.result-pq b/mysql-test/r/ps_ddl1.result-pq index bb0d2eb6810c..f252b96274a2 100644 --- a/mysql-test/r/ps_ddl1.result-pq +++ b/mysql-test/r/ps_ddl1.result-pq @@ -265,7 +265,7 @@ insert into t1 select a + 1, b + 1 from t1; insert into t1 select a + 2, b + 2 from t1; insert into t1 select a + 4, b + 4 from t1; insert into t1 select a + 8, b + 8 from t1; -# Optimizer strategy: Possible keys = NULL , Extra = Parallel execute (1 workers) +# Optimizer strategy: Possible keys = NULL , Extra = Parallel execute (4 workers) prepare stmt from "select avg(a) from t1"; execute stmt; avg(a) @@ -280,7 +280,7 @@ call p_verify_reprepare_count(0); SUCCESS alter table t1 drop index t1_unq_idx; -# Optimizer strategy: Possible keys = NULL , Extra = Parallel execute (1 workers) +# Optimizer strategy: Possible keys = NULL , Extra = Parallel execute (4 workers) execute stmt; avg(a) 7.5000 @@ -295,7 +295,7 @@ SUCCESS # select AVG() + optimizer uses table scan meets a new index alter table t1 add unique index t1_unq_idx(a); -# Optimizer strategy: Possible keys = NULL , Extra = Parallel execute (1 workers) +# Optimizer strategy: Possible keys = NULL , Extra = Parallel execute (4 workers) execute stmt; avg(a) 7.5000 diff --git a/mysql-test/suite/innodb/r/innodb-index_ucs2.result-pq b/mysql-test/suite/innodb/r/innodb-index_ucs2.result-pq index 63cccbc980ed..bdf6dcc815f2 100644 --- a/mysql-test/suite/innodb/r/innodb-index_ucs2.result-pq +++ b/mysql-test/suite/innodb/r/innodb-index_ucs2.result-pq @@ -40,7 +40,7 @@ a b c d 10 10 kkk iii explain select * from t1 force index(b) order by b; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 6 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 6 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL b 5 NULL 6 100.00 NULL Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c`,`test`.`t1`.`d` AS `d` from `test`.`t1` FORCE INDEX (`b`) order by `test`.`t1`.`b` @@ -94,19 +94,19 @@ a b c d 11 11 aaa mmm explain select * from t1 force index(b) order by b; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 7 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 7 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL b 5 NULL 7 100.00 NULL Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c`,`test`.`t1`.`d` AS `d` from `test`.`t1` FORCE INDEX (`b`) order by `test`.`t1`.`b` explain select * from t1 force index(c) order by c; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 7 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 7 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL c 21 NULL 7 100.00 NULL Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c`,`test`.`t1`.`d` AS `d` from `test`.`t1` FORCE INDEX (`c`) order by `test`.`t1`.`c` explain select * from t1 force index(d) order by d; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 7 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 7 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL d 43 NULL 7 100.00 NULL Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c`,`test`.`t1`.`d` AS `d` from `test`.`t1` FORCE INDEX (`d`) order by `test`.`t1`.`d` diff --git a/mysql-test/suite/innodb/r/innodb_bug30423.result-pq b/mysql-test/suite/innodb/r/innodb_bug30423.result-pq index 7144f9daa72f..8f4f3116d278 100644 --- a/mysql-test/suite/innodb/r/innodb_bug30423.result-pq +++ b/mysql-test/suite/innodb/r/innodb_bug30423.result-pq @@ -48,7 +48,7 @@ ON orgs.org_id=sa_opportunities.org_id LEFT JOIN bug30243_2 contacts ON orgs.org_id=contacts.org_id ; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL ROWS 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL ROWS 100.00 Parallel execute (4 workers) 2 SIMPLE orgs NULL index NULL org_id 4 NULL ROWS 100.00 Using index 2 SIMPLE sa_opportunities NULL ref org_id org_id 5 test.orgs.org_id ROWS 100.00 Using index 2 SIMPLE contacts NULL ref contacts$org_id contacts$org_id 5 test.orgs.org_id ROWS 100.00 Using index @@ -77,7 +77,7 @@ ON orgs.org_id=sa_opportunities.org_id LEFT JOIN bug30243_2 contacts ON orgs.org_id=contacts.org_id; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL ROWS 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL ROWS 100.00 Parallel execute (4 workers) 2 SIMPLE orgs NULL index NULL org_id 4 NULL ROWS 100.00 Using index 2 SIMPLE sa_opportunities NULL ref org_id org_id 5 test.orgs.org_id ROWS 100.00 Using index 2 SIMPLE contacts NULL ref contacts$org_id contacts$org_id 5 test.orgs.org_id ROWS 100.00 Using index diff --git a/mysql-test/suite/innodb/r/innodb_bulk_create_index_small.result-pq b/mysql-test/suite/innodb/r/innodb_bulk_create_index_small.result-pq index 9f50903dd914..beac1251340a 100644 --- a/mysql-test/suite/innodb/r/innodb_bulk_create_index_small.result-pq +++ b/mysql-test/suite/innodb/r/innodb_bulk_create_index_small.result-pq @@ -29,13 +29,13 @@ test.t1 check status OK /* Select by index. */ EXPLAIN SELECT * FROM t1 WHERE id = 10; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (2 workers) 2 SIMPLE t1 NULL ref idx_id idx_id 5 const 1 100.00 NULL Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`class` AS `class`,`test`.`t1`.`id` AS `id`,`test`.`t1`.`title` AS `title` from `test`.`t1` where (`test`.`t1`.`id` = 10) EXPLAIN SELECT * FROM t1 WHERE title = 'a10'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (2 workers) 2 SIMPLE t1 NULL ref idx_title idx_title 403 const 1 100.00 NULL Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`class` AS `class`,`test`.`t1`.`id` AS `id`,`test`.`t1`.`title` AS `title` from `test`.`t1` where (`test`.`t1`.`title` = 'a10') @@ -98,13 +98,13 @@ test.t1 check status OK /* Select by index. */ EXPLAIN SELECT * FROM t1 WHERE id = 10; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (2 workers) 2 SIMPLE t1 NULL ref idx_id idx_id 5 const 1 100.00 NULL Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`class` AS `class`,`test`.`t1`.`id` AS `id`,`test`.`t1`.`title` AS `title` from `test`.`t1` where (`test`.`t1`.`id` = 10) EXPLAIN SELECT * FROM t1 WHERE title = 'a10'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 1 100.00 Parallel execute (2 workers) 2 SIMPLE t1 NULL ref idx_title idx_title 403 const 1 100.00 NULL Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`class` AS `class`,`test`.`t1`.`id` AS `id`,`test`.`t1`.`title` AS `title` from `test`.`t1` where (`test`.`t1`.`title` = 'a10') diff --git a/mysql-test/suite/innodb/r/select_count_perf.result-pq b/mysql-test/suite/innodb/r/select_count_perf.result-pq index 17c9358dd0b8..1f58c68c92a9 100644 --- a/mysql-test/suite/innodb/r/select_count_perf.result-pq +++ b/mysql-test/suite/innodb/r/select_count_perf.result-pq @@ -1286,7 +1286,7 @@ COUNT(*) # EXPLAIN SELECT * FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL # 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL # 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL # 100.00 NULL Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`c1` AS `c1`,`test`.`t1`.`c2` AS `c2`,`test`.`t1`.`c3` AS `c3`,`test`.`t1`.`c4` AS `c4` from `test`.`t1` @@ -1307,31 +1307,31 @@ Warnings: Note 1003 /* select#1 */ select count(`test`.`t1`.`c1`) AS `COUNT(c1)` from `test`.`t1` EXPLAIN SELECT COUNT(c2) FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL # 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL # 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL k2 5 NULL # 100.00 Using index Warnings: Note 1003 /* select#1 */ select count(`test`.`t1`.`c2`) AS `COUNT(c2)` from `test`.`t1` EXPLAIN SELECT COUNT(c3) FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL # 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL # 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL # 100.00 NULL Warnings: Note 1003 /* select#1 */ select count(`test`.`t1`.`c3`) AS `COUNT(c3)` from `test`.`t1` EXPLAIN SELECT SUM(c1) FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL # 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL # 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL k2 5 NULL # 100.00 Using index Warnings: Note 1003 /* select#1 */ select sum(`test`.`t1`.`c1`) AS `SUM(c1)` from `test`.`t1` EXPLAIN SELECT SUM(c2) FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL # 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL # 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL k2 5 NULL # 100.00 Using index Warnings: Note 1003 /* select#1 */ select sum(`test`.`t1`.`c2`) AS `SUM(c2)` from `test`.`t1` EXPLAIN SELECT AVG(c1), MAX(c1), MIN(c2), AVG(c3), SUM(c4) FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL # 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL # 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL # 100.00 NULL Warnings: Note 1003 /* select#1 */ select avg(`test`.`t1`.`c1`) AS `AVG(c1)`,max(`test`.`t1`.`c1`) AS `MAX(c1)`,min(`test`.`t1`.`c2`) AS `MIN(c2)`,avg(`test`.`t1`.`c3`) AS `AVG(c3)`,sum(`test`.`t1`.`c4`) AS `SUM(c4)` from `test`.`t1`