Commit a4595579 authored by Alexander Barkov's avatar Alexander Barkov

Fixing non-determenistic results.

parent 732103fc
...@@ -1255,11 +1255,9 @@ eval create table t1(a char(200) collate utf8mb4_unicode_ci NOT NULL default '') ...@@ -1255,11 +1255,9 @@ eval create table t1(a char(200) collate utf8mb4_unicode_ci NOT NULL default '')
default charset=utf8mb4 collate=utf8mb4_unicode_ci engine $engine; default charset=utf8mb4 collate=utf8mb4_unicode_ci engine $engine;
insert into t1 values (unhex('65')), (unhex('C3A9')), (unhex('65')); insert into t1 values (unhex('65')), (unhex('C3A9')), (unhex('65'));
explain select distinct a from t1; explain select distinct a from t1;
--sorted_result SELECT COUNT(*) FROM (SELECT DISTINCT a FROM t1) AS t2;
select distinct a from t1;
explain select a from t1 group by a; explain select a from t1 group by a;
--sorted_result SELECT COUNT(*) FROM (SELECT a FROM t1 GROUP BY a) AS t2;
select a from t1 group by a;
drop table t1; drop table t1;
# #
......
...@@ -1398,15 +1398,15 @@ insert into t1 values (unhex('65')), (unhex('C3A9')), (unhex('65')); ...@@ -1398,15 +1398,15 @@ insert into t1 values (unhex('65')), (unhex('C3A9')), (unhex('65'));
explain select distinct a from t1; explain select distinct a from t1;
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 t1 ALL NULL NULL NULL NULL 3 Using temporary 1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using temporary
select distinct a from t1; SELECT COUNT(*) FROM (SELECT DISTINCT a FROM t1) AS t2;
a COUNT(*)
e 1
explain select a from t1 group by a; explain select a from t1 group by a;
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 t1 ALL NULL NULL NULL NULL 3 Using temporary; Using filesort 1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using temporary; Using filesort
select a from t1 group by a; SELECT COUNT(*) FROM (SELECT a FROM t1 GROUP BY a) AS t2;
a COUNT(*)
e 1
drop table t1; drop table t1;
create table t1(a char(10)) default charset utf8mb4 engine heap; create table t1(a char(10)) default charset utf8mb4 engine heap;
insert into t1 values ('123'), ('456'); insert into t1 values ('123'), ('456');
......
...@@ -1526,15 +1526,15 @@ insert into t1 values (unhex('65')), (unhex('C3A9')), (unhex('65')); ...@@ -1526,15 +1526,15 @@ insert into t1 values (unhex('65')), (unhex('C3A9')), (unhex('65'));
explain select distinct a from t1; explain select distinct a from t1;
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 t1 ALL NULL NULL NULL NULL 3 Using temporary 1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using temporary
select distinct a from t1; SELECT COUNT(*) FROM (SELECT DISTINCT a FROM t1) AS t2;
a COUNT(*)
e 1
explain select a from t1 group by a; explain select a from t1 group by a;
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 t1 ALL NULL NULL NULL NULL 3 Using temporary; Using filesort 1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using temporary; Using filesort
select a from t1 group by a; SELECT COUNT(*) FROM (SELECT a FROM t1 GROUP BY a) AS t2;
a COUNT(*)
e 1
drop table t1; drop table t1;
create table t1(a char(10)) default charset utf8mb4 engine InnoDB; create table t1(a char(10)) default charset utf8mb4 engine InnoDB;
insert into t1 values ('123'), ('456'); insert into t1 values ('123'), ('456');
......
...@@ -1526,15 +1526,15 @@ insert into t1 values (unhex('65')), (unhex('C3A9')), (unhex('65')); ...@@ -1526,15 +1526,15 @@ insert into t1 values (unhex('65')), (unhex('C3A9')), (unhex('65'));
explain select distinct a from t1; explain select distinct a from t1;
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 t1 ALL NULL NULL NULL NULL 3 Using temporary 1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using temporary
select distinct a from t1; SELECT COUNT(*) FROM (SELECT DISTINCT a FROM t1) AS t2;
a COUNT(*)
e 1
explain select a from t1 group by a; explain select a from t1 group by a;
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 t1 ALL NULL NULL NULL NULL 3 Using temporary; Using filesort 1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using temporary; Using filesort
select a from t1 group by a; SELECT COUNT(*) FROM (SELECT a FROM t1 GROUP BY a) AS t2;
a COUNT(*)
e 1
drop table t1; drop table t1;
create table t1(a char(10)) default charset utf8mb4 engine MyISAM; create table t1(a char(10)) default charset utf8mb4 engine MyISAM;
insert into t1 values ('123'), ('456'); insert into t1 values ('123'), ('456');
......
...@@ -1034,15 +1034,15 @@ insert into t1 values (unhex('65')), (unhex('C3A9')), (unhex('65')); ...@@ -1034,15 +1034,15 @@ insert into t1 values (unhex('65')), (unhex('C3A9')), (unhex('65'));
explain select distinct a from t1; explain select distinct a from t1;
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 t1 ALL NULL NULL NULL NULL 3 Using temporary 1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using temporary
select distinct a from t1; SELECT COUNT(*) FROM (SELECT DISTINCT a FROM t1) AS t2;
a COUNT(*)
e 1
explain select a from t1 group by a; explain select a from t1 group by a;
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 t1 ALL NULL NULL NULL NULL 3 Using temporary; Using filesort 1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using temporary; Using filesort
select a from t1 group by a; SELECT COUNT(*) FROM (SELECT a FROM t1 GROUP BY a) AS t2;
a COUNT(*)
e 1
drop table t1; drop table t1;
create table t1(a char(10)) default charset utf8mb4 engine ndb; create table t1(a char(10)) default charset utf8mb4 engine ndb;
insert into t1 values ('123'), ('456'); insert into t1 values ('123'), ('456');
......
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