summaryrefslogtreecommitdiff
path: root/mysql-test/main/selectivity.test
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2022-11-03 11:47:10 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2022-11-03 11:47:10 +0100
commitf8997c68fe645cc94f6730a135aca5e530dec449 (patch)
treeb3d607eb1a106a16b900d7da6af81a60332a7584 /mysql-test/main/selectivity.test
parent49a22c5897823c528d52886f6048d5b4c91e221f (diff)
parentacf8dc0a577f8fed2d059c033f4efbd07dd95ac0 (diff)
downloadmariadb-git-mariadb-10.10.2.tar.gz
Merge branch '10.9' into 10.10mariadb-10.10.2
Diffstat (limited to 'mysql-test/main/selectivity.test')
-rw-r--r--mysql-test/main/selectivity.test6
1 files changed, 4 insertions, 2 deletions
diff --git a/mysql-test/main/selectivity.test b/mysql-test/main/selectivity.test
index 9c82a8d37a7..4e4513d09d6 100644
--- a/mysql-test/main/selectivity.test
+++ b/mysql-test/main/selectivity.test
@@ -1111,8 +1111,8 @@ drop function f1;
--echo #
create table t1 (a int, b int, key (b), key (a));
insert into t1
-select (rand(1)*1000)/10, (rand(1001)*1000)/50 from seq_1_to_1000;
-analyze table t1 ;
+select (rand(1)*1000)/10, (rand(1001)*1000)/20 from seq_1_to_1000;
+analyze table t1 persistent for all;
--echo # Check what info the optimizer has about selectivities
explain extended select * from t1 use index () where a in (17,51,5);
@@ -1249,6 +1249,8 @@ insert into t1 select seq,seq from seq_1_to_100;
create table t2 (id int, a int, b int, PRIMARY KEY(id), key(a), key(b));
insert into t2 select seq,seq,seq from seq_1_to_100;
+analyze table t1,t2 persistent for all;
+
set optimizer_switch='exists_to_in=off';
set optimizer_use_condition_selectivity=2;