1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
--source include/have_tokudb.inc
SET DEFAULT_STORAGE_ENGINE='tokudb';
--disable_warnings
DROP TABLE IF EXISTS t1;
--enable_warnings
create table t1(a int, b int, c int, d int, primary key(a), key(b) clustering=yes, key (c))engine=tokudb;
insert into t1 values (1,1,1,1),(2,2,2,2),(3,3,3,3),(4,4,4,4),(5,5,5,5),(6,6,6,6),(7,7,7,7),(8,8,8,8),(9,9,9,9);
# ignore rows column
--replace_column 9 NULL;
explain select * from t1 where b > 5;
# ignore rows column
--replace_column 9 NULL;
explain select * from t1 where c > 5;
# ignore rows column
--replace_column 9 NULL;
explain select * from t1 where a > 7;
# ignore rows column
--replace_column 9 NULL;
explain select * from t1 where c > 8;
# ignore rows column
--replace_column 9 NULL;
explain select * from t1 where b > 7;
# ignore rows column
--replace_column 9 NULL;
explain select a from t1 where b > 0;
# ignore rows column
--replace_column 9 NULL;
explain select a from t1 where c > 0;
drop table t1;
|