From f0d87e8f06a4931ae549f289d006f72bbf5cc873 Mon Sep 17 00:00:00 2001 From: PeterWeiWang <715533650@qq.com> Date: Mon, 18 Oct 2021 16:26:08 +0800 Subject: [PATCH] =?UTF-8?q?mtr=E4=BF=AE=E6=94=B9=20=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E5=8F=98=E6=9B=B4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mysql-test/r/binary.result-pq | 4 +- mysql-test/r/case.result-pq | 2 +- mysql-test/r/cast.result-pq | 8 +- mysql-test/r/compare.result-pq | 4 +- mysql-test/r/ctype_utf8mb4_innodb.result-pq | 14 +- mysql-test/r/func_str.result-pq | 12 +- mysql-test/r/greedy_search.result-pq | 12 +- mysql-test/r/group_by_fd_no_prot.result-pq | 2 +- mysql-test/r/heap.result-pq | 2 +- mysql-test/r/histogram_equi_height.result-pq | 450 +++++++++--------- mysql-test/r/join_cache_bka.result-pq | 2 +- mysql-test/r/join_cache_bka_nobnl.result-pq | 2 +- mysql-test/r/join_cache_bnl.result-pq | 2 +- mysql-test/r/join_cache_nojb.result-pq | 2 +- mysql-test/r/join_nested.result-pq | 2 +- mysql-test/r/join_nested_bka.result-pq | 2 +- mysql-test/r/join_nested_bka_nobnl.result-pq | 2 +- mysql-test/r/join_outer.result-pq | 18 +- mysql-test/r/join_outer_bka.result-pq | 18 +- mysql-test/r/join_outer_bka_nobnl.result-pq | 18 +- mysql-test/r/join_outer_innodb.result-pq | 4 +- mysql-test/r/opt_costmodel.result-pq | 12 +- mysql-test/r/range_all.result-pq | 12 +- mysql-test/r/range_icp.result-pq | 12 +- mysql-test/r/range_icp_mrr.result-pq | 12 +- mysql-test/r/range_mrr.result-pq | 12 +- mysql-test/r/range_mrr_cost.result-pq | 12 +- mysql-test/r/range_none.result-pq | 12 +- mysql-test/r/row.result-pq | 18 +- mysql-test/r/sp.result-pq | 2 +- mysql-test/r/subquery_antijoin.result-pq | 16 +- mysql-test/r/subquery_exists.result-pq | 30 +- ...subquery_sj_firstmatch_bka_nobnl.result-pq | 14 +- mysql-test/r/subquery_sj_innodb_all.result-pq | 2 +- .../r/subquery_sj_innodb_all_bka.result-pq | 2 +- ...subquery_sj_innodb_all_bka_nobnl.result-pq | 2 +- mysql-test/r/subquery_sj_loosescan.result-pq | 6 +- .../r/subquery_sj_loosescan_bka.result-pq | 6 +- .../subquery_sj_loosescan_bka_nobnl.result-pq | 6 +- mysql-test/r/subquery_sj_mat.result-pq | 2 +- mysql-test/r/subquery_sj_mat_bka.result-pq | 2 +- .../r/subquery_sj_mat_bka_nobnl.result-pq | 2 +- mysql-test/r/subselect_debug.result-pq | 2 +- mysql-test/r/truth_value_transform.result-pq | 14 +- mysql-test/r/type_date.result-pq | 2 +- mysql-test/r/type_datetime.result-pq | 2 + mysql-test/r/type_enum.result-pq | 2 +- mysql-test/r/type_time.result-pq | 160 +++---- mysql-test/r/type_varchar.result-pq | 72 +-- mysql-test/r/user_var.result-pq | 4 +- mysql-test/r/view.result-pq | 6 +- .../r/window_functions_explain.result-pq | 12 +- mysql-test/r/with_non_recursive.result-pq | 20 +- .../suite/gcol/r/gcol_keys_innodb.result-pq | 4 +- ...db_bulk_create_index_replication.result-pq | 4 +- .../r/instant_add_column_basic.result-pq | 12 +- .../opt_trace/r/eq_range_statistics.result-pq | 2 +- .../suite/opt_trace/r/histograms.result-pq | 26 +- .../r/opt_hints_index_merge.result-pq | 4 +- .../suite/opt_trace/r/skip_scan.result-pq | 8 +- .../suite/parallel_query/r/pq_abort.result-pq | 4 +- .../parallel_query/r/pq_coverage.result-pq | 2 +- .../parallel_query/r/pq_explain.result-pq | 108 ++--- .../parallel_query/r/pq_group_by.result-pq | 4 +- .../parallel_query/r/pq_having.result-pq | 6 +- .../suite/parallel_query/r/pq_join.result-pq | 4 +- .../parallel_query/r/pq_jt_ref.result-pq | 2 +- .../parallel_query/r/pq_mdl_lock.result-pq | 2 +- .../parallel_query/r/pq_order_by.result-pq | 2 +- .../r/pq_range_scan_reverse.result-pq | 14 +- .../parallel_query/r/pq_range_sec.result-pq | 8 +- .../r/pq_ref_reverse_scan.result-pq | 2 +- .../r/pq_reverse_index_scan.result-pq | 6 +- .../parallel_query/r/pq_sql_cond.result-pq | 2 +- .../r/pq_tempory_table_release.result-pq | 2 +- .../suite/parallel_query/r/pq_tpch.result-pq | 14 +- .../r/pq_worker_error.result-pq | 2 +- .../parts/r/partition_alter3_innodb.result-pq | 8 +- .../r/max_seeks_for_key_func.result-pq | 10 +- 79 files changed, 668 insertions(+), 666 deletions(-) diff --git a/mysql-test/r/binary.result-pq b/mysql-test/r/binary.result-pq index fe2c7df0938f..36823d37ac63 100644 --- a/mysql-test/r/binary.result-pq +++ b/mysql-test/r/binary.result-pq @@ -181,7 +181,7 @@ hex(a) 1F9480179366F2BF567E1C4B964C1EF029087575 EXPLAIN SELECT hex(a) FROM t1 order by a; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE 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 idx 20 NULL 3 100.00 Using index Warnings: Note 1003 /* select#1 */ select hex(`test`.`t1`.`a`) AS `hex(a)` from `test`.`t1` order by `test`.`t1`.`a` @@ -191,7 +191,7 @@ hex(a) EXPLAIN SELECT hex(a) from t1 WHERE a=unhex('1F9480179366F2BF567E1C4B964C1EF029082020'); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE 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 idx 20 const 1 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select hex(`test`.`t1`.`a`) AS `hex(a)` from `test`.`t1` where (`test`.`t1`.`a` = (unhex('1F9480179366F2BF567E1C4B964C1EF029082020'))) diff --git a/mysql-test/r/case.result-pq b/mysql-test/r/case.result-pq index fbb4b6cf8787..be1c85fe9d19 100644 --- a/mysql-test/r/case.result-pq +++ b/mysql-test/r/case.result-pq @@ -68,7 +68,7 @@ Table Op Msg_type Msg_text test.t1 analyze status OK explain select case a when 1 then 2 when 2 then 3 else 0 end as fcase, count(*) from t1 group by fcase; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE 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 Using temporary Warnings: Note 1003 /* select#1 */ select (case `test`.`t1`.`a` when 1 then 2 when 2 then 3 else 0 end) AS `fcase`,count(0) AS `count(*)` from `test`.`t1` group by `fcase` diff --git a/mysql-test/r/cast.result-pq b/mysql-test/r/cast.result-pq index 16543ce6b463..bcb16468a34e 100644 --- a/mysql-test/r/cast.result-pq +++ b/mysql-test/r/cast.result-pq @@ -873,7 +873,7 @@ INSERT INTO t1 VALUES (3,1,'1988-12-20'); INSERT INTO t1 VALUES (4,2,'1972-12-12'); EXPLAIN SELECT MIN(t1.userID) = MIN(date) FROM t1 GROUP BY userid; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE 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 Using temporary Warnings: Note 1003 /* select#1 */ select (cast(min(``.`min(t1.userID)`) as double) = cast(min(``.`min(t1.``date``)`) as double)) AS `MIN(t1.userID) = MIN(date)` from `test`.`t1` group by `test`.`t1`.`userID` @@ -894,19 +894,19 @@ Note 1003 /* select#1 */ select `test`.`t1`.`date` AS `date`,(cast(`test`.`t1`.` # EXPLAIN SELECT * from t1 WHERE userID = DATE'2012-02-20'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 25.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 25.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 4 25.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`spID` AS `spID`,`test`.`t1`.`userID` AS `userID`,`test`.`t1`.`date` AS `date` from `test`.`t1` where (`test`.`t1`.`userID` = DATE'2012-02-20') EXPLAIN SELECT * FROM t1 WHERE date = NULL; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 25.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 25.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 4 25.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`spID` AS `spID`,`test`.`t1`.`userID` AS `userID`,`test`.`t1`.`date` AS `date` from `test`.`t1` where (`test`.`t1`.`date` = NULL) EXPLAIN SELECT * FROM t1 WHERE date = CAST('20:21:22' AS TIME); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 25.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 25.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 4 25.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`spID` AS `spID`,`test`.`t1`.`userID` AS `userID`,`test`.`t1`.`date` AS `date` from `test`.`t1` where (`test`.`t1`.`date` = (cast('20:21:22' as time))) diff --git a/mysql-test/r/compare.result-pq b/mysql-test/r/compare.result-pq index 65b0102920d7..be2b7551e6fc 100644 --- a/mysql-test/r/compare.result-pq +++ b/mysql-test/r/compare.result-pq @@ -6,7 +6,7 @@ Table Op Msg_type Msg_text test.t1 analyze status OK explain select * from t1 where id=000000000001; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE 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 index PRIMARY PRIMARY 48 NULL 2 50.00 Using where; Using index Warnings: Warning 1739 Cannot use ref access on index 'PRIMARY' due to type or collation conversion on field 'id' @@ -82,7 +82,7 @@ Table Op Msg_type Msg_text test.t1 analyze status OK EXPLAIN SELECT b,c FROM t1 WHERE b = 1 AND CONCAT(b,c) = '0101'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL x 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL x 33.33 Parallel execute (3 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL x 33.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c` from `test`.`t1` where ((`test`.`t1`.`b` = 1) and (concat('01',`test`.`t1`.`c`) = '0101')) diff --git a/mysql-test/r/ctype_utf8mb4_innodb.result-pq b/mysql-test/r/ctype_utf8mb4_innodb.result-pq index f1b2cb63bcf0..fae6b2559ba7 100644 --- a/mysql-test/r/ctype_utf8mb4_innodb.result-pq +++ b/mysql-test/r/ctype_utf8mb4_innodb.result-pq @@ -1502,25 +1502,25 @@ Kali Kali 2+4 Kali Kali 2+4 EXPLAIN SELECT a FROM t1 WHERE a LIKE 'Käli Käli 2+4'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE 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 a a 53 NULL 4 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where (`test`.`t1`.`a` like 'Käli Käli 2+4') EXPLAIN SELECT a FROM t1 WHERE a = 'Käli Käli 2+4'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE 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 ref a a 53 const 4 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where (`test`.`t1`.`a` = 'Käli Käli 2+4') EXPLAIN SELECT a FROM t2 WHERE a LIKE 'Kali Kali 2+4'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE 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 range a a 14 NULL 4 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a` from `test`.`t2` where (`test`.`t2`.`a` like 'Kali Kali 2+4') EXPLAIN SELECT a FROM t2 WHERE a = 'Kali Kali 2+4'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE 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 ref a a 14 const 4 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a` from `test`.`t2` where (`test`.`t2`.`a` = 'Kali Kali 2+4') @@ -1626,7 +1626,7 @@ COUNT(*) 1 explain select a from t1 group by a; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE 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 temporary Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` group by `test`.`t1`.`a` @@ -1639,7 +1639,7 @@ insert into t1 values ('123'), ('456'); explain select substr(z.a,-1), z.a from t1 as y join t1 as z on y.a=z.a order by 1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE 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 y NULL ALL NULL NULL NULL NULL 2 100.00 Using temporary; Using filesort 2 SIMPLE z NULL ALL NULL NULL NULL NULL 2 50.00 Using where; Using join buffer (hash join) Warnings: @@ -1662,7 +1662,7 @@ crash INSERT INTO crashtest VALUES ('-1000'); EXPLAIN SELECT * FROM crashtest ORDER BY CHAR(crash USING utf8mb4); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE 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 crashtest NULL ALL NULL NULL NULL NULL 4 100.00 Using filesort Warnings: Note 1003 /* select#1 */ select `crashtest`.`crashtest`.`crash` AS `crash` from `crashtest`.`crashtest` order by `char(crashtest.crash)` diff --git a/mysql-test/r/func_str.result-pq b/mysql-test/r/func_str.result-pq index 5bae134c682c..f545bc1a6f48 100644 --- a/mysql-test/r/func_str.result-pq +++ b/mysql-test/r/func_str.result-pq @@ -1246,31 +1246,31 @@ CREATE TABLE t1 (s varchar(10)); INSERT INTO t1 VALUES ('yadda'), ('yaddy'); EXPLAIN SELECT s FROM t1 WHERE TRIM(s) > 'ab'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE 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`.`s` AS `s` from `test`.`t1` where (trim(`test`.`t1`.`s`) > 'ab') EXPLAIN SELECT s FROM t1 WHERE TRIM('y' FROM s) > 'ab'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE 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`.`s` AS `s` from `test`.`t1` where (trim('y' from `test`.`t1`.`s`) > 'ab') EXPLAIN SELECT s FROM t1 WHERE TRIM(LEADING 'y' FROM s) > 'ab'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE 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`.`s` AS `s` from `test`.`t1` where (trim(leading 'y' from `test`.`t1`.`s`) > 'ab') EXPLAIN SELECT s FROM t1 WHERE TRIM(TRAILING 'y' FROM s) > 'ab'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE 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`.`s` AS `s` from `test`.`t1` where (trim(trailing 'y' from `test`.`t1`.`s`) > 'ab') EXPLAIN SELECT s FROM t1 WHERE TRIM(BOTH 'y' FROM s) > 'ab'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE 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`.`s` AS `s` from `test`.`t1` where (trim(both 'y' from `test`.`t1`.`s`) > 'ab') @@ -1336,7 +1336,7 @@ SELECT * FROM t1 INNER JOIN t2 ON code=id WHERE id='a12' AND (LENGTH(code)=5 OR code < 'a00'); id select_type table partitions type possible_keys key key_len ref rows filtered Extra 1 SIMPLE t2 NULL const PRIMARY PRIMARY 42 const 1 100.00 Using index -1 SIMPLE 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 const PRIMARY PRIMARY 42 const 1 100.00 Using index 2 SIMPLE t1 NULL ref code code 43 const 4 100.00 Using where; Using index Warnings: diff --git a/mysql-test/r/greedy_search.result-pq b/mysql-test/r/greedy_search.result-pq index de716d4bb7c9..3f5632b8efea 100644 --- a/mysql-test/r/greedy_search.result-pq +++ b/mysql-test/r/greedy_search.result-pq @@ -31,7 +31,7 @@ JOIN price_ranges ON vehicles.price_range_id = price_ranges.id_pk JOIN countries ON vehicles.assembled_in = countries.id_pk JOIN brands ON models.brand_id = brands.id_pk; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE 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 subtypes NULL ALL PRIMARY NULL NULL NULL 10 100.00 NULL 2 SIMPLE vehicles NULL ALL NULL NULL NULL NULL 80 10.00 Using where; Using join buffer (hash join) 2 SIMPLE heating NULL eq_ref PRIMARY PRIMARY 4 test.vehicles.heating_id 1 100.00 NULL @@ -74,7 +74,7 @@ JOIN price_ranges ON vehicles.price_range_id = price_ranges.id_pk JOIN countries ON vehicles.assembled_in = countries.id_pk JOIN brands ON models.brand_id = brands.id_nokey; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE 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 brands NULL ALL NULL NULL NULL NULL 7 100.00 Using where 2 SIMPLE models NULL ref brand_id brand_id 5 test.brands.id_nokey 5 100.00 NULL 2 SIMPLE vehicles NULL ALL NULL NULL NULL NULL 80 10.00 Using where; Using join buffer (hash join) @@ -113,7 +113,7 @@ price_ranges, countries, brands, wheels, engine; # EXPLAIN SELECT * FROM t10_1 JOIN t100_1 ON t10_1.colidx = t100_1.pk JOIN t10_2 ON t100_1.colidx = t10_2.pk JOIN t100_2 ON t10_2.colidx = t100_2.pk JOIN t10_3 ON t100_2.colidx = t10_3.pk JOIN t100_3 ON t10_3.colidx = t100_3.pk JOIN t10_4 ON t100_3.colidx = t10_4.pk JOIN t100_4 ON t10_4.colidx = t100_4.pk JOIN t10_5 ON t100_4.colidx = t10_5.pk JOIN t100_5 ON t10_5.colidx = t100_5.pk JOIN t10_6 ON t100_5.colidx = t10_6.pk JOIN t100_6 ON t10_6.colidx = t100_6.pk JOIN t10_7 ON t100_6.colidx = t10_7.pk JOIN t100_7 ON t10_7.colidx = t100_7.pk JOIN t10_8 ON t100_7.colidx = t10_8.pk; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE 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 t10_1 NULL ALL colidx NULL NULL NULL 10 100.00 Using where 2 SIMPLE t10_2 NULL ALL PRIMARY,colidx NULL NULL NULL 10 100.00 Using where; Using join buffer (hash join) 2 SIMPLE t100_1 NULL eq_ref PRIMARY,colidx PRIMARY 4 test.t10_1.colidx 1 10.00 Using where @@ -138,7 +138,7 @@ FLUSH STATUS; # EXPLAIN SELECT * FROM t10_1 JOIN t100_1 ON t10_1.col = t100_1.colidx JOIN t10_2 ON t100_1.col = t10_2.pk JOIN t100_2 ON t10_2.col = t100_2.colidx JOIN t10_3 ON t100_2.col = t10_3.pk JOIN t100_3 ON t10_3.col = t100_3.colidx JOIN t10_4 ON t100_3.col = t10_4.pk JOIN t100_4 ON t10_4.col = t100_4.colidx JOIN t10_5 ON t100_4.col = t10_5.pk JOIN t100_5 ON t10_5.col = t100_5.colidx JOIN t10_6 ON t100_5.col = t10_6.pk JOIN t100_6 ON t10_6.col = t100_6.colidx JOIN t10_7 ON t100_6.col = t10_7.pk JOIN t100_7 ON t10_7.col = t100_7.colidx JOIN t10_8 ON t100_7.col = t10_8.pk; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE 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 t10_1 NULL ALL NULL NULL NULL NULL 10 100.00 Using where 2 SIMPLE t100_1 NULL ref colidx colidx 5 test.t10_1.col 10 100.00 NULL 2 SIMPLE t10_2 NULL ALL PRIMARY NULL NULL NULL 10 10.00 Using where; Using join buffer (hash join) @@ -163,7 +163,7 @@ FLUSH STATUS; # EXPLAIN SELECT * FROM t10_1 JOIN t100_1 ON t10_1.colidx = t100_1.col JOIN t10_2 ON t100_1.pk = t10_2.col JOIN t100_2 ON t10_2.colidx = t100_2.col JOIN t10_3 ON t100_2.pk = t10_3.col JOIN t100_3 ON t10_3.colidx = t100_3.col JOIN t10_4 ON t100_3.pk = t10_4.col JOIN t100_4 ON t10_4.colidx = t100_4.col JOIN t10_5 ON t100_4.pk = t10_5.col JOIN t100_5 ON t10_5.colidx = t100_5.col JOIN t10_6 ON t100_5.pk = t10_6.col JOIN t100_6 ON t10_6.colidx = t100_6.col JOIN t10_7 ON t100_6.pk = t10_7.col JOIN t100_7 ON t10_7.colidx = t100_7.col JOIN t10_8 ON t100_7.pk = t10_8.col; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE 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 t10_7 NULL ALL colidx NULL NULL NULL 10 100.00 Using where 2 SIMPLE t10_8 NULL ALL NULL NULL NULL NULL 10 100.00 Using where; Using join buffer (hash join) 2 SIMPLE t100_6 NULL eq_ref PRIMARY PRIMARY 4 test.t10_7.col 1 100.00 Using where @@ -188,7 +188,7 @@ FLUSH STATUS; # EXPLAIN SELECT * FROM t10_1 JOIN t100_1 ON t10_1.colidx = t100_1.pk JOIN t10_2 ON t100_1.col = t10_2.pk JOIN t100_2 ON t10_2.colidx = t100_2.pk JOIN t10_3 ON t100_2.col = t10_3.pk JOIN t100_3 ON t10_3.colidx = t100_3.pk JOIN t10_4 ON t100_3.col = t10_4.pk JOIN t100_4 ON t10_4.colidx = t100_4.pk JOIN t10_5 ON t100_4.col = t10_5.pk JOIN t100_5 ON t10_5.colidx = t100_5.pk JOIN t10_6 ON t100_5.col = t10_6.pk JOIN t100_6 ON t10_6.colidx = t100_6.pk JOIN t10_7 ON t100_6.col = t10_7.pk JOIN t100_7 ON t10_7.colidx = t100_7.pk JOIN t10_8 ON t100_7.col = t10_8.pk; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE 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 t10_2 NULL ALL PRIMARY,colidx NULL NULL NULL 10 100.00 Using where 2 SIMPLE t10_1 NULL ALL colidx NULL NULL NULL 10 100.00 Using where; Using join buffer (hash join) 2 SIMPLE t100_1 NULL eq_ref PRIMARY PRIMARY 4 test.t10_1.colidx 1 10.00 Using where diff --git a/mysql-test/r/group_by_fd_no_prot.result-pq b/mysql-test/r/group_by_fd_no_prot.result-pq index 7fcf8f256ae4..11c1128c9ea9 100644 --- a/mysql-test/r/group_by_fd_no_prot.result-pq +++ b/mysql-test/r/group_by_fd_no_prot.result-pq @@ -1478,7 +1478,7 @@ from customer1 left join customer2 on customer1.a=customer2.b where customer2.pk in (7,9) group by customer2.b; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE 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 customer1 NULL ALL NULL NULL NULL NULL 2 100.00 Using temporary 2 SIMPLE customer2 NULL range PRIMARY PRIMARY 4 NULL 2 50.00 Using where; Using join buffer (hash join) Warnings: diff --git a/mysql-test/r/heap.result-pq b/mysql-test/r/heap.result-pq index 47373395f8c6..62d1515a7b07 100644 --- a/mysql-test/r/heap.result-pq +++ b/mysql-test/r/heap.result-pq @@ -69,7 +69,7 @@ a alter table t1 engine=innodb; explain select * from t1 where a in (869751,736494,226312,802616); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL # # Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL # # Parallel execute (4 workers) 2 SIMPLE t1 NULL index uniq_id uniq_id 4 NULL # # Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where (`test`.`t1`.`a` in (869751,736494,226312,802616)) diff --git a/mysql-test/r/histogram_equi_height.result-pq b/mysql-test/r/histogram_equi_height.result-pq index deb356c69b3b..725f5f097f23 100644 --- a/mysql-test/r/histogram_equi_height.result-pq +++ b/mysql-test/r/histogram_equi_height.result-pq @@ -12,90 +12,90 @@ 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 "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 "36.67" 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`) @@ -103,55 +103,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 = 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 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` = 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 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` = 100) # 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 "36.67" 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 "43.33" 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)) @@ -173,90 +173,90 @@ test.tbl_varchar analyze status OK # Expect "36.73" 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 36.73 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 36.73 Parallel execute (4 workers) 2 SIMPLE tbl_varchar NULL ALL NULL NULL NULL NULL 10 36.73 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 36.73 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 36.73 Parallel execute (4 workers) 2 SIMPLE tbl_varchar NULL ALL NULL NULL NULL NULL 10 36.73 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 "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 "40.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 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_varchar NULL ALL NULL NULL NULL NULL 10 40.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 40.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.00 Parallel execute (4 workers) 2 SIMPLE tbl_varchar NULL ALL NULL NULL NULL NULL 10 40.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 "80.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 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` <> '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 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 ('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 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` <> '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 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 ('lorem ipsum' <> `test`.`tbl_varchar`.`col1`) @@ -264,48 +264,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 "10.00" 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 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` between 'a' and 'b') # Expect "76.72" 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 76.72 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 76.72 Parallel execute (4 workers) 2 SIMPLE tbl_varchar NULL ALL NULL NULL NULL NULL 10 76.72 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 "10.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 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\xA3' from utf8mb4 to utf8 @@ -313,7 +313,7 @@ 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 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 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: Warning 1300 Cannot convert string '\xF0\x9F\x8D\xA3' from utf8mb4 to utf8 @@ -339,14 +339,14 @@ test.tbl_varchar analyze status OK # Expect "100.0" in column "filtered" EXPLAIN SELECT * FROM tbl_varchar WHERE col1 < "abcdefghijklmnopqrstuvwxyzabcdefghijklmnos"; 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 tbl_varchar NULL ALL NULL NULL NULL NULL 8 100.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_varchar`.`col1` AS `col1` from `test`.`tbl_varchar` where (`test`.`tbl_varchar`.`col1` < 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnos') # Expect "12.50" in column "filtered" EXPLAIN SELECT * FROM tbl_varchar WHERE col1 < "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopr"; 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 tbl_varchar NULL ALL NULL NULL NULL NULL 8 12.50 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_varchar`.`col1` AS `col1` from `test`.`tbl_varchar` where (`test`.`tbl_varchar`.`col1` < 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopr') @@ -365,90 +365,90 @@ test.tbl_double analyze status OK # Expect "66.67" 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 66.67 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 66.67 Parallel execute (4 workers) 2 SIMPLE tbl_double NULL ALL NULL NULL NULL NULL 10 66.67 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 66.67 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 66.67 Parallel execute (4 workers) 2 SIMPLE tbl_double NULL ALL NULL NULL NULL NULL 10 66.67 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 "80.0" in column "filtered" 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 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` < 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 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 (100 > `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 "80.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 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` <> 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 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 (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 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` <> 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 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 (0.0e0 <> `test`.`tbl_double`.`col1`) @@ -456,55 +456,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 "13.33" 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 13.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 13.33 Parallel execute (4 workers) 2 SIMPLE tbl_double NULL ALL NULL NULL NULL NULL 10 13.33 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 "66.67" 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 66.67 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 66.67 Parallel execute (4 workers) 2 SIMPLE tbl_double NULL ALL NULL NULL NULL NULL 10 66.67 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 "10.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 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` in ((-(1.1e0)),0.0e0,1.1e0,2.2e0)) # Expect "80.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 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` not in ((-(1.1e0)),0.0e0,1.1e0,2.2e0)) @@ -525,90 +525,90 @@ test.tbl_time analyze status OK # Expect "40.66" 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 40.66 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.66 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 10 40.66 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 40.66 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.66 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 10 40.66 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 "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 "40.64" 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 40.64 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.64 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 10 40.64 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 40.64 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 40.64 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 10 40.64 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 "80.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 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: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 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: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 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: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 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:01:00' <> `test`.`tbl_time`.`col1`) @@ -616,27 +616,27 @@ 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) @@ -645,7 +645,7 @@ Note 1003 /* select#1 */ select `test`.`tbl_time`.`col1` AS `col1` from `test`.` # each bucket this is actually correct. 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 20.64 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 20.64 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 10 20.64 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') @@ -654,21 +654,21 @@ Note 1003 /* select#1 */ select `test`.`tbl_time`.`col1` AS `col1` from `test`.` # each bucket this is actually correct. 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 59.36 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 59.36 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 10 59.36 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 "10.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 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` in ('-01:00:00','00:00:00','03:00:00')) # Expect "80.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 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` not in ('-01:00:00','00:00:00','03:00:00')) @@ -685,7 +685,7 @@ Table Op Msg_type Msg_text test.tbl_time analyze status OK EXPLAIN SELECT * FROM tbl_time WHERE col1 < "00:00:00.000004"; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 6 75.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 6 75.00 Parallel execute (4 workers) 2 SIMPLE tbl_time NULL ALL NULL NULL NULL NULL 6 75.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.000004') @@ -706,90 +706,90 @@ test.tbl_date analyze status OK # Expect "40.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 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'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 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'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 "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-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 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-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 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-01' <= `test`.`tbl_date`.`col1`) # Expect "80.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 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'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 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'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 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'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 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'2017-01-02' <> `test`.`tbl_date`.`col1`) @@ -797,27 +797,27 @@ 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) @@ -826,7 +826,7 @@ Note 1003 /* select#1 */ select `test`.`tbl_date`.`col1` AS `col1` from `test`.` # each bucket this is actually correct. 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 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` between '2017-01-01' and '3019-01-01') @@ -835,21 +835,21 @@ Note 1003 /* select#1 */ select `test`.`tbl_date`.`col1` AS `col1` from `test`.` # each bucket this is actually correct. 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 74.98 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 74.98 Parallel execute (4 workers) 2 SIMPLE tbl_date NULL ALL NULL NULL NULL NULL 10 74.98 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 "10.0" in column "filtered" EXPLAIN SELECT * FROM tbl_date WHERE col1 IN ("1000-01-01", "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 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` in ('1000-01-01','2017-01-02','2018-01-01')) # Expect "80.0" in column "filtered" EXPLAIN SELECT * FROM tbl_date WHERE col1 NOT IN ("1000-01-01", "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 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` not in ('1000-01-01','2017-01-02','2018-01-01')) @@ -872,90 +872,90 @@ 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.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 (TIMESTAMP'9999-12-31 23:59:59.999999' < `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:00.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:00') EXPLAIN SELECT * FROM tbl_datetime WHERE "1000-01-01 00:00:00.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:00' <= `test`.`tbl_datetime`.`col1`) # Expect "80.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 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'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 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'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 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'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 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'3019-01-01 10:10:10.10101' <> `test`.`tbl_datetime`.`col1`) @@ -963,27 +963,27 @@ 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) @@ -992,7 +992,7 @@ Note 1003 /* select#1 */ select `test`.`tbl_datetime`.`col1` AS `col1` from `tes # each bucket this is actually correct. 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 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` between '2017-01-01 00:00:00.000001' and '3019-01-01 10:10:10.101010') @@ -1001,21 +1001,21 @@ Note 1003 /* select#1 */ select `test`.`tbl_datetime`.`col1` AS `col1` from `tes # each bucket this is actually correct. 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 74.98 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 74.98 Parallel execute (4 workers) 2 SIMPLE tbl_datetime NULL ALL NULL NULL NULL NULL 10 74.98 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 "10.0" in column "filtered" EXPLAIN SELECT * FROM tbl_datetime WHERE col1 IN ("1000-01-01 00:00:00.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 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` in ('1000-01-01 00:00:00.000000','2018-01-01 00:00:00.999999','9999-12-31 23:59:59.999998')) # Expect "80.0" in column "filtered" EXPLAIN SELECT * FROM tbl_datetime WHERE col1 NOT IN ("1000-01-01 00:00:00.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 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` not in ('1000-01-01 00:00:00.000000','2018-01-01 00:00:00.999999','9999-12-31 23:59:59.999998')) @@ -1038,13 +1038,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`) @@ -1062,64 +1062,64 @@ Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test # 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 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` >= 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 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 (4.000000000000000000000000000000 <= `test`.`tbl_decimal`.`col1`) # 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`) # Expect "80.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 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` <> 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 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 (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 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` <> 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 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 (2.000000000000000000000000000000 <> `test`.`tbl_decimal`.`col1`) @@ -1127,27 +1127,27 @@ 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) @@ -1156,7 +1156,7 @@ Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test # Expect "10.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 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` between (-(1.0)) and 4.0) @@ -1165,7 +1165,7 @@ Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test # Expect "80.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 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` not between (-(1.0)) and 4.0) @@ -1173,7 +1173,7 @@ Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test EXPLAIN SELECT * FROM tbl_decimal WHERE col1 IN (-99999999999999999999999999999999999.999999999999999999999999999999, 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 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` in ((-(99999999999999999999999999999999999.999999999999999999999999999999)),1.0,2.0)) @@ -1181,7 +1181,7 @@ Note 1003 /* select#1 */ select `test`.`tbl_decimal`.`col1` AS `col1` from `test EXPLAIN SELECT * FROM tbl_decimal WHERE col1 NOT IN (-99999999999999999999999999999999999.999999999999999999999999999999, 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 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` not in ((-(99999999999999999999999999999999999.999999999999999999999999999999)),1.0,2.0)) @@ -1203,91 +1203,91 @@ test.tbl_enum analyze status OK # Expect "16.67" 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 16.67 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 16.67 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 16.67 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 16.67 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 16.67 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 16.67 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 "50.00" 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 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 50.00 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 50.00 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 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 50.00 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 50.00 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 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 50.00 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 50.00 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 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 50.00 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 50.00 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 "50.00" 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 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 50.00 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 50.00 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) @@ -1296,38 +1296,38 @@ Note 1003 /* select#1 */ select `test`.`tbl_enum`.`col1` AS `col1` from `test`.` # Expect "16.67" 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 16.67 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 16.67 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 16.67 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 16.67 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 16.67 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 16.67 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 "50.00" 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 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 50.00 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 50.00 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 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 50.00 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 50.00 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 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 50.00 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 50.00 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 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 50.00 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 50.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`tbl_enum`.`col1` AS `col1` from `test`.`tbl_enum` where (2 <> `test`.`tbl_enum`.`col1`) @@ -1335,27 +1335,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 "50.00" 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 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 50.00 Parallel execute (4 workers) 2 SIMPLE tbl_enum NULL ALL NULL NULL NULL NULL 9 50.00 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)) @@ -1379,91 +1379,91 @@ test.tbl_set analyze status OK # Expect "9.09" 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 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` = '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 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` = 'red,green') # Expect "67.68" 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 67.68 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 67.68 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 67.68 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 67.68 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 67.68 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 67.68 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 67.68 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 67.68 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 67.68 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 67.68 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 67.68 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 67.68 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 "32.32" 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 32.32 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 32.32 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 32.32 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 "40.40" 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 40.40 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 40.40 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 40.40 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) @@ -1472,63 +1472,63 @@ Note 1003 /* select#1 */ select `test`.`tbl_set`.`col1` AS `col1` from `test`.`t # Expect "9.09" 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 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` = 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 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 (9 = `test`.`tbl_set`.`col1`) # Expect "67.68" 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 67.68 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 67.68 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 67.68 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 67.68 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 67.68 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 67.68 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 67.68 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 67.68 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 67.68 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 67.68 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 67.68 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 67.68 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) @@ -1536,27 +1536,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 "32.32" 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 32.32 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 32.32 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 32.32 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 "40.40" 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 40.40 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 11 40.40 Parallel execute (4 workers) 2 SIMPLE tbl_set NULL ALL NULL NULL NULL NULL 11 40.40 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)) @@ -1576,7 +1576,7 @@ Table Op Msg_type Msg_text test.t1 analyze status OK EXPLAIN SELECT * FROM t1 WHERE col1 < "a"; 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 t1 NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where (`test`.`t1`.`col1` < 'a') @@ -1592,13 +1592,13 @@ Table Op Msg_type Msg_text test.t1 analyze status OK EXPLAIN SELECT * FROM t1 WHERE col1 < 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 t1 NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where (`test`.`t1`.`col1` < 0) EXPLAIN SELECT * FROM t1 WHERE col1 < 1.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 t1 NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where (`test`.`t1`.`col1` < 1) @@ -1614,79 +1614,79 @@ 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 10 70.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 70.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where (`test`.`t1`.`col1` <= 100) EXPLAIN SELECT * FROM t1 WHERE col1 <= 150; 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 t1 NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where (`test`.`t1`.`col1` <= 150) EXPLAIN SELECT * FROM t1 WHERE 150 >= 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 t1 NULL ALL NULL NULL NULL NULL 10 70.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where (150 >= `test`.`t1`.`col1`) EXPLAIN SELECT * FROM t1 WHERE col1 BETWEEN 0 AND RAND(); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 11.11 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 11.11 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 10 11.11 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where (`test`.`t1`.`col1` between 0 and rand()) EXPLAIN SELECT * FROM t1 WHERE col1 BETWEEN 1 AND 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 11.11 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 11.11 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 10 11.11 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where (`test`.`t1`.`col1` between 1 and NULL) EXPLAIN SELECT * FROM t1 WHERE col1 IN (1, RAND()); 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 t1 NULL ALL NULL NULL NULL NULL 10 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where (`test`.`t1`.`col1` in (1,rand())) EXPLAIN SELECT * FROM t1 WHERE col1 IN (1, 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 t1 NULL ALL NULL NULL NULL NULL 10 20.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where (`test`.`t1`.`col1` in (1,NULL)) EXPLAIN SELECT * FROM t1 WHERE col1 IN (100, 100, 100, 100, 100, 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 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 ALL NULL NULL NULL NULL 10 100.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where (`test`.`t1`.`col1` in (100,100,100,100,100,100)) EXPLAIN SELECT * FROM t1 WHERE col1 NOT IN (1, 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 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where (`test`.`t1`.`col1` not in (1,NULL)) EXPLAIN SELECT * FROM t1 WHERE col1 NOT IN (100, 100, 100, 100, 100, 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 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where (`test`.`t1`.`col1` not in (100,100,100,100,100,100)) EXPLAIN SELECT * FROM t1 WHERE col1 <= 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 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 33.33 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 10 33.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where (`test`.`t1`.`col1` <= NULL) EXPLAIN SELECT * FROM t1 WHERE col1 >= 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 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 33.33 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 10 33.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where (`test`.`t1`.`col1` >= NULL) EXPLAIN SELECT * FROM t1 WHERE col1 != 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 90.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 90.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 10 90.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where (`test`.`t1`.`col1` <> NULL) @@ -1703,13 +1703,13 @@ Table Op Msg_type Msg_text test.t1 analyze status OK EXPLAIN SELECT * FROM t1 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 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 10.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 10 10.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where (`test`.`t1`.`col1` < TIME'00:00:00') EXPLAIN SELECT * FROM t1 WHERE col1 NOT BETWEEN "00:00:00" AND ""; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 10 88.89 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 10 88.89 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 10 88.89 Using where Warnings: Warning 1292 Truncated incorrect time value: '' diff --git a/mysql-test/r/join_cache_bka.result-pq b/mysql-test/r/join_cache_bka.result-pq index 779eb41ebd3e..8e5beb005982 100644 --- a/mysql-test/r/join_cache_bka.result-pq +++ b/mysql-test/r/join_cache_bka.result-pq @@ -2642,7 +2642,7 @@ ON t1.col_varchar_key = t2.col_varchar_key GROUP BY field2 ORDER 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 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 col_int_key,col_varchar_key col_varchar_key 10 NULL 3 100.00 Using index; Using temporary; Using filesort 2 SIMPLE t2 NULL ref col_varchar_key col_varchar_key 6 test.t1.col_varchar_key 1 100.00 Using join buffer (Batched Key Access) Warnings: diff --git a/mysql-test/r/join_cache_bka_nobnl.result-pq b/mysql-test/r/join_cache_bka_nobnl.result-pq index 753c35068202..6fb3f82aa495 100644 --- a/mysql-test/r/join_cache_bka_nobnl.result-pq +++ b/mysql-test/r/join_cache_bka_nobnl.result-pq @@ -2642,7 +2642,7 @@ ON t1.col_varchar_key = t2.col_varchar_key GROUP BY field2 ORDER 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 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 col_int_key,col_varchar_key col_varchar_key 10 NULL 3 100.00 Using index; Using temporary; Using filesort 2 SIMPLE t2 NULL ref col_varchar_key col_varchar_key 6 test.t1.col_varchar_key 1 100.00 Using join buffer (Batched Key Access) Warnings: diff --git a/mysql-test/r/join_cache_bnl.result-pq b/mysql-test/r/join_cache_bnl.result-pq index 7ff4cc2699f1..744d7d2ae341 100644 --- a/mysql-test/r/join_cache_bnl.result-pq +++ b/mysql-test/r/join_cache_bnl.result-pq @@ -2643,7 +2643,7 @@ ON t1.col_varchar_key = t2.col_varchar_key GROUP BY field2 ORDER 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 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 col_int_key,col_varchar_key col_int_key 4 NULL 3 100.00 Using temporary; Using filesort 2 SIMPLE t2 NULL ref col_varchar_key col_varchar_key 6 test.t1.col_varchar_key 1 100.00 NULL Warnings: diff --git a/mysql-test/r/join_cache_nojb.result-pq b/mysql-test/r/join_cache_nojb.result-pq index 063cbbdc6f57..cd4e8962759a 100644 --- a/mysql-test/r/join_cache_nojb.result-pq +++ b/mysql-test/r/join_cache_nojb.result-pq @@ -2643,7 +2643,7 @@ ON t1.col_varchar_key = t2.col_varchar_key GROUP BY field2 ORDER 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 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 col_int_key,col_varchar_key col_int_key 4 NULL 3 100.00 Using temporary; Using filesort 2 SIMPLE t2 NULL ref col_varchar_key col_varchar_key 6 test.t1.col_varchar_key 1 100.00 NULL Warnings: diff --git a/mysql-test/r/join_nested.result-pq b/mysql-test/r/join_nested.result-pq index 7b65dfc7a635..459ea8c32bb2 100644 --- a/mysql-test/r/join_nested.result-pq +++ b/mysql-test/r/join_nested.result-pq @@ -2475,7 +2475,7 @@ INNER JOIN t AS b ON a.c >= b.a ) AS a INNER JOIN t AS b ON a.c >= b.d; 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 a NULL ALL NULL NULL NULL NULL 16 100.00 NULL 2 SIMPLE b NULL ALL NULL NULL NULL NULL 16 33.33 Using where; Using join buffer (hash join) 2 SIMPLE b NULL ALL NULL NULL NULL NULL 16 33.33 Using where; Using join buffer (hash join) diff --git a/mysql-test/r/join_nested_bka.result-pq b/mysql-test/r/join_nested_bka.result-pq index 2deeaba4e247..3f12432e14f4 100644 --- a/mysql-test/r/join_nested_bka.result-pq +++ b/mysql-test/r/join_nested_bka.result-pq @@ -2476,7 +2476,7 @@ INNER JOIN t AS b ON a.c >= b.a ) AS a INNER JOIN t AS b ON a.c >= b.d; 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 a NULL ALL NULL NULL NULL NULL 16 100.00 NULL 2 SIMPLE b NULL ALL NULL NULL NULL NULL 16 33.33 Using where; Using join buffer (hash join) 2 SIMPLE b NULL ALL NULL NULL NULL NULL 16 33.33 Using where; Using join buffer (hash join) diff --git a/mysql-test/r/join_nested_bka_nobnl.result-pq b/mysql-test/r/join_nested_bka_nobnl.result-pq index d4100d082651..b37542e347af 100644 --- a/mysql-test/r/join_nested_bka_nobnl.result-pq +++ b/mysql-test/r/join_nested_bka_nobnl.result-pq @@ -2476,7 +2476,7 @@ INNER JOIN t AS b ON a.c >= b.a ) AS a INNER JOIN t AS b ON a.c >= b.d; 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 a NULL ALL NULL NULL NULL NULL 16 100.00 NULL 2 SIMPLE b NULL ALL NULL NULL NULL NULL 16 33.33 Using where 2 SIMPLE b NULL ALL NULL NULL NULL NULL 16 33.33 Using where diff --git a/mysql-test/r/join_outer.result-pq b/mysql-test/r/join_outer.result-pq index 7bab2e072643..d6c284a87117 100644 --- a/mysql-test/r/join_outer.result-pq +++ b/mysql-test/r/join_outer.result-pq @@ -2685,7 +2685,7 @@ ANALYZE TABLE t2; EXPLAIN SELECT * FROM t2 LEFT JOIN t1 ON t2.f_id = t1.id WHERE t1.name LIKE 'A%'; 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 PRIMARY,name name 83 NULL 2 100.00 Using where; Using index 2 SIMPLE t2 NULL ref f_id f_id 5 test.t1.id 1 100.00 Using index Warnings: @@ -2707,7 +2707,7 @@ DEALLOCATE PREPARE stmt; EXPLAIN SELECT * FROM t2 LEFT JOIN t1 ON t2.f_id = t1.id WHERE t1.name LIKE 'A%' OR 'ASDFGH' 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 PRIMARY,name name 83 NULL 2 100.00 Using where; Using index 2 SIMPLE t2 NULL ref f_id f_id 5 test.t1.id 1 100.00 Using index Warnings: @@ -2743,7 +2743,7 @@ DEALLOCATE PREPARE stmt; EXPLAIN SELECT * FROM t2 LEFT JOIN t1 ON t2.f_id = t1.id WHERE 1 OR 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 t2 NULL index NULL f_id 5 NULL 5 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 4 test.t2.f_id 1 100.00 NULL Warnings: @@ -2769,7 +2769,7 @@ DEALLOCATE PREPARE stmt; EXPLAIN SELECT * FROM t2 LEFT JOIN t1 ON t2.f_id = t1.id WHERE NOT(NOT (0)) OR 1; 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 f_id 5 NULL 5 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 4 test.t2.f_id 1 100.00 NULL Warnings: @@ -2822,7 +2822,7 @@ id f_id id name EXPLAIN SELECT * FROM t2 LEFT JOIN t1 ON t2.f_id = t1.id WHERE 'a' LIKE 1 OR 2 LIKE '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 t2 NULL index NULL f_id 5 NULL 5 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 4 test.t2.f_id 1 100.00 NULL Warnings: @@ -2847,7 +2847,7 @@ id f_id id name EXPLAIN SELECT * FROM t2 LEFT JOIN t1 ON t2.f_id = t1.id WHERE 1 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 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 f_id 5 NULL 5 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 4 test.t2.f_id 1 100.00 NULL Warnings: @@ -2872,7 +2872,7 @@ id f_id id name EXPLAIN SELECT * FROM t2 LEFT JOIN t1 ON t2.f_id = t1.id WHERE (1<2 AND 2<3) OR (1>1 AND 2<3); 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 f_id 5 NULL 5 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 4 test.t2.f_id 1 100.00 NULL Warnings: @@ -2897,7 +2897,7 @@ id f_id id name EXPLAIN SELECT * FROM t2 LEFT JOIN t1 ON t2.f_id = t1.id WHERE (1>=1 AND 2<=2) OR (1=1 AND 2<3); 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 f_id 5 NULL 5 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 4 test.t2.f_id 1 100.00 NULL Warnings: @@ -2922,7 +2922,7 @@ id f_id id name EXPLAIN SELECT * FROM t2 LEFT JOIN t1 ON t2.f_id = t1.id WHERE (1<>1 AND 2=2) OR (1 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 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 f_id 5 NULL 5 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 4 test.t2.f_id 1 100.00 NULL Warnings: diff --git a/mysql-test/r/join_outer_bka.result-pq b/mysql-test/r/join_outer_bka.result-pq index feac99097c62..95b440dfe823 100644 --- a/mysql-test/r/join_outer_bka.result-pq +++ b/mysql-test/r/join_outer_bka.result-pq @@ -2687,7 +2687,7 @@ ANALYZE TABLE t2; EXPLAIN SELECT * FROM t2 LEFT JOIN t1 ON t2.f_id = t1.id WHERE t1.name LIKE 'A%'; 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 PRIMARY,name name 83 NULL 2 100.00 Using where; Using index 2 SIMPLE t2 NULL ref f_id f_id 5 test.t1.id 1 100.00 Using index Warnings: @@ -2709,7 +2709,7 @@ DEALLOCATE PREPARE stmt; EXPLAIN SELECT * FROM t2 LEFT JOIN t1 ON t2.f_id = t1.id WHERE t1.name LIKE 'A%' OR 'ASDFGH' 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 PRIMARY,name name 83 NULL 2 100.00 Using where; Using index 2 SIMPLE t2 NULL ref f_id f_id 5 test.t1.id 1 100.00 Using index Warnings: @@ -2745,7 +2745,7 @@ DEALLOCATE PREPARE stmt; EXPLAIN SELECT * FROM t2 LEFT JOIN t1 ON t2.f_id = t1.id WHERE 1 OR 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 t2 NULL index NULL f_id 5 NULL 5 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 4 test.t2.f_id 1 100.00 NULL Warnings: @@ -2771,7 +2771,7 @@ DEALLOCATE PREPARE stmt; EXPLAIN SELECT * FROM t2 LEFT JOIN t1 ON t2.f_id = t1.id WHERE NOT(NOT (0)) OR 1; 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 f_id 5 NULL 5 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 4 test.t2.f_id 1 100.00 NULL Warnings: @@ -2824,7 +2824,7 @@ id f_id id name EXPLAIN SELECT * FROM t2 LEFT JOIN t1 ON t2.f_id = t1.id WHERE 'a' LIKE 1 OR 2 LIKE '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 t2 NULL index NULL f_id 5 NULL 5 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 4 test.t2.f_id 1 100.00 NULL Warnings: @@ -2849,7 +2849,7 @@ id f_id id name EXPLAIN SELECT * FROM t2 LEFT JOIN t1 ON t2.f_id = t1.id WHERE 1 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 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 f_id 5 NULL 5 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 4 test.t2.f_id 1 100.00 NULL Warnings: @@ -2874,7 +2874,7 @@ id f_id id name EXPLAIN SELECT * FROM t2 LEFT JOIN t1 ON t2.f_id = t1.id WHERE (1<2 AND 2<3) OR (1>1 AND 2<3); 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 f_id 5 NULL 5 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 4 test.t2.f_id 1 100.00 NULL Warnings: @@ -2899,7 +2899,7 @@ id f_id id name EXPLAIN SELECT * FROM t2 LEFT JOIN t1 ON t2.f_id = t1.id WHERE (1>=1 AND 2<=2) OR (1=1 AND 2<3); 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 f_id 5 NULL 5 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 4 test.t2.f_id 1 100.00 NULL Warnings: @@ -2924,7 +2924,7 @@ id f_id id name EXPLAIN SELECT * FROM t2 LEFT JOIN t1 ON t2.f_id = t1.id WHERE (1<>1 AND 2=2) OR (1 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 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 f_id 5 NULL 5 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 4 test.t2.f_id 1 100.00 NULL Warnings: diff --git a/mysql-test/r/join_outer_bka_nobnl.result-pq b/mysql-test/r/join_outer_bka_nobnl.result-pq index e28887142d0c..a8e8dc112c61 100644 --- a/mysql-test/r/join_outer_bka_nobnl.result-pq +++ b/mysql-test/r/join_outer_bka_nobnl.result-pq @@ -2685,7 +2685,7 @@ ANALYZE TABLE t2; EXPLAIN SELECT * FROM t2 LEFT JOIN t1 ON t2.f_id = t1.id WHERE t1.name LIKE 'A%'; 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 PRIMARY,name name 83 NULL 2 100.00 Using where; Using index 2 SIMPLE t2 NULL ref f_id f_id 5 test.t1.id 1 100.00 Using index Warnings: @@ -2707,7 +2707,7 @@ DEALLOCATE PREPARE stmt; EXPLAIN SELECT * FROM t2 LEFT JOIN t1 ON t2.f_id = t1.id WHERE t1.name LIKE 'A%' OR 'ASDFGH' 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 PRIMARY,name name 83 NULL 2 100.00 Using where; Using index 2 SIMPLE t2 NULL ref f_id f_id 5 test.t1.id 1 100.00 Using index Warnings: @@ -2743,7 +2743,7 @@ DEALLOCATE PREPARE stmt; EXPLAIN SELECT * FROM t2 LEFT JOIN t1 ON t2.f_id = t1.id WHERE 1 OR 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 t2 NULL index NULL f_id 5 NULL 5 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 4 test.t2.f_id 1 100.00 NULL Warnings: @@ -2769,7 +2769,7 @@ DEALLOCATE PREPARE stmt; EXPLAIN SELECT * FROM t2 LEFT JOIN t1 ON t2.f_id = t1.id WHERE NOT(NOT (0)) OR 1; 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 f_id 5 NULL 5 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 4 test.t2.f_id 1 100.00 NULL Warnings: @@ -2822,7 +2822,7 @@ id f_id id name EXPLAIN SELECT * FROM t2 LEFT JOIN t1 ON t2.f_id = t1.id WHERE 'a' LIKE 1 OR 2 LIKE '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 t2 NULL index NULL f_id 5 NULL 5 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 4 test.t2.f_id 1 100.00 NULL Warnings: @@ -2847,7 +2847,7 @@ id f_id id name EXPLAIN SELECT * FROM t2 LEFT JOIN t1 ON t2.f_id = t1.id WHERE 1 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 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 f_id 5 NULL 5 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 4 test.t2.f_id 1 100.00 NULL Warnings: @@ -2872,7 +2872,7 @@ id f_id id name EXPLAIN SELECT * FROM t2 LEFT JOIN t1 ON t2.f_id = t1.id WHERE (1<2 AND 2<3) OR (1>1 AND 2<3); 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 f_id 5 NULL 5 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 4 test.t2.f_id 1 100.00 NULL Warnings: @@ -2897,7 +2897,7 @@ id f_id id name EXPLAIN SELECT * FROM t2 LEFT JOIN t1 ON t2.f_id = t1.id WHERE (1>=1 AND 2<=2) OR (1=1 AND 2<3); 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 f_id 5 NULL 5 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 4 test.t2.f_id 1 100.00 NULL Warnings: @@ -2922,7 +2922,7 @@ id f_id id name EXPLAIN SELECT * FROM t2 LEFT JOIN t1 ON t2.f_id = t1.id WHERE (1<>1 AND 2=2) OR (1 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 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 f_id 5 NULL 5 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 4 test.t2.f_id 1 100.00 NULL Warnings: diff --git a/mysql-test/r/join_outer_innodb.result-pq b/mysql-test/r/join_outer_innodb.result-pq index f1600d3ce843..dfe2fc0a8be7 100644 --- a/mysql-test/r/join_outer_innodb.result-pq +++ b/mysql-test/r/join_outer_innodb.result-pq @@ -15,7 +15,7 @@ EXPLAIN SELECT COUNT(*) FROM t2 LEFT JOIN t1 ON t2.fkey = t1.id WHERE t1.name LIKE 'A%'; 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 PRIMARY,name name 83 NULL 2 100.00 Using where; Using index 2 SIMPLE t2 NULL ref fkey fkey 5 test.t1.id 1 100.00 Using index Warnings: @@ -24,7 +24,7 @@ EXPLAIN SELECT COUNT(*) FROM t2 LEFT JOIN t1 ON t2.fkey = t1.id WHERE t1.name LIKE 'A%' OR FALSE; 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 PRIMARY,name name 83 NULL 2 100.00 Using where; Using index 2 SIMPLE t2 NULL ref fkey fkey 5 test.t1.id 1 100.00 Using index Warnings: diff --git a/mysql-test/r/opt_costmodel.result-pq b/mysql-test/r/opt_costmodel.result-pq index 26877e6205ca..719f7b6f5fde 100644 --- a/mysql-test/r/opt_costmodel.result-pq +++ b/mysql-test/r/opt_costmodel.result-pq @@ -25,7 +25,7 @@ EXPLAIN "rows_examined_per_scan": 4, "rows_produced_per_join": 4, "filtered": "100.00", - "parallel_execute": "1 workers", + "parallel_execute": "4 workers", "cost_info": { "read_cost": "0.50", "eval_cost": "0.40", @@ -91,7 +91,7 @@ EXPLAIN "rows_examined_per_scan": 4, "rows_produced_per_join": 0, "filtered": "10.00", - "parallel_execute": "1 workers", + "parallel_execute": "4 workers", "cost_info": { "read_cost": "0.50", "eval_cost": "0.04", @@ -196,7 +196,7 @@ EXPLAIN "rows_examined_per_scan": 4, "rows_produced_per_join": 4, "filtered": "100.00", - "parallel_execute": "1 workers", + "parallel_execute": "4 workers", "cost_info": { "read_cost": "1.00", "eval_cost": "0.80", @@ -262,7 +262,7 @@ EXPLAIN "rows_examined_per_scan": 4, "rows_produced_per_join": 0, "filtered": "10.00", - "parallel_execute": "1 workers", + "parallel_execute": "4 workers", "cost_info": { "read_cost": "1.00", "eval_cost": "0.08", @@ -360,7 +360,7 @@ EXPLAIN "rows_examined_per_scan": 4, "rows_produced_per_join": 256, "filtered": "100.00", - "parallel_execute": "1 workers", + "parallel_execute": "4 workers", "cost_info": { "read_cost": "1.75", "eval_cost": "25.60", @@ -504,7 +504,7 @@ EXPLAIN "rows_examined_per_scan": 4, "rows_produced_per_join": 256, "filtered": "100.00", - "parallel_execute": "1 workers", + "parallel_execute": "4 workers", "cost_info": { "read_cost": "0.88", "eval_cost": "12.80", diff --git a/mysql-test/r/range_all.result-pq b/mysql-test/r/range_all.result-pq index 8d128e6c6555..db95298e9dcb 100644 --- a/mysql-test/r/range_all.result-pq +++ b/mysql-test/r/range_all.result-pq @@ -2237,7 +2237,7 @@ INSERT INTO t2 VALUES EXPLAIN SELECT t1.*,t2.* FROM t1 straight_join t2 ON t2.col_int_key = t1.col_int WHERE t2.pk < t1.pk; 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 # # Using where 2 SIMPLE t2 NULL ref PRIMARY,col_int_key col_int_key 5 test.t1.col_int # # Using index condition Warnings: @@ -2260,7 +2260,7 @@ FLUSH TABLES; EXPLAIN SELECT t1.*,t2.* FROM t1 straight_join t2 ON t2.col_int_key = t1.col_int WHERE t2.pk < t1.pk; 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 PRIMARY,col_int_key NULL NULL NULL # # Range checked for each record (index map: 0x3) Warnings: @@ -3501,7 +3501,7 @@ Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but wil INSERT INTO t1 VALUES ('ABCDE',19), ('JLVGO',14); EXPLAIN SELECT * FROM t1 WHERE t1.v1 < CHAR(128); 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 v1_key NULL NULL NULL 2 50.00 Using where Warnings: Warning 1366 Incorrect string value: '\x80' for column 'v1' at row 1 @@ -3781,7 +3781,7 @@ test.t1 analyze status OK test.t2 analyze status OK EXPLAIN SELECT MIN(t1.pk) FROM t1, t2 WHERE t2.vc = t1.vc OR t2.i = t1.pk; 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 PRIMARY NULL NULL NULL 2 100.00 NULL 2 SIMPLE t2 NULL ALL i,vc NULL NULL NULL 3 55.56 Range checked for each record (index map: 0x6) Warnings: @@ -3873,7 +3873,7 @@ WHERE id=3 AND c LIKE 'gh%' ORDER BY c 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 25 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 25 100.00 Parallel execute (4 workers) 2 SIMPLE test_ref NULL range idx1,idx2 idx1 88 NULL 25 100.00 Using index condition Warnings: Note 1003 /* select#1 */ select `test`.`test_ref`.`a` AS `a`,`test`.`test_ref`.`b` AS `b`,`test`.`test_ref`.`c` AS `c`,`test`.`test_ref`.`d` AS `d`,`test`.`test_ref`.`id` AS `id` from `test`.`test_ref` where ((`test`.`test_ref`.`id` = 3) and (`test`.`test_ref`.`c` like 'gh%')) order by `test`.`test_ref`.`c` limit 1 @@ -3890,7 +3890,7 @@ WHERE id=3 AND c LIKE 'gh%' ORDER BY c DESC 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 25 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 25 100.00 Parallel execute (4 workers) 2 SIMPLE test_ref NULL range idx1,idx2 idx1 88 NULL 25 100.00 Using index condition; Backward index scan Warnings: Note 1003 /* select#1 */ select `test`.`test_ref`.`a` AS `a`,`test`.`test_ref`.`b` AS `b`,`test`.`test_ref`.`c` AS `c`,`test`.`test_ref`.`d` AS `d`,`test`.`test_ref`.`id` AS `id` from `test`.`test_ref` where ((`test`.`test_ref`.`id` = 3) and (`test`.`test_ref`.`c` like 'gh%')) order by `test`.`test_ref`.`c` desc limit 1 diff --git a/mysql-test/r/range_icp.result-pq b/mysql-test/r/range_icp.result-pq index a536e4d559e6..4075fc3188ec 100644 --- a/mysql-test/r/range_icp.result-pq +++ b/mysql-test/r/range_icp.result-pq @@ -2237,7 +2237,7 @@ INSERT INTO t2 VALUES EXPLAIN SELECT t1.*,t2.* FROM t1 straight_join t2 ON t2.col_int_key = t1.col_int WHERE t2.pk < t1.pk; 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 # # Using where 2 SIMPLE t2 NULL ref PRIMARY,col_int_key col_int_key 5 test.t1.col_int # # Using index condition Warnings: @@ -2260,7 +2260,7 @@ FLUSH TABLES; EXPLAIN SELECT t1.*,t2.* FROM t1 straight_join t2 ON t2.col_int_key = t1.col_int WHERE t2.pk < t1.pk; 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 PRIMARY,col_int_key NULL NULL NULL # # Range checked for each record (index map: 0x3) Warnings: @@ -3501,7 +3501,7 @@ Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but wil INSERT INTO t1 VALUES ('ABCDE',19), ('JLVGO',14); EXPLAIN SELECT * FROM t1 WHERE t1.v1 < CHAR(128); 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 v1_key NULL NULL NULL 2 50.00 Using where Warnings: Warning 1366 Incorrect string value: '\x80' for column 'v1' at row 1 @@ -3781,7 +3781,7 @@ test.t1 analyze status OK test.t2 analyze status OK EXPLAIN SELECT MIN(t1.pk) FROM t1, t2 WHERE t2.vc = t1.vc OR t2.i = t1.pk; 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 PRIMARY NULL NULL NULL 2 100.00 NULL 2 SIMPLE t2 NULL ALL i,vc NULL NULL NULL 3 55.56 Range checked for each record (index map: 0x6) Warnings: @@ -3873,7 +3873,7 @@ WHERE id=3 AND c LIKE 'gh%' ORDER BY c 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 25 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 25 100.00 Parallel execute (4 workers) 2 SIMPLE test_ref NULL range idx1,idx2 idx1 88 NULL 25 100.00 Using index condition Warnings: Note 1003 /* select#1 */ select `test`.`test_ref`.`a` AS `a`,`test`.`test_ref`.`b` AS `b`,`test`.`test_ref`.`c` AS `c`,`test`.`test_ref`.`d` AS `d`,`test`.`test_ref`.`id` AS `id` from `test`.`test_ref` where ((`test`.`test_ref`.`id` = 3) and (`test`.`test_ref`.`c` like 'gh%')) order by `test`.`test_ref`.`c` limit 1 @@ -3890,7 +3890,7 @@ WHERE id=3 AND c LIKE 'gh%' ORDER BY c DESC 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 25 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 25 100.00 Parallel execute (4 workers) 2 SIMPLE test_ref NULL range idx1,idx2 idx1 88 NULL 25 100.00 Using index condition; Backward index scan Warnings: Note 1003 /* select#1 */ select `test`.`test_ref`.`a` AS `a`,`test`.`test_ref`.`b` AS `b`,`test`.`test_ref`.`c` AS `c`,`test`.`test_ref`.`d` AS `d`,`test`.`test_ref`.`id` AS `id` from `test`.`test_ref` where ((`test`.`test_ref`.`id` = 3) and (`test`.`test_ref`.`c` like 'gh%')) order by `test`.`test_ref`.`c` desc limit 1 diff --git a/mysql-test/r/range_icp_mrr.result-pq b/mysql-test/r/range_icp_mrr.result-pq index 52c27783d06b..7fea3924aa34 100644 --- a/mysql-test/r/range_icp_mrr.result-pq +++ b/mysql-test/r/range_icp_mrr.result-pq @@ -2237,7 +2237,7 @@ INSERT INTO t2 VALUES EXPLAIN SELECT t1.*,t2.* FROM t1 straight_join t2 ON t2.col_int_key = t1.col_int WHERE t2.pk < t1.pk; 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 # # Using where 2 SIMPLE t2 NULL ref PRIMARY,col_int_key col_int_key 5 test.t1.col_int # # Using index condition Warnings: @@ -2260,7 +2260,7 @@ FLUSH TABLES; EXPLAIN SELECT t1.*,t2.* FROM t1 straight_join t2 ON t2.col_int_key = t1.col_int WHERE t2.pk < t1.pk; 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 PRIMARY,col_int_key NULL NULL NULL # # Range checked for each record (index map: 0x3) Warnings: @@ -3501,7 +3501,7 @@ Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but wil INSERT INTO t1 VALUES ('ABCDE',19), ('JLVGO',14); EXPLAIN SELECT * FROM t1 WHERE t1.v1 < CHAR(128); 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 v1_key NULL NULL NULL 2 50.00 Using where Warnings: Warning 1366 Incorrect string value: '\x80' for column 'v1' at row 1 @@ -3781,7 +3781,7 @@ test.t1 analyze status OK test.t2 analyze status OK EXPLAIN SELECT MIN(t1.pk) FROM t1, t2 WHERE t2.vc = t1.vc OR t2.i = t1.pk; 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 PRIMARY NULL NULL NULL 2 100.00 NULL 2 SIMPLE t2 NULL ALL i,vc NULL NULL NULL 3 55.56 Range checked for each record (index map: 0x6) Warnings: @@ -3873,7 +3873,7 @@ WHERE id=3 AND c LIKE 'gh%' ORDER BY c 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 25 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 25 100.00 Parallel execute (4 workers) 2 SIMPLE test_ref NULL range idx1,idx2 idx1 88 NULL 25 100.00 Using index condition Warnings: Note 1003 /* select#1 */ select `test`.`test_ref`.`a` AS `a`,`test`.`test_ref`.`b` AS `b`,`test`.`test_ref`.`c` AS `c`,`test`.`test_ref`.`d` AS `d`,`test`.`test_ref`.`id` AS `id` from `test`.`test_ref` where ((`test`.`test_ref`.`id` = 3) and (`test`.`test_ref`.`c` like 'gh%')) order by `test`.`test_ref`.`c` limit 1 @@ -3890,7 +3890,7 @@ WHERE id=3 AND c LIKE 'gh%' ORDER BY c DESC 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 25 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 25 100.00 Parallel execute (4 workers) 2 SIMPLE test_ref NULL range idx1,idx2 idx1 88 NULL 25 100.00 Using index condition; Backward index scan Warnings: Note 1003 /* select#1 */ select `test`.`test_ref`.`a` AS `a`,`test`.`test_ref`.`b` AS `b`,`test`.`test_ref`.`c` AS `c`,`test`.`test_ref`.`d` AS `d`,`test`.`test_ref`.`id` AS `id` from `test`.`test_ref` where ((`test`.`test_ref`.`id` = 3) and (`test`.`test_ref`.`c` like 'gh%')) order by `test`.`test_ref`.`c` desc limit 1 diff --git a/mysql-test/r/range_mrr.result-pq b/mysql-test/r/range_mrr.result-pq index 2a31c49ec3e2..2c17f371eb7c 100644 --- a/mysql-test/r/range_mrr.result-pq +++ b/mysql-test/r/range_mrr.result-pq @@ -2238,7 +2238,7 @@ INSERT INTO t2 VALUES EXPLAIN SELECT t1.*,t2.* FROM t1 straight_join t2 ON t2.col_int_key = t1.col_int WHERE t2.pk < t1.pk; 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 # # Using where 2 SIMPLE t2 NULL ref PRIMARY,col_int_key col_int_key 5 test.t1.col_int # # Using where Warnings: @@ -2261,7 +2261,7 @@ FLUSH TABLES; EXPLAIN SELECT t1.*,t2.* FROM t1 straight_join t2 ON t2.col_int_key = t1.col_int WHERE t2.pk < t1.pk; 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 PRIMARY,col_int_key NULL NULL NULL # # Range checked for each record (index map: 0x3) Warnings: @@ -3502,7 +3502,7 @@ Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but wil INSERT INTO t1 VALUES ('ABCDE',19), ('JLVGO',14); EXPLAIN SELECT * FROM t1 WHERE t1.v1 < CHAR(128); 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 v1_key NULL NULL NULL 2 50.00 Using where Warnings: Warning 1366 Incorrect string value: '\x80' for column 'v1' at row 1 @@ -3782,7 +3782,7 @@ test.t1 analyze status OK test.t2 analyze status OK EXPLAIN SELECT MIN(t1.pk) FROM t1, t2 WHERE t2.vc = t1.vc OR t2.i = t1.pk; 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 PRIMARY NULL NULL NULL 2 100.00 NULL 2 SIMPLE t2 NULL ALL i,vc NULL NULL NULL 3 55.56 Range checked for each record (index map: 0x6) Warnings: @@ -3874,7 +3874,7 @@ WHERE id=3 AND c LIKE 'gh%' ORDER BY c 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 25 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 25 100.00 Parallel execute (4 workers) 2 SIMPLE test_ref NULL range idx1,idx2 idx1 88 NULL 25 100.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`test_ref`.`a` AS `a`,`test`.`test_ref`.`b` AS `b`,`test`.`test_ref`.`c` AS `c`,`test`.`test_ref`.`d` AS `d`,`test`.`test_ref`.`id` AS `id` from `test`.`test_ref` where ((`test`.`test_ref`.`id` = 3) and (`test`.`test_ref`.`c` like 'gh%')) order by `test`.`test_ref`.`c` limit 1 @@ -3891,7 +3891,7 @@ WHERE id=3 AND c LIKE 'gh%' ORDER BY c DESC 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 25 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 25 100.00 Parallel execute (4 workers) 2 SIMPLE test_ref NULL range idx1,idx2 idx1 88 NULL 25 100.00 Using where; Backward index scan Warnings: Note 1003 /* select#1 */ select `test`.`test_ref`.`a` AS `a`,`test`.`test_ref`.`b` AS `b`,`test`.`test_ref`.`c` AS `c`,`test`.`test_ref`.`d` AS `d`,`test`.`test_ref`.`id` AS `id` from `test`.`test_ref` where ((`test`.`test_ref`.`id` = 3) and (`test`.`test_ref`.`c` like 'gh%')) order by `test`.`test_ref`.`c` desc limit 1 diff --git a/mysql-test/r/range_mrr_cost.result-pq b/mysql-test/r/range_mrr_cost.result-pq index 293ab09df0ea..c4509b0a8468 100644 --- a/mysql-test/r/range_mrr_cost.result-pq +++ b/mysql-test/r/range_mrr_cost.result-pq @@ -2238,7 +2238,7 @@ INSERT INTO t2 VALUES EXPLAIN SELECT t1.*,t2.* FROM t1 straight_join t2 ON t2.col_int_key = t1.col_int WHERE t2.pk < t1.pk; 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 # # Using where 2 SIMPLE t2 NULL ref PRIMARY,col_int_key col_int_key 5 test.t1.col_int # # Using where Warnings: @@ -2261,7 +2261,7 @@ FLUSH TABLES; EXPLAIN SELECT t1.*,t2.* FROM t1 straight_join t2 ON t2.col_int_key = t1.col_int WHERE t2.pk < t1.pk; 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 PRIMARY,col_int_key NULL NULL NULL # # Range checked for each record (index map: 0x3) Warnings: @@ -3502,7 +3502,7 @@ Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but wil INSERT INTO t1 VALUES ('ABCDE',19), ('JLVGO',14); EXPLAIN SELECT * FROM t1 WHERE t1.v1 < CHAR(128); 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 v1_key NULL NULL NULL 2 50.00 Using where Warnings: Warning 1366 Incorrect string value: '\x80' for column 'v1' at row 1 @@ -3782,7 +3782,7 @@ test.t1 analyze status OK test.t2 analyze status OK EXPLAIN SELECT MIN(t1.pk) FROM t1, t2 WHERE t2.vc = t1.vc OR t2.i = t1.pk; 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 PRIMARY NULL NULL NULL 2 100.00 NULL 2 SIMPLE t2 NULL ALL i,vc NULL NULL NULL 3 55.56 Range checked for each record (index map: 0x6) Warnings: @@ -3874,7 +3874,7 @@ WHERE id=3 AND c LIKE 'gh%' ORDER BY c 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 25 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 25 100.00 Parallel execute (4 workers) 2 SIMPLE test_ref NULL range idx1,idx2 idx1 88 NULL 25 100.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`test_ref`.`a` AS `a`,`test`.`test_ref`.`b` AS `b`,`test`.`test_ref`.`c` AS `c`,`test`.`test_ref`.`d` AS `d`,`test`.`test_ref`.`id` AS `id` from `test`.`test_ref` where ((`test`.`test_ref`.`id` = 3) and (`test`.`test_ref`.`c` like 'gh%')) order by `test`.`test_ref`.`c` limit 1 @@ -3891,7 +3891,7 @@ WHERE id=3 AND c LIKE 'gh%' ORDER BY c DESC 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 25 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 25 100.00 Parallel execute (4 workers) 2 SIMPLE test_ref NULL range idx1,idx2 idx1 88 NULL 25 100.00 Using where; Backward index scan Warnings: Note 1003 /* select#1 */ select `test`.`test_ref`.`a` AS `a`,`test`.`test_ref`.`b` AS `b`,`test`.`test_ref`.`c` AS `c`,`test`.`test_ref`.`d` AS `d`,`test`.`test_ref`.`id` AS `id` from `test`.`test_ref` where ((`test`.`test_ref`.`id` = 3) and (`test`.`test_ref`.`c` like 'gh%')) order by `test`.`test_ref`.`c` desc limit 1 diff --git a/mysql-test/r/range_none.result-pq b/mysql-test/r/range_none.result-pq index fffb4f543fc6..3b3e0906e15c 100644 --- a/mysql-test/r/range_none.result-pq +++ b/mysql-test/r/range_none.result-pq @@ -2237,7 +2237,7 @@ INSERT INTO t2 VALUES EXPLAIN SELECT t1.*,t2.* FROM t1 straight_join t2 ON t2.col_int_key = t1.col_int WHERE t2.pk < t1.pk; 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 # # Using where 2 SIMPLE t2 NULL ref PRIMARY,col_int_key col_int_key 5 test.t1.col_int # # Using where Warnings: @@ -2260,7 +2260,7 @@ FLUSH TABLES; EXPLAIN SELECT t1.*,t2.* FROM t1 straight_join t2 ON t2.col_int_key = t1.col_int WHERE t2.pk < t1.pk; 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 PRIMARY,col_int_key NULL NULL NULL # # Range checked for each record (index map: 0x3) Warnings: @@ -3501,7 +3501,7 @@ Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but wil INSERT INTO t1 VALUES ('ABCDE',19), ('JLVGO',14); EXPLAIN SELECT * FROM t1 WHERE t1.v1 < CHAR(128); 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 v1_key NULL NULL NULL 2 50.00 Using where Warnings: Warning 1366 Incorrect string value: '\x80' for column 'v1' at row 1 @@ -3781,7 +3781,7 @@ test.t1 analyze status OK test.t2 analyze status OK EXPLAIN SELECT MIN(t1.pk) FROM t1, t2 WHERE t2.vc = t1.vc OR t2.i = t1.pk; 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 PRIMARY NULL NULL NULL 2 100.00 NULL 2 SIMPLE t2 NULL ALL i,vc NULL NULL NULL 3 55.56 Range checked for each record (index map: 0x6) Warnings: @@ -3873,7 +3873,7 @@ WHERE id=3 AND c LIKE 'gh%' ORDER BY c 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 25 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 25 100.00 Parallel execute (4 workers) 2 SIMPLE test_ref NULL range idx1,idx2 idx1 88 NULL 25 100.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`test_ref`.`a` AS `a`,`test`.`test_ref`.`b` AS `b`,`test`.`test_ref`.`c` AS `c`,`test`.`test_ref`.`d` AS `d`,`test`.`test_ref`.`id` AS `id` from `test`.`test_ref` where ((`test`.`test_ref`.`id` = 3) and (`test`.`test_ref`.`c` like 'gh%')) order by `test`.`test_ref`.`c` limit 1 @@ -3890,7 +3890,7 @@ WHERE id=3 AND c LIKE 'gh%' ORDER BY c DESC 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 25 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 25 100.00 Parallel execute (4 workers) 2 SIMPLE test_ref NULL range idx1,idx2 idx1 88 NULL 25 100.00 Using where; Backward index scan Warnings: Note 1003 /* select#1 */ select `test`.`test_ref`.`a` AS `a`,`test`.`test_ref`.`b` AS `b`,`test`.`test_ref`.`c` AS `c`,`test`.`test_ref`.`d` AS `d`,`test`.`test_ref`.`id` AS `id` from `test`.`test_ref` where ((`test`.`test_ref`.`id` = 3) and (`test`.`test_ref`.`c` like 'gh%')) order by `test`.`test_ref`.`c` desc limit 1 diff --git a/mysql-test/r/row.result-pq b/mysql-test/r/row.result-pq index 8c00b1f93cd1..9db0cef09cea 100644 --- a/mysql-test/r/row.result-pq +++ b/mysql-test/r/row.result-pq @@ -332,7 +332,7 @@ Table Op Msg_type Msg_text test.t2 analyze status OK EXPLAIN SELECT * FROM t1,t2 WHERE t1.a=t2.a AND t1.b=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 7 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 7 100.00 Parallel execute (4 workers) 2 SIMPLE t2 NULL index PRIMARY PRIMARY 12 NULL 7 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 8 test.t2.a,test.t2.b 1 100.00 Using index Warnings: @@ -346,7 +346,7 @@ EXPLAIN EXPLAIN SELECT * FROM t1,t2 WHERE (t1.a,t1.b)=(t2.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 7 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 7 100.00 Parallel execute (4 workers) 2 SIMPLE t2 NULL index PRIMARY PRIMARY 12 NULL 7 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 8 test.t2.a,test.t2.b 1 100.00 Using index Warnings: @@ -376,14 +376,14 @@ a b a b c 3 1 3 1 3 EXPLAIN SELECT * FROM t1,t2 WHERE t1.a=t2.a AND t1.b=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 16.67 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 6 16.67 Parallel execute (4 workers) 2 SIMPLE t1 NULL index PRIMARY PRIMARY 8 NULL 6 16.67 Using where; Using index 2 SIMPLE t2 NULL ref PRIMARY PRIMARY 4 test.t1.a 2 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t1` join `test`.`t2` where ((`test`.`t1`.`b` = 2) and (`test`.`t2`.`a` = `test`.`t1`.`a`)) EXPLAIN SELECT * FROM t1,t2 WHERE (t1.a,t1.b)=(t2.a,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 16.67 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 6 16.67 Parallel execute (4 workers) 2 SIMPLE t1 NULL index PRIMARY PRIMARY 8 NULL 6 16.67 Using where; Using index 2 SIMPLE t2 NULL ref PRIMARY PRIMARY 4 test.t1.a 2 100.00 Using index Warnings: @@ -406,7 +406,7 @@ a b a b c 3 2 3 1 3 EXPLAIN SELECT * FROM t1,t2 WHERE (t1.a,t1.b)=(t2.a,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 7 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 7 100.00 Parallel execute (4 workers) 2 SIMPLE t2 NULL index PRIMARY PRIMARY 12 NULL 7 100.00 Using index 2 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 8 test.t2.a,func 1 100.00 Using where; Using index Warnings: @@ -419,7 +419,7 @@ a b a b c 3 2 3 1 3 EXPLAIN SELECT * FROM t1,t2 WHERE (t1.a-1,t1.b)=(t2.a-1,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 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 PRIMARY 8 NULL 6 100.00 Using index 2 SIMPLE t2 NULL index NULL PRIMARY 12 NULL 7 100.00 Using where; Using index; Using join buffer (hash join) Warnings: @@ -448,14 +448,14 @@ SELECT * FROM t2 WHERE (a,b)=(3,2); a b c EXPLAIN SELECT * FROM t1,t2 WHERE t2.a=t1.a AND t2.b=2 AND t2.c=1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 7 14.29 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 7 14.29 Parallel execute (4 workers) 2 SIMPLE t2 NULL index PRIMARY PRIMARY 12 NULL 7 14.29 Using where; Using index 2 SIMPLE t1 NULL ref PRIMARY PRIMARY 4 test.t2.a 2 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t1` join `test`.`t2` where ((`test`.`t2`.`c` = 1) and (`test`.`t2`.`b` = 2) and (`test`.`t1`.`a` = `test`.`t2`.`a`)) EXPLAIN SELECT * FROM t1,t2 WHERE (t2.a,(t2.b,t2.c))=(t1.a,(2,1)); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 7 14.29 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 7 14.29 Parallel execute (4 workers) 2 SIMPLE t2 NULL index PRIMARY PRIMARY 12 NULL 7 14.29 Using where; Using index 2 SIMPLE t1 NULL ref PRIMARY PRIMARY 4 test.t2.a 2 100.00 Using index Warnings: @@ -466,7 +466,7 @@ a b a b c 1 2 1 2 1 EXPLAIN SELECT * FROM t1,t2 WHERE t2.a=t1.a AND (t2.b,t2.c)=(2,1); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 7 14.29 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 7 14.29 Parallel execute (4 workers) 2 SIMPLE t2 NULL index PRIMARY PRIMARY 12 NULL 7 14.29 Using where; Using index 2 SIMPLE t1 NULL ref PRIMARY PRIMARY 4 test.t2.a 2 100.00 Using index Warnings: diff --git a/mysql-test/r/sp.result-pq b/mysql-test/r/sp.result-pq index 8d3775afe6ca..88be1f5d62c7 100644 --- a/mysql-test/r/sp.result-pq +++ b/mysql-test/r/sp.result-pq @@ -6372,7 +6372,7 @@ Table Op Msg_type Msg_text test.t1 analyze status OK EXPLAIN SELECT * FROM t1 WHERE c1=1; 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 c1 c1 5 const 1 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`c1` AS `c1` from `test`.`t1` where (`test`.`t1`.`c1` = 1) diff --git a/mysql-test/r/subquery_antijoin.result-pq b/mysql-test/r/subquery_antijoin.result-pq index 29fca2c813f0..56537a150bdf 100644 --- a/mysql-test/r/subquery_antijoin.result-pq +++ b/mysql-test/r/subquery_antijoin.result-pq @@ -41,7 +41,7 @@ a EXPLAIN SELECT 1 as a FROM t2 as ot WHERE NOT EXISTS (SELECT * FROM t1 AS it); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 80 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 80 100.00 Parallel execute (4 workers) 2 SIMPLE ot NULL index NULL PRIMARY 4 NULL 80 100.00 Using index 2 SIMPLE it NULL index NULL ukn 4 NULL 3 100.00 Using where; Not exists; Using index; Using join buffer (hash join) Warnings: @@ -53,7 +53,7 @@ EXPLAIN SELECT pk FROM t2 as ot WHERE NOT EXISTS (SELECT * FROM t1 AS it WHERE it.uk=ot.pk) AND ot.pk<25; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 24 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 24 100.00 Parallel execute (4 workers) 2 SIMPLE ot NULL range PRIMARY PRIMARY 4 NULL 24 100.00 Using where; Using index 2 SIMPLE it NULL eq_ref uk uk 5 test.ot.pk 1 100.00 Using where; Not exists; Using index Warnings: @@ -75,7 +75,7 @@ EXPLAIN "rows_examined_per_scan": 24, "rows_produced_per_join": 24, "filtered": "100.00", - "parallel_execute": "1 workers", + "parallel_execute": "4 workers", "cost: # "read_cost: # "eval_cost: # @@ -971,7 +971,7 @@ Table Op Msg_type Msg_text test.t1 analyze status OK EXPLAIN SELECT ID FROM t1 WHERE id IN ( SELECT 1 ); 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 1249 Select 2 was reduced during optimization @@ -981,7 +981,7 @@ ID 1 EXPLAIN SELECT ID FROM t1 WHERE id NOT IN ( SELECT 1 ); 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 ALL NULL NULL NULL NULL 5 80.00 Using where Warnings: Note 1249 Select 2 was reduced during optimization @@ -994,7 +994,7 @@ ID 5 EXPLAIN SELECT id, id IN (SELECT NULL) IS TRUE AS test 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 1249 Select 2 was reduced during optimization @@ -1039,7 +1039,7 @@ alias1.col_datetime_key AS field3 FROM t1 AS alias1 LEFT JOIN t1 AS alias2 ON NOT EXISTS ( SELECT * FROM t1 AS alias3 WHERE ( SELECT 1 FROM DUAL ) 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 (2 workers) 2 SIMPLE alias1 NULL ALL NULL NULL NULL NULL 2 100.00 NULL 2 SIMPLE alias2 NULL index NULL idx_C_col_varchar_key 6 NULL 2 100.00 Using where; Using index; Using join buffer (hash join) Warnings: @@ -1126,7 +1126,7 @@ INSERT INTO t1 VALUES(1),(2); INSERT INTO t2 VALUES(2),(3); explain SELECT MAX(t1.a) FROM t1 WHERE a NOT IN (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 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 index NULL a 4 NULL 2 100.00 Using index 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 2 100.00 Using where; Not exists; Using join buffer (hash join) Warnings: diff --git a/mysql-test/r/subquery_exists.result-pq b/mysql-test/r/subquery_exists.result-pq index 23d69fe2b22f..cca67e6e8d15 100644 --- a/mysql-test/r/subquery_exists.result-pq +++ b/mysql-test/r/subquery_exists.result-pq @@ -75,7 +75,7 @@ EXPLAIN SELECT * FROM t1 AS ot WHERE EXISTS (SELECT * FROM t1 AS it WHERE it.pk = 1); id select_type table partitions type possible_keys key key_len ref rows filtered Extra 1 SIMPLE it NULL const PRIMARY PRIMARY 4 const 1 100.00 Using index -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 it NULL const PRIMARY PRIMARY 4 const 1 100.00 Using index 2 SIMPLE ot NULL ALL NULL NULL NULL NULL 3 100.00 NULL Warnings: @@ -127,7 +127,7 @@ pk uk ukn ik d EXPLAIN SELECT * FROM t1 AS ot WHERE EXISTS (SELECT * FROM t1 AS it WHERE it.pk = ot.pk); 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 ot NULL ALL PRIMARY NULL NULL NULL 3 100.00 NULL 2 SIMPLE it NULL eq_ref PRIMARY PRIMARY 4 test.ot.pk 1 100.00 Using index Warnings: @@ -142,7 +142,7 @@ pk uk ukn ik d EXPLAIN SELECT * FROM t1 AS ot WHERE EXISTS (SELECT * FROM t1 AS it WHERE it.uk = ot.uk); 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 ot NULL ALL uk NULL NULL NULL 3 100.00 Using where 2 SIMPLE it NULL eq_ref uk uk 5 test.ot.uk 1 100.00 Using index Warnings: @@ -156,7 +156,7 @@ pk uk ukn ik d EXPLAIN SELECT * FROM t1 AS ot WHERE EXISTS (SELECT * FROM t1 AS it WHERE it.ukn = ot.ukn); 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 ot NULL ALL ukn NULL NULL NULL 3 100.00 NULL 2 SIMPLE it NULL eq_ref ukn ukn 4 test.ot.ukn 1 100.00 Using index Warnings: @@ -171,7 +171,7 @@ pk uk ukn ik d EXPLAIN SELECT * FROM t1 AS ot WHERE EXISTS (SELECT * FROM t1 AS it WHERE it.ik = ot.ik); 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 ot NULL ALL ik NULL NULL NULL 3 100.00 Using where 2 SIMPLE it NULL ref ik ik 5 test.ot.ik 1 100.00 Using index; FirstMatch(ot) Warnings: @@ -185,7 +185,7 @@ pk uk ukn ik d EXPLAIN SELECT * FROM t1 AS ot WHERE EXISTS (SELECT * FROM t1 AS it WHERE it.d = ot.d); 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 ot NULL ALL NULL NULL NULL NULL 3 100.00 NULL 2 SIMPLE it NULL ALL NULL NULL NULL NULL 3 33.33 Using where; FirstMatch(ot); Using join buffer (hash join) Warnings: @@ -199,7 +199,7 @@ pk uk ukn ik d EXPLAIN SELECT * FROM t1 AS ot WHERE EXISTS (SELECT * FROM t1 AS it WHERE it.pk > ot.pk); 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 ot NULL ALL PRIMARY NULL NULL NULL 3 100.00 NULL 2 SIMPLE it NULL ALL PRIMARY NULL NULL NULL 3 33.33 Range checked for each record (index map: 0x1); FirstMatch(ot) Warnings: @@ -213,7 +213,7 @@ pk uk ukn ik d EXPLAIN SELECT * FROM t1 AS ot WHERE EXISTS (SELECT * FROM t1 AS it WHERE it.uk > ot.uk); 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 ot NULL ALL uk NULL NULL NULL 3 100.00 NULL 2 SIMPLE it NULL ALL uk NULL NULL NULL 3 33.33 Range checked for each record (index map: 0x4); FirstMatch(ot) Warnings: @@ -226,7 +226,7 @@ pk uk ukn ik d EXPLAIN SELECT * FROM t1 AS ot WHERE EXISTS (SELECT * FROM t1 AS it WHERE it.ukn > ot.ukn); 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 ot NULL ALL ukn NULL NULL NULL 3 100.00 NULL 2 SIMPLE it NULL ALL ukn NULL NULL NULL 3 33.33 Range checked for each record (index map: 0x2); FirstMatch(ot) Warnings: @@ -240,7 +240,7 @@ pk uk ukn ik d EXPLAIN SELECT * FROM t1 AS ot WHERE EXISTS (SELECT * FROM t1 AS it WHERE it.ik > ot.ik); 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 ot NULL ALL ik NULL NULL NULL 3 100.00 NULL 2 SIMPLE it NULL ALL ik NULL NULL NULL 3 33.33 Range checked for each record (index map: 0x8); FirstMatch(ot) Warnings: @@ -253,7 +253,7 @@ pk uk ukn ik d EXPLAIN SELECT * FROM t1 AS ot WHERE EXISTS (SELECT * FROM t1 AS it WHERE it.d > ot.d); 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 ot NULL ALL NULL NULL NULL NULL 3 100.00 NULL 2 SIMPLE it NULL ALL NULL NULL NULL NULL 3 33.33 Using where; FirstMatch(ot); Using join buffer (hash join) Warnings: @@ -279,7 +279,7 @@ pk EXPLAIN SELECT * FROM t2 AS ot WHERE EXISTS (SELECT * FROM t1 AS it WHERE it.pk = ot.pk); 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 it NULL index PRIMARY ukn 4 NULL 3 100.00 Using index 2 SIMPLE ot NULL eq_ref PRIMARY PRIMARY 4 test.it.pk 1 100.00 Using index Warnings: @@ -293,7 +293,7 @@ pk EXPLAIN SELECT * FROM t2 AS ot WHERE EXISTS (SELECT * FROM t1 AS it WHERE it.uk = ot.pk); 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 it NULL index uk uk 5 NULL 3 100.00 Using where; Using index 2 SIMPLE ot NULL eq_ref PRIMARY PRIMARY 4 test.it.uk 1 100.00 Using index Warnings: @@ -307,7 +307,7 @@ pk EXPLAIN SELECT * FROM t2 AS ot WHERE EXISTS (SELECT * FROM t1 AS it WHERE it.ukn = ot.pk); 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 it NULL index ukn ukn 4 NULL 3 100.00 Using index 2 SIMPLE ot NULL eq_ref PRIMARY PRIMARY 4 test.it.ukn 1 100.00 Using index Warnings: @@ -349,7 +349,7 @@ EXPLAIN SELECT * FROM t1 AS ot WHERE EXISTS (SELECT * FROM t1 AS it1 JOIN t2 AS it2 ON it1.pk > it2.pk WHERE ot.d = it2.pk); 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 ot NULL ALL NULL NULL NULL NULL 3 100.00 Using where 2 SIMPLE it2 NULL eq_ref PRIMARY PRIMARY 4 test.ot.d 1 100.00 Using index 2 SIMPLE it1 NULL ALL PRIMARY NULL NULL NULL 3 33.33 Range checked for each record (index map: 0x1); FirstMatch(it2) diff --git a/mysql-test/r/subquery_sj_firstmatch_bka_nobnl.result-pq b/mysql-test/r/subquery_sj_firstmatch_bka_nobnl.result-pq index 3cd0b45cf45c..085abe3edc3c 100644 --- a/mysql-test/r/subquery_sj_firstmatch_bka_nobnl.result-pq +++ b/mysql-test/r/subquery_sj_firstmatch_bka_nobnl.result-pq @@ -8752,7 +8752,7 @@ WHERE innr.col_varchar_key = 'a' OR innr.pk = 8) AND outr.col_varchar_nokey < 't' ORDER BY outr.col_varchar_key, outr.pk; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 17 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 17 33.33 Parallel execute (4 workers) 2 SIMPLE outr NULL ALL col_varchar_key NULL NULL NULL 17 33.33 Using where; Using filesort 2 SIMPLE innr NULL ref PRIMARY,col_varchar_key col_varchar_key 6 test.outr.col_varchar_key 1 100.00 Using where; Using index; FirstMatch(outr) Warnings: @@ -8876,7 +8876,7 @@ WHERE col_varchar_key IN (SELECT col_varchar_nokey FROM t2) ORDER BY col_datetime_key LIMIT 4; 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 ALL col_varchar_key NULL NULL NULL 20 100.00 Using filesort 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 6 16.67 Using where; FirstMatch(t1) Warnings: @@ -8951,7 +8951,7 @@ FROM t2 AS parent1 LEFT JOIN t3 AS parent2 USING (pk) AND grandparent1.col_varchar_key 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 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 parent1 NULL ALL NULL NULL NULL NULL 20 100.00 Using where; Not exists 2 SIMPLE parent2 NULL eq_ref PRIMARY PRIMARY 4 test.parent1.pk 1 100.00 Using index @@ -9834,7 +9834,7 @@ WHERE (ot1.col_varchar_key, ot2.col_varchar_nokey) IN ( SELECT it2.col_varchar_nokey, it1.col_varchar_key FROM t2 AS it1 JOIN t1 AS it2 ON it2.col_int_key = it1.pk); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE 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 ot1 NULL index col_varchar_key col_varchar_key 10 NULL 20 100.00 Using index 2 SIMPLE ot2 NULL ALL NULL NULL NULL NULL 20 100.00 NULL 2 SIMPLE it1 NULL ref PRIMARY,col_varchar_key col_varchar_key 6 test.ot2.col_varchar_nokey 1 100.00 Using index @@ -9896,7 +9896,7 @@ AND NOT ot.col_int_nokey < 2 ) ORDER BY col_varchar_nokey; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 20 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 20 33.33 Parallel execute (4 workers) 2 SIMPLE ot NULL ALL NULL NULL NULL NULL 20 33.33 Using where; Using filesort 2 SIMPLE it NULL ref col_varchar_key col_varchar_key 6 test.ot.col_varchar_nokey 1 100.00 FirstMatch(ot) Warnings: @@ -12030,7 +12030,7 @@ WHERE innr.pk <= 7 ) ; 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 outr NULL ALL NULL NULL NULL NULL 3 100.00 Using where 2 SIMPLE innr NULL ref PRIMARY,col_varchar_key col_varchar_key 7 test.outr.col_varchar_nokey 1 50.00 Using where; Using index; FirstMatch(outr) Warnings: @@ -12405,7 +12405,7 @@ WHERE t3.col_int IS NULL ORDER BY col_int_key ; 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 t4 NULL ALL NULL NULL NULL NULL 6 100.00 Using where; Using filesort 2 SIMPLE t1 NULL ref col_int_key col_int_key 5 test.t4.col_int_key 1 100.00 Using index 2 SIMPLE t2 NULL eq_ref PRIMARY PRIMARY 4 test.t1.pk 1 100.00 NULL diff --git a/mysql-test/r/subquery_sj_innodb_all.result-pq b/mysql-test/r/subquery_sj_innodb_all.result-pq index 1e6b953be233..14547d161044 100644 --- a/mysql-test/r/subquery_sj_innodb_all.result-pq +++ b/mysql-test/r/subquery_sj_innodb_all.result-pq @@ -111,7 +111,7 @@ set join_buffer_size= @save_join_buffer_size; set max_heap_table_size= @save_max_heap_table_size; explain select * from t1 where a in (select b 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 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 b b 5 test.t1.a 1 100.00 Using index; FirstMatch(t1) Warnings: diff --git a/mysql-test/r/subquery_sj_innodb_all_bka.result-pq b/mysql-test/r/subquery_sj_innodb_all_bka.result-pq index 726df44c661d..6b6c4dddfed2 100644 --- a/mysql-test/r/subquery_sj_innodb_all_bka.result-pq +++ b/mysql-test/r/subquery_sj_innodb_all_bka.result-pq @@ -112,7 +112,7 @@ set join_buffer_size= @save_join_buffer_size; set max_heap_table_size= @save_max_heap_table_size; explain select * from t1 where a in (select b 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 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 b b 5 test.t1.a 1 100.00 Using index; FirstMatch(t1) Warnings: diff --git a/mysql-test/r/subquery_sj_innodb_all_bka_nobnl.result-pq b/mysql-test/r/subquery_sj_innodb_all_bka_nobnl.result-pq index 21c0c52c11b2..cb34eec2e3aa 100644 --- a/mysql-test/r/subquery_sj_innodb_all_bka_nobnl.result-pq +++ b/mysql-test/r/subquery_sj_innodb_all_bka_nobnl.result-pq @@ -112,7 +112,7 @@ set join_buffer_size= @save_join_buffer_size; set max_heap_table_size= @save_max_heap_table_size; explain select * from t1 where a in (select b 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 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 b b 5 test.t1.a 1 100.00 Using index; FirstMatch(t1) Warnings: diff --git a/mysql-test/r/subquery_sj_loosescan.result-pq b/mysql-test/r/subquery_sj_loosescan.result-pq index 7566fa45957e..ee98da8a24ba 100644 --- a/mysql-test/r/subquery_sj_loosescan.result-pq +++ b/mysql-test/r/subquery_sj_loosescan.result-pq @@ -8972,7 +8972,7 @@ FROM t2 AS parent1 LEFT JOIN t3 AS parent2 USING (pk) AND grandparent1.col_varchar_key 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 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 parent1 NULL ALL NULL NULL NULL NULL 20 100.00 Using where; Not exists; Start temporary 2 SIMPLE parent2 NULL eq_ref PRIMARY PRIMARY 4 test.parent1.pk 1 100.00 Using index @@ -9862,7 +9862,7 @@ WHERE (ot1.col_varchar_key, ot2.col_varchar_nokey) IN ( SELECT it2.col_varchar_nokey, it1.col_varchar_key FROM t2 AS it1 JOIN t1 AS it2 ON it2.col_int_key = it1.pk); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE 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 ot1 NULL index col_varchar_key col_varchar_key 10 NULL 20 100.00 Using index 2 SIMPLE it1 NULL index PRIMARY,col_varchar_key col_varchar_key 10 NULL 20 80.00 Using index; LooseScan 2 SIMPLE it2 NULL ref col_int_key col_int_key 4 test.it1.pk 1 10.00 Using where; FirstMatch(it1) @@ -9924,7 +9924,7 @@ AND NOT ot.col_int_nokey < 2 ) ORDER BY col_varchar_nokey; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 20 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 20 33.33 Parallel execute (4 workers) 2 SIMPLE ot NULL ALL NULL NULL NULL NULL 20 33.33 Using where; Using filesort 2 SIMPLE it NULL ref col_varchar_key col_varchar_key 6 test.ot.col_varchar_nokey 1 100.00 Start temporary; End temporary Warnings: diff --git a/mysql-test/r/subquery_sj_loosescan_bka.result-pq b/mysql-test/r/subquery_sj_loosescan_bka.result-pq index 04b8f65427c2..8ef2793d15a7 100644 --- a/mysql-test/r/subquery_sj_loosescan_bka.result-pq +++ b/mysql-test/r/subquery_sj_loosescan_bka.result-pq @@ -8973,7 +8973,7 @@ FROM t2 AS parent1 LEFT JOIN t3 AS parent2 USING (pk) AND grandparent1.col_varchar_key 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 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 parent1 NULL ALL NULL NULL NULL NULL 20 100.00 Using where; Not exists; Start temporary 2 SIMPLE parent2 NULL eq_ref PRIMARY PRIMARY 4 test.parent1.pk 1 100.00 Using index @@ -9863,7 +9863,7 @@ WHERE (ot1.col_varchar_key, ot2.col_varchar_nokey) IN ( SELECT it2.col_varchar_nokey, it1.col_varchar_key FROM t2 AS it1 JOIN t1 AS it2 ON it2.col_int_key = it1.pk); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE 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 ot1 NULL index col_varchar_key col_varchar_key 10 NULL 20 100.00 Using index 2 SIMPLE it1 NULL index PRIMARY,col_varchar_key col_varchar_key 10 NULL 20 80.00 Using index; LooseScan 2 SIMPLE it2 NULL ref col_int_key col_int_key 4 test.it1.pk 1 10.00 Using where; FirstMatch(it1) @@ -9925,7 +9925,7 @@ AND NOT ot.col_int_nokey < 2 ) ORDER BY col_varchar_nokey; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 20 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 20 33.33 Parallel execute (4 workers) 2 SIMPLE ot NULL ALL NULL NULL NULL NULL 20 33.33 Using where; Using filesort 2 SIMPLE it NULL ref col_varchar_key col_varchar_key 6 test.ot.col_varchar_nokey 1 100.00 Start temporary; End temporary Warnings: diff --git a/mysql-test/r/subquery_sj_loosescan_bka_nobnl.result-pq b/mysql-test/r/subquery_sj_loosescan_bka_nobnl.result-pq index 473113161b65..f2e7ccecb64c 100644 --- a/mysql-test/r/subquery_sj_loosescan_bka_nobnl.result-pq +++ b/mysql-test/r/subquery_sj_loosescan_bka_nobnl.result-pq @@ -8975,7 +8975,7 @@ FROM t2 AS parent1 LEFT JOIN t3 AS parent2 USING (pk) AND grandparent1.col_varchar_key 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 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 parent1 NULL ALL NULL NULL NULL NULL 20 100.00 Using where; Not exists; Start temporary 2 SIMPLE parent2 NULL eq_ref PRIMARY PRIMARY 4 test.parent1.pk 1 100.00 Using index @@ -9865,7 +9865,7 @@ WHERE (ot1.col_varchar_key, ot2.col_varchar_nokey) IN ( SELECT it2.col_varchar_nokey, it1.col_varchar_key FROM t2 AS it1 JOIN t1 AS it2 ON it2.col_int_key = it1.pk); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE 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 ot1 NULL index col_varchar_key col_varchar_key 10 NULL 20 100.00 Using index 2 SIMPLE it1 NULL index PRIMARY,col_varchar_key col_varchar_key 10 NULL 20 80.00 Using index; LooseScan 2 SIMPLE it2 NULL ref col_int_key col_int_key 4 test.it1.pk 1 10.00 Using where; FirstMatch(it1) @@ -9927,7 +9927,7 @@ AND NOT ot.col_int_nokey < 2 ) ORDER BY col_varchar_nokey; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 20 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 20 33.33 Parallel execute (4 workers) 2 SIMPLE ot NULL ALL NULL NULL NULL NULL 20 33.33 Using where; Using filesort 2 SIMPLE it NULL ref col_varchar_key col_varchar_key 6 test.ot.col_varchar_nokey 1 100.00 Start temporary; End temporary Warnings: diff --git a/mysql-test/r/subquery_sj_mat.result-pq b/mysql-test/r/subquery_sj_mat.result-pq index 7a62f3d98dfe..7480a75dbe5b 100644 --- a/mysql-test/r/subquery_sj_mat.result-pq +++ b/mysql-test/r/subquery_sj_mat.result-pq @@ -10195,7 +10195,7 @@ AND NOT ot.col_int_nokey < 2 ) ORDER BY col_varchar_nokey; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 20 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 20 33.33 Parallel execute (4 workers) 2 SIMPLE ot NULL ALL NULL NULL NULL NULL 20 33.33 Using where; Using filesort 2 SIMPLE it NULL ref col_varchar_key col_varchar_key 6 test.ot.col_varchar_nokey 1 100.00 Start temporary; End temporary Warnings: diff --git a/mysql-test/r/subquery_sj_mat_bka.result-pq b/mysql-test/r/subquery_sj_mat_bka.result-pq index 90368fc5af77..7d8f1d130ee4 100644 --- a/mysql-test/r/subquery_sj_mat_bka.result-pq +++ b/mysql-test/r/subquery_sj_mat_bka.result-pq @@ -10196,7 +10196,7 @@ AND NOT ot.col_int_nokey < 2 ) ORDER BY col_varchar_nokey; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 20 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 20 33.33 Parallel execute (4 workers) 2 SIMPLE ot NULL ALL NULL NULL NULL NULL 20 33.33 Using where; Using filesort 2 SIMPLE it NULL ref col_varchar_key col_varchar_key 6 test.ot.col_varchar_nokey 1 100.00 Start temporary; End temporary Warnings: diff --git a/mysql-test/r/subquery_sj_mat_bka_nobnl.result-pq b/mysql-test/r/subquery_sj_mat_bka_nobnl.result-pq index 8db74aee1290..bc648466464b 100644 --- a/mysql-test/r/subquery_sj_mat_bka_nobnl.result-pq +++ b/mysql-test/r/subquery_sj_mat_bka_nobnl.result-pq @@ -10196,7 +10196,7 @@ AND NOT ot.col_int_nokey < 2 ) ORDER BY col_varchar_nokey; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 20 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 20 33.33 Parallel execute (4 workers) 2 SIMPLE ot NULL ALL NULL NULL NULL NULL 20 33.33 Using where; Using filesort 2 SIMPLE it NULL ref col_varchar_key col_varchar_key 6 test.ot.col_varchar_nokey 1 100.00 Start temporary; End temporary Warnings: diff --git a/mysql-test/r/subselect_debug.result-pq b/mysql-test/r/subselect_debug.result-pq index 5218bcaf01bd..14c605b58300 100644 --- a/mysql-test/r/subselect_debug.result-pq +++ b/mysql-test/r/subselect_debug.result-pq @@ -57,7 +57,7 @@ test.t analyze status OK SET optimizer_switch = 'firstmatch=off,materialization=off'; EXPLAIN SELECT * FROM t WHERE x IN (SELECT x FROM t); 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 t NULL ALL NULL NULL NULL NULL 3 100.00 Start temporary 2 SIMPLE t NULL ALL NULL NULL NULL NULL 3 33.33 Using where; End temporary; Using join buffer (hash join) Warnings: diff --git a/mysql-test/r/truth_value_transform.result-pq b/mysql-test/r/truth_value_transform.result-pq index 80aed4a211fa..2f450c7dfe1a 100644 --- a/mysql-test/r/truth_value_transform.result-pq +++ b/mysql-test/r/truth_value_transform.result-pq @@ -5,7 +5,7 @@ Table Op Msg_type Msg_text test.t1 analyze status OK explain select id, a=1 is false 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`.`id` AS `id`,((`test`.`t1`.`a` = 1) is false) AS `a=1 is false` from `test`.`t1` @@ -16,7 +16,7 @@ id a=1 is false 3 0 explain select id, not (a=1 is true) 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`.`id` AS `id`,((`test`.`t1`.`a` = 1) is not true) AS `not (a=1 is true)` from `test`.`t1` @@ -27,7 +27,7 @@ id not (a=1 is true) 3 1 explain select id, (not a=1) is true 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`.`id` AS `id`,((`test`.`t1`.`a` <> 1) is true) AS `(not a=1) is true` from `test`.`t1` @@ -38,7 +38,7 @@ id (not a=1) is true 3 0 explain select id, not (a=1 is false) 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`.`id` AS `id`,((`test`.`t1`.`a` = 1) is not false) AS `not (a=1 is false)` from `test`.`t1` @@ -49,7 +49,7 @@ id not (a=1 is false) 3 1 explain select id, not (a=1 is unknown) 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`.`id` AS `id`,((`test`.`t1`.`a` = 1) is not null) AS `not (a=1 is unknown)` from `test`.`t1` @@ -60,7 +60,7 @@ id not (a=1 is unknown) 3 0 explain select id, ((not a=1) is true) is false 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`.`id` AS `id`,((`test`.`t1`.`a` <> 1) is not true) AS `((not a=1) is true) is false` from `test`.`t1` @@ -71,7 +71,7 @@ id ((not a=1) is true) is false 3 1 explain select id, 3 + (not (a=1 is false)) 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`.`id` AS `id`,(3 + ((`test`.`t1`.`a` = 1) is not false)) AS `3 + (not (a=1 is false))` from `test`.`t1` diff --git a/mysql-test/r/type_date.result-pq b/mysql-test/r/type_date.result-pq index 59811cc89650..1a41f86b402b 100644 --- a/mysql-test/r/type_date.result-pq +++ b/mysql-test/r/type_date.result-pq @@ -210,7 +210,7 @@ Table Op Msg_type Msg_text test.t1 analyze status OK EXPLAIN SELECT COUNT(*) FROM t1 WHERE a = NOW(); 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 count(0) AS `COUNT(*)` from `test`.`t1` where (`test`.`t1`.`a` = (now())) diff --git a/mysql-test/r/type_datetime.result-pq b/mysql-test/r/type_datetime.result-pq index cf477993909e..ca4d954358bd 100644 --- a/mysql-test/r/type_datetime.result-pq +++ b/mysql-test/r/type_datetime.result-pq @@ -417,12 +417,14 @@ Warnings: Warning 1292 Incorrect datetime value: '2002010' for column 'f1' at row 1 Warning 1292 Incorrect datetime value: '2002010' for column 'f1' at row 1 Warning 1292 Incorrect datetime value: '2002010' for column 'f1' at row 1 +Warning 1292 Incorrect datetime value: '2002010' for column 'f1' at row 1 select * from t1 where f1 between 20020101 and 2007010100000; f1 Warnings: Warning 1292 Incorrect datetime value: '2007010100000' for column 'f1' at row 1 Warning 1292 Incorrect datetime value: '2007010100000' for column 'f1' at row 1 Warning 1292 Incorrect datetime value: '2007010100000' for column 'f1' at row 1 +Warning 1292 Incorrect datetime value: '2007010100000' for column 'f1' at row 1 drop table t1; # # Bug#27216: functions with parameters of different date types may diff --git a/mysql-test/r/type_enum.result-pq b/mysql-test/r/type_enum.result-pq index 7812ea99551c..03eed7b7940a 100644 --- a/mysql-test/r/type_enum.result-pq +++ b/mysql-test/r/type_enum.result-pq @@ -1858,7 +1858,7 @@ a c EXPLAIN SELECT a FROM t1 WHERE a=0; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 24.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 24.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 4 24.00 Using where Warnings: Note 1004 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where (`test`.`t1`.`a` = 0) diff --git a/mysql-test/r/type_time.result-pq b/mysql-test/r/type_time.result-pq index 561e3fc0cfc9..6d4bcb19ee2a 100644 --- a/mysql-test/r/type_time.result-pq +++ b/mysql-test/r/type_time.result-pq @@ -452,7 +452,7 @@ STRAIGHT_JOIN t2 ignore INDEX (col_datetime_key) WHERE col_time_key = col_datetime_key; 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 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 5 20.00 Using where; Using join buffer (hash join) Warnings: @@ -474,7 +474,7 @@ STRAIGHT_JOIN t2 ignore INDEX (col_datetime_key) WHERE col_datetime_key = col_time_key; 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 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 5 20.00 Using where; Using join buffer (hash join) Warnings: @@ -496,7 +496,7 @@ STRAIGHT_JOIN t2 force INDEX (col_datetime_key) WHERE col_time_key = col_datetime_key; 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 2 SIMPLE t2 NULL ref col_datetime_key col_datetime_key 6 test.t1.col_time_key 1 100.00 Using where; Using index Warnings: @@ -518,7 +518,7 @@ STRAIGHT_JOIN t2 force INDEX (col_datetime_key) WHERE col_datetime_key = col_time_key; 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 2 SIMPLE t2 NULL ref col_datetime_key col_datetime_key 6 test.t1.col_time_key 1 100.00 Using where; Using index Warnings: @@ -540,7 +540,7 @@ STRAIGHT_JOIN t2 ignore INDEX (col_datetime_key) WHERE col_time_key = col_datetime_key; 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 col_time_key col_time_key 4 NULL 5 100.00 Using index 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 5 20.00 Using where; Using join buffer (hash join) Warnings: @@ -563,7 +563,7 @@ STRAIGHT_JOIN t2 ignore INDEX (col_datetime_key) WHERE col_datetime_key = col_time_key; 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 col_time_key col_time_key 4 NULL 5 100.00 Using index 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 5 20.00 Using where; Using join buffer (hash join) Warnings: @@ -586,7 +586,7 @@ STRAIGHT_JOIN t2 force INDEX (col_datetime_key) WHERE col_time_key = col_datetime_key; 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 col_time_key col_time_key 4 NULL 5 100.00 Using where; Using index 2 SIMPLE t2 NULL ref col_datetime_key col_datetime_key 6 test.t1.col_time_key 1 100.00 Using where; Using index Warnings: @@ -609,7 +609,7 @@ STRAIGHT_JOIN t2 force INDEX (col_datetime_key) WHERE col_datetime_key = col_time_key; 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 col_time_key col_time_key 4 NULL 5 100.00 Using where; Using index 2 SIMPLE t2 NULL ref col_datetime_key col_datetime_key 6 test.t1.col_time_key 1 100.00 Using where; Using index Warnings: @@ -632,7 +632,7 @@ STRAIGHT_JOIN t1 ignore INDEX (col_time_key) WHERE col_time_key = col_datetime_key; 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 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 5 20.00 Using where; Using join buffer (hash join) Warnings: @@ -654,7 +654,7 @@ STRAIGHT_JOIN t1 ignore INDEX (col_time_key) WHERE col_datetime_key = col_time_key; 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 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 5 20.00 Using where; Using join buffer (hash join) Warnings: @@ -676,7 +676,7 @@ STRAIGHT_JOIN t1 force INDEX (col_time_key) WHERE col_time_key = col_datetime_key; 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 2 SIMPLE t1 NULL index col_time_key col_time_key 4 NULL 5 20.00 Using where; Using index; Using join buffer (hash join) Warnings: @@ -700,7 +700,7 @@ STRAIGHT_JOIN t1 force INDEX (col_time_key) WHERE col_datetime_key = col_time_key; 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 2 SIMPLE t1 NULL index col_time_key col_time_key 4 NULL 5 20.00 Using where; Using index; Using join buffer (hash join) Warnings: @@ -724,7 +724,7 @@ STRAIGHT_JOIN t1 ignore INDEX (col_time_key) WHERE col_time_key = col_datetime_key; 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 col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 5 20.00 Using where; Using join buffer (hash join) Warnings: @@ -746,7 +746,7 @@ STRAIGHT_JOIN t1 ignore INDEX (col_time_key) WHERE col_datetime_key = col_time_key; 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 col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 5 20.00 Using where; Using join buffer (hash join) Warnings: @@ -768,7 +768,7 @@ STRAIGHT_JOIN t1 force INDEX (col_time_key) WHERE col_time_key = col_datetime_key; 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 col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index 2 SIMPLE t1 NULL index col_time_key col_time_key 4 NULL 5 20.00 Using where; Using index; Using join buffer (hash join) Warnings: @@ -792,7 +792,7 @@ STRAIGHT_JOIN t1 force INDEX (col_time_key) WHERE col_datetime_key = col_time_key; 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 col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index 2 SIMPLE t1 NULL index col_time_key col_time_key 4 NULL 5 20.00 Using where; Using index; Using join buffer (hash join) Warnings: @@ -816,7 +816,7 @@ STRAIGHT_JOIN t2 ignore INDEX (col_datetime_key) WHERE col_time_key >= col_datetime_key; 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 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -848,7 +848,7 @@ STRAIGHT_JOIN t2 ignore INDEX (col_datetime_key) WHERE col_datetime_key >= col_time_key; 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 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -880,7 +880,7 @@ STRAIGHT_JOIN t2 force INDEX (col_datetime_key) WHERE col_time_key >= col_datetime_key; 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 2 SIMPLE t2 NULL ALL col_datetime_key NULL NULL NULL 5 33.33 Range checked for each record (index map: 0x1) Warnings: @@ -912,7 +912,7 @@ STRAIGHT_JOIN t2 force INDEX (col_datetime_key) WHERE col_datetime_key >= col_time_key; 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 2 SIMPLE t2 NULL ALL col_datetime_key NULL NULL NULL 5 33.33 Range checked for each record (index map: 0x1) Warnings: @@ -944,7 +944,7 @@ STRAIGHT_JOIN t2 ignore INDEX (col_datetime_key) WHERE col_time_key >= col_datetime_key; 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 col_time_key col_time_key 4 NULL 5 100.00 Using index 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -976,7 +976,7 @@ STRAIGHT_JOIN t2 ignore INDEX (col_datetime_key) WHERE col_datetime_key >= col_time_key; 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 col_time_key col_time_key 4 NULL 5 100.00 Using index 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -1008,7 +1008,7 @@ STRAIGHT_JOIN t2 force INDEX (col_datetime_key) WHERE col_time_key >= col_datetime_key; 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 col_time_key col_time_key 4 NULL 5 100.00 Using index 2 SIMPLE t2 NULL ALL col_datetime_key NULL NULL NULL 5 33.33 Range checked for each record (index map: 0x1) Warnings: @@ -1040,7 +1040,7 @@ STRAIGHT_JOIN t2 force INDEX (col_datetime_key) WHERE col_datetime_key >= col_time_key; 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 col_time_key col_time_key 4 NULL 5 100.00 Using index 2 SIMPLE t2 NULL ALL col_datetime_key NULL NULL NULL 5 33.33 Range checked for each record (index map: 0x1) Warnings: @@ -1072,7 +1072,7 @@ STRAIGHT_JOIN t1 ignore INDEX (col_time_key) WHERE col_time_key >= col_datetime_key; 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 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -1104,7 +1104,7 @@ STRAIGHT_JOIN t1 ignore INDEX (col_time_key) WHERE col_datetime_key >= col_time_key; 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 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -1136,7 +1136,7 @@ STRAIGHT_JOIN t1 force INDEX (col_time_key) WHERE col_time_key >= col_datetime_key; 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 2 SIMPLE t1 NULL index col_time_key col_time_key 4 NULL 5 33.33 Using where; Using index; Using join buffer (hash join) Warnings: @@ -1169,7 +1169,7 @@ STRAIGHT_JOIN t1 force INDEX (col_time_key) WHERE col_datetime_key >= col_time_key; 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 2 SIMPLE t1 NULL index col_time_key col_time_key 4 NULL 5 33.33 Using where; Using index; Using join buffer (hash join) Warnings: @@ -1202,7 +1202,7 @@ STRAIGHT_JOIN t1 ignore INDEX (col_time_key) WHERE col_time_key >= col_datetime_key; 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 col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -1234,7 +1234,7 @@ STRAIGHT_JOIN t1 ignore INDEX (col_time_key) WHERE col_datetime_key >= col_time_key; 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 col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -1266,7 +1266,7 @@ STRAIGHT_JOIN t1 force INDEX (col_time_key) WHERE col_time_key >= col_datetime_key; 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 col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index 2 SIMPLE t1 NULL index col_time_key col_time_key 4 NULL 5 33.33 Using where; Using index; Using join buffer (hash join) Warnings: @@ -1299,7 +1299,7 @@ STRAIGHT_JOIN t1 force INDEX (col_time_key) WHERE col_datetime_key >= col_time_key; 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 col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index 2 SIMPLE t1 NULL index col_time_key col_time_key 4 NULL 5 33.33 Using where; Using index; Using join buffer (hash join) Warnings: @@ -1332,7 +1332,7 @@ STRAIGHT_JOIN t2 ignore INDEX (col_datetime_key) WHERE col_time_key > col_datetime_key; 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 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -1359,7 +1359,7 @@ STRAIGHT_JOIN t2 ignore INDEX (col_datetime_key) WHERE col_datetime_key > col_time_key; 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 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -1386,7 +1386,7 @@ STRAIGHT_JOIN t2 force INDEX (col_datetime_key) WHERE col_time_key > col_datetime_key; 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 2 SIMPLE t2 NULL ALL col_datetime_key NULL NULL NULL 5 33.33 Range checked for each record (index map: 0x1) Warnings: @@ -1413,7 +1413,7 @@ STRAIGHT_JOIN t2 force INDEX (col_datetime_key) WHERE col_datetime_key > col_time_key; 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 2 SIMPLE t2 NULL ALL col_datetime_key NULL NULL NULL 5 33.33 Range checked for each record (index map: 0x1) Warnings: @@ -1440,7 +1440,7 @@ STRAIGHT_JOIN t2 ignore INDEX (col_datetime_key) WHERE col_time_key > col_datetime_key; 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 col_time_key col_time_key 4 NULL 5 100.00 Using index 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -1467,7 +1467,7 @@ STRAIGHT_JOIN t2 ignore INDEX (col_datetime_key) WHERE col_datetime_key > col_time_key; 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 col_time_key col_time_key 4 NULL 5 100.00 Using index 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -1494,7 +1494,7 @@ STRAIGHT_JOIN t2 force INDEX (col_datetime_key) WHERE col_time_key > col_datetime_key; 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 col_time_key col_time_key 4 NULL 5 100.00 Using index 2 SIMPLE t2 NULL ALL col_datetime_key NULL NULL NULL 5 33.33 Range checked for each record (index map: 0x1) Warnings: @@ -1521,7 +1521,7 @@ STRAIGHT_JOIN t2 force INDEX (col_datetime_key) WHERE col_datetime_key > col_time_key; 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 col_time_key col_time_key 4 NULL 5 100.00 Using index 2 SIMPLE t2 NULL ALL col_datetime_key NULL NULL NULL 5 33.33 Range checked for each record (index map: 0x1) Warnings: @@ -1548,7 +1548,7 @@ STRAIGHT_JOIN t1 ignore INDEX (col_time_key) WHERE col_time_key > col_datetime_key; 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 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -1575,7 +1575,7 @@ STRAIGHT_JOIN t1 ignore INDEX (col_time_key) WHERE col_datetime_key > col_time_key; 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 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -1602,7 +1602,7 @@ STRAIGHT_JOIN t1 force INDEX (col_time_key) WHERE col_time_key > col_datetime_key; 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 2 SIMPLE t1 NULL index col_time_key col_time_key 4 NULL 5 33.33 Using where; Using index; Using join buffer (hash join) Warnings: @@ -1630,7 +1630,7 @@ STRAIGHT_JOIN t1 force INDEX (col_time_key) WHERE col_datetime_key > col_time_key; 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 2 SIMPLE t1 NULL index col_time_key col_time_key 4 NULL 5 33.33 Using where; Using index; Using join buffer (hash join) Warnings: @@ -1658,7 +1658,7 @@ STRAIGHT_JOIN t1 ignore INDEX (col_time_key) WHERE col_time_key > col_datetime_key; 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 col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -1685,7 +1685,7 @@ STRAIGHT_JOIN t1 ignore INDEX (col_time_key) WHERE col_datetime_key > col_time_key; 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 col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -1712,7 +1712,7 @@ STRAIGHT_JOIN t1 force INDEX (col_time_key) WHERE col_time_key > col_datetime_key; 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 col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index 2 SIMPLE t1 NULL index col_time_key col_time_key 4 NULL 5 33.33 Using where; Using index; Using join buffer (hash join) Warnings: @@ -1740,7 +1740,7 @@ STRAIGHT_JOIN t1 force INDEX (col_time_key) WHERE col_datetime_key > col_time_key; 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 col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index 2 SIMPLE t1 NULL index col_time_key col_time_key 4 NULL 5 33.33 Using where; Using index; Using join buffer (hash join) Warnings: @@ -1768,7 +1768,7 @@ STRAIGHT_JOIN t2 ignore INDEX (col_datetime_key) WHERE col_time_key <= col_datetime_key; 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 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -1800,7 +1800,7 @@ STRAIGHT_JOIN t2 ignore INDEX (col_datetime_key) WHERE col_datetime_key <= col_time_key; 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 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -1832,7 +1832,7 @@ STRAIGHT_JOIN t2 force INDEX (col_datetime_key) WHERE col_time_key <= col_datetime_key; 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 2 SIMPLE t2 NULL ALL col_datetime_key NULL NULL NULL 5 33.33 Range checked for each record (index map: 0x1) Warnings: @@ -1864,7 +1864,7 @@ STRAIGHT_JOIN t2 force INDEX (col_datetime_key) WHERE col_datetime_key <= col_time_key; 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 2 SIMPLE t2 NULL ALL col_datetime_key NULL NULL NULL 5 33.33 Range checked for each record (index map: 0x1) Warnings: @@ -1896,7 +1896,7 @@ STRAIGHT_JOIN t2 ignore INDEX (col_datetime_key) WHERE col_time_key <= col_datetime_key; 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 col_time_key col_time_key 4 NULL 5 100.00 Using index 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -1928,7 +1928,7 @@ STRAIGHT_JOIN t2 ignore INDEX (col_datetime_key) WHERE col_datetime_key <= col_time_key; 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 col_time_key col_time_key 4 NULL 5 100.00 Using index 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -1960,7 +1960,7 @@ STRAIGHT_JOIN t2 force INDEX (col_datetime_key) WHERE col_time_key <= col_datetime_key; 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 col_time_key col_time_key 4 NULL 5 100.00 Using index 2 SIMPLE t2 NULL ALL col_datetime_key NULL NULL NULL 5 33.33 Range checked for each record (index map: 0x1) Warnings: @@ -1992,7 +1992,7 @@ STRAIGHT_JOIN t2 force INDEX (col_datetime_key) WHERE col_datetime_key <= col_time_key; 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 col_time_key col_time_key 4 NULL 5 100.00 Using index 2 SIMPLE t2 NULL ALL col_datetime_key NULL NULL NULL 5 33.33 Range checked for each record (index map: 0x1) Warnings: @@ -2024,7 +2024,7 @@ STRAIGHT_JOIN t1 ignore INDEX (col_time_key) WHERE col_time_key <= col_datetime_key; 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 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -2056,7 +2056,7 @@ STRAIGHT_JOIN t1 ignore INDEX (col_time_key) WHERE col_datetime_key <= col_time_key; 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 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -2088,7 +2088,7 @@ STRAIGHT_JOIN t1 force INDEX (col_time_key) WHERE col_time_key <= col_datetime_key; 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 2 SIMPLE t1 NULL index col_time_key col_time_key 4 NULL 5 33.33 Using where; Using index; Using join buffer (hash join) Warnings: @@ -2121,7 +2121,7 @@ STRAIGHT_JOIN t1 force INDEX (col_time_key) WHERE col_datetime_key <= col_time_key; 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 2 SIMPLE t1 NULL index col_time_key col_time_key 4 NULL 5 33.33 Using where; Using index; Using join buffer (hash join) Warnings: @@ -2154,7 +2154,7 @@ STRAIGHT_JOIN t1 ignore INDEX (col_time_key) WHERE col_time_key <= col_datetime_key; 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 col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -2186,7 +2186,7 @@ STRAIGHT_JOIN t1 ignore INDEX (col_time_key) WHERE col_datetime_key <= col_time_key; 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 col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -2218,7 +2218,7 @@ STRAIGHT_JOIN t1 force INDEX (col_time_key) WHERE col_time_key <= col_datetime_key; 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 col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index 2 SIMPLE t1 NULL index col_time_key col_time_key 4 NULL 5 33.33 Using where; Using index; Using join buffer (hash join) Warnings: @@ -2251,7 +2251,7 @@ STRAIGHT_JOIN t1 force INDEX (col_time_key) WHERE col_datetime_key <= col_time_key; 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 col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index 2 SIMPLE t1 NULL index col_time_key col_time_key 4 NULL 5 33.33 Using where; Using index; Using join buffer (hash join) Warnings: @@ -2284,7 +2284,7 @@ STRAIGHT_JOIN t2 ignore INDEX (col_datetime_key) WHERE col_time_key < col_datetime_key; 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 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -2311,7 +2311,7 @@ STRAIGHT_JOIN t2 ignore INDEX (col_datetime_key) WHERE col_datetime_key < col_time_key; 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 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -2338,7 +2338,7 @@ STRAIGHT_JOIN t2 force INDEX (col_datetime_key) WHERE col_time_key < col_datetime_key; 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 2 SIMPLE t2 NULL ALL col_datetime_key NULL NULL NULL 5 33.33 Range checked for each record (index map: 0x1) Warnings: @@ -2365,7 +2365,7 @@ STRAIGHT_JOIN t2 force INDEX (col_datetime_key) WHERE col_datetime_key < col_time_key; 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 2 SIMPLE t2 NULL ALL col_datetime_key NULL NULL NULL 5 33.33 Range checked for each record (index map: 0x1) Warnings: @@ -2392,7 +2392,7 @@ STRAIGHT_JOIN t2 ignore INDEX (col_datetime_key) WHERE col_time_key < col_datetime_key; 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 col_time_key col_time_key 4 NULL 5 100.00 Using index 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -2419,7 +2419,7 @@ STRAIGHT_JOIN t2 ignore INDEX (col_datetime_key) WHERE col_datetime_key < col_time_key; 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 col_time_key col_time_key 4 NULL 5 100.00 Using index 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -2446,7 +2446,7 @@ STRAIGHT_JOIN t2 force INDEX (col_datetime_key) WHERE col_time_key < col_datetime_key; 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 col_time_key col_time_key 4 NULL 5 100.00 Using index 2 SIMPLE t2 NULL ALL col_datetime_key NULL NULL NULL 5 33.33 Range checked for each record (index map: 0x1) Warnings: @@ -2473,7 +2473,7 @@ STRAIGHT_JOIN t2 force INDEX (col_datetime_key) WHERE col_datetime_key < col_time_key; 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 col_time_key col_time_key 4 NULL 5 100.00 Using index 2 SIMPLE t2 NULL ALL col_datetime_key NULL NULL NULL 5 33.33 Range checked for each record (index map: 0x1) Warnings: @@ -2500,7 +2500,7 @@ STRAIGHT_JOIN t1 ignore INDEX (col_time_key) WHERE col_time_key < col_datetime_key; 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 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -2527,7 +2527,7 @@ STRAIGHT_JOIN t1 ignore INDEX (col_time_key) WHERE col_datetime_key < col_time_key; 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 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -2554,7 +2554,7 @@ STRAIGHT_JOIN t1 force INDEX (col_time_key) WHERE col_time_key < col_datetime_key; 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 2 SIMPLE t1 NULL index col_time_key col_time_key 4 NULL 5 33.33 Using where; Using index; Using join buffer (hash join) Warnings: @@ -2582,7 +2582,7 @@ STRAIGHT_JOIN t1 force INDEX (col_time_key) WHERE col_datetime_key < col_time_key; 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 2 SIMPLE t1 NULL index col_time_key col_time_key 4 NULL 5 33.33 Using where; Using index; Using join buffer (hash join) Warnings: @@ -2610,7 +2610,7 @@ STRAIGHT_JOIN t1 ignore INDEX (col_time_key) WHERE col_time_key < col_datetime_key; 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 col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -2637,7 +2637,7 @@ STRAIGHT_JOIN t1 ignore INDEX (col_time_key) WHERE col_datetime_key < col_time_key; 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 col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 5 33.33 Using where; Using join buffer (hash join) Warnings: @@ -2664,7 +2664,7 @@ STRAIGHT_JOIN t1 force INDEX (col_time_key) WHERE col_time_key < col_datetime_key; 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 col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index 2 SIMPLE t1 NULL index col_time_key col_time_key 4 NULL 5 33.33 Using where; Using index; Using join buffer (hash join) Warnings: @@ -2692,7 +2692,7 @@ STRAIGHT_JOIN t1 force INDEX (col_time_key) WHERE col_datetime_key < col_time_key; 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 col_datetime_key col_datetime_key 6 NULL 5 100.00 Using index 2 SIMPLE t1 NULL index col_time_key col_time_key 4 NULL 5 33.33 Using where; Using index; Using join buffer (hash join) Warnings: diff --git a/mysql-test/r/type_varchar.result-pq b/mysql-test/r/type_varchar.result-pq index 977eb55f7423..3e8b6fa933cd 100644 --- a/mysql-test/r/type_varchar.result-pq +++ b/mysql-test/r/type_varchar.result-pq @@ -73,19 +73,19 @@ Some sample data Some samples explain select * from t1 where v like 'This is a test' order by v; 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 range v v 257 NULL 3 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` like 'This is a test') order by `test`.`t1`.`v` explain select * from t1 where v='This is a test' order by v; 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 ref v v 257 const 3 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` = 'This is a test') order by `test`.`t1`.`v` explain select * from t1 where v like 'S%' order by v; 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 range v v 257 NULL 3 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` like 'S%') order by `test`.`t1`.`v` @@ -109,19 +109,19 @@ Some sample data Some samples explain select * from t1 where v like 'This is a test' order by v; 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 range v v 258 NULL 3 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` like 'This is a test') order by `test`.`t1`.`v` explain select * from t1 where v='This is a test' order by v; 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 ref v v 258 const 3 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` = 'This is a test') order by `test`.`t1`.`v` explain select * from t1 where v like 'S%' order by v; 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 range v v 258 NULL 3 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` like 'S%') order by `test`.`t1`.`v` @@ -145,19 +145,19 @@ Some sample data Some samples explain select * from t1 where v like 'This is a test' order by v; 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 range v v 259 NULL 3 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` like 'This is a test') order by `test`.`t1`.`v` explain select * from t1 where v='This is a test' order by v; 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 ref v v 259 const 3 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` = 'This is a test') order by `test`.`t1`.`v` explain select * from t1 where v like 'S%' order by v; 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 range v v 259 NULL 3 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` like 'S%') order by `test`.`t1`.`v` @@ -181,19 +181,19 @@ Some sample data Some samples explain select * from t1 where v like 'This is a test' order by v; 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 range v v 260 NULL 3 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` like 'This is a test') order by `test`.`t1`.`v` explain select * from t1 where v='This is a test' order by v; 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 ref v v 260 const 3 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` = 'This is a test') order by `test`.`t1`.`v` explain select * from t1 where v like 'S%' order by v; 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 range v v 260 NULL 3 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` like 'S%') order by `test`.`t1`.`v` @@ -217,19 +217,19 @@ Some sample data Some samples explain select * from t1 where v like 'This is a test' order by v; 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 range v v 261 NULL 3 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` like 'This is a test') order by `test`.`t1`.`v` explain select * from t1 where v='This is a test' order by v; 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 ref v v 261 const 3 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` = 'This is a test') order by `test`.`t1`.`v` explain select * from t1 where v like 'S%' order by v; 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 range v v 261 NULL 3 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` like 'S%') order by `test`.`t1`.`v` @@ -253,19 +253,19 @@ Some sample data Some samples explain select * from t1 where v like 'This is a test' order by v; 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 range v v 262 NULL 3 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` like 'This is a test') order by `test`.`t1`.`v` explain select * from t1 where v='This is a test' order by v; 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 ref v v 262 const 3 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` = 'This is a test') order by `test`.`t1`.`v` explain select * from t1 where v like 'S%' order by v; 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 range v v 262 NULL 3 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` like 'S%') order by `test`.`t1`.`v` @@ -289,19 +289,19 @@ Some sample data Some samples explain select * from t1 where v like 'This is a test' order by v; 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 range v v 261 NULL 3 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` like 'This is a test') order by `test`.`t1`.`v` explain select * from t1 where v='This is a test' order by v; 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 ref v v 261 const 3 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` = 'This is a test') order by `test`.`t1`.`v` explain select * from t1 where v like 'S%' order by v; 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 range v v 261 NULL 3 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` like 'S%') order by `test`.`t1`.`v` @@ -325,19 +325,19 @@ Some sample data Some samples explain select * from t1 where v like 'This is a test' order by v; 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 range v v 260 NULL 3 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` like 'This is a test') order by `test`.`t1`.`v` explain select * from t1 where v='This is a test' order by v; 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 ref v v 260 const 3 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` = 'This is a test') order by `test`.`t1`.`v` explain select * from t1 where v like 'S%' order by v; 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 range v v 260 NULL 3 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` like 'S%') order by `test`.`t1`.`v` @@ -361,19 +361,19 @@ Some sample data Some samples explain select * from t1 where v like 'This is a test' order by v; 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 range v v 259 NULL 3 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` like 'This is a test') order by `test`.`t1`.`v` explain select * from t1 where v='This is a test' order by v; 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 ref v v 259 const 3 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` = 'This is a test') order by `test`.`t1`.`v` explain select * from t1 where v like 'S%' order by v; 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 range v v 259 NULL 3 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` like 'S%') order by `test`.`t1`.`v` @@ -397,19 +397,19 @@ Some sample data Some samples explain select * from t1 where v like 'This is a test' order by v; 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 range v v 258 NULL 3 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` like 'This is a test') order by `test`.`t1`.`v` explain select * from t1 where v='This is a test' order by v; 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 ref v v 258 const 3 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` = 'This is a test') order by `test`.`t1`.`v` explain select * from t1 where v like 'S%' order by v; 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 range v v 258 NULL 3 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` like 'S%') order by `test`.`t1`.`v` @@ -433,19 +433,19 @@ Some sample data Some samples explain select * from t1 where v like 'This is a test' order by v; 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 range v v 257 NULL 3 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` like 'This is a test') order by `test`.`t1`.`v` explain select * from t1 where v='This is a test' order by v; 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 ref v v 257 const 3 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` = 'This is a test') order by `test`.`t1`.`v` explain select * from t1 where v like 'S%' order by v; 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 range v v 257 NULL 3 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` like 'S%') order by `test`.`t1`.`v` @@ -468,19 +468,19 @@ Some sample data Some samples explain select * from t1 where v like 'This is a test' order by v; 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 v v 13 NULL 4 100.00 Using where; Using filesort Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` like 'This is a test') order by `test`.`t1`.`v` explain select * from t1 where v='This is a test' order by v; 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 ref v v 13 const 4 100.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` = 'This is a test') order by `test`.`t1`.`v` explain select * from t1 where v like 'S%' order by v; 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 range v v 13 NULL 3 100.00 Using where; Using filesort Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`v` like 'S%') order by `test`.`t1`.`v` diff --git a/mysql-test/r/user_var.result-pq b/mysql-test/r/user_var.result-pq index 237c57c1652c..6dde9b5f2b96 100644 --- a/mysql-test/r/user_var.result-pq +++ b/mysql-test/r/user_var.result-pq @@ -30,7 +30,7 @@ Table Op Msg_type Msg_text test.t1 analyze status OK explain select * from t1 where i=@vv1; 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 ref i i 4 const 2 100.00 NULL Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`i` AS `i`,`test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`i` = (@`vv1`)) @@ -52,7 +52,7 @@ Warning 1287 Setting user variables within expressions is deprecated and will be Note 1003 /* select#1 */ select (@vv1:=`test`.`t1`.`i`) AS `@vv1:=i` from `test`.`t1` where (`test`.`t1`.`i` = (@`vv1`)) explain select * from t1 where i=@vv1; 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 ref i i 4 const 2 100.00 NULL Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`i` AS `i`,`test`.`t1`.`v` AS `v` from `test`.`t1` where (`test`.`t1`.`i` = (@`vv1`)) diff --git a/mysql-test/r/view.result-pq b/mysql-test/r/view.result-pq index d49b1a059e40..be273e8087f9 100644 --- a/mysql-test/r/view.result-pq +++ b/mysql-test/r/view.result-pq @@ -2390,7 +2390,7 @@ CREATE VIEW v1 AS SELECT t1.* FROM t1,t2 WHERE t1.a=t2.a AND t1.b=t2.b; CREATE VIEW v2 AS SELECT t3.* FROM t1,t3 WHERE t1.a=t3.a; EXPLAIN SELECT t1.* FROM t1 JOIN t2 WHERE t1.a=t2.a AND t1.b=t2.b AND t1.a=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 ref a a 5 const # # Using where; Using index 2 SIMPLE t2 NULL ref a a 10 const,test.t1.b # # Using index Warnings: @@ -4817,7 +4817,7 @@ Warnings: Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a` from `test`.`t2` explain SELECT * FROM (SELECT * FROM t2) AS dt; 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 (4 workers) 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL # # NULL Warnings: Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a` from `test`.`t2` @@ -4841,7 +4841,7 @@ Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`b` = (`test`.`t1`.`a` * 10)) explain SELECT * FROM (SELECT * FROM t1 WHERE b=a*10) AS dt; 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 (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL # # Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`b` = (`test`.`t1`.`a` * 10)) diff --git a/mysql-test/r/window_functions_explain.result-pq b/mysql-test/r/window_functions_explain.result-pq index 6d2e59b96bd2..527dbc455e67 100644 --- a/mysql-test/r/window_functions_explain.result-pq +++ b/mysql-test/r/window_functions_explain.result-pq @@ -2865,7 +2865,7 @@ EXPLAIN "rows_examined_per_scan": 7, "rows_produced_per_join": 7, "filtered": "100.00", - "parallel_execute": "1 workers", + "parallel_execute": "4 workers", "cost_info": { "read_cost": "0.25", "eval_cost": "0.70", @@ -10501,7 +10501,7 @@ EXPLAIN "rows_examined_per_scan": 9, "rows_produced_per_join": 9, "filtered": "100.00", - "parallel_execute": "1 workers", + "parallel_execute": "4 workers", "cost_info": { "read_cost": "0.25", "eval_cost": "0.90", @@ -15507,7 +15507,7 @@ EXPLAIN "rows_examined_per_scan": 40, "rows_produced_per_join": 40, "filtered": "100.00", - "parallel_execute": "1 workers", + "parallel_execute": "4 workers", "cost_info": { "read_cost": "0.25", "eval_cost": "4.00", @@ -15563,7 +15563,7 @@ EXPLAIN "rows_examined_per_scan": 40, "rows_produced_per_join": 40, "filtered": "100.00", - "parallel_execute": "1 workers", + "parallel_execute": "4 workers", "cost_info": { "read_cost": "0.25", "eval_cost": "4.00", @@ -15616,7 +15616,7 @@ EXPLAIN "rows_examined_per_scan": 40, "rows_produced_per_join": 40, "filtered": "100.00", - "parallel_execute": "1 workers", + "parallel_execute": "4 workers", "cost_info": { "read_cost": "0.25", "eval_cost": "4.00", @@ -15675,7 +15675,7 @@ EXPLAIN "rows_examined_per_scan": 40, "rows_produced_per_join": 40, "filtered": "100.00", - "parallel_execute": "1 workers", + "parallel_execute": "4 workers", "cost_info": { "read_cost": "0.25", "eval_cost": "4.00", diff --git a/mysql-test/r/with_non_recursive.result-pq b/mysql-test/r/with_non_recursive.result-pq index 18911a2032a9..4f9ee214761e 100644 --- a/mysql-test/r/with_non_recursive.result-pq +++ b/mysql-test/r/with_non_recursive.result-pq @@ -57,7 +57,7 @@ EXPLAIN WITH qn AS (SELECT b as a FROM t1), qn2 AS (SELECT a FROM qn WHERE a IS NULL or a>0) SELECT qn.a, qn2.a FROM qn, qn2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 75.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 75.00 Parallel execute (2 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 2 75.00 Using where 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 2 100.00 Using join buffer (hash join) Warnings: @@ -318,7 +318,7 @@ explain with qn as (select a from t1 order by 1) select a from qn; 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 filesort Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` order by `test`.`t1`.`a` @@ -326,7 +326,7 @@ explain with qn as (select a from t1 order by 1) select qn.a from qn, t1 as 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 t2 NULL ALL NULL NULL NULL NULL 2 100.00 Using join buffer (hash join) Warnings: @@ -394,7 +394,7 @@ a b c explain with cte as (select * from t1 as t2) select * from t1 where t1.a in (select a+0 from cte); 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 where; FirstMatch(t1); Using join buffer (hash join) Warnings: @@ -457,7 +457,7 @@ foo bar foo bar 1 2 1 2 explain with qn (foo, bar) as (select 1, 2 from t1) select * from qn, qn qn1; 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 t1 NULL ALL NULL NULL NULL NULL 2 100.00 Using join buffer (hash join) Warnings: @@ -1173,7 +1173,7 @@ EXPLAIN WITH qn AS (SELECT b as a FROM t1), qn2 AS (SELECT a FROM qn WHERE a IS NULL or a>0) SELECT qn.a, qn2.a FROM qn, qn2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 75.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 75.00 Parallel execute (2 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 2 75.00 Using where 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 2 100.00 Using join buffer (hash join) Warnings: @@ -1434,7 +1434,7 @@ explain with qn as (select a from t1 order by 1) select a from qn; 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 filesort Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` order by `test`.`t1`.`a` @@ -1442,7 +1442,7 @@ explain with qn as (select a from t1 order by 1) select qn.a from qn, t1 as 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 t2 NULL ALL NULL NULL NULL NULL 2 100.00 Using join buffer (hash join) Warnings: @@ -1510,7 +1510,7 @@ a b c explain with cte as (select * from t1 as t2) select * from t1 where t1.a in (select a+0 from cte); 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 where; FirstMatch(t1); Using join buffer (hash join) Warnings: @@ -1573,7 +1573,7 @@ foo bar foo bar 1 2 1 2 explain with qn (foo, bar) as (select 1, 2 from t1) select * from qn, qn qn1; 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 t1 NULL ALL NULL NULL NULL NULL 2 100.00 Using join buffer (hash join) Warnings: diff --git a/mysql-test/suite/gcol/r/gcol_keys_innodb.result-pq b/mysql-test/suite/gcol/r/gcol_keys_innodb.result-pq index 5d36ea43fcd3..3d2c6632d09d 100644 --- a/mysql-test/suite/gcol/r/gcol_keys_innodb.result-pq +++ b/mysql-test/suite/gcol/r/gcol_keys_innodb.result-pq @@ -1387,7 +1387,7 @@ a 1 EXPLAIN SELECT a, b FROM t WHERE 1 = (b 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 4 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) 2 SIMPLE t NULL ALL NULL NULL NULL NULL 4 100.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t`.`a` AS `a`,`test`.`t`.`b` AS `b` from `test`.`t` where (1 = ((0 <> `test`.`t`.`b`) and (0 <> `test`.`t`.`a`))) @@ -1396,7 +1396,7 @@ a b 1 1 EXPLAIN SELECT a, b FROM t WHERE 1 = (b OR 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 t NULL ALL NULL NULL NULL NULL 4 100.00 Using where Note 1003 /* select#1 */ select `test`.`t`.`a` AS `a`,`test`.`t`.`b` AS `b` from `test`.`t` where (1 = ((0 <> `test`.`t`.`b`) or (0 <> `test`.`t`.`a`))) Warnings: diff --git a/mysql-test/suite/innodb/r/innodb_bulk_create_index_replication.result-pq b/mysql-test/suite/innodb/r/innodb_bulk_create_index_replication.result-pq index b5c4242f36d0..06f74fa33a73 100644 --- a/mysql-test/suite/innodb/r/innodb_bulk_create_index_replication.result-pq +++ b/mysql-test/suite/innodb/r/innodb_bulk_create_index_replication.result-pq @@ -32,13 +32,13 @@ CREATE INDEX idx_title ON t1(title); /* 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 103 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/instant_add_column_basic.result-pq b/mysql-test/suite/innodb/r/instant_add_column_basic.result-pq index 49fc3cef6afd..6bf1bf27c29c 100644 --- a/mysql-test/suite/innodb/r/instant_add_column_basic.result-pq +++ b/mysql-test/suite/innodb/r/instant_add_column_basic.result-pq @@ -868,7 +868,7 @@ test.t1 check status OK ALTER TABLE t1 ADD KEY(c); EXPLAIN SELECT c FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL # NULL # 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL # NULL # 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL c # NULL # 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`c` AS `c` from `test`.`t1` @@ -881,7 +881,7 @@ UPDATE t1 SET e = 'Hello MySQL' WHERE a > 30; ALTER TABLE t1 ADD KEY(e); EXPLAIN SELECT e FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL # NULL # 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL # NULL # 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL e # NULL # 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`e` AS `e` from `test`.`t1` @@ -2934,7 +2934,7 @@ test.t1 check status OK ALTER TABLE t1 ADD KEY(c); EXPLAIN SELECT c FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL # NULL # 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL # NULL # 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL c # NULL # 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`c` AS `c` from `test`.`t1` @@ -2947,7 +2947,7 @@ UPDATE t1 SET e = 'Hello MySQL' WHERE a > 30; ALTER TABLE t1 ADD KEY(e); EXPLAIN SELECT e FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL # NULL # 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL # NULL # 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL e # NULL # 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`e` AS `e` from `test`.`t1` @@ -5000,7 +5000,7 @@ test.t1 check status OK ALTER TABLE t1 ADD KEY(c); EXPLAIN SELECT c FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL # NULL # 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL # NULL # 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL c # NULL # 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`c` AS `c` from `test`.`t1` @@ -5013,7 +5013,7 @@ UPDATE t1 SET e = 'Hello MySQL' WHERE a > 30; ALTER TABLE t1 ADD KEY(e); EXPLAIN SELECT e FROM t1; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL # NULL # 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL # NULL # 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL e # NULL # 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`e` AS `e` from `test`.`t1` diff --git a/mysql-test/suite/opt_trace/r/eq_range_statistics.result-pq b/mysql-test/suite/opt_trace/r/eq_range_statistics.result-pq index 10705c35fb9d..8f5d2adaa582 100644 --- a/mysql-test/suite/opt_trace/r/eq_range_statistics.result-pq +++ b/mysql-test/suite/opt_trace/r/eq_range_statistics.result-pq @@ -1470,7 +1470,7 @@ SET eq_range_index_dive_limit=0; # 1 equality range: should not use index statistics EXPLAIN SELECT * FROM t1 WHERE 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 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 ref a a 5 const 3 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`a` = 5) diff --git a/mysql-test/suite/opt_trace/r/histograms.result-pq b/mysql-test/suite/opt_trace/r/histograms.result-pq index 239fea771cdf..4b999d87d3f1 100644 --- a/mysql-test/suite/opt_trace/r/histograms.result-pq +++ b/mysql-test/suite/opt_trace/r/histograms.result-pq @@ -10,7 +10,7 @@ UPDATE mysql.innodb_table_stats SET n_rows = 6 WHERE database_name = "test" AND table_name = "t1"; EXPLAIN SELECT * FROM t1 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 6 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 6 50.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 6 50.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1`,`test`.`t1`.`col2` AS `col2` from `test`.`t1` where (`test`.`t1`.`col1` < 4) @@ -167,7 +167,7 @@ EXPLAIN SELECT * FROM t1 WHERE col1 < 4 { } 0 0 EXPLAIN SELECT * FROM t1 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 6 16.67 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 6 16.67 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 6 16.67 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1`,`test`.`t1`.`col2` AS `col2` from `test`.`t1` where (`test`.`t1`.`col1` > 4) @@ -324,7 +324,7 @@ EXPLAIN SELECT * FROM t1 WHERE col1 > 4 { } 0 0 EXPLAIN SELECT * FROM t1 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 6 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 6 33.33 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 6 33.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1`,`test`.`t1`.`col2` AS `col2` from `test`.`t1` where (`test`.`t1`.`col1` >= 4) @@ -481,7 +481,7 @@ EXPLAIN SELECT * FROM t1 WHERE col1 >= 4 { } 0 0 EXPLAIN SELECT * FROM t1 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 6 66.67 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 6 66.67 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 6 66.67 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1`,`test`.`t1`.`col2` AS `col2` from `test`.`t1` where (`test`.`t1`.`col1` <= 4) @@ -638,7 +638,7 @@ EXPLAIN SELECT * FROM t1 WHERE col1 <= 4 { } 0 0 EXPLAIN SELECT * FROM t1 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 6 16.67 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 6 16.67 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 6 16.67 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1`,`test`.`t1`.`col2` AS `col2` from `test`.`t1` where (`test`.`t1`.`col1` = 4) @@ -795,7 +795,7 @@ EXPLAIN SELECT * FROM t1 WHERE col1 = 4 { } 0 0 EXPLAIN SELECT * FROM t1 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 6 66.67 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 6 66.67 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 6 66.67 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1`,`test`.`t1`.`col2` AS `col2` from `test`.`t1` where (`test`.`t1`.`col1` <> 4) @@ -952,7 +952,7 @@ EXPLAIN SELECT * FROM t1 WHERE col1 != 4 { } 0 0 EXPLAIN SELECT * FROM t1 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 6 66.67 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 6 66.67 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 6 66.67 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1`,`test`.`t1`.`col2` AS `col2` from `test`.`t1` where (`test`.`t1`.`col1` <> 4) @@ -1109,7 +1109,7 @@ EXPLAIN SELECT * FROM t1 WHERE col1 <> 4 { } 0 0 EXPLAIN SELECT * FROM t1 WHERE col1 BETWEEN 4 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 6 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 6 33.33 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 6 33.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1`,`test`.`t1`.`col2` AS `col2` from `test`.`t1` where (`test`.`t1`.`col1` between 4 and 6) @@ -1266,7 +1266,7 @@ EXPLAIN SELECT * FROM t1 WHERE col1 BETWEEN 4 AND 6 { } 0 0 EXPLAIN SELECT * FROM t1 WHERE col1 NOT BETWEEN 4 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 6 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 6 50.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 6 50.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1`,`test`.`t1`.`col2` AS `col2` from `test`.`t1` where (`test`.`t1`.`col1` not between 4 and 6) @@ -1423,7 +1423,7 @@ EXPLAIN SELECT * FROM t1 WHERE col1 NOT BETWEEN 4 AND 6 { } 0 0 EXPLAIN SELECT * FROM t1 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 6 16.67 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 6 16.67 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 6 16.67 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1`,`test`.`t1`.`col2` AS `col2` from `test`.`t1` where (`test`.`t1`.`col1` is null) @@ -1580,7 +1580,7 @@ EXPLAIN SELECT * FROM t1 WHERE col1 IS NULL { } 0 0 EXPLAIN SELECT * FROM t1 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 6 83.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 6 83.33 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 6 83.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1`,`test`.`t1`.`col2` AS `col2` from `test`.`t1` where (`test`.`t1`.`col1` is not null) @@ -1755,7 +1755,7 @@ test.t1 histogram status Histogram statistics created for column 'col1'. test.t1 histogram status Histogram statistics created for column 'col2'. EXPLAIN SELECT * FROM t1 WHERE col1 > 10 AND col2 < 88; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 18 80.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 18 80.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range idx1 idx1 5 NULL 18 80.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1`,`test`.`t1`.`col2` AS `col2` from `test`.`t1` where ((`test`.`t1`.`col1` > 10) and (`test`.`t1`.`col2` < 88)) @@ -1994,7 +1994,7 @@ Table Op Msg_type Msg_text test.t1 histogram status Histogram statistics created for column 'col1'. EXPLAIN SELECT * FROM t1 WHERE col1 > 2 AND 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 8 65.62 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 8 65.62 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 8 65.62 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where ((`test`.`t1`.`col1` > 2) and (`test`.`t1`.`col1` <= 7)) diff --git a/mysql-test/suite/opt_trace/r/opt_hints_index_merge.result-pq b/mysql-test/suite/opt_trace/r/opt_hints_index_merge.result-pq index ba91f4f8dd56..593d6c61f583 100644 --- a/mysql-test/suite/opt_trace/r/opt_hints_index_merge.result-pq +++ b/mysql-test/suite/opt_trace/r/opt_hints_index_merge.result-pq @@ -17,7 +17,7 @@ SET optimizer_trace="enabled=on,one_line=off"; SET optimizer_switch='index_merge_union=off,index_merge=off'; 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')) @@ -298,7 +298,7 @@ EXPLAIN SELECT /*+ INDEX_MERGE(t1 f2, f3) */ f1 FROM t1 WHERE f2 = 5 OR f3 = 'c' SET optimizer_switch='index_merge=on,index_merge_intersection=on'; EXPLAIN SELECT /*+ NO_INDEX_MERGE(t1 f3) */ 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` `f3`) */ count(0) AS `COUNT(*)` from `test`.`t1` where ((`test`.`t1`.`f3` = 'b') and (`test`.`t1`.`f2` = 2) and (`test`.`t1`.`f4` = 'h')) diff --git a/mysql-test/suite/opt_trace/r/skip_scan.result-pq b/mysql-test/suite/opt_trace/r/skip_scan.result-pq index 48e8884f267e..b4c869e443fa 100644 --- a/mysql-test/suite/opt_trace/r/skip_scan.result-pq +++ b/mysql-test/suite/opt_trace/r/skip_scan.result-pq @@ -11,7 +11,7 @@ SET optimizer_switch = 'skip_scan=on'; SET optimizer_trace="enabled=on,one_line=off"; EXPLAIN SELECT a, b, c, d FROM t WHERE a = 2 AND d >= 98 AND e = 2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 250 3.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 250 3.33 Parallel execute (4 workers) 2 SIMPLE t NULL ref PRIMARY PRIMARY 4 const 250 3.33 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t`.`a` AS `a`,`test`.`t`.`b` AS `b`,`test`.`t`.`c` AS `c`,`test`.`t`.`d` AS `d` from `test`.`t` where ((`test`.`t`.`e` = 2) and (`test`.`t`.`a` = 2) and (`test`.`t`.`d` >= 98)) @@ -63,7 +63,7 @@ count(*) 1 EXPLAIN SELECT a, b, c, d FROM t WHERE a = 2 AND (d >= 98 OR d < 2); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 250 55.55 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 250 55.55 Parallel execute (4 workers) 2 SIMPLE t NULL ref PRIMARY PRIMARY 4 const 250 55.55 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t`.`a` AS `a`,`test`.`t`.`b` AS `b`,`test`.`t`.`c` AS `c`,`test`.`t`.`d` AS `d` from `test`.`t` where ((`test`.`t`.`a` = 2) and ((`test`.`t`.`d` >= 98) or (`test`.`t`.`d` < 2))) @@ -72,7 +72,7 @@ count(*) 1 EXPLAIN SELECT a, b, c, d FROM t WHERE a = 2 AND b = 2; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 50 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 50 100.00 Parallel execute (4 workers) 2 SIMPLE t NULL ref PRIMARY,b PRIMARY 8 const,const 50 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t`.`a` AS `a`,`test`.`t`.`b` AS `b`,`test`.`t`.`c` AS `c`,`test`.`t`.`d` AS `d` from `test`.`t` where ((`test`.`t`.`b` = 2) and (`test`.`t`.`a` = 2)) @@ -681,7 +681,7 @@ EXPLAIN SELECT b, c, d FROM t WHERE a = 5 AND c > 4 AND d < 3 { } 0 0 EXPLAIN SELECT b, c, d FROM t WHERE a = 5 AND d < 3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 250 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 250 33.33 Parallel execute (4 workers) 2 SIMPLE t NULL ref PRIMARY,b PRIMARY 4 const 250 33.33 Using where; Using index Warnings: Note 1003 /* select#1 */ select `test`.`t`.`b` AS `b`,`test`.`t`.`c` AS `c`,`test`.`t`.`d` AS `d` from `test`.`t` where ((`test`.`t`.`a` = 5) and (`test`.`t`.`d` < 3)) diff --git a/mysql-test/suite/parallel_query/r/pq_abort.result-pq b/mysql-test/suite/parallel_query/r/pq_abort.result-pq index aff9beb5a4cb..5835f2d03c01 100644 --- a/mysql-test/suite/parallel_query/r/pq_abort.result-pq +++ b/mysql-test/suite/parallel_query/r/pq_abort.result-pq @@ -4,7 +4,7 @@ set @saved_force_parallel_execute = @@force_parallel_execute; set session force_parallel_execute = 1; explain select * from t1 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 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 Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`id` AS `id`,`test`.`t1`.`a` AS `a` from `test`.`t1` limit 1 @@ -70,7 +70,7 @@ PQ_memory_used 0 set session debug=""; explain select * from t1 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 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 Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`id` AS `id`,`test`.`t1`.`a` AS `a` from `test`.`t1` limit 1 diff --git a/mysql-test/suite/parallel_query/r/pq_coverage.result-pq b/mysql-test/suite/parallel_query/r/pq_coverage.result-pq index dfc401ada8aa..46ac4844e022 100644 --- a/mysql-test/suite/parallel_query/r/pq_coverage.result-pq +++ b/mysql-test/suite/parallel_query/r/pq_coverage.result-pq @@ -4,7 +4,7 @@ INSERT INTO t1 VALUES(2,'BBBB'); INSERT INTO t1 VALUES(3,'CCCC'); EXPLAIN SELECT * FROM t1 WHERE id > 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 range PRIMARY PRIMARY 4 NULL 2 100.00 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`id` AS `id`,`test`.`t1`.`name` AS `name` from `test`.`t1` where (`test`.`t1`.`id` > 1) diff --git a/mysql-test/suite/parallel_query/r/pq_explain.result-pq b/mysql-test/suite/parallel_query/r/pq_explain.result-pq index 17a6584580b5..f910297d1282 100644 --- a/mysql-test/suite/parallel_query/r/pq_explain.result-pq +++ b/mysql-test/suite/parallel_query/r/pq_explain.result-pq @@ -60,7 +60,7 @@ Note 1003 /* select#1 */ select `pq_test`.`t1`.`id` AS `id`,`pq_test`.`t1`.`col1 set session force_parallel_execute = 1; explain select * from pq_test.t1 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 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 ALL NULL NULL NULL NULL 10 100.00 NULL Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`id` AS `id`,`pq_test`.`t1`.`col1` AS `col1`,`pq_test`.`t1`.`col2` AS `col2` from `pq_test`.`t1` limit 1 @@ -73,7 +73,7 @@ Note 1003 /* select#1 */ select `pq_test`.`t1`.`id` AS `id`,`pq_test`.`t1`.`col1 set session force_parallel_execute = 1; explain select * from pq_test.t1; 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 ALL NULL NULL NULL NULL 10 100.00 NULL Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`id` AS `id`,`pq_test`.`t1`.`col1` AS `col1`,`pq_test`.`t1`.`col2` AS `col2` from `pq_test`.`t1` @@ -86,7 +86,7 @@ Note 1003 /* select#1 */ select `pq_test`.`t1`.`id` AS `id`,`pq_test`.`t1`.`col2 set session force_parallel_execute = 1; explain select id, col2 from pq_test.t1 force index(idx_col2); 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 index NULL idx_col2 5 NULL 10 100.00 Using index Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`id` AS `id`,`pq_test`.`t1`.`col2` AS `col2` from `pq_test`.`t1` FORCE INDEX (`idx_col2`) @@ -123,7 +123,7 @@ EXPLAIN "rows_examined_per_scan": 10, "rows_produced_per_join": 10, "filtered": "100.00", - "parallel_execute": "1 workers", + "parallel_execute": "4 workers", "cost_info": { "read_cost": "0.25", "eval_cost": "1.00", @@ -189,7 +189,7 @@ id col1 col2 100 testtesttesttest 1 explain select * from pq_test.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 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 100 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 100 100.00 NULL Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`id` AS `id`,`pq_test`.`t1`.`col1` AS `col1`,`pq_test`.`t1`.`col2` AS `col2` from `pq_test`.`t1` @@ -212,7 +212,7 @@ Note 1003 /* select#1 */ select `pq_test`.`t1`.`id` AS `id`,`pq_test`.`t1`.`col1 set session force_parallel_execute = 1; explain select * from pq_test.t1 ignore index(idx_col2) where id < 30; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 29 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 29 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range PRIMARY PRIMARY 4 NULL 29 100.00 Using where Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`id` AS `id`,`pq_test`.`t1`.`col1` AS `col1`,`pq_test`.`t1`.`col2` AS `col2` from `pq_test`.`t1` IGNORE INDEX (`idx_col2`) where (`pq_test`.`t1`.`id` < 30) @@ -225,7 +225,7 @@ Note 1003 /* select#1 */ select `pq_test`.`t1`.`id` AS `id`,`pq_test`.`t1`.`col1 set session force_parallel_execute = 1; explain select * from pq_test.t1 ignore index(idx_col2) where id <= 30; 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 PRIMARY 4 NULL 30 100.00 Using where Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`id` AS `id`,`pq_test`.`t1`.`col1` AS `col1`,`pq_test`.`t1`.`col2` AS `col2` from `pq_test`.`t1` IGNORE INDEX (`idx_col2`) where (`pq_test`.`t1`.`id` <= 30) @@ -238,7 +238,7 @@ Note 1003 /* select#1 */ select `pq_test`.`t1`.`id` AS `id` from `pq_test`.`t1` set session force_parallel_execute = 1; explain select id from pq_test.t1 ignore index(idx_col2) where id > 20; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 80 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 80 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range PRIMARY PRIMARY 4 NULL 80 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`id` AS `id` from `pq_test`.`t1` IGNORE INDEX (`idx_col2`) where (`pq_test`.`t1`.`id` > 20) @@ -251,7 +251,7 @@ Note 1003 /* select#1 */ select `pq_test`.`t1`.`id` AS `id`,`pq_test`.`t1`.`col1 set session force_parallel_execute = 1; explain select * from pq_test.t1 ignore index(idx_col2) where id > 10 and id < 80; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 69 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 69 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range PRIMARY PRIMARY 4 NULL 69 100.00 Using where Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`id` AS `id`,`pq_test`.`t1`.`col1` AS `col1`,`pq_test`.`t1`.`col2` AS `col2` from `pq_test`.`t1` IGNORE INDEX (`idx_col2`) where ((`pq_test`.`t1`.`id` > 10) and (`pq_test`.`t1`.`id` < 80)) @@ -264,7 +264,7 @@ Note 1003 /* select#1 */ select `pq_test`.`t1`.`id` AS `id`,`pq_test`.`t1`.`col1 set session force_parallel_execute = 1; explain select * from pq_test.t1 ignore index(idx_col2) where id >= 10 and id <= 80; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 71 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 71 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range PRIMARY PRIMARY 4 NULL 71 100.00 Using where Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`id` AS `id`,`pq_test`.`t1`.`col1` AS `col1`,`pq_test`.`t1`.`col2` AS `col2` from `pq_test`.`t1` IGNORE INDEX (`idx_col2`) where ((`pq_test`.`t1`.`id` >= 10) and (`pq_test`.`t1`.`id` <= 80)) @@ -326,7 +326,7 @@ Note 1003 /* select#1 */ select `pq_test`.`t1`.`id` AS `id`,`pq_test`.`t1`.`col2 set session force_parallel_execute = 1; explain select id,col2 from pq_test.t1 force index(idx_col2) where col2 < 30; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 29 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 29 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range idx_col2 idx_col2 5 NULL 29 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`id` AS `id`,`pq_test`.`t1`.`col2` AS `col2` from `pq_test`.`t1` FORCE INDEX (`idx_col2`) where (`pq_test`.`t1`.`col2` < 30) @@ -339,7 +339,7 @@ Note 1003 /* select#1 */ select `pq_test`.`t1`.`id` AS `id`,`pq_test`.`t1`.`col2 set session force_parallel_execute = 1; explain select id,col2 from pq_test.t1 force index(idx_col2) where col2 <= 30; 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 idx_col2 idx_col2 5 NULL 30 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`id` AS `id`,`pq_test`.`t1`.`col2` AS `col2` from `pq_test`.`t1` FORCE INDEX (`idx_col2`) where (`pq_test`.`t1`.`col2` <= 30) @@ -352,7 +352,7 @@ Note 1003 /* select#1 */ select `pq_test`.`t1`.`id` AS `id`,`pq_test`.`t1`.`col2 set session force_parallel_execute = 1; explain select id,col2 from pq_test.t1 force index(idx_col2) where col2 > 20; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 80 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 80 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range idx_col2 idx_col2 5 NULL 80 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`id` AS `id`,`pq_test`.`t1`.`col2` AS `col2` from `pq_test`.`t1` FORCE INDEX (`idx_col2`) where (`pq_test`.`t1`.`col2` > 20) @@ -365,7 +365,7 @@ Note 1003 /* select#1 */ select `pq_test`.`t1`.`id` AS `id`,`pq_test`.`t1`.`col2 set session force_parallel_execute = 1; explain select id,col2 from pq_test.t1 force index(idx_col2) where col2 >= 20; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 81 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 81 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range idx_col2 idx_col2 5 NULL 81 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`id` AS `id`,`pq_test`.`t1`.`col2` AS `col2` from `pq_test`.`t1` FORCE INDEX (`idx_col2`) where (`pq_test`.`t1`.`col2` >= 20) @@ -378,7 +378,7 @@ Note 1003 /* select#1 */ select `pq_test`.`t1`.`id` AS `id`,`pq_test`.`t1`.`col2 set session force_parallel_execute = 1; explain select id,col2 from pq_test.t1 force index(idx_col2) where col2 > 10 and col2 < 80; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 69 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 69 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range idx_col2 idx_col2 5 NULL 69 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`id` AS `id`,`pq_test`.`t1`.`col2` AS `col2` from `pq_test`.`t1` FORCE INDEX (`idx_col2`) where ((`pq_test`.`t1`.`col2` > 10) and (`pq_test`.`t1`.`col2` < 80)) @@ -391,7 +391,7 @@ Note 1003 /* select#1 */ select `pq_test`.`t1`.`id` AS `id`,`pq_test`.`t1`.`col2 set session force_parallel_execute = 1; explain select id,col2 from pq_test.t1 force index(idx_col2) where col2 >= 10 and col2 <= 80; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 71 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 71 100.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL range idx_col2 idx_col2 5 NULL 71 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`id` AS `id`,`pq_test`.`t1`.`col2` AS `col2` from `pq_test`.`t1` FORCE INDEX (`idx_col2`) where ((`pq_test`.`t1`.`col2` >= 10) and (`pq_test`.`t1`.`col2` <= 80)) @@ -475,31 +475,31 @@ Warnings: Note 1003 /* select#1 */ select count(0) AS `count(*)` from `pq_test`.`t1` explain select count(c) 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 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 ALL NULL NULL NULL NULL 9 100.00 NULL Warnings: Note 1003 /* select#1 */ select count(`pq_test`.`t1`.`c`) AS `count(c)` from `pq_test`.`t1` explain select sum(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 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 index NULL PRIMARY 4 NULL 9 100.00 Using index Warnings: Note 1003 /* select#1 */ select sum(`pq_test`.`t1`.`a`) AS `sum(a)` from `pq_test`.`t1` explain select sum(c) 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 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 ALL NULL NULL NULL NULL 9 100.00 NULL Warnings: Note 1003 /* select#1 */ select sum(`pq_test`.`t1`.`c`) AS `sum(c)` from `pq_test`.`t1` explain select avg(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 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 index NULL PRIMARY 4 NULL 9 100.00 Using index Warnings: Note 1003 /* select#1 */ select avg(`pq_test`.`t1`.`a`) AS `avg(a)` from `pq_test`.`t1` explain select avg(c) 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 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 ALL NULL NULL NULL NULL 9 100.00 NULL Warnings: Note 1003 /* select#1 */ select avg(`pq_test`.`t1`.`c`) AS `avg(c)` from `pq_test`.`t1` @@ -537,37 +537,37 @@ Note 1003 /* select#1 */ select count(`pq_test`.`t1`.`c`) AS `count(c)` from `pq set session force_parallel_execute=1; explain select sum(c) from t1 where 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 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 Warnings: Note 1003 /* select#1 */ select sum(`pq_test`.`t1`.`c`) AS `sum(c)` from `pq_test`.`t1` where (`pq_test`.`t1`.`a` > 5) explain select sum(a) from t1 where c > 5.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 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 33.33 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 9 33.33 Using where Warnings: Note 1003 /* select#1 */ select sum(`pq_test`.`t1`.`a`) AS `sum(a)` from `pq_test`.`t1` where (`pq_test`.`t1`.`c` > 5.00) explain select avg(c) from t1 where 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 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 Warnings: Note 1003 /* select#1 */ select avg(`pq_test`.`t1`.`c`) AS `avg(c)` from `pq_test`.`t1` where (`pq_test`.`t1`.`a` > 5) explain select avg(a) from t1 where c > 5.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 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 33.33 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 9 33.33 Using where Warnings: Note 1003 /* select#1 */ select avg(`pq_test`.`t1`.`a`) AS `avg(a)` from `pq_test`.`t1` where (`pq_test`.`t1`.`c` > 5.00) explain select count(*) from t1 where c > 5.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 33.33 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 9 33.33 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 9 33.33 Using where Warnings: Note 1003 /* select#1 */ select count(0) AS `count(*)` from `pq_test`.`t1` where (`pq_test`.`t1`.`c` > 5.00) explain select count(c) from t1 where 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 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 Warnings: Note 1003 /* select#1 */ select count(`pq_test`.`t1`.`c`) AS `count(c)` from `pq_test`.`t1` where (`pq_test`.`t1`.`a` > 5) @@ -605,37 +605,37 @@ Note 1003 /* select#1 */ select count(`pq_test`.`t1`.`c`) AS `count(c)` from `pq set session force_parallel_execute=1; explain select c,sum(a) from t1 group 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 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 ALL NULL NULL NULL NULL 9 100.00 Using temporary Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`c` AS `c`,sum(`pq_test`.`t1`.`a`) AS `sum(a)` from `pq_test`.`t1` group by `pq_test`.`t1`.`c` explain select b,sum(c) from t1 group 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 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 ALL NULL NULL NULL NULL 9 100.00 Using temporary Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`b` AS `b`,sum(`pq_test`.`t1`.`c`) AS `sum(c)` from `pq_test`.`t1` group by `pq_test`.`t1`.`b` explain select c,avg(a) from t1 group 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 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 ALL NULL NULL NULL NULL 9 100.00 Using temporary Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`c` AS `c`,avg(`pq_test`.`t1`.`a`) AS `avg(a)` from `pq_test`.`t1` group by `pq_test`.`t1`.`c` explain select b,avg(c) from t1 group 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 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 ALL NULL NULL NULL NULL 9 100.00 Using temporary Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`b` AS `b`,avg(`pq_test`.`t1`.`c`) AS `avg(c)` from `pq_test`.`t1` group by `pq_test`.`t1`.`b` explain select count(*) from t1 group 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 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 ALL NULL NULL NULL NULL 9 100.00 Using temporary Warnings: Note 1003 /* select#1 */ select count(0) AS `count(*)` from `pq_test`.`t1` group by `pq_test`.`t1`.`c` explain select count(c) from t1 group 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 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 ALL NULL NULL NULL NULL 9 100.00 Using temporary Warnings: Note 1003 /* select#1 */ select count(`pq_test`.`t1`.`c`) AS `count(c)` from `pq_test`.`t1` group by `pq_test`.`t1`.`b` @@ -666,19 +666,19 @@ Note 1003 /* select#1 */ select count(`pq_test`.`t2`.`id`) AS `count(id)` from ` set session force_parallel_execute=1; explain select sum(id) from t2 group by id; 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 t2 NULL index PRIMARY PRIMARY 4 NULL 2 100.00 Using index Warnings: Note 1003 /* select#1 */ select sum(`pq_test`.`t2`.`id`) AS `sum(id)` from `pq_test`.`t2` group by `pq_test`.`t2`.`id` explain select avg(id) from t2 group by id; 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 t2 NULL index PRIMARY PRIMARY 4 NULL 2 100.00 Using index Warnings: Note 1003 /* select#1 */ select avg(`pq_test`.`t2`.`id`) AS `avg(id)` from `pq_test`.`t2` group by `pq_test`.`t2`.`id` explain select count(id) from t2 group by id; 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 t2 NULL index PRIMARY PRIMARY 4 NULL 2 100.00 Using index Warnings: Note 1003 /* select#1 */ select count(`pq_test`.`t2`.`id`) AS `count(id)` from `pq_test`.`t2` group by `pq_test`.`t2`.`id` @@ -691,7 +691,7 @@ INSERT INTO t1 VALUES (3,1,'1988-12-20'); INSERT INTO t1 VALUES (4,2,'1972-12-12'); EXPLAIN SELECT MIN(t1.userID) = MIN(date) FROM t1 GROUP BY userid; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE 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 Using temporary Warnings: Note 1003 /* select#1 */ select (cast(min(``.`min(t1.userID)`) as double) = cast(min(``.`min(t1.``date``)`) as double)) AS `MIN(t1.userID) = MIN(date)` from `pq_test`.`t1` group by `pq_test`.`t1`.`userID` @@ -712,43 +712,43 @@ Note 1003 /* select#1 */ select `pq_test`.`t1`.`date` AS `date`,(cast(`pq_test`. # EXPLAIN SELECT * from t1 WHERE userID = DATE'2012-02-20'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 25.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 25.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 4 25.00 Using where Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`spID` AS `spID`,`pq_test`.`t1`.`userID` AS `userID`,`pq_test`.`t1`.`date` AS `date` from `pq_test`.`t1` where (`pq_test`.`t1`.`userID` = DATE'2012-02-20') EXPLAIN SELECT * FROM t1 WHERE date = NULL; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 25.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 25.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 4 25.00 Using where Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`spID` AS `spID`,`pq_test`.`t1`.`userID` AS `userID`,`pq_test`.`t1`.`date` AS `date` from `pq_test`.`t1` where (`pq_test`.`t1`.`date` = NULL) EXPLAIN SELECT * FROM t1 WHERE date = CAST('20:21:22' AS TIME); id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 4 25.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 25.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 4 25.00 Using where Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`spID` AS `spID`,`pq_test`.`t1`.`userID` AS `userID`,`pq_test`.`t1`.`date` AS `date` from `pq_test`.`t1` where (`pq_test`.`t1`.`date` = (cast('20:21:22' as time))) EXPLAIN SELECT date, to_seconds(date) 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 `pq_test`.`t1`.`date` AS `date`,to_seconds(`pq_test`.`t1`.`date`) AS `to_seconds(date)` from `pq_test`.`t1` EXPLAIN SELECT date, period_add(concat(year(date), month(date)), 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 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 `pq_test`.`t1`.`date` AS `date`,period_add(concat(year(`pq_test`.`t1`.`date`),month(`pq_test`.`t1`.`date`)),1) AS `period_add(concat(year(date), month(date)), 1)` from `pq_test`.`t1` EXPLAIN SELECT date, period_diff(concat(year(date), month(date)), 197001) 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 `pq_test`.`t1`.`date` AS `date`,period_diff(concat(year(`pq_test`.`t1`.`date`),month(`pq_test`.`t1`.`date`)),197001) AS `period_diff(concat(year(date), month(date)), 197001)` from `pq_test`.`t1` EXPLAIN SELECT concat(spID, space(2)) 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 concat(`pq_test`.`t1`.`spID`,space(2)) AS `concat(spID, space(2))` from `pq_test`.`t1` @@ -758,62 +758,62 @@ INSERT INTO t2 VALUES (2, 'bbb'); INSERT INTO t2 VALUES (3, 'ccc'); EXPLAIN SELECT c2, AES_ENCRYPT(c2, '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 3 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (3 workers) 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 3 100.00 NULL Warnings: Note 1003 /* select#1 */ select `pq_test`.`t2`.`c2` AS `c2`,aes_encrypt(`pq_test`.`t2`.`c2`,'a') AS `AES_ENCRYPT(c2, 'a')` from `pq_test`.`t2` EXPLAIN SELECT c2, BIT_LENGTH(c2) 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 3 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (3 workers) 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 3 100.00 NULL Warnings: Note 1003 /* select#1 */ select `pq_test`.`t2`.`c2` AS `c2`,bit_length(`pq_test`.`t2`.`c2`) AS `BIT_LENGTH(c2)` from `pq_test`.`t2` EXPLAIN SELECT c1, c2, NULLIF(c1, 1) 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 3 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (3 workers) 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 3 100.00 NULL Warnings: Note 1003 /* select#1 */ select `pq_test`.`t2`.`c1` AS `c1`,`pq_test`.`t2`.`c2` AS `c2`,nullif(`pq_test`.`t2`.`c1`,1) AS `NULLIF(c1, 1)` from `pq_test`.`t2` EXPLAIN SELECT c2, compress(c2) 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 3 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (3 workers) 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 3 100.00 NULL Warnings: Note 1003 /* select#1 */ select `pq_test`.`t2`.`c2` AS `c2`,compress(`pq_test`.`t2`.`c2`) AS `compress(c2)` from `pq_test`.`t2` EXPLAIN SELECT c2, uncompressed_length(c2) 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 3 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (3 workers) 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 3 100.00 NULL Warnings: Note 1003 /* select#1 */ select `pq_test`.`t2`.`c2` AS `c2`,uncompressed_length(`pq_test`.`t2`.`c2`) AS `uncompressed_length(c2)` from `pq_test`.`t2` EXPLAIN SELECT export_set(5, c2, upper(c2)) 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 3 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (3 workers) 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 3 100.00 NULL Warnings: Note 1003 /* select#1 */ select export_set(5,`pq_test`.`t2`.`c2`,upper(`pq_test`.`t2`.`c2`)) AS `export_set(5, c2, upper(c2))` from `pq_test`.`t2` EXPLAIN SELECT export_set(5, c2, upper(c2), ",") 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 3 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (3 workers) 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 3 100.00 NULL Warnings: Note 1003 /* select#1 */ select export_set(5,`pq_test`.`t2`.`c2`,upper(`pq_test`.`t2`.`c2`),',') AS `export_set(5, c2, upper(c2), ",")` from `pq_test`.`t2` EXPLAIN SELECT export_set(5, c2, upper(c2), ",", 5) 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 3 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (3 workers) 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 3 100.00 NULL Warnings: Note 1003 /* select#1 */ select export_set(5,`pq_test`.`t2`.`c2`,upper(`pq_test`.`t2`.`c2`),',',5) AS `export_set(5, c2, upper(c2), ",", 5)` from `pq_test`.`t2` EXPLAIN SELECT SHA2(c2, 5) 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 3 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 3 100.00 Parallel execute (3 workers) 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 3 100.00 NULL Warnings: Warning 1583 Incorrect parameters in the call to native function 'sha2' Note 1003 /* select#1 */ select sha2(`pq_test`.`t2`.`c2`,5) AS `SHA2(c2, 5)` from `pq_test`.`t2` EXPLAIN SELECT * FROM t2 WHERE c1 IN (1, 2, 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 50.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 3 50.00 Parallel execute (3 workers) 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL 3 50.00 Using where Warnings: Note 1003 /* select#1 */ select `pq_test`.`t2`.`c1` AS `c1`,`pq_test`.`t2`.`c2` AS `c2` from `pq_test`.`t2` where (`pq_test`.`t2`.`c1` in (1,2,4)) diff --git a/mysql-test/suite/parallel_query/r/pq_group_by.result-pq b/mysql-test/suite/parallel_query/r/pq_group_by.result-pq index 0c51cf6be9dd..dcddbaa3cef7 100644 --- a/mysql-test/suite/parallel_query/r/pq_group_by.result-pq +++ b/mysql-test/suite/parallel_query/r/pq_group_by.result-pq @@ -207,7 +207,7 @@ max(t) 2004-02-01 00:00:00 explain select max(t) 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 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 temporary Warnings: Note 1003 /* select#1 */ select max(`test`.`t1`.`t`) AS `max(t)` from `test`.`t1` group by `test`.`t1`.`a` @@ -217,7 +217,7 @@ min(t) 2004-02-01 00:00:00 explain select min(t) 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 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 temporary Warnings: Note 1003 /* select#1 */ select min(`test`.`t1`.`t`) AS `min(t)` from `test`.`t1` group by `test`.`t1`.`a` diff --git a/mysql-test/suite/parallel_query/r/pq_having.result-pq b/mysql-test/suite/parallel_query/r/pq_having.result-pq index 353d32d3d10e..ffab21384c80 100644 --- a/mysql-test/suite/parallel_query/r/pq_having.result-pq +++ b/mysql-test/suite/parallel_query/r/pq_having.result-pq @@ -203,7 +203,7 @@ fd1 avg(fd2) 3 3.0000 explain select fd1, avg(fd2) from t1 group by fd1 having fd1 + 1 > 0; 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 temporary Warnings: Note 1003 /* select#1 */ select `pq_having_database`.`t1`.`fd1` AS `fd1`,avg(`pq_having_database`.`t1`.`fd2`) AS `avg(fd2)` from `pq_having_database`.`t1` group by `pq_having_database`.`t1`.`fd1` having ((`pq_having_database`.`t1`.`fd1` + 1) > 0) @@ -214,7 +214,7 @@ fd1 avg(fd2) 3 3.0000 explain select fd1, avg(fd2) from t1 group by fd1 having fd1 > 0; 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 temporary Warnings: Note 1003 /* select#1 */ select `pq_having_database`.`t1`.`fd1` AS `fd1`,avg(`pq_having_database`.`t1`.`fd2`) AS `avg(fd2)` from `pq_having_database`.`t1` group by `pq_having_database`.`t1`.`fd1` having (`pq_having_database`.`t1`.`fd1` > 0) @@ -225,7 +225,7 @@ fd1 avg(fd2) 3 3.0000 explain select fd1, avg(fd2), max(fd1) from t1 group by fd1 having fd1 > 0; 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 temporary Warnings: Note 1003 /* select#1 */ select `pq_having_database`.`t1`.`fd1` AS `fd1`,avg(`pq_having_database`.`t1`.`fd2`) AS `avg(fd2)`,max(`pq_having_database`.`t1`.`fd1`) AS `max(fd1)` from `pq_having_database`.`t1` group by `pq_having_database`.`t1`.`fd1` having (`pq_having_database`.`t1`.`fd1` > 0) diff --git a/mysql-test/suite/parallel_query/r/pq_join.result-pq b/mysql-test/suite/parallel_query/r/pq_join.result-pq index 175f763f0fe8..a42d5621b345 100644 --- a/mysql-test/suite/parallel_query/r/pq_join.result-pq +++ b/mysql-test/suite/parallel_query/r/pq_join.result-pq @@ -160,7 +160,7 @@ Table Op Msg_type Msg_text pq_database.t2 analyze status OK explain select * from t1 where exists (select /*+ semijoin(firstmatch)*/ * from t2 left join t1 on 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 NULL 2 SIMPLE t2 NULL index NULL PRIMARY 4 NULL 3 100.00 Using index 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 3 100.00 Using where; FirstMatch(t1) @@ -185,7 +185,7 @@ Table Op Msg_type Msg_text pq_database.t2 analyze status OK explain select * from t2 where t2.a in (select /*+ semijoin(DUPSWEEDOUT)*/ 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 5 NULL 4 100.00 Using where; Using index 2 SIMPLE t1 NULL ref a a 5 pq_database.t2.a 1 100.00 Using index; Start temporary; End temporary Warnings: diff --git a/mysql-test/suite/parallel_query/r/pq_jt_ref.result-pq b/mysql-test/suite/parallel_query/r/pq_jt_ref.result-pq index e996547ca54a..3c71e5c4c47d 100644 --- a/mysql-test/suite/parallel_query/r/pq_jt_ref.result-pq +++ b/mysql-test/suite/parallel_query/r/pq_jt_ref.result-pq @@ -28,7 +28,7 @@ id a b c d 16388 6 4 bcabcabcabca bcabcabcabca explain select * from t2 where a = 6; 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 ref idx_abc idx_abc 5 const 5 100.00 NULL Warnings: Note 1003 /* select#1 */ select `pq_test`.`t2`.`id` AS `id`,`pq_test`.`t2`.`a` AS `a`,`pq_test`.`t2`.`b` AS `b`,`pq_test`.`t2`.`c` AS `c`,`pq_test`.`t2`.`d` AS `d` from `pq_test`.`t2` where (`pq_test`.`t2`.`a` = 6) diff --git a/mysql-test/suite/parallel_query/r/pq_mdl_lock.result-pq b/mysql-test/suite/parallel_query/r/pq_mdl_lock.result-pq index eed487c983de..ea1b48450eb0 100644 --- a/mysql-test/suite/parallel_query/r/pq_mdl_lock.result-pq +++ b/mysql-test/suite/parallel_query/r/pq_mdl_lock.result-pq @@ -19,7 +19,7 @@ INSERT INTO t1 VALUES (2); INSERT INTO t1 VALUES (2); explain SELECT f1 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 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 ALL NULL NULL NULL NULL 9 100.00 NULL Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`f1` AS `f1` from `test`.`t1` diff --git a/mysql-test/suite/parallel_query/r/pq_order_by.result-pq b/mysql-test/suite/parallel_query/r/pq_order_by.result-pq index 19a5f10a9a6c..d5a8fcb24fa9 100644 --- a/mysql-test/suite/parallel_query/r/pq_order_by.result-pq +++ b/mysql-test/suite/parallel_query/r/pq_order_by.result-pq @@ -307,7 +307,7 @@ Table Op Msg_type Msg_text test.t3 analyze status OK EXPLAIN SELECT * FROM t3 WHERE c1 >= '0000-00-00' AND c1 < '2009-01-29' AND c2 = '1998-12-30 11:30:45'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 12 9.17 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 12 9.17 Parallel execute (4 workers) 2 SIMPLE t3 NULL ALL idx NULL NULL NULL 12 9.17 Using where Warnings: Note 1003 /* select#1 */ select `test`.`t3`.`c1` AS `c1`,`test`.`t3`.`c2` AS `c2`,`test`.`t3`.`c3` AS `c3`,`test`.`t3`.`c4` AS `c4` from `test`.`t3` where ((`test`.`t3`.`c2` = TIMESTAMP'1998-12-30 11:30:45') and (`test`.`t3`.`c1` >= TIMESTAMP'0000-00-00 00:00:00') and (`test`.`t3`.`c1` < TIMESTAMP'2009-01-29 00:00:00')) diff --git a/mysql-test/suite/parallel_query/r/pq_range_scan_reverse.result-pq b/mysql-test/suite/parallel_query/r/pq_range_scan_reverse.result-pq index a7151e73f021..a27a21a0783f 100644 --- a/mysql-test/suite/parallel_query/r/pq_range_scan_reverse.result-pq +++ b/mysql-test/suite/parallel_query/r/pq_range_scan_reverse.result-pq @@ -7,7 +7,7 @@ Table Op Msg_type Msg_text pq_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 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 a 5 NULL 7 100.00 Using index Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`a` AS `a` from `pq_test`.`t1` @@ -22,7 +22,7 @@ a 1 explain select * from t1 where a < 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 range a a 5 NULL 3 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`a` AS `a` from `pq_test`.`t1` where (`pq_test`.`t1`.`a` < 4) @@ -33,7 +33,7 @@ a 1 explain select * from t1 where a < 4 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 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 range a a 5 NULL 3 100.00 Using where; Backward index scan; Using index Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`a` AS `a` from `pq_test`.`t1` where (`pq_test`.`t1`.`a` < 4) order by `pq_test`.`t1`.`a` @@ -44,7 +44,7 @@ a 3 explain select * from t1 where a < 4 order by a desc; 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 range a a 5 NULL 3 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`a` AS `a` from `pq_test`.`t1` where (`pq_test`.`t1`.`a` < 4) order by `pq_test`.`t1`.`a` desc @@ -58,7 +58,7 @@ create table t2(a int not null, b int , primary key(a), key(b)); insert into t2 values (1,1),(2,2),(3,3),(4,4); explain select * from t2 where b < 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 t2 NULL range b b 5 NULL 2 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `pq_test`.`t2`.`a` AS `a`,`pq_test`.`t2`.`b` AS `b` from `pq_test`.`t2` where (`pq_test`.`t2`.`b` < 3) @@ -68,7 +68,7 @@ a b 2 2 explain select * from t2 where b < 3 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 2 100.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 2 100.00 Parallel execute (3 workers) 2 SIMPLE t2 NULL range b b 5 NULL 2 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select `pq_test`.`t2`.`a` AS `a`,`pq_test`.`t2`.`b` AS `b` from `pq_test`.`t2` where (`pq_test`.`t2`.`b` < 3) order by `pq_test`.`t2`.`b` @@ -78,7 +78,7 @@ a b 2 2 explain select * from t2 where b < 3 order by b desc; 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 t2 NULL range b b 5 NULL 2 100.00 Using where; Backward index scan; Using index Warnings: Note 1003 /* select#1 */ select `pq_test`.`t2`.`a` AS `a`,`pq_test`.`t2`.`b` AS `b` from `pq_test`.`t2` where (`pq_test`.`t2`.`b` < 3) order by `pq_test`.`t2`.`b` desc diff --git a/mysql-test/suite/parallel_query/r/pq_range_sec.result-pq b/mysql-test/suite/parallel_query/r/pq_range_sec.result-pq index 8254b13829e7..ff43ad5eb70f 100644 --- a/mysql-test/suite/parallel_query/r/pq_range_sec.result-pq +++ b/mysql-test/suite/parallel_query/r/pq_range_sec.result-pq @@ -75,7 +75,7 @@ Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but wil INSERT INTO t1 VALUES ('ABCDE',19), ('JLVGO',14); EXPLAIN SELECT * FROM t1 WHERE t1.v1 < CHAR(128); 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 v1_key NULL NULL NULL 2 50.00 Using where Warnings: Warning 1366 Incorrect string value: '\x80' for column 'v1' at row 1 @@ -234,7 +234,7 @@ pq_test.t1 analyze status OK # EXPLAIN SELECT count(*) FROM t1 WHERE pk_1 = 3 and f1 = '2000-01-03'; 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 t1 NULL ref PRIMARY,k1 k1 10 const,const # 100.00 Using index Warnings: Note 1003 /* select#1 */ select count(0) AS `count(*)` from `pq_test`.`t1` where ((`pq_test`.`t1`.`f1` = TIMESTAMP'2000-01-03 00:00:00') and (`pq_test`.`t1`.`pk_1` = 3)) @@ -244,7 +244,7 @@ count(*) 2 EXPLAIN SELECT pk_2 FROM t1 WHERE pk_1 = 3 and f1 = '2000-01-03'; 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 t1 NULL ref PRIMARY,k1 k1 10 const,const # 100.00 Using index Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`pk_2` AS `pk_2` from `pq_test`.`t1` where ((`pq_test`.`t1`.`f1` = TIMESTAMP'2000-01-03 00:00:00') and (`pq_test`.`t1`.`pk_1` = 3)) @@ -258,7 +258,7 @@ pk_2 # EXPLAIN SELECT count(*) FROM t1 WHERE pk_1 BETWEEN 3 AND 5 AND f1 = '2000-01-03'; 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 range PRIMARY,k1 k1 10 NULL # 100.00 Using where; Using index Warnings: Note 1003 /* select#1 */ select count(0) AS `count(*)` from `pq_test`.`t1` where ((`pq_test`.`t1`.`f1` = TIMESTAMP'2000-01-03 00:00:00') and (`pq_test`.`t1`.`pk_1` between 3 and 5)) diff --git a/mysql-test/suite/parallel_query/r/pq_ref_reverse_scan.result-pq b/mysql-test/suite/parallel_query/r/pq_ref_reverse_scan.result-pq index 778b8a114af6..574ae7e2ec3d 100644 --- a/mysql-test/suite/parallel_query/r/pq_ref_reverse_scan.result-pq +++ b/mysql-test/suite/parallel_query/r/pq_ref_reverse_scan.result-pq @@ -13,7 +13,7 @@ Table Op Msg_type Msg_text pq_test.t1 analyze status OK explain select * from t1 where c1_idx = 'y' order by pk desc; 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 Backward index scan; Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Backward index scan; Parallel execute (4 workers) 2 SIMPLE t1 NULL ref c1_idx c1_idx 5 const 4 100.00 Using where; Backward index scan Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`pk` AS `pk`,`pq_test`.`t1`.`c1_idx` AS `c1_idx`,`pq_test`.`t1`.`c2` AS `c2` from `pq_test`.`t1` where (`pq_test`.`t1`.`c1_idx` = 'y') order by `pq_test`.`t1`.`pk` desc diff --git a/mysql-test/suite/parallel_query/r/pq_reverse_index_scan.result-pq b/mysql-test/suite/parallel_query/r/pq_reverse_index_scan.result-pq index 93ec5d3bbcac..e9d6027cb86e 100644 --- a/mysql-test/suite/parallel_query/r/pq_reverse_index_scan.result-pq +++ b/mysql-test/suite/parallel_query/r/pq_reverse_index_scan.result-pq @@ -7,7 +7,7 @@ Table Op Msg_type Msg_text pq_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 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 a 5 NULL 7 100.00 Using index Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`a` AS `a` from `pq_test`.`t1` @@ -22,7 +22,7 @@ a 1 explain select 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 7 100.00 Backward index scan; Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 7 100.00 Backward index scan; Parallel execute (4 workers) 2 SIMPLE t1 NULL index NULL a 5 NULL 7 100.00 Backward index scan; Using index Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`a` AS `a` from `pq_test`.`t1` order by `pq_test`.`t1`.`a` @@ -37,7 +37,7 @@ a 7 explain select a from t1 order by a desc; 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 a 5 NULL 7 100.00 Using index Warnings: Note 1003 /* select#1 */ select `pq_test`.`t1`.`a` AS `a` from `pq_test`.`t1` order by `pq_test`.`t1`.`a` desc diff --git a/mysql-test/suite/parallel_query/r/pq_sql_cond.result-pq b/mysql-test/suite/parallel_query/r/pq_sql_cond.result-pq index 144062cea677..ed38aa62c3d1 100644 --- a/mysql-test/suite/parallel_query/r/pq_sql_cond.result-pq +++ b/mysql-test/suite/parallel_query/r/pq_sql_cond.result-pq @@ -2,7 +2,7 @@ CREATE TABLE t1 (a enum ('aac','aab','aaa') not null); INSERT INTO t1 VALUES ('aaa'),('aab'),('aac'); explain SELECT a, CAST(a AS CHAR(3)) FROM t1 ORDER BY CAST(a AS CHAR(2)), a; 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 filesort Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,cast(`test`.`t1`.`a` as char(3) charset utf8mb4) AS `CAST(a AS CHAR(3))` from `test`.`t1` order by `cast(t1.a as char(2) charset utf8mb4)`,`test`.`t1`.`a` diff --git a/mysql-test/suite/parallel_query/r/pq_tempory_table_release.result-pq b/mysql-test/suite/parallel_query/r/pq_tempory_table_release.result-pq index 954936d45de3..7fbef49df17b 100644 --- a/mysql-test/suite/parallel_query/r/pq_tempory_table_release.result-pq +++ b/mysql-test/suite/parallel_query/r/pq_tempory_table_release.result-pq @@ -11,7 +11,7 @@ insert into t1 values (9, 'dog', '7.58'); set session force_parallel_execute=1; explain select c,sum(a) from t1 group 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 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 ALL NULL NULL NULL NULL 9 100.00 Using temporary Warnings: Note 1003 /* select#1 */ select `test`.`t1`.`c` AS `c`,sum(`test`.`t1`.`a`) AS `sum(a)` from `test`.`t1` group by `test`.`t1`.`c` diff --git a/mysql-test/suite/parallel_query/r/pq_tpch.result-pq b/mysql-test/suite/parallel_query/r/pq_tpch.result-pq index d35be477e029..4ecd4da2d2eb 100644 --- a/mysql-test/suite/parallel_query/r/pq_tpch.result-pq +++ b/mysql-test/suite/parallel_query/r/pq_tpch.result-pq @@ -674,15 +674,15 @@ supp_nation, cust_nation, l_year; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 2 75.00 Parallel execute (1 workers) -2 SIMPLE n1 NULL ALL PRIMARY NULL NULL NULL 2 75.00 Using where; Using temporary; Using filesort -2 SIMPLE n2 NULL ALL PRIMARY NULL NULL NULL 2 75.00 Using where; Using join buffer (hash join) -2 SIMPLE customer NULL ref PRIMARY,CUSTOMER_FK1 CUSTOMER_FK1 4 pq_database.n2.n_nationkey 1 100.00 Using index +1 SIMPLE NULL ALL NULL NULL NULL NULL 4 100.00 Parallel execute (4 workers) +2 SIMPLE customer NULL index PRIMARY,CUSTOMER_FK1 CUSTOMER_FK1 4 NULL 4 100.00 Using index; Using temporary; Using filesort 2 SIMPLE orders NULL ref PRIMARY,ORDERS_FK1 ORDERS_FK1 4 pq_database.customer.c_custkey 1 100.00 Using index 2 SIMPLE lineitem NULL ref PRIMARY PRIMARY 4 pq_database.orders.o_orderkey 1 11.11 Using where -2 SIMPLE supplier NULL eq_ref PRIMARY,SUPPLIER_FK1 PRIMARY 4 pq_database.lineitem.L_SUPPKEY 1 5.00 Using where +2 SIMPLE n2 NULL eq_ref PRIMARY PRIMARY 4 pq_database.customer.C_NATIONKEY 1 75.00 Using where +2 SIMPLE supplier NULL eq_ref PRIMARY,SUPPLIER_FK1 PRIMARY 4 pq_database.lineitem.L_SUPPKEY 1 100.00 NULL +2 SIMPLE n1 NULL eq_ref PRIMARY PRIMARY 4 pq_database.supplier.S_NATIONKEY 1 75.00 Using where Warnings: -Note 1003 /* select#1 */ select `pq_database`.`n1`.`N_NAME` AS `supp_nation`,`pq_database`.`n2`.`N_NAME` AS `cust_nation`,extract(year from `pq_database`.`lineitem`.`L_SHIPDATE`) AS `l_year`,sum((`pq_database`.`lineitem`.`L_EXTENDEDPRICE` * (1 - `pq_database`.`lineitem`.`L_DISCOUNT`))) AS `revenue` from `pq_database`.`supplier` join `pq_database`.`lineitem` join `pq_database`.`orders` join `pq_database`.`customer` join `pq_database`.`nation` `n1` join `pq_database`.`nation` `n2` where ((`pq_database`.`customer`.`C_NATIONKEY` = `pq_database`.`n2`.`n_nationkey`) and (`pq_database`.`supplier`.`S_NATIONKEY` = `pq_database`.`n1`.`n_nationkey`) and (`pq_database`.`orders`.`O_CUSTKEY` = `pq_database`.`customer`.`c_custkey`) and (`pq_database`.`lineitem`.`l_orderkey` = `pq_database`.`orders`.`o_orderkey`) and (`pq_database`.`supplier`.`s_suppkey` = `pq_database`.`lineitem`.`L_SUPPKEY`) and (((`pq_database`.`n2`.`N_NAME` = 'GERMANY') and (`pq_database`.`n1`.`N_NAME` = 'FRANCE')) or ((`pq_database`.`n2`.`N_NAME` = 'FRANCE') and (`pq_database`.`n1`.`N_NAME` = 'GERMANY'))) and (`pq_database`.`lineitem`.`L_SHIPDATE` between DATE'1995-01-01' and DATE'1996-12-31')) group by `shipping`.`supp_nation`,`shipping`.`cust_nation`,`shipping`.`l_year` order by `shipping`.`supp_nation`,`shipping`.`cust_nation`,`l_year` +Note 1003 /* select#1 */ select `pq_database`.`n1`.`N_NAME` AS `supp_nation`,`pq_database`.`n2`.`N_NAME` AS `cust_nation`,extract(year from `pq_database`.`lineitem`.`L_SHIPDATE`) AS `l_year`,sum((`pq_database`.`lineitem`.`L_EXTENDEDPRICE` * (1 - `pq_database`.`lineitem`.`L_DISCOUNT`))) AS `revenue` from `pq_database`.`supplier` join `pq_database`.`lineitem` join `pq_database`.`orders` join `pq_database`.`customer` join `pq_database`.`nation` `n1` join `pq_database`.`nation` `n2` where ((`pq_database`.`n2`.`n_nationkey` = `pq_database`.`customer`.`C_NATIONKEY`) and (`pq_database`.`n1`.`n_nationkey` = `pq_database`.`supplier`.`S_NATIONKEY`) and (`pq_database`.`orders`.`O_CUSTKEY` = `pq_database`.`customer`.`c_custkey`) and (`pq_database`.`lineitem`.`l_orderkey` = `pq_database`.`orders`.`o_orderkey`) and (`pq_database`.`supplier`.`s_suppkey` = `pq_database`.`lineitem`.`L_SUPPKEY`) and (((`pq_database`.`n2`.`N_NAME` = 'GERMANY') and (`pq_database`.`n1`.`N_NAME` = 'FRANCE')) or ((`pq_database`.`n2`.`N_NAME` = 'FRANCE') and (`pq_database`.`n1`.`N_NAME` = 'GERMANY'))) and (`pq_database`.`lineitem`.`L_SHIPDATE` between DATE'1995-01-01' and DATE'1996-12-31')) group by `shipping`.`supp_nation`,`shipping`.`cust_nation`,`shipping`.`l_year` order by `shipping`.`supp_nation`,`shipping`.`cust_nation`,`l_year` select supp_nation, cust_nation, @@ -760,7 +760,7 @@ order by nation, o_year desc; 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 (4 workers) 2 SIMPLE part NULL ALL PRIMARY NULL NULL NULL 1 100.00 Using where; Using temporary; Using filesort 2 SIMPLE nation NULL ALL PRIMARY NULL NULL NULL 2 100.00 Using join buffer (hash join) 2 SIMPLE partsupp NULL ref PRIMARY,PARTSUPP_FK1 PRIMARY 4 pq_database.part.p_partkey 1 100.00 NULL diff --git a/mysql-test/suite/parallel_query/r/pq_worker_error.result-pq b/mysql-test/suite/parallel_query/r/pq_worker_error.result-pq index 8aa5aab15848..3272412f6db1 100644 --- a/mysql-test/suite/parallel_query/r/pq_worker_error.result-pq +++ b/mysql-test/suite/parallel_query/r/pq_worker_error.result-pq @@ -125,7 +125,7 @@ insert into t3 values (0, 1, 3); insert into t3 values (1, 0, 4); explain select * 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 t3 NULL index NULL c 4 NULL 4 100.00 Using index Warnings: Note 1003 /* select#1 */ select `test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t3`.`c` AS `c` from `test`.`t3` diff --git a/mysql-test/suite/parts/r/partition_alter3_innodb.result-pq b/mysql-test/suite/parts/r/partition_alter3_innodb.result-pq index d5c6f47dcda4..d34f484b7f95 100644 --- a/mysql-test/suite/parts/r/partition_alter3_innodb.result-pq +++ b/mysql-test/suite/parts/r/partition_alter3_innodb.result-pq @@ -59,7 +59,7 @@ t1 CREATE TABLE `t1` ( t1.ibd EXPLAIN SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 20 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 20 10.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 20 10.00 Using where Warnings: Note 1003 /* select#1 */ select count(0) AS `COUNT(*)` from `test`.`t1` where (`test`.`t1`.`f_date` = DATE'1000-02-10') @@ -410,7 +410,7 @@ t1 CREATE TABLE `t1` ( t1.ibd EXPLAIN SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10'; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 20 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 20 10.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 20 10.00 Using where Warnings: Note 1003 /* select#1 */ select count(0) AS `COUNT(*)` from `test`.`t1` where (`test`.`t1`.`f_date` = DATE'1000-02-10') @@ -453,7 +453,7 @@ t1 CREATE TABLE `t1` ( t1.ibd EXPLAIN SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 20 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 20 10.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 20 10.00 Using where Warnings: Note 1003 /* select#1 */ select (count(`count(0)`) <> 1) AS `COUNT(*) <> 1` from `test`.`t1` where (`test`.`t1`.`f_int1` = 3) @@ -794,7 +794,7 @@ t1 CREATE TABLE `t1` ( t1.ibd EXPLAIN SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3; id select_type table partitions type possible_keys key key_len ref rows filtered Extra -1 SIMPLE NULL ALL NULL NULL NULL NULL 20 10.00 Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL 20 10.00 Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL 20 10.00 Using where Warnings: Note 1003 /* select#1 */ select (count(`count(0)`) <> 1) AS `COUNT(*) <> 1` from `test`.`t1` where (`test`.`t1`.`f_int1` = 3) diff --git a/mysql-test/suite/sys_vars/r/max_seeks_for_key_func.result-pq b/mysql-test/suite/sys_vars/r/max_seeks_for_key_func.result-pq index 2d93c5080936..c58a090674ba 100644 --- a/mysql-test/suite/sys_vars/r/max_seeks_for_key_func.result-pq +++ b/mysql-test/suite/sys_vars/r/max_seeks_for_key_func.result-pq @@ -31,7 +31,7 @@ INSERT INTO t1(b) VALUES("BREc"); INSERT INTO t1(b) VALUES("CRec"); EXPLAIN SELECT STRAIGHT_JOIN * FROM t1,t1 AS t2 WHERE t1.b = 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 # # Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL # # Parallel execute (3 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL # # NULL 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL # # Using where; Using join buffer (hash join) Warnings: @@ -50,7 +50,7 @@ SELECT @@global.max_seeks_for_key; INSERT INTO t1(b) VALUES("AREc"); EXPLAIN SELECT STRAIGHT_JOIN * FROM t1,t1 AS t2 WHERE t1.b = 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 # # Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL # # Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL # # NULL 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL # # Using where; Using join buffer (hash join) Warnings: @@ -63,7 +63,7 @@ INSERT INTO t1(b) VALUES("BREc"); INSERT INTO t1(b) VALUES("CRec"); EXPLAIN SELECT STRAIGHT_JOIN * FROM t1,t1 AS t2 WHERE t1.b = 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 # # Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL # # Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL # # NULL 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL # # Using where; Using join buffer (hash join) Warnings: @@ -74,7 +74,7 @@ INSERT INTO t1 VALUES (null,"a"),(null,"a"),(null,"a"), (null,"a"),(null,"a"),(null,"a"); EXPLAIN SELECT STRAIGHT_JOIN * FROM t1,t1 AS t2 WHERE t1.b = 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 # # Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL # # Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL # # NULL 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL # # Using where; Using join buffer (hash join) Warnings: @@ -85,7 +85,7 @@ test.t1 analyze status OK SET MAX_SEEKS_FOR_KEY=1; EXPLAIN SELECT STRAIGHT_JOIN * FROM t1,t1 AS t2 WHERE t1.b = 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 # # Parallel execute (1 workers) +1 SIMPLE NULL ALL NULL NULL NULL NULL # # Parallel execute (4 workers) 2 SIMPLE t1 NULL ALL NULL NULL NULL NULL # # NULL 2 SIMPLE t2 NULL ALL NULL NULL NULL NULL # # Using where; Using join buffer (hash join) Warnings: