Skip to content

Commit c79e98e

Browse files
committed
MDEV-8085 main.group_by failed in buildbot
change the test case to be deterministic (while still sufficient to test a bug)
1 parent 5d8cee4 commit c79e98e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mysql-test/r/group_by.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2342,7 +2342,7 @@ DROP TABLE t1;
23422342
create table t1 (a int, b int);
23432343
insert into t1 values (1,11), (1,12), (2,22),(2,23), (4,44),(4,45);
23442344
create table t2 (c int, d int);
2345-
insert into t2 values (1,11), (1,12), (2,22),(2,23), (4,44),(4,45);
2345+
insert into t2 values (1,11), (2,22), (4,44);
23462346
select distinct a,sum(b), (select d from t2 where c=a order by max(b) limit 1) from t1 group by a order by max(b);
23472347
a sum(b) (select d from t2 where c=a order by max(b) limit 1)
23482348
1 23 11

mysql-test/t/group_by.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1523,7 +1523,7 @@ DROP TABLE t1;
15231523
create table t1 (a int, b int);
15241524
insert into t1 values (1,11), (1,12), (2,22),(2,23), (4,44),(4,45);
15251525
create table t2 (c int, d int);
1526-
insert into t2 values (1,11), (1,12), (2,22),(2,23), (4,44),(4,45);
1526+
insert into t2 values (1,11), (2,22), (4,44);
15271527
select distinct a,sum(b), (select d from t2 where c=a order by max(b) limit 1) from t1 group by a order by max(b);
15281528
drop table t1, t2;
15291529

0 commit comments

Comments
 (0)