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
ec6aa282
Commit
ec6aa282
authored
Sep 09, 2022
by
Sergei Petrunia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stabilize main.subselect_sj2* tests
parent
d9d9c90a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
9 deletions
+22
-9
mysql-test/main/subselect_sj2.result
mysql-test/main/subselect_sj2.result
+7
-3
mysql-test/main/subselect_sj2.test
mysql-test/main/subselect_sj2.test
+1
-0
mysql-test/main/subselect_sj2_jcl6.result
mysql-test/main/subselect_sj2_jcl6.result
+7
-3
mysql-test/main/subselect_sj2_mat.result
mysql-test/main/subselect_sj2_mat.result
+7
-3
No files found.
mysql-test/main/subselect_sj2.result
View file @
ec6aa282
...
...
@@ -106,11 +106,15 @@ primary key(pk1, pk2)
insert into t3 select
A.a + 10*B.a, A.a + 10*B.a, A.a + 10*B.a, A.a + 10*B.a
from t0 A, t0 B where B.a <5;
analyze table t3 persistent for all;
Table Op Msg_type Msg_text
test.t3 analyze status Engine-independent statistics collected
test.t3 analyze status OK
explain select * from t3 where b in (select a from t0);
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY
t3 ALL b
NULL NULL NULL #
1 PRIMARY
<subquery2> eq_ref distinct_key distinct_key 4 func
#
2 MATERIALIZED t0 ALL NULL NULL NULL NULL #
1 PRIMARY
<subquery2> ALL distinct_key
NULL NULL NULL #
1 PRIMARY
t3 ref b b 5 test.t0.a
#
2 MATERIALIZED t0 ALL NULL NULL NULL NULL #
Using where
select * from t3 where b in (select A.a+B.a from t0 A, t0 B where B.a<5);
a b pk1 pk2
0 0 0 0
...
...
mysql-test/main/subselect_sj2.test
View file @
ec6aa282
...
...
@@ -87,6 +87,7 @@ insert into t3 select
A
.
a
+
10
*
B
.
a
,
A
.
a
+
10
*
B
.
a
,
A
.
a
+
10
*
B
.
a
,
A
.
a
+
10
*
B
.
a
from
t0
A
,
t0
B
where
B
.
a
<
5
;
analyze
table
t3
persistent
for
all
;
--
replace_column
9
#
explain
select
*
from
t3
where
b
in
(
select
a
from
t0
);
select
*
from
t3
where
b
in
(
select
A
.
a
+
B
.
a
from
t0
A
,
t0
B
where
B
.
a
<
5
);
...
...
mysql-test/main/subselect_sj2_jcl6.result
View file @
ec6aa282
...
...
@@ -117,11 +117,15 @@ primary key(pk1, pk2)
insert into t3 select
A.a + 10*B.a, A.a + 10*B.a, A.a + 10*B.a, A.a + 10*B.a
from t0 A, t0 B where B.a <5;
analyze table t3 persistent for all;
Table Op Msg_type Msg_text
test.t3 analyze status Engine-independent statistics collected
test.t3 analyze status OK
explain select * from t3 where b in (select a from t0);
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY
t3 ALL b
NULL NULL NULL #
1 PRIMARY
<subquery2> eq_ref distinct_key distinct_key 4 func #
2 MATERIALIZED t0 ALL NULL NULL NULL NULL #
1 PRIMARY
<subquery2> ALL distinct_key
NULL NULL NULL #
1 PRIMARY
t3 ref b b 5 test.t0.a # Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
2 MATERIALIZED t0 ALL NULL NULL NULL NULL #
Using where
select * from t3 where b in (select A.a+B.a from t0 A, t0 B where B.a<5);
a b pk1 pk2
0 0 0 0
...
...
mysql-test/main/subselect_sj2_mat.result
View file @
ec6aa282
...
...
@@ -108,11 +108,15 @@ primary key(pk1, pk2)
insert into t3 select
A.a + 10*B.a, A.a + 10*B.a, A.a + 10*B.a, A.a + 10*B.a
from t0 A, t0 B where B.a <5;
analyze table t3 persistent for all;
Table Op Msg_type Msg_text
test.t3 analyze status Engine-independent statistics collected
test.t3 analyze status OK
explain select * from t3 where b in (select a from t0);
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY
t3 ALL b
NULL NULL NULL #
1 PRIMARY
<subquery2> eq_ref distinct_key distinct_key 4 func
#
2 MATERIALIZED t0 ALL NULL NULL NULL NULL #
1 PRIMARY
<subquery2> ALL distinct_key
NULL NULL NULL #
1 PRIMARY
t3 ref b b 5 test.t0.a
#
2 MATERIALIZED t0 ALL NULL NULL NULL NULL #
Using where
select * from t3 where b in (select A.a+B.a from t0 A, t0 B where B.a<5);
a b pk1 pk2
0 0 0 0
...
...
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