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
3bb2c4e3
Commit
3bb2c4e3
authored
Oct 11, 2004
by
timour@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
After merge adjustment of tests due to changes in cost estimates.
parent
8ab4a7a1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
.bzrignore
.bzrignore
+1
-0
mysql-test/r/distinct.result
mysql-test/r/distinct.result
+4
-4
mysql-test/r/group_min_max.result
mysql-test/r/group_min_max.result
+4
-4
No files found.
.bzrignore
View file @
3bb2c4e3
...
...
@@ -920,3 +920,4 @@ vio/test-ssl
vio/test-sslclient
vio/test-sslserver
vio/viotest-ssl
server-tools/instance-manager/mysqlmanager
mysql-test/r/distinct.result
View file @
3bb2c4e3
...
...
@@ -200,16 +200,16 @@ select distinct 1 from t1,t3 where t1.a=t3.a;
1
explain SELECT distinct t1.a from t1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1
range NULL PRIMARY 4 NULL 5 Using index for group-by
1 SIMPLE t1
index NULL PRIMARY 4 NULL 4 Using index
explain SELECT distinct t1.a from t1 order by a desc;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1
range NULL PRIMARY 4 NULL 5 Using index for group-by; Using temporary; Using filesort
1 SIMPLE t1
index NULL PRIMARY 4 NULL 4 Using index
explain SELECT t1.a from t1 group by a order by a desc;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1
range NULL PRIMARY 4 NULL 5 Using index for group-by; Using temporary; Using filesort
1 SIMPLE t1
index NULL PRIMARY 4 NULL 4 Using index
explain SELECT distinct t1.a from t1 order by a desc limit 1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index NULL PRIMARY 4 NULL
5
Using index
1 SIMPLE t1 index NULL PRIMARY 4 NULL
4
Using index
explain SELECT distinct a from t3 order by a desc limit 2;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t3 index NULL a 5 NULL 10 Using index
...
...
mysql-test/r/group_min_max.result
View file @
3bb2c4e3
...
...
@@ -1742,13 +1742,13 @@ id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index NULL idx_t1_1 163 NULL 128 Using where; Using index
explain select count(distinct a1,a2,b) from t1 where (a1 > 'a') and (a2 > 'a') and (b = 'c');
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1
range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_2 65 NULL 106
Using where; Using index
1 SIMPLE t1
index idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_2 147 NULL 128
Using where; Using index
explain select count(distinct b) from t1 where (a2 >= 'b') and (b = 'a');
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index NULL idx_t1_2 147 NULL 128 Using where; Using index
explain select ord(a1) + count(distinct a1,a2,b) from t1 where (a1 > 'a') and (a2 > 'a');
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1
range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_2 65 NULL 106
Using where; Using index
1 SIMPLE t1
index idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_2 147 NULL 128
Using where; Using index
select count(distinct a1,a2,b) from t1 where (a2 >= 'b') and (b = 'a');
count(distinct a1,a2,b)
4
...
...
@@ -1890,10 +1890,10 @@ id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index NULL idx_t1_1 163 NULL 128 Using index
explain select a1,a2,count(a2) from t1 where (a1 > 'a') group by a1,a2,b;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1
range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_2 65 NULL 106
Using where; Using index
1 SIMPLE t1
index idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 163 NULL 128
Using where; Using index
explain select sum(ord(a1)) from t1 where (a1 > 'a') group by a1,a2,b;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1
range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_2 65 NULL 106
Using where; Using index
1 SIMPLE t1
index idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 163 NULL 128
Using where; Using index
drop table t1;
drop table t2;
drop table t3;
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