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
385f4316
Commit
385f4316
authored
Jun 03, 2021
by
Igor Babaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected the test case of MDEV-25714 in order to have the same EXPLAIN output as in 10.3
parent
0b797130
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
mysql-test/main/derived_split_innodb.result
mysql-test/main/derived_split_innodb.result
+4
-0
mysql-test/main/derived_split_innodb.test
mysql-test/main/derived_split_innodb.test
+4
-0
No files found.
mysql-test/main/derived_split_innodb.result
View file @
385f4316
...
...
@@ -190,6 +190,8 @@ id int not null, itemid int not null, userid int not null, primary key (id),
index idx1 (userid, itemid), index idx2 (itemid)
) engine innodb;
insert into t3 values (1,1,1), (2,1,1), (3,2,1), (4,2,1), (5,3,1);
set use_stat_tables='never';
set optimizer_use_condition_selectivity=1;
analyze table t1,t2,t3;
Table Op Msg_type Msg_text
test.t1 analyze status OK
...
...
@@ -235,4 +237,6 @@ id itemid id id
4 2 4 2
drop table t1,t2,t3;
set optimizer_switch='split_materialized=default';
set use_stat_tables=default;
set optimizer_use_condition_selectivity=default;
# End of 10.3 tests
mysql-test/main/derived_split_innodb.test
View file @
385f4316
...
...
@@ -166,6 +166,8 @@ create table t3 (
index
idx1
(
userid
,
itemid
),
index
idx2
(
itemid
)
)
engine
innodb
;
insert
into
t3
values
(
1
,
1
,
1
),
(
2
,
1
,
1
),
(
3
,
2
,
1
),
(
4
,
2
,
1
),
(
5
,
3
,
1
);
set
use_stat_tables
=
'never'
;
set
optimizer_use_condition_selectivity
=
1
;
analyze
table
t1
,
t2
,
t3
;
let
$q
=
...
...
@@ -185,5 +187,7 @@ eval $q;
drop
table
t1
,
t2
,
t3
;
set
optimizer_switch
=
'split_materialized=default'
;
set
use_stat_tables
=
default
;
set
optimizer_use_condition_selectivity
=
default
;
--
echo
# End of 10.3 tests
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