You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MariaRocks port: get rocksdb.rocksdb_icp[_rev] to work
- Fix the test cases to not use userstat counters specific to
facebook/mysql-5.6
- Make testcase also check MariaDB's ICP counters
- Remove ha_rocksdb::check_index_cond(), call handler_index_cond_check
instead.
Copy file name to clipboardExpand all lines: storage/rocksdb/mysql-test/rocksdb/r/rocksdb_icp.result
+63-33Lines changed: 63 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -50,23 +50,17 @@ EXPLAIN
50
50
"table": {
51
51
"table_name": "t3",
52
52
"access_type": "range",
53
-
"possible_keys": [
54
-
"kp1"
55
-
],
53
+
"possible_keys": ["kp1"],
56
54
"key": "kp1",
57
-
"used_key_parts": [
58
-
"kp1"
59
-
],
60
55
"key_length": "5",
56
+
"used_key_parts": ["kp1"],
61
57
"rows": 1000,
62
58
"filtered": 100,
63
-
"index_condition": "((`test`.`t3`.`kp1` between 2 and 4) and ((`test`.`t3`.`kp1` % 3) = 0))",
64
-
"attached_condition": "(`test`.`t3`.`kp2` like '%foo%')"
59
+
"index_condition": "t3.kp1 between 2 and 4 and t3.kp1 % 3 = 0",
60
+
"attached_condition": "t3.kp2 like '%foo%'"
65
61
}
66
62
}
67
63
}
68
-
Warnings:
69
-
Note 1003 /* select#1 */ select `test`.`t3`.`pk` AS `pk`,`test`.`t3`.`kp1` AS `kp1`,`test`.`t3`.`kp2` AS `kp2`,`test`.`t3`.`col1` AS `col1` from `test`.`t3` where ((`test`.`t3`.`kp1` between 2 and 4) and ((`test`.`t3`.`kp1` % 3) = 0) and (`test`.`t3`.`kp2` like '%foo%'))
70
64
# Check that we handle the case where out-of-range is encountered sooner
71
65
# than matched index condition
72
66
explain
@@ -82,10 +76,11 @@ id select_type table type possible_keys key key_len ref rows Extra
82
76
select * from t2 where kp1< 3 and kp2+1>50000;
83
77
pk kp1 kp2 col1
84
78
# Try doing backwards scans
79
+
# MariaDB: ICP is not supported for reverse scans.
85
80
explain
86
81
select * from t2 where kp1 between 1 and 10 and mod(kp2,2)=0 order by kp1 desc;
87
82
id select_type table type possible_keys key key_len ref rows Extra
88
-
1 SIMPLE t2 range kp1 kp1 5 NULL # Using index condition
83
+
1 SIMPLE t2 range kp1 kp1 5 NULL # Using where
89
84
select * from t2 where kp1 between 1 and 10 and mod(kp2,2)=0 order by kp1 desc;
90
85
pk kp1 kp2 col1
91
86
10 10 10 10
@@ -96,7 +91,7 @@ pk kp1 kp2 col1
96
91
explain
97
92
select * from t2 where kp1 >990 and mod(kp2,2)=0 order by kp1 desc;
98
93
id select_type table type possible_keys key key_len ref rows Extra
99
-
1 SIMPLE t2 range kp1 kp1 5 NULL # Using index condition
94
+
1 SIMPLE t2 range kp1 kp1 5 NULL # Using where
100
95
select * from t2 where kp1 >990 and mod(kp2,2)=0 order by kp1 desc;
101
96
pk kp1 kp2 col1
102
97
998 998 998 998
@@ -106,7 +101,7 @@ pk kp1 kp2 col1
106
101
explain
107
102
select * from t2 where kp1< 3 and kp2+1>50000 order by kp1 desc;
108
103
id select_type table type possible_keys key key_len ref rows Extra
109
-
1 SIMPLE t2 range kp1 kp1 5 NULL # Using index condition
104
+
1 SIMPLE t2 range kp1 kp1 5 NULL # Using where
110
105
select * from t2 where kp1< 3 and kp2+1>50000 order by kp1 desc;
0 commit comments