Skip to content

Commit

Permalink
Make test plan stabil.
Browse files Browse the repository at this point in the history
  • Loading branch information
sanja-byelkin committed Aug 10, 2023
1 parent 653f79a commit ff010fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions mysql-test/main/group_min_max_innodb.result
Expand Up @@ -317,6 +317,7 @@ INSERT INTO t1 VALUES
CREATE TABLE t2 (a varchar(4), b varchar(50), PRIMARY KEY (b,a), KEY (a)) ENGINE=InnoDB;
INSERT INTO t2 VALUES
('BERM','African Methodist Episcopal'),('AUS','Anglican'),('BERM','Anglican'),('BS','Anglican'),('BS','Baptist'),('BS','Methodist');
ANALYZE TABLE t1,t2 PERSISTENT FOR ALL;
EXPLAIN SELECT t1.a
FROM (SELECT a FROM t2 GROUP BY a ORDER BY COUNT(DISTINCT b) LIMIT 1) dt
JOIN t1 ON dt.a=t1.b;
Expand Down
3 changes: 3 additions & 0 deletions mysql-test/main/group_min_max_innodb.test
Expand Up @@ -262,6 +262,9 @@ INSERT INTO t1 VALUES
CREATE TABLE t2 (a varchar(4), b varchar(50), PRIMARY KEY (b,a), KEY (a)) ENGINE=InnoDB;
INSERT INTO t2 VALUES
('BERM','African Methodist Episcopal'),('AUS','Anglican'),('BERM','Anglican'),('BS','Anglican'),('BS','Baptist'),('BS','Methodist');
-- disable_result_log
ANALYZE TABLE t1,t2 PERSISTENT FOR ALL;
-- enable_result_log

let query=
SELECT t1.a
Expand Down

0 comments on commit ff010fd

Please sign in to comment.