Commit 8be94606 authored by Christian Rober's avatar Christian Rober

[t:4324] Updated tests and results in tokudb.filter_cluster.

git-svn-id: file:///svn/mysql/tests/mysql-test@38887 c7de825b-a66e-492c-adef-691d508d4ae1
parent dbbbf18f
......@@ -9,7 +9,7 @@ insert into t1 values (4,40,400,4000,40000,400000);
insert into t1 values (5,50,500,5000,50000,500000);
explain select * from t1 where c > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 5 Using where
1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL NULL; Using where
select * from t1 where c > 0;
a b c d e f
1 10 100 1000 10000 100000
......@@ -19,7 +19,7 @@ a b c d e f
5 50 500 5000 50000 500000
explain select * from t1 where b > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range b b 5 NULL 5 Using where
1 SIMPLE t1 range b b 5 NULL NULL; Using where
select * from t1 where b > 0;
a b c d e f
1 10 100 1000 10000 100000
......@@ -29,7 +29,7 @@ a b c d e f
5 50 500 5000 50000 500000
explain select * from t1 where d > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range d d 5 NULL 5 Using where
1 SIMPLE t1 range d d 5 NULL NULL; Using where
select * from t1 where d > 0;
a b c d e f
1 10 100 1000 10000 100000
......@@ -39,7 +39,7 @@ a b c d e f
5 50 500 5000 50000 500000
explain select a from t1 where d > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index d d 10 NULL 5 Using where; Using index
1 SIMPLE t1 index d d 10 NULL NULL; Using where; Using index
select a from t1 where d > 0;
a
1
......@@ -71,7 +71,7 @@ e f
update t1 set a = a+1, b = b+10;
explain select * from t1 where c > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 5 Using where
1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL NULL; Using where
select * from t1 where c > 0;
a b c d e f
2 20 100 1000 10000 100000
......@@ -81,7 +81,7 @@ a b c d e f
6 60 500 5000 50000 500000
explain select * from t1 where b > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range b b 5 NULL 5 Using where
1 SIMPLE t1 range b b 5 NULL NULL; Using where
select * from t1 where b > 0;
a b c d e f
2 20 100 1000 10000 100000
......@@ -91,7 +91,7 @@ a b c d e f
6 60 500 5000 50000 500000
explain select * from t1 where d > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range d d 5 NULL 5 Using where
1 SIMPLE t1 range d d 5 NULL NULL; Using where
select * from t1 where d > 0;
a b c d e f
2 20 100 1000 10000 100000
......@@ -101,7 +101,7 @@ a b c d e f
6 60 500 5000 50000 500000
explain select a from t1 where d > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index d d 10 NULL 5 Using where; Using index
1 SIMPLE t1 index d d 10 NULL NULL; Using where; Using index
select a from t1 where d > 0;
a
2
......@@ -133,28 +133,28 @@ e f
delete from t1 where b > 35;
explain select * from t1 where c > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 2 Using where
1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL NULL; Using where
select * from t1 where c > 0;
a b c d e f
2 20 100 1000 10000 100000
3 30 200 2000 20000 200000
explain select * from t1 where b > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range b b 5 NULL 2 Using where
1 SIMPLE t1 range b b 5 NULL NULL; Using where
select * from t1 where b > 0;
a b c d e f
2 20 100 1000 10000 100000
3 30 200 2000 20000 200000
explain select * from t1 where d > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range d d 5 NULL 2 Using where
1 SIMPLE t1 range d d 5 NULL NULL; Using where
select * from t1 where d > 0;
a b c d e f
2 20 100 1000 10000 100000
3 30 200 2000 20000 200000
explain select a from t1 where d > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index d d 10 NULL 2 Using where; Using index
1 SIMPLE t1 index d d 10 NULL NULL; Using where; Using index
select a from t1 where d > 0;
a
2
......@@ -175,28 +175,28 @@ alter table t1 drop index b, drop index d;
alter table t1 add clustering key d(d,a), add clustering key b(b);
explain select * from t1 where c > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 2 Using where
1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL NULL; Using where
select * from t1 where c > 0;
a b c d e f
2 20 100 1000 10000 100000
3 30 200 2000 20000 200000
explain select * from t1 where b > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range b b 5 NULL 2 Using where
1 SIMPLE t1 range b b 5 NULL NULL; Using where
select * from t1 where b > 0;
a b c d e f
2 20 100 1000 10000 100000
3 30 200 2000 20000 200000
explain select * from t1 where d > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range d d 5 NULL 2 Using where
1 SIMPLE t1 range d d 5 NULL NULL; Using where
select * from t1 where d > 0;
a b c d e f
2 20 100 1000 10000 100000
3 30 200 2000 20000 200000
explain select a from t1 where d > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index d d 10 NULL 2 Using where; Using index
1 SIMPLE t1 index d d 10 NULL NULL; Using where; Using index
select a from t1 where d > 0;
a
2
......
......@@ -9,7 +9,7 @@ insert into t1 values (4,40,400,4000,40000,400000);
insert into t1 values (5,50,500,5000,50000,500000);
explain select * from t1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 5
1 SIMPLE t1 ALL NULL NULL NULL NULL NULL;
select * from t1;
a b c d e f
1 10 100 1000 10000 100000
......@@ -19,7 +19,7 @@ a b c d e f
5 50 500 5000 50000 500000
explain select * from t1 where b > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range b b 5 NULL 5 Using where
1 SIMPLE t1 range b b 5 NULL NULL; Using where
select * from t1 where b > 0;
a b c d e f
1 10 100 1000 10000 100000
......@@ -29,7 +29,7 @@ a b c d e f
5 50 500 5000 50000 500000
explain select * from t1 where d > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range d d 5 NULL 5 Using where
1 SIMPLE t1 range d d 5 NULL NULL; Using where
select * from t1 where d > 0;
a b c d e f
1 10 100 1000 10000 100000
......@@ -39,7 +39,7 @@ a b c d e f
5 50 500 5000 50000 500000
explain select a from t1 where d > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index d d 10 NULL 5 Using where; Using index
1 SIMPLE t1 index d d 10 NULL NULL; Using where; Using index
select a from t1 where d > 0;
a
1
......@@ -71,7 +71,7 @@ e f
update t1 set a = a+1, b = b+10;
explain select * from t1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 5
1 SIMPLE t1 ALL NULL NULL NULL NULL NULL;
select * from t1;
a b c d e f
2 20 100 1000 10000 100000
......@@ -81,7 +81,7 @@ a b c d e f
6 60 500 5000 50000 500000
explain select * from t1 where b > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range b b 5 NULL 5 Using where
1 SIMPLE t1 range b b 5 NULL NULL; Using where
select * from t1 where b > 0;
a b c d e f
2 20 100 1000 10000 100000
......@@ -91,7 +91,7 @@ a b c d e f
6 60 500 5000 50000 500000
explain select * from t1 where d > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range d d 5 NULL 5 Using where
1 SIMPLE t1 range d d 5 NULL NULL; Using where
select * from t1 where d > 0;
a b c d e f
2 20 100 1000 10000 100000
......@@ -101,7 +101,7 @@ a b c d e f
6 60 500 5000 50000 500000
explain select a from t1 where d > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index d d 10 NULL 5 Using where; Using index
1 SIMPLE t1 index d d 10 NULL NULL; Using where; Using index
select a from t1 where d > 0;
a
2
......@@ -133,28 +133,28 @@ e f
delete from t1 where b > 35;
explain select * from t1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 2
1 SIMPLE t1 ALL NULL NULL NULL NULL NULL;
select * from t1;
a b c d e f
2 20 100 1000 10000 100000
3 30 200 2000 20000 200000
explain select * from t1 where b > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range b b 5 NULL 2 Using where
1 SIMPLE t1 range b b 5 NULL NULL; Using where
select * from t1 where b > 0;
a b c d e f
2 20 100 1000 10000 100000
3 30 200 2000 20000 200000
explain select * from t1 where d > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range d d 5 NULL 2 Using where
1 SIMPLE t1 range d d 5 NULL NULL; Using where
select * from t1 where d > 0;
a b c d e f
2 20 100 1000 10000 100000
3 30 200 2000 20000 200000
explain select a from t1 where d > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index d d 10 NULL 2 Using where; Using index
1 SIMPLE t1 index d d 10 NULL NULL; Using where; Using index
select a from t1 where d > 0;
a
2
......@@ -175,28 +175,28 @@ alter table t1 drop index b, drop index d;
alter table t1 add clustering key b(b), add clustering index d(d,a);
explain select * from t1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 2
1 SIMPLE t1 ALL NULL NULL NULL NULL NULL;
select * from t1;
a b c d e f
2 20 100 1000 10000 100000
3 30 200 2000 20000 200000
explain select * from t1 where b > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range b b 5 NULL 2 Using where
1 SIMPLE t1 range b b 5 NULL NULL; Using where
select * from t1 where b > 0;
a b c d e f
2 20 100 1000 10000 100000
3 30 200 2000 20000 200000
explain select * from t1 where d > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range d d 5 NULL 2 Using where
1 SIMPLE t1 range d d 5 NULL NULL; Using where
select * from t1 where d > 0;
a b c d e f
2 20 100 1000 10000 100000
3 30 200 2000 20000 200000
explain select a from t1 where d > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index d d 10 NULL 2 Using where; Using index
1 SIMPLE t1 index d d 10 NULL NULL; Using where; Using index
select a from t1 where d > 0;
a
2
......
......@@ -9,7 +9,7 @@ insert into t1 values ("4","40","400","4000","40000","400000");
insert into t1 values ("5","50","500","5000","50000","500000");
explain select * from t1 where c > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range PRIMARY PRIMARY 12 NULL 5 Using where
1 SIMPLE t1 range PRIMARY PRIMARY 12 NULL NULL; Using where
select * from t1;
a b c d e f
1 10 100 1000 10000 100000
......@@ -19,7 +19,7 @@ a b c d e f
5 50 500 5000 50000 500000
explain select * from t1 where b > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range b b 258 NULL 5 Using where
1 SIMPLE t1 range b b 258 NULL NULL; Using where
select * from t1 where b > "0";
a b c d e f
1 10 100 1000 10000 100000
......@@ -29,7 +29,7 @@ a b c d e f
5 50 500 5000 50000 500000
explain select * from t1 where d > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range d d 303 NULL 5 Using where
1 SIMPLE t1 range d d 303 NULL NULL; Using where
select * from t1 where d > "0";
a b c d e f
1 10 100 1000 10000 100000
......@@ -39,7 +39,7 @@ a b c d e f
5 50 500 5000 50000 500000
explain select a from t1 where d > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index d d 316 NULL 5 Using where; Using index
1 SIMPLE t1 index d d 316 NULL NULL; Using where; Using index
select a from t1 where d > "0";
a
1
......@@ -71,7 +71,7 @@ e f
update t1 set a = a+1, b = b+10;
explain select * from t1 where c > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range PRIMARY PRIMARY 12 NULL 5 Using where
1 SIMPLE t1 range PRIMARY PRIMARY 12 NULL NULL; Using where
select * from t1 where c > "0";
a b c d e f
2 20 100 1000 10000 100000
......@@ -81,7 +81,7 @@ a b c d e f
6 60 500 5000 50000 500000
explain select * from t1 where b > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range b b 258 NULL 5 Using where
1 SIMPLE t1 range b b 258 NULL NULL; Using where
select * from t1 where b > "0";
a b c d e f
2 20 100 1000 10000 100000
......@@ -91,7 +91,7 @@ a b c d e f
6 60 500 5000 50000 500000
explain select * from t1 where d > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range d d 303 NULL 5 Using where
1 SIMPLE t1 range d d 303 NULL NULL; Using where
select * from t1 where d > "0";
a b c d e f
2 20 100 1000 10000 100000
......@@ -101,7 +101,7 @@ a b c d e f
6 60 500 5000 50000 500000
explain select a from t1 where d > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index d d 316 NULL 5 Using where; Using index
1 SIMPLE t1 index d d 316 NULL NULL; Using where; Using index
select a from t1 where d > "0";
a
2
......@@ -133,28 +133,28 @@ e f
delete from t1 where b > 35;
explain select * from t1 where c > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range PRIMARY PRIMARY 12 NULL 2 Using where
1 SIMPLE t1 range PRIMARY PRIMARY 12 NULL NULL; Using where
select * from t1 where c > "0";
a b c d e f
2 20 100 1000 10000 100000
3 30 200 2000 20000 200000
explain select * from t1 where b > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range b b 258 NULL 2 Using where
1 SIMPLE t1 range b b 258 NULL NULL; Using where
select * from t1 where b > "0";
a b c d e f
2 20 100 1000 10000 100000
3 30 200 2000 20000 200000
explain select * from t1 where d > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range d d 303 NULL 2 Using where
1 SIMPLE t1 range d d 303 NULL NULL; Using where
select * from t1 where d > "0";
a b c d e f
2 20 100 1000 10000 100000
3 30 200 2000 20000 200000
explain select a from t1 where d > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index d d 316 NULL 2 Using where; Using index
1 SIMPLE t1 index d d 316 NULL NULL; Using where; Using index
select a from t1 where d > "0";
a
2
......@@ -175,28 +175,28 @@ alter table t1 drop index b, drop index d;
alter table t1 add clustering key d(d,a), add clustering key b(b);
explain select * from t1 where c > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range PRIMARY PRIMARY 12 NULL 2 Using where
1 SIMPLE t1 range PRIMARY PRIMARY 12 NULL NULL; Using where
select * from t1 where c > "0";
a b c d e f
2 20 100 1000 10000 100000
3 30 200 2000 20000 200000
explain select * from t1 where b > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range b b 258 NULL 2 Using where
1 SIMPLE t1 range b b 258 NULL NULL; Using where
select * from t1 where b > "0";
a b c d e f
2 20 100 1000 10000 100000
3 30 200 2000 20000 200000
explain select * from t1 where d > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range d d 303 NULL 2 Using where
1 SIMPLE t1 range d d 303 NULL NULL; Using where
select * from t1 where d > "0";
a b c d e f
2 20 100 1000 10000 100000
3 30 200 2000 20000 200000
explain select a from t1 where d > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index d d 316 NULL 2 Using where; Using index
1 SIMPLE t1 index d d 316 NULL NULL; Using where; Using index
select a from t1 where d > "0";
a
2
......
......@@ -9,7 +9,7 @@ insert into t1 values (4,40,"400","4000","40000",400000);
insert into t1 values (5,50,"500","5000","50000",500000);
explain select * from t1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 5
1 SIMPLE t1 ALL NULL NULL NULL NULL NULL;
select * from t1;
a b c d e f
1 10 100 1000 10000 100000
......@@ -19,7 +19,7 @@ a b c d e f
5 50 500 5000 50000 500000
explain select * from t1 where b > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range b b 5 NULL 5 Using where
1 SIMPLE t1 range b b 5 NULL NULL; Using where
select * from t1 where b > 0;
a b c d e f
1 10 100 1000 10000 100000
......@@ -29,7 +29,7 @@ a b c d e f
5 50 500 5000 50000 500000
explain select * from t1 where d > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range d d 303 NULL 5 Using where
1 SIMPLE t1 range d d 303 NULL NULL; Using where
select * from t1 where d > "0";
a b c d e f
1 10 100 1000 10000 100000
......@@ -39,7 +39,7 @@ a b c d e f
5 50 500 5000 50000 500000
explain select a from t1 where d > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index d d 308 NULL 5 Using where; Using index
1 SIMPLE t1 index d d 308 NULL NULL; Using where; Using index
select a from t1 where d > "0";
a
1
......@@ -71,7 +71,7 @@ e f
update t1 set a = a+1, b = b+10;
explain select * from t1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 5
1 SIMPLE t1 ALL NULL NULL NULL NULL NULL;
select * from t1;
a b c d e f
2 20 100 1000 10000 100000
......@@ -81,7 +81,7 @@ a b c d e f
6 60 500 5000 50000 500000
explain select * from t1 where b > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range b b 5 NULL 5 Using where
1 SIMPLE t1 range b b 5 NULL NULL; Using where
select * from t1 where b > 0;
a b c d e f
2 20 100 1000 10000 100000
......@@ -91,7 +91,7 @@ a b c d e f
6 60 500 5000 50000 500000
explain select * from t1 where d > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range d d 303 NULL 5 Using where
1 SIMPLE t1 range d d 303 NULL NULL; Using where
select * from t1 where d > "0";
a b c d e f
2 20 100 1000 10000 100000
......@@ -101,7 +101,7 @@ a b c d e f
6 60 500 5000 50000 500000
explain select a from t1 where d > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index d d 308 NULL 5 Using where; Using index
1 SIMPLE t1 index d d 308 NULL NULL; Using where; Using index
select a from t1 where d > "0";
a
2
......@@ -133,28 +133,28 @@ e f
delete from t1 where b > 35;
explain select * from t1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 2
1 SIMPLE t1 ALL NULL NULL NULL NULL NULL;
select * from t1;
a b c d e f
2 20 100 1000 10000 100000
3 30 200 2000 20000 200000
explain select * from t1 where b > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range b b 5 NULL 2 Using where
1 SIMPLE t1 range b b 5 NULL NULL; Using where
select * from t1 where b > 0;
a b c d e f
2 20 100 1000 10000 100000
3 30 200 2000 20000 200000
explain select * from t1 where d > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range d d 303 NULL 2 Using where
1 SIMPLE t1 range d d 303 NULL NULL; Using where
select * from t1 where d > "0";
a b c d e f
2 20 100 1000 10000 100000
3 30 200 2000 20000 200000
explain select a from t1 where d > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index d d 308 NULL 2 Using where; Using index
1 SIMPLE t1 index d d 308 NULL NULL; Using where; Using index
select a from t1 where d > "0";
a
2
......@@ -175,28 +175,28 @@ alter table t1 drop index b, drop index d;
alter table t1 add clustering key d(d,a), add clustering key b(b);
explain select * from t1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 2
1 SIMPLE t1 ALL NULL NULL NULL NULL NULL;
select * from t1;
a b c d e f
2 20 100 1000 10000 100000
3 30 200 2000 20000 200000
explain select * from t1 where b > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range b b 5 NULL 2 Using where
1 SIMPLE t1 range b b 5 NULL NULL; Using where
select * from t1 where b > 0;
a b c d e f
2 20 100 1000 10000 100000
3 30 200 2000 20000 200000
explain select * from t1 where d > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range d d 303 NULL 2 Using where
1 SIMPLE t1 range d d 303 NULL NULL; Using where
select * from t1 where d > "0";
a b c d e f
2 20 100 1000 10000 100000
3 30 200 2000 20000 200000
explain select a from t1 where d > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index d d 308 NULL 2 Using where; Using index
1 SIMPLE t1 index d d 308 NULL NULL; Using where; Using index
select a from t1 where d > "0";
a
2
......
......@@ -9,7 +9,7 @@ insert into t1 values ("4","40","400","4000","40000","400000");
insert into t1 values ("5","50","500","5000","50000","500000");
explain select * from t1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 5
1 SIMPLE t1 ALL NULL NULL NULL NULL NULL;
select * from t1;
a b c d e f
1 10 100 1000 10000 100000
......@@ -19,7 +19,7 @@ a b c d e f
5 50 500 5000 50000 500000
explain select * from t1 where b > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range b b 258 NULL 5 Using where
1 SIMPLE t1 range b b 258 NULL NULL; Using where
select * from t1 where b > "0";
a b c d e f
1 10 100 1000 10000 100000
......@@ -29,7 +29,7 @@ a b c d e f
5 50 500 5000 50000 500000
explain select * from t1 where d > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range d d 303 NULL 5 Using where
1 SIMPLE t1 range d d 303 NULL NULL; Using where
select * from t1 where d > "0";
a b c d e f
1 10 100 1000 10000 100000
......@@ -39,7 +39,7 @@ a b c d e f
5 50 500 5000 50000 500000
explain select a from t1 where d > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index d d 316 NULL 5 Using where; Using index
1 SIMPLE t1 index d d 316 NULL NULL; Using where; Using index
select a from t1 where d > "0";
a
1
......@@ -71,7 +71,7 @@ e f
update t1 set a = a+1, b = b+10;
explain select * from t1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 5
1 SIMPLE t1 ALL NULL NULL NULL NULL NULL;
select * from t1;
a b c d e f
2 20 100 1000 10000 100000
......@@ -81,7 +81,7 @@ a b c d e f
6 60 500 5000 50000 500000
explain select * from t1 where b > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range b b 258 NULL 5 Using where
1 SIMPLE t1 range b b 258 NULL NULL; Using where
select * from t1 where b > "0";
a b c d e f
2 20 100 1000 10000 100000
......@@ -91,7 +91,7 @@ a b c d e f
6 60 500 5000 50000 500000
explain select * from t1 where d > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range d d 303 NULL 5 Using where
1 SIMPLE t1 range d d 303 NULL NULL; Using where
select * from t1 where d > "0";
a b c d e f
2 20 100 1000 10000 100000
......@@ -101,7 +101,7 @@ a b c d e f
6 60 500 5000 50000 500000
explain select a from t1 where d > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index d d 316 NULL 5 Using where; Using index
1 SIMPLE t1 index d d 316 NULL NULL; Using where; Using index
select a from t1 where d > "0";
a
2
......@@ -133,28 +133,28 @@ e f
delete from t1 where b > 35;
explain select * from t1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 2
1 SIMPLE t1 ALL NULL NULL NULL NULL NULL;
select * from t1;
a b c d e f
2 20 100 1000 10000 100000
3 30 200 2000 20000 200000
explain select * from t1 where b > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range b b 258 NULL 2 Using where
1 SIMPLE t1 range b b 258 NULL NULL; Using where
select * from t1 where b > "0";
a b c d e f
2 20 100 1000 10000 100000
3 30 200 2000 20000 200000
explain select * from t1 where d > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range d d 303 NULL 2 Using where
1 SIMPLE t1 range d d 303 NULL NULL; Using where
select * from t1 where d > "0";
a b c d e f
2 20 100 1000 10000 100000
3 30 200 2000 20000 200000
explain select a from t1 where d > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index d d 316 NULL 2 Using where; Using index
1 SIMPLE t1 index d d 316 NULL NULL; Using where; Using index
select a from t1 where d > "0";
a
2
......@@ -175,28 +175,28 @@ alter table t1 drop index b, drop index d;
alter table t1 add clustering key d(d,a), add clustering key b(b);
explain select * from t1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 2
1 SIMPLE t1 ALL NULL NULL NULL NULL NULL;
select * from t1;
a b c d e f
2 20 100 1000 10000 100000
3 30 200 2000 20000 200000
explain select * from t1 where b > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range b b 258 NULL 2 Using where
1 SIMPLE t1 range b b 258 NULL NULL; Using where
select * from t1 where b > "0";
a b c d e f
2 20 100 1000 10000 100000
3 30 200 2000 20000 200000
explain select * from t1 where d > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range d d 303 NULL 2 Using where
1 SIMPLE t1 range d d 303 NULL NULL; Using where
select * from t1 where d > "0";
a b c d e f
2 20 100 1000 10000 100000
3 30 200 2000 20000 200000
explain select a from t1 where d > "0";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index d d 316 NULL 2 Using where; Using index
1 SIMPLE t1 index d d 316 NULL NULL; Using where; Using index
select a from t1 where d > "0";
a
2
......
......@@ -13,15 +13,20 @@ insert into t1 values (3,30,300,3000,30000,300000);
insert into t1 values (4,40,400,4000,40000,400000);
insert into t1 values (5,50,500,5000,50000,500000);
# ignore rows column
--replace_column 9 NULL;
explain select * from t1 where c > 0;
select * from t1 where c > 0;
--replace_column 9 NULL;
explain select * from t1 where b > 0;
select * from t1 where b > 0;
--replace_column 9 NULL;
explain select * from t1 where d > 0;
select * from t1 where d > 0;
--replace_column 9 NULL;
explain select a from t1 where d > 0;
select a from t1 where d > 0;
select e,f from t1 where c > 0;
......@@ -29,15 +34,19 @@ select e,f from t1 where b > 0;
select e,f from t1 where d > 0;
update t1 set a = a+1, b = b+10;
--replace_column 9 NULL;
explain select * from t1 where c > 0;
select * from t1 where c > 0;
--replace_column 9 NULL;
explain select * from t1 where b > 0;
select * from t1 where b > 0;
--replace_column 9 NULL;
explain select * from t1 where d > 0;
select * from t1 where d > 0;
--replace_column 9 NULL;
explain select a from t1 where d > 0;
select a from t1 where d > 0;
select e,f from t1 where c > 0;
......@@ -45,15 +54,19 @@ select e,f from t1 where b > 0;
select e,f from t1 where d > 0;
delete from t1 where b > 35;
--replace_column 9 NULL;
explain select * from t1 where c > 0;
select * from t1 where c > 0;
--replace_column 9 NULL;
explain select * from t1 where b > 0;
select * from t1 where b > 0;
--replace_column 9 NULL;
explain select * from t1 where d > 0;
select * from t1 where d > 0;
--replace_column 9 NULL;
explain select a from t1 where d > 0;
select a from t1 where d > 0;
select e,f from t1 where c > 0;
......@@ -65,15 +78,19 @@ alter table t1 drop index b, drop index d;
alter table t1 add clustering key d(d,a), add clustering key b(b);
--replace_column 9 NULL;
explain select * from t1 where c > 0;
select * from t1 where c > 0;
--replace_column 9 NULL;
explain select * from t1 where b > 0;
select * from t1 where b > 0;
--replace_column 9 NULL;
explain select * from t1 where d > 0;
select * from t1 where d > 0;
--replace_column 9 NULL;
explain select a from t1 where d > 0;
select a from t1 where d > 0;
select e,f from t1 where c > 0;
......
......@@ -13,15 +13,20 @@ insert into t1 values (3,30,300,3000,30000,300000);
insert into t1 values (4,40,400,4000,40000,400000);
insert into t1 values (5,50,500,5000,50000,500000);
# ignore rows column
--replace_column 9 NULL;
explain select * from t1;
select * from t1;
--replace_column 9 NULL;
explain select * from t1 where b > 0;
select * from t1 where b > 0;
--replace_column 9 NULL;
explain select * from t1 where d > 0;
select * from t1 where d > 0;
--replace_column 9 NULL;
explain select a from t1 where d > 0;
select a from t1 where d > 0;
select e,f from t1 where c > 0;
......@@ -29,15 +34,19 @@ select e,f from t1 where b > 0;
select e,f from t1 where d > 0;
update t1 set a = a+1, b = b+10;
--replace_column 9 NULL;
explain select * from t1;
select * from t1;
--replace_column 9 NULL;
explain select * from t1 where b > 0;
select * from t1 where b > 0;
--replace_column 9 NULL;
explain select * from t1 where d > 0;
select * from t1 where d > 0;
--replace_column 9 NULL;
explain select a from t1 where d > 0;
select a from t1 where d > 0;
select e,f from t1 where c > 0;
......@@ -45,15 +54,19 @@ select e,f from t1 where b > 0;
select e,f from t1 where d > 0;
delete from t1 where b > 35;
--replace_column 9 NULL;
explain select * from t1;
select * from t1;
--replace_column 9 NULL;
explain select * from t1 where b > 0;
select * from t1 where b > 0;
--replace_column 9 NULL;
explain select * from t1 where d > 0;
select * from t1 where d > 0;
--replace_column 9 NULL;
explain select a from t1 where d > 0;
select a from t1 where d > 0;
select e,f from t1 where c > 0;
......@@ -65,15 +78,19 @@ alter table t1 drop index b, drop index d;
alter table t1 add clustering key b(b), add clustering index d(d,a);
--replace_column 9 NULL;
explain select * from t1;
select * from t1;
--replace_column 9 NULL;
explain select * from t1 where b > 0;
select * from t1 where b > 0;
--replace_column 9 NULL;
explain select * from t1 where d > 0;
select * from t1 where d > 0;
--replace_column 9 NULL;
explain select a from t1 where d > 0;
select a from t1 where d > 0;
select e,f from t1 where c > 0;
......
......@@ -13,15 +13,20 @@ insert into t1 values ("3","30","300","3000","30000","300000");
insert into t1 values ("4","40","400","4000","40000","400000");
insert into t1 values ("5","50","500","5000","50000","500000");
# ignore rows column
--replace_column 9 NULL;
explain select * from t1 where c > "0";
select * from t1;
--replace_column 9 NULL;
explain select * from t1 where b > "0";
select * from t1 where b > "0";
--replace_column 9 NULL;
explain select * from t1 where d > "0";
select * from t1 where d > "0";
--replace_column 9 NULL;
explain select a from t1 where d > "0";
select a from t1 where d > "0";
select e,f from t1 where c > "0";
......@@ -29,15 +34,19 @@ select e,f from t1 where b > "0";
select e,f from t1 where d > "0";
update t1 set a = a+1, b = b+10;
--replace_column 9 NULL;
explain select * from t1 where c > "0";
select * from t1 where c > "0";
--replace_column 9 NULL;
explain select * from t1 where b > "0";
select * from t1 where b > "0";
--replace_column 9 NULL;
explain select * from t1 where d > "0";
select * from t1 where d > "0";
--replace_column 9 NULL;
explain select a from t1 where d > "0";
select a from t1 where d > "0";
select e,f from t1 where c > "0";
......@@ -45,15 +54,19 @@ select e,f from t1 where b > "0";
select e,f from t1 where d > "0";
delete from t1 where b > 35;
--replace_column 9 NULL;
explain select * from t1 where c > "0";
select * from t1 where c > "0";
--replace_column 9 NULL;
explain select * from t1 where b > "0";
select * from t1 where b > "0";
--replace_column 9 NULL;
explain select * from t1 where d > "0";
select * from t1 where d > "0";
--replace_column 9 NULL;
explain select a from t1 where d > "0";
select a from t1 where d > "0";
select e,f from t1 where c > "0";
......@@ -65,15 +78,19 @@ alter table t1 drop index b, drop index d;
alter table t1 add clustering key d(d,a), add clustering key b(b);
--replace_column 9 NULL;
explain select * from t1 where c > "0";
select * from t1 where c > "0";
--replace_column 9 NULL;
explain select * from t1 where b > "0";
select * from t1 where b > "0";
--replace_column 9 NULL;
explain select * from t1 where d > "0";
select * from t1 where d > "0";
--replace_column 9 NULL;
explain select a from t1 where d > "0";
select a from t1 where d > "0";
select e,f from t1 where c > "0";
......
......@@ -13,15 +13,20 @@ insert into t1 values (3,30,"300","3000","30000",300000);
insert into t1 values (4,40,"400","4000","40000",400000);
insert into t1 values (5,50,"500","5000","50000",500000);
# ignore rows column
--replace_column 9 NULL;
explain select * from t1;
select * from t1;
--replace_column 9 NULL;
explain select * from t1 where b > 0;
select * from t1 where b > 0;
--replace_column 9 NULL;
explain select * from t1 where d > "0";
select * from t1 where d > "0";
--replace_column 9 NULL;
explain select a from t1 where d > "0";
select a from t1 where d > "0";
select e,f from t1;
......@@ -29,15 +34,19 @@ select e,f from t1 where b > 0;
select e,f from t1 where d > "0";
update t1 set a = a+1, b = b+10;
--replace_column 9 NULL;
explain select * from t1;
select * from t1;
--replace_column 9 NULL;
explain select * from t1 where b > 0;
select * from t1 where b > 0;
--replace_column 9 NULL;
explain select * from t1 where d > "0";
select * from t1 where d > "0";
--replace_column 9 NULL;
explain select a from t1 where d > "0";
select a from t1 where d > "0";
select e,f from t1;
......@@ -45,15 +54,19 @@ select e,f from t1 where b > 0;
select e,f from t1 where d > "0";
delete from t1 where b > 35;
--replace_column 9 NULL;
explain select * from t1;
select * from t1;
--replace_column 9 NULL;
explain select * from t1 where b > 0;
select * from t1 where b > 0;
--replace_column 9 NULL;
explain select * from t1 where d > "0";
select * from t1 where d > "0";
--replace_column 9 NULL;
explain select a from t1 where d > "0";
select a from t1 where d > "0";
select e,f from t1;
......@@ -65,15 +78,19 @@ alter table t1 drop index b, drop index d;
alter table t1 add clustering key d(d,a), add clustering key b(b);
--replace_column 9 NULL;
explain select * from t1;
select * from t1;
--replace_column 9 NULL;
explain select * from t1 where b > 0;
select * from t1 where b > 0;
--replace_column 9 NULL;
explain select * from t1 where d > "0";
select * from t1 where d > "0";
--replace_column 9 NULL;
explain select a from t1 where d > "0";
select a from t1 where d > "0";
select e,f from t1;
......
......@@ -13,15 +13,20 @@ insert into t1 values ("3","30","300","3000","30000","300000");
insert into t1 values ("4","40","400","4000","40000","400000");
insert into t1 values ("5","50","500","5000","50000","500000");
# ignore rows column
--replace_column 9 NULL;
explain select * from t1;
select * from t1;
--replace_column 9 NULL;
explain select * from t1 where b > "0";
select * from t1 where b > "0";
--replace_column 9 NULL;
explain select * from t1 where d > "0";
select * from t1 where d > "0";
--replace_column 9 NULL;
explain select a from t1 where d > "0";
select a from t1 where d > "0";
select e,f from t1;
......@@ -29,15 +34,19 @@ select e,f from t1 where b > "0";
select e,f from t1 where d > "0";
update t1 set a = a+1, b = b+10;
--replace_column 9 NULL;
explain select * from t1;
select * from t1;
--replace_column 9 NULL;
explain select * from t1 where b > "0";
select * from t1 where b > "0";
--replace_column 9 NULL;
explain select * from t1 where d > "0";
select * from t1 where d > "0";
--replace_column 9 NULL;
explain select a from t1 where d > "0";
select a from t1 where d > "0";
select e,f from t1;
......@@ -45,15 +54,19 @@ select e,f from t1 where b > "0";
select e,f from t1 where d > "0";
delete from t1 where b > 35;
--replace_column 9 NULL;
explain select * from t1;
select * from t1;
--replace_column 9 NULL;
explain select * from t1 where b > "0";
select * from t1 where b > "0";
--replace_column 9 NULL;
explain select * from t1 where d > "0";
select * from t1 where d > "0";
--replace_column 9 NULL;
explain select a from t1 where d > "0";
select a from t1 where d > "0";
select e,f from t1;
......@@ -65,15 +78,19 @@ alter table t1 drop index b, drop index d;
alter table t1 add clustering key d(d,a), add clustering key b(b);
--replace_column 9 NULL;
explain select * from t1;
select * from t1;
--replace_column 9 NULL;
explain select * from t1 where b > "0";
select * from t1 where b > "0";
--replace_column 9 NULL;
explain select * from t1 where d > "0";
select * from t1 where d > "0";
--replace_column 9 NULL;
explain select a from t1 where d > "0";
select a from t1 where d > "0";
select e,f from t1;
......
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