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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
d6e88164
Commit
d6e88164
authored
Dec 02, 2014
by
Sergei Petrunia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make analyze_format_json.test work on case-insensitive FS.
parent
b3d930b3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
17 deletions
+17
-17
mysql-test/r/analyze_format_json.result
mysql-test/r/analyze_format_json.result
+14
-14
mysql-test/t/analyze_format_json.test
mysql-test/t/analyze_format_json.test
+3
-3
No files found.
mysql-test/r/analyze_format_json.result
View file @
d6e88164
...
@@ -97,36 +97,36 @@ EXPLAIN
...
@@ -97,36 +97,36 @@ EXPLAIN
}
}
}
}
analyze
analyze
select * from t1
A, t1 B where A.b<2 and B
.b>5;
select * from t1
tbl1, t1 tbl2 where tbl1.b<2 and tbl2
.b>5;
id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
1 SIMPLE
A
ALL NULL NULL NULL NULL 100 100 100.00 2.00 Using where
1 SIMPLE
tbl1
ALL NULL NULL NULL NULL 100 100 100.00 2.00 Using where
1 SIMPLE
B
ALL NULL NULL NULL NULL 100 100 100.00 94.00 Using where; Using join buffer (flat, BNL join)
1 SIMPLE
tbl2
ALL NULL NULL NULL NULL 100 100 100.00 94.00 Using where; Using join buffer (flat, BNL join)
analyze format=json
analyze format=json
select * from t1
A, t1 B where A.b<20 and B
.b<60;
select * from t1
tbl1, t1 tbl2 where tbl1.b<20 and tbl2
.b<60;
EXPLAIN
EXPLAIN
{
{
"query_block": {
"query_block": {
"select_id": 1,
"select_id": 1,
"table": {
"table": {
"table_name": "
A
",
"table_name": "
tbl1
",
"access_type": "ALL",
"access_type": "ALL",
"r_loops": 1,
"r_loops": 1,
"rows": 100,
"rows": 100,
"r_rows": 100,
"r_rows": 100,
"filtered": 100,
"filtered": 100,
"r_filtered": 20,
"r_filtered": 20,
"attached_condition": "(
A
.b < 20)"
"attached_condition": "(
tbl1
.b < 20)"
},
},
"block-nl-join": {
"block-nl-join": {
"table": {
"table": {
"table_name": "
B
",
"table_name": "
tbl2
",
"access_type": "ALL",
"access_type": "ALL",
"r_loops": 1,
"r_loops": 1,
"rows": 100,
"rows": 100,
"r_rows": 100,
"r_rows": 100,
"filtered": 100,
"filtered": 100,
"r_filtered": 60,
"r_filtered": 60,
"attached_condition": "(
B
.b < 60)"
"attached_condition": "(
tbl2
.b < 60)"
},
},
"buffer_type": "flat",
"buffer_type": "flat",
"join_type": "BNL",
"join_type": "BNL",
...
@@ -135,35 +135,35 @@ EXPLAIN
...
@@ -135,35 +135,35 @@ EXPLAIN
}
}
}
}
analyze format=json
analyze format=json
select * from t1
A, t1 B where A.b<20 and B.b<60 and A.c > B
.c;
select * from t1
tbl1, t1 tbl2 where tbl1.b<20 and tbl2.b<60 and tbl1.c > tbl2
.c;
EXPLAIN
EXPLAIN
{
{
"query_block": {
"query_block": {
"select_id": 1,
"select_id": 1,
"table": {
"table": {
"table_name": "
A
",
"table_name": "
tbl1
",
"access_type": "ALL",
"access_type": "ALL",
"r_loops": 1,
"r_loops": 1,
"rows": 100,
"rows": 100,
"r_rows": 100,
"r_rows": 100,
"filtered": 100,
"filtered": 100,
"r_filtered": 20,
"r_filtered": 20,
"attached_condition": "(
A
.b < 20)"
"attached_condition": "(
tbl1
.b < 20)"
},
},
"block-nl-join": {
"block-nl-join": {
"table": {
"table": {
"table_name": "
B
",
"table_name": "
tbl2
",
"access_type": "ALL",
"access_type": "ALL",
"r_loops": 1,
"r_loops": 1,
"rows": 100,
"rows": 100,
"r_rows": 100,
"r_rows": 100,
"filtered": 100,
"filtered": 100,
"r_filtered": 60,
"r_filtered": 60,
"attached_condition": "(
B
.b < 60)"
"attached_condition": "(
tbl2
.b < 60)"
},
},
"buffer_type": "flat",
"buffer_type": "flat",
"join_type": "BNL",
"join_type": "BNL",
"attached_condition": "(
A.c > B
.c)",
"attached_condition": "(
tbl1.c > tbl2
.c)",
"r_filtered": 15.833
"r_filtered": 15.833
}
}
}
}
...
...
mysql-test/t/analyze_format_json.test
View file @
d6e88164
...
@@ -26,13 +26,13 @@ analyze format=json
...
@@ -26,13 +26,13 @@ analyze format=json
select
*
from
t0
,
t1
where
t1
.
a
=
t0
.
a
and
t1
.
b
<
4
;
select
*
from
t0
,
t1
where
t1
.
a
=
t0
.
a
and
t1
.
b
<
4
;
analyze
analyze
select
*
from
t1
A
,
t1
B
where
A
.
b
<
2
and
B
.
b
>
5
;
select
*
from
t1
tbl1
,
t1
tbl2
where
tbl1
.
b
<
2
and
tbl2
.
b
>
5
;
analyze
format
=
json
analyze
format
=
json
select
*
from
t1
A
,
t1
B
where
A
.
b
<
20
and
B
.
b
<
60
;
select
*
from
t1
tbl1
,
t1
tbl2
where
tbl1
.
b
<
20
and
tbl2
.
b
<
60
;
analyze
format
=
json
analyze
format
=
json
select
*
from
t1
A
,
t1
B
where
A
.
b
<
20
and
B
.
b
<
60
and
A
.
c
>
B
.
c
;
select
*
from
t1
tbl1
,
t1
tbl2
where
tbl1
.
b
<
20
and
tbl2
.
b
<
60
and
tbl1
.
c
>
tbl2
.
c
;
drop
table
t1
;
drop
table
t1
;
drop
table
t0
;
drop
table
t0
;
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