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
ff010fdd
Commit
ff010fdd
authored
Aug 10, 2023
by
Oleksandr Byelkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make test plan stabil.
parent
653f79a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
mysql-test/main/group_min_max_innodb.result
mysql-test/main/group_min_max_innodb.result
+1
-0
mysql-test/main/group_min_max_innodb.test
mysql-test/main/group_min_max_innodb.test
+3
-0
No files found.
mysql-test/main/group_min_max_innodb.result
View file @
ff010fdd
...
...
@@ -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;
...
...
mysql-test/main/group_min_max_innodb.test
View file @
ff010fdd
...
...
@@ -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
...
...
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