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/order_by.test | |
parent | a35f715f440eb9ce93e4245cb1e4e5bc6f6972a2 (diff) | |
download | mariadb-git-30f3d767ef4a8789860452127d8e04b92fadaabc.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/order_by.test')
-rw-r--r-- | mysql-test/main/order_by.test | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/mysql-test/main/order_by.test b/mysql-test/main/order_by.test index 9f251b15ea8..5bc1e4ca82a 100644 --- a/mysql-test/main/order_by.test +++ b/mysql-test/main/order_by.test @@ -923,17 +923,6 @@ SELECT 1 AS col FROM t1 WHERE a=2 AND (c=10 OR c IS NULL) ORDER BY c; --echo # Must return 1 row SELECT 1 AS col FROM t1 WHERE a=2 AND (c=10 OR c IS NULL) ORDER BY c; ---echo # With more rows "filesort" is removed -INSERT INTO t1 select seq,seq from seq_1_to_2; -EXPLAIN -SELECT 1 AS col FROM t1 WHERE a=2 AND (c=10 OR c IS NULL) ORDER BY c; -SELECT 1 AS col FROM t1 WHERE a=2 AND (c=10 OR c IS NULL) ORDER BY c; - ---echo # With more rows "range" changes to "ref_or_null" -INSERT INTO t1 select seq,seq from seq_3_to_10; -EXPLAIN -SELECT 1 AS col FROM t1 WHERE a=2 AND (c=10 OR c IS NULL) ORDER BY c; - # part 2 of the problem : DESC test cases --echo # Must use ref-or-null on the a_c index --replace_column 1 x 2 x 3 x 6 x 7 x 8 x 9 x 10 x @@ -2410,7 +2399,7 @@ let $query= select t2.key1 = t1.a and t2.key1 IS NOT NULL ORDER BY t2.key2 ASC - LIMIT 1) + LIMIT 1) as "con" from t1; --echo # here type should show ref not index @@ -2693,8 +2682,8 @@ CREATE TABLE t2 (a INT, b INT); INSERT INTO t1 (a,b) VALUES (58,1),(96,2),(273,3),(23,4),(231,5),(525,6), (2354,7),(321421,3),(535,2),(4535,3); -INSERT INTO t2 (a,b) VALUES (58,3),(96,3),(273,3),(1000,1000),(2000,2000); - +INSERT INTO t2 (a,b) VALUES (58,3),(96,3),(273,3),(1000,1000),(2000,2000),(3000,3000); +INSERT INTO t2 select seq,seq from seq_10_to_30; --echo # Join order should have the SJM scan table as the first table for both --echo # the queries with GROUP BY and ORDER BY clause. |