Commit 6dc2d581 authored by Sergei Petrunia's avatar Sergei Petrunia

Make rocksdb.rocksdb_range pass: MariaDB doesnt support ICP over reverse index scans atm

parent c010f063
...@@ -198,10 +198,13 @@ max(pk) ...@@ -198,10 +198,13 @@ max(pk)
# #48: index_read_map(HA_READ_PREFIX_LAST) does not work in reverse CF # #48: index_read_map(HA_READ_PREFIX_LAST) does not work in reverse CF
# #
# Tests for search_flag=HA_READ_PREFIX_LAST_OR_PREV # Tests for search_flag=HA_READ_PREFIX_LAST_OR_PREV
# Note: the next explain has "Using index condition" in fb/mysql-5.6
# but "Using where" in MariaDB because the latter does not
# support ICP over reverse scans.
explain explain
select * from t2 where a between 99 and 2000 order by a desc; select * from t2 where a between 99 and 2000 order by a desc;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t2 range a a 4 NULL # Using index condition 1 SIMPLE t2 range a a 4 NULL # Using where
select * from t2 where a between 99 and 2000 order by a desc; select * from t2 where a between 99 and 2000 order by a desc;
pk a b pk a b
999 99 999 999 99 999
......
...@@ -128,6 +128,9 @@ select max(pk) from t3 where a=3 and pk < 33; ...@@ -128,6 +128,9 @@ select max(pk) from t3 where a=3 and pk < 33;
--echo # --echo #
--echo # Tests for search_flag=HA_READ_PREFIX_LAST_OR_PREV --echo # Tests for search_flag=HA_READ_PREFIX_LAST_OR_PREV
--echo # Note: the next explain has "Using index condition" in fb/mysql-5.6
--echo # but "Using where" in MariaDB because the latter does not
--echo # support ICP over reverse scans.
--replace_column 9 # --replace_column 9 #
explain explain
select * from t2 where a between 99 and 2000 order by a desc; select * from t2 where a between 99 and 2000 order by a desc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment