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
5c5bee47
Commit
5c5bee47
authored
Aug 29, 2019
by
Sergei Petrunia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-20109: Optimizer ignores distinct key created for materialized...
Adjust the testcase according to the review input
parent
1165f7cc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
mysql-test/main/subselect_sj.result
mysql-test/main/subselect_sj.result
+1
-1
mysql-test/main/subselect_sj.test
mysql-test/main/subselect_sj.test
+1
-1
mysql-test/main/subselect_sj_jcl6.result
mysql-test/main/subselect_sj_jcl6.result
+1
-1
No files found.
mysql-test/main/subselect_sj.result
View file @
5c5bee47
...
@@ -3273,7 +3273,7 @@ insert into t4 select floor(rand()*1000) from t2 limit 500;
...
@@ -3273,7 +3273,7 @@ insert into t4 select floor(rand()*1000) from t2 limit 500;
# | 1 | PRIMARY | t3 | ALL | NULL | ... | 10000 | Using where; Using join buffer (flat, BNL join) |
# | 1 | PRIMARY | t3 | ALL | NULL | ... | 10000 | Using where; Using join buffer (flat, BNL join) |
#
#
# Instead, it should use eq_ref on the materialized table.
# Instead, it should use eq_ref on the materialized table.
explain select * from t3 where a in (select a from t4
group by a
);
explain select * from t3 where a in (select a from t4);
id select_type table type possible_keys key key_len ref rows Extra
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY t3 ALL NULL NULL NULL NULL 10000
1 PRIMARY t3 ALL NULL NULL NULL NULL 10000
1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
...
...
mysql-test/main/subselect_sj.test
View file @
5c5bee47
...
@@ -2959,7 +2959,7 @@ insert into t4 select floor(rand()*1000) from t2 limit 500;
...
@@ -2959,7 +2959,7 @@ insert into t4 select floor(rand()*1000) from t2 limit 500;
--
echo
#
--
echo
#
--
echo
# Instead, it should use eq_ref on the materialized table.
--
echo
# Instead, it should use eq_ref on the materialized table.
explain
select
*
from
t3
where
a
in
(
select
a
from
t4
group
by
a
);
explain
select
*
from
t3
where
a
in
(
select
a
from
t4
);
drop
table
t1
,
t2
,
t3
,
t4
;
drop
table
t1
,
t2
,
t3
,
t4
;
...
...
mysql-test/main/subselect_sj_jcl6.result
View file @
5c5bee47
...
@@ -3286,7 +3286,7 @@ insert into t4 select floor(rand()*1000) from t2 limit 500;
...
@@ -3286,7 +3286,7 @@ insert into t4 select floor(rand()*1000) from t2 limit 500;
# | 1 | PRIMARY | t3 | ALL | NULL | ... | 10000 | Using where; Using join buffer (flat, BNL join) |
# | 1 | PRIMARY | t3 | ALL | NULL | ... | 10000 | Using where; Using join buffer (flat, BNL join) |
#
#
# Instead, it should use eq_ref on the materialized table.
# Instead, it should use eq_ref on the materialized table.
explain select * from t3 where a in (select a from t4
group by a
);
explain select * from t3 where a in (select a from t4);
id select_type table type possible_keys key key_len ref rows Extra
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY t3 ALL NULL NULL NULL NULL 10000
1 PRIMARY t3 ALL NULL NULL NULL NULL 10000
1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1
...
...
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