Commit f717fb82 authored by Sergei Petrunia's avatar Sergei Petrunia

Make rocksdb.type_varchar test stable

It may produce test failures like this because of non-deterministic
cost calculations:

-1	SIMPLE	t1	#	col1	col1	259	NULL	#	Using where
+1	SIMPLE	t1	#	col1	NULL	NULL	NULL	#	Using where
parent 1b0cf1b7
......@@ -203,10 +203,10 @@ a 61
ab 6162
# Must show 'using index' for latin1_bin and utf8_bin:
explain
select col1, hex(col1) from t1 where col1 < 'b';
select col1, hex(col1) from t1 force index(col1) where col1 < 'b';
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 # col1 col1 67 NULL # Using where; Using index
select col1, hex(col1) from t1 where col1 < 'b';
select col1, hex(col1) from t1 force index(col1) where col1 < 'b';
col1 hex(col1)
a 61202009
a 6120
......@@ -315,10 +315,10 @@ a 61
ab 6162
# Must show 'using index' for latin1_bin and utf8_bin:
explain
select col1, hex(col1) from t1 where col1 < 'b';
select col1, hex(col1) from t1 force index(col1) where col1 < 'b';
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 # col1 col1 195 NULL # Using where; Using index
select col1, hex(col1) from t1 where col1 < 'b';
select col1, hex(col1) from t1 force index(col1) where col1 < 'b';
col1 hex(col1)
a 61202009
a 6120
......@@ -427,10 +427,10 @@ a 0061
a 0061002000200009
# Must show 'using index' for latin1_bin and utf8_bin:
explain
select col1, hex(col1) from t1 where col1 < 'b';
select col1, hex(col1) from t1 force index(col1) where col1 < 'b';
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 # col1 col1 131 NULL # Using where
select col1, hex(col1) from t1 where col1 < 'b';
select col1, hex(col1) from t1 force index(col1) where col1 < 'b';
col1 hex(col1)
a 0061002000200009
a 00610020
......@@ -539,10 +539,10 @@ a 61
a 61202009
# Must show 'using index' for latin1_bin and utf8_bin:
explain
select col1, hex(col1) from t1 where col1 < 'b';
select col1, hex(col1) from t1 force index(col1) where col1 < 'b';
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 # col1 col1 259 NULL # Using where
select col1, hex(col1) from t1 where col1 < 'b';
select col1, hex(col1) from t1 force index(col1) where col1 < 'b';
col1 hex(col1)
a 61202009
a 6120
......@@ -651,10 +651,10 @@ a 0061
a 0061002000200009
# Must show 'using index' for latin1_bin and utf8_bin:
explain
select col1, hex(col1) from t1 where col1 < 'b';
select col1, hex(col1) from t1 force index(col1) where col1 < 'b';
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 # col1 col1 259 NULL # Using where
select col1, hex(col1) from t1 where col1 < 'b';
select col1, hex(col1) from t1 force index(col1) where col1 < 'b';
col1 hex(col1)
a 0061002000200009
a 00610020
......
......@@ -52,8 +52,8 @@ select col1, hex(col1) from t1;
--echo # Must show 'using index' for latin1_bin and utf8_bin:
--replace_column 4 # 9 #
explain
select col1, hex(col1) from t1 where col1 < 'b';
select col1, hex(col1) from t1 where col1 < 'b';
select col1, hex(col1) from t1 force index(col1) where col1 < 'b';
select col1, hex(col1) from t1 force index(col1) where col1 < 'b';
delete from t1;
insert into t1 values(10, '', 'empty');
......
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