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
92e47c39
Commit
92e47c39
authored
May 02, 2016
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test for group by pushdown with a view
parent
ea195d37
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
storage/sequence/mysql-test/sequence/group_by.result
storage/sequence/mysql-test/sequence/group_by.result
+5
-0
storage/sequence/mysql-test/sequence/group_by.test
storage/sequence/mysql-test/sequence/group_by.test
+4
-0
No files found.
storage/sequence/mysql-test/sequence/group_by.result
View file @
92e47c39
...
...
@@ -66,6 +66,11 @@ id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY seq_1_to_15_step_2 index NULL PRIMARY 8 NULL # Using index
1 PRIMARY <derived2> ALL NULL NULL NULL NULL # Using join buffer (flat, BNL join)
2 DERIVED NULL NULL NULL NULL NULL NULL # Storage engine handles GROUP BY
create view v1 as select count(*) from seq_1_to_15_step_2;
select * from v1;
count(*)
8
drop view v1;
#
# The engine can't optimize the following queries
#
...
...
storage/sequence/mysql-test/sequence/group_by.test
View file @
92e47c39
...
...
@@ -30,6 +30,10 @@ select * from seq_1_to_15_step_2, (select count(*) from seq_1_to_15_step_2) as t
--
replace_column
9
#
explain
select
*
from
seq_1_to_15_step_2
,
(
select
count
(
*
)
from
seq_1_to_15_step_2
)
as
t1
;
create
view
v1
as
select
count
(
*
)
from
seq_1_to_15_step_2
;
select
*
from
v1
;
drop
view
v1
;
--
echo
#
--
echo
# The engine can't optimize the following queries
--
echo
#
...
...
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