Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e9839a43
Commit
e9839a43
authored
Aug 09, 2023
by
Oleg Smirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-30143 Fix unstable test
parent
51f9d620
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
mysql-test/main/group_min_max_innodb.result
mysql-test/main/group_min_max_innodb.result
+2
-0
mysql-test/main/group_min_max_innodb.test
mysql-test/main/group_min_max_innodb.test
+5
-0
No files found.
mysql-test/main/group_min_max_innodb.result
View file @
e9839a43
...
...
@@ -317,6 +317,8 @@ 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;
ANALYZE TABLE t2;
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;
...
...
mysql-test/main/group_min_max_innodb.test
View file @
e9839a43
...
...
@@ -263,6 +263,11 @@ CREATE TABLE t2 (a varchar(4), b varchar(50), PRIMARY KEY (b,a), KEY (a)) ENGINE
INSERT
INTO
t2
VALUES
(
'BERM'
,
'African Methodist Episcopal'
),(
'AUS'
,
'Anglican'
),(
'BERM'
,
'Anglican'
),(
'BS'
,
'Anglican'
),(
'BS'
,
'Baptist'
),(
'BS'
,
'Methodist'
);
--
disable_result_log
ANALYZE
TABLE
t1
;
ANALYZE
TABLE
t2
;
--
enable_result_log
let
query
=
SELECT
t1
.
a
FROM
(
SELECT
a
FROM
t2
GROUP
BY
a
ORDER
BY
COUNT
(
DISTINCT
b
)
LIMIT
1
)
dt
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment