diff options
author | Monty <monty@mariadb.org> | 2022-10-04 16:16:06 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2022-10-04 21:46:44 +0300 |
commit | 30f3d767ef4a8789860452127d8e04b92fadaabc (patch) | |
tree | 4a2c0b88479e3812e98bbbe849b3123f4cc0dd75 /mysql-test/main/explain_json.test | |
parent | a35f715f440eb9ce93e4245cb1e4e5bc6f6972a2 (diff) | |
download | mariadb-git-10.7-selectivity.tar.gz |
Added test cases for preceding test10.7-selectivity
This includes all test changes from
"Changing all cost calculation to be given in milliseconds"
and forwards
Diffstat (limited to 'mysql-test/main/explain_json.test')
-rw-r--r-- | mysql-test/main/explain_json.test | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mysql-test/main/explain_json.test b/mysql-test/main/explain_json.test index e527b70c486..b48cc5d44c5 100644 --- a/mysql-test/main/explain_json.test +++ b/mysql-test/main/explain_json.test @@ -2,6 +2,7 @@ # EXPLAIN FORMAT=JSON tests. These are tests developed for MariaDB. # --source include/default_optimizer_switch.inc +--source include/have_sequence.inc --disable_warnings drop table if exists t0,t1,t2; @@ -117,7 +118,7 @@ select * from t1 where a in (select max(a) from t1 group by b); create table t2 like t1; insert into t2 select * from t1; explain format=json -select * from t1,t2 where t1.a in ( select a from t0); +select * from t1,t2 where t1.a in ( select seq+0 from seq_1_to_100); --echo # --echo # First-Match @@ -271,13 +272,17 @@ create index idx_t1_0 on t1 (a1); create index idx_t1_1 on t1 (a1,a2,b,c); create index idx_t1_2 on t1 (a1,a2,b); analyze table t1; +select count(*) from t1; explain select count(distinct a1,a2,b) from t1 where (a2 >= 'b') and (b = 'a'); explain select count(distinct a1,a2,b,c) from t1 where (a2 >= 'b') and (b = 'a') and (c = 'i121'); +explain select count(distinct a1,a2,b) from t1 where a1 >= "" and (a2 >= 'b') and (b = 'a'); explain format=json select count(distinct a1,a2,b) from t1 where (a2 >= 'b') and (b = 'a'); + explain format=json select count(distinct a1,a2,b,c) from t1 where (a2 >= 'b') and (b = 'a') and (c = 'i121'); +explain format=json select count(distinct a1,a2,b) from t1 where a1 >= "" and (a2 >= 'b') and (b = 'a'); drop table t1; --echo # |