move test folder
This commit is contained in:
File diff suppressed because it is too large
Load Diff
1696
tools/deploy/mysql_test/test_suite/join/r/mysql/join_merge.result
Normal file
1696
tools/deploy/mysql_test/test_suite/join/r/mysql/join_merge.result
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,120 @@
|
||||
result_format: 4
|
||||
explain_protocol: 2
|
||||
drop table if exists t1,t2;
|
||||
create table t1 (id int primary key, i2 int);
|
||||
create table t2 (id int primary key, i2 int);
|
||||
insert/*trace*/ into t1(id) values (75);
|
||||
insert/*trace*/ into t1(id) values (79);
|
||||
insert/*trace*/ into t1(id) values (78);
|
||||
insert/*trace*/ into t1(id) values (77);
|
||||
insert/*trace*/ into t1(id) values (104);
|
||||
insert/*trace*/ into t1(id) values (103);
|
||||
insert/*trace*/ into t1(id) values (102);
|
||||
insert/*trace*/ into t1(id) values (101);
|
||||
insert/*trace*/ into t1(id) values (105);
|
||||
insert/*trace*/ into t1(id) values (106);
|
||||
insert/*trace*/ into t1(id) values (107);
|
||||
insert/*trace*/ into t2(id) values (107),(75),(1000);
|
||||
EXPLAIN select t1.id, t2.id from t1, t2 where t2.id = t1.id and t1.id>200;
|
||||
Query Plan
|
||||
=========================================
|
||||
|ID|OPERATOR |NAME|EST. ROWS|COST|
|
||||
-----------------------------------------
|
||||
|0 |NESTED-LOOP JOIN| |1 |73 |
|
||||
|1 | TABLE SCAN |t1 |1 |36 |
|
||||
|2 | TABLE GET |t2 |1 |36 |
|
||||
=========================================
|
||||
|
||||
Outputs & filters:
|
||||
-------------------------------------
|
||||
0 - output([t1.id], [t2.id]), filter(nil),
|
||||
conds(nil), nl_params_([t1.id])
|
||||
1 - output([t1.id]), filter(nil),
|
||||
access([t1.id]), partitions(p0)
|
||||
2 - output([t2.id]), filter(nil),
|
||||
access([t2.id]), partitions(p0)
|
||||
|
||||
select t1.id, t2.id from t1, t2 where t2.id = t1.id and t1.id>200;
|
||||
+----+----+
|
||||
| id | id |
|
||||
+----+----+
|
||||
+----+----+
|
||||
|
||||
EXPLAIN select t1.id, t2.id from t1, t2 where t2.id = t1.id and t1.id>200 and t1.id<200;
|
||||
Query Plan
|
||||
=========================================
|
||||
|ID|OPERATOR |NAME|EST. ROWS|COST|
|
||||
-----------------------------------------
|
||||
|0 |NESTED-LOOP JOIN| |1 |73 |
|
||||
|1 | TABLE SCAN |t1 |1 |36 |
|
||||
|2 | TABLE GET |t2 |1 |36 |
|
||||
=========================================
|
||||
|
||||
Outputs & filters:
|
||||
-------------------------------------
|
||||
0 - output([t1.id], [t2.id]), filter(nil),
|
||||
conds(nil), nl_params_([t1.id])
|
||||
1 - output([t1.id]), filter(nil),
|
||||
access([t1.id]), partitions(p0)
|
||||
2 - output([t2.id]), filter(nil),
|
||||
access([t2.id]), partitions(p0)
|
||||
|
||||
select t1.id, t2.id from t1, t2 where t2.id = t1.id and t1.id>200 and t1.id<200;
|
||||
+----+----+
|
||||
| id | id |
|
||||
+----+----+
|
||||
+----+----+
|
||||
|
||||
EXPLAIN select a.id , b.id from t1 a, t2 b where a.id = b.id and a.id>200 and a.id<200;
|
||||
Query Plan
|
||||
=========================================
|
||||
|ID|OPERATOR |NAME|EST. ROWS|COST|
|
||||
-----------------------------------------
|
||||
|0 |NESTED-LOOP JOIN| |1 |73 |
|
||||
|1 | TABLE SCAN |a |1 |36 |
|
||||
|2 | TABLE GET |b |1 |36 |
|
||||
=========================================
|
||||
|
||||
Outputs & filters:
|
||||
-------------------------------------
|
||||
0 - output([a.id], [b.id]), filter(nil),
|
||||
conds(nil), nl_params_([a.id])
|
||||
1 - output([a.id]), filter(nil),
|
||||
access([a.id]), partitions(p0)
|
||||
2 - output([b.id]), filter(nil),
|
||||
access([b.id]), partitions(p0)
|
||||
|
||||
select a.id , b.id from t1 a, t2 b where a.id = b.id and a.id>200 and a.id<200;
|
||||
+----+----+
|
||||
| id | id |
|
||||
+----+----+
|
||||
+----+----+
|
||||
|
||||
EXPLAIN select a.id, b.id from t1 a, t2 b where a.id = a.id and a.id>200 and a.id<200;
|
||||
Query Plan
|
||||
===================================================
|
||||
|ID|OPERATOR |NAME|EST. ROWS|COST|
|
||||
---------------------------------------------------
|
||||
|0 |NESTED-LOOP JOIN CARTESIAN| |3 |75 |
|
||||
|1 | TABLE SCAN |b |3 |37 |
|
||||
|2 | MATERIAL | |1 |37 |
|
||||
|3 | TABLE SCAN |a |1 |36 |
|
||||
===================================================
|
||||
|
||||
Outputs & filters:
|
||||
-------------------------------------
|
||||
0 - output([a.id], [b.id]), filter(nil),
|
||||
conds(nil), nl_params_(nil)
|
||||
1 - output([b.id]), filter(nil),
|
||||
access([b.id]), partitions(p0)
|
||||
2 - output([a.id]), filter(nil)
|
||||
3 - output([a.id]), filter([a.id = a.id]),
|
||||
access([a.id]), partitions(p0)
|
||||
|
||||
select a.id, b.id from t1 a, t2 b where a.id = a.id and a.id>200 and a.id<200;
|
||||
+----+----+
|
||||
| id | id |
|
||||
+----+----+
|
||||
+----+----+
|
||||
|
||||
drop table t1, t2;
|
||||
@ -0,0 +1,121 @@
|
||||
result_format: 4
|
||||
explain_protocol: 2
|
||||
drop table if exists t1,t2;
|
||||
create table t1 (id int primary key, i2 int);
|
||||
create table t2 (id int primary key, i2 int);
|
||||
insert/*trace*/ into t1(id) values (75);
|
||||
insert/*trace*/ into t1(id) values (79);
|
||||
insert/*trace*/ into t1(id) values (78);
|
||||
insert/*trace*/ into t1(id) values (77);
|
||||
insert/*trace*/ into t1(id) values (104);
|
||||
insert/*trace*/ into t1(id) values (103);
|
||||
insert/*trace*/ into t1(id) values (102);
|
||||
insert/*trace*/ into t1(id) values (101);
|
||||
insert/*trace*/ into t1(id) values (105);
|
||||
insert/*trace*/ into t1(id) values (106);
|
||||
insert/*trace*/ into t1(id) values (107);
|
||||
insert/*trace*/ into t2(id) values (107),(75),(1000);
|
||||
|
||||
|
||||
EXPLAIN select t1.id, t2.id from t1 join t2 on t2.id = t1.id and t1.id>200;
|
||||
Query Plan
|
||||
=========================================
|
||||
|ID|OPERATOR |NAME|EST. ROWS|COST|
|
||||
-----------------------------------------
|
||||
|0 |NESTED-LOOP JOIN| |1 |73 |
|
||||
|1 | TABLE SCAN |t1 |1 |36 |
|
||||
|2 | TABLE GET |t2 |1 |36 |
|
||||
=========================================
|
||||
|
||||
Outputs & filters:
|
||||
-------------------------------------
|
||||
0 - output([t1.id], [t2.id]), filter(nil),
|
||||
conds(nil), nl_params_([t1.id])
|
||||
1 - output([t1.id]), filter(nil),
|
||||
access([t1.id]), partitions(p0)
|
||||
2 - output([t2.id]), filter(nil),
|
||||
access([t2.id]), partitions(p0)
|
||||
|
||||
select t1.id, t2.id from t1 join t2 on t2.id = t1.id and t1.id>200;
|
||||
+----+----+
|
||||
| id | id |
|
||||
+----+----+
|
||||
+----+----+
|
||||
|
||||
EXPLAIN select t1.id, t2.id from t1 join t2 on t2.id = t1.id and t1.id>200 and t1.id<200;
|
||||
Query Plan
|
||||
=========================================
|
||||
|ID|OPERATOR |NAME|EST. ROWS|COST|
|
||||
-----------------------------------------
|
||||
|0 |NESTED-LOOP JOIN| |1 |73 |
|
||||
|1 | TABLE SCAN |t1 |1 |36 |
|
||||
|2 | TABLE GET |t2 |1 |36 |
|
||||
=========================================
|
||||
|
||||
Outputs & filters:
|
||||
-------------------------------------
|
||||
0 - output([t1.id], [t2.id]), filter(nil),
|
||||
conds(nil), nl_params_([t1.id])
|
||||
1 - output([t1.id]), filter(nil),
|
||||
access([t1.id]), partitions(p0)
|
||||
2 - output([t2.id]), filter(nil),
|
||||
access([t2.id]), partitions(p0)
|
||||
|
||||
select t1.id, t2.id from t1 join t2 on t2.id = t1.id and t1.id>200 and t1.id<200;
|
||||
+----+----+
|
||||
| id | id |
|
||||
+----+----+
|
||||
+----+----+
|
||||
|
||||
EXPLAIN select a.id , b.id from t1 a join t2 b on a.id = b.id and a.id>200 and a.id<200;
|
||||
Query Plan
|
||||
=========================================
|
||||
|ID|OPERATOR |NAME|EST. ROWS|COST|
|
||||
-----------------------------------------
|
||||
|0 |NESTED-LOOP JOIN| |1 |73 |
|
||||
|1 | TABLE SCAN |a |1 |36 |
|
||||
|2 | TABLE GET |b |1 |36 |
|
||||
=========================================
|
||||
|
||||
Outputs & filters:
|
||||
-------------------------------------
|
||||
0 - output([a.id], [b.id]), filter(nil),
|
||||
conds(nil), nl_params_([a.id])
|
||||
1 - output([a.id]), filter(nil),
|
||||
access([a.id]), partitions(p0)
|
||||
2 - output([b.id]), filter(nil),
|
||||
access([b.id]), partitions(p0)
|
||||
|
||||
select a.id , b.id from t1 a join t2 b on a.id = b.id and a.id>200 and a.id<200;
|
||||
+----+----+
|
||||
| id | id |
|
||||
+----+----+
|
||||
+----+----+
|
||||
|
||||
EXPLAIN select a.id, b.id from t1 a join t2 b on a.id = a.id and a.id>200 and a.id<200;
|
||||
Query Plan
|
||||
===================================================
|
||||
|ID|OPERATOR |NAME|EST. ROWS|COST|
|
||||
---------------------------------------------------
|
||||
|0 |NESTED-LOOP JOIN CARTESIAN| |3 |75 |
|
||||
|1 | TABLE SCAN |b |3 |37 |
|
||||
|2 | MATERIAL | |1 |37 |
|
||||
|3 | TABLE SCAN |a |1 |36 |
|
||||
===================================================
|
||||
|
||||
Outputs & filters:
|
||||
-------------------------------------
|
||||
0 - output([a.id], [b.id]), filter(nil),
|
||||
conds(nil), nl_params_(nil)
|
||||
1 - output([b.id]), filter(nil),
|
||||
access([b.id]), partitions(p0)
|
||||
2 - output([a.id]), filter(nil)
|
||||
3 - output([a.id]), filter([a.id = a.id]),
|
||||
access([a.id]), partitions(p0)
|
||||
|
||||
select a.id, b.id from t1 a join t2 b on a.id = a.id and a.id>200 and a.id<200;
|
||||
+----+----+
|
||||
| id | id |
|
||||
+----+----+
|
||||
+----+----+
|
||||
drop table t1, t2;
|
||||
@ -0,0 +1,121 @@
|
||||
result_format: 4
|
||||
explain_protocol: 2
|
||||
drop table if exists t1,t2;
|
||||
create table t1 (id int primary key, i2 int);
|
||||
create table t2 (id int primary key, i2 int);
|
||||
insert/*trace*/ into t1(id) values (75);
|
||||
insert/*trace*/ into t1(id) values (79);
|
||||
insert/*trace*/ into t1(id) values (78);
|
||||
insert/*trace*/ into t1(id) values (77);
|
||||
insert/*trace*/ into t1(id) values (104);
|
||||
insert/*trace*/ into t1(id) values (103);
|
||||
insert/*trace*/ into t1(id) values (102);
|
||||
insert/*trace*/ into t1(id) values (101);
|
||||
insert/*trace*/ into t1(id) values (105);
|
||||
insert/*trace*/ into t1(id) values (106);
|
||||
insert/*trace*/ into t1(id) values (107);
|
||||
insert/*trace*/ into t2(id) values (107),(75),(1000);
|
||||
|
||||
|
||||
EXPLAIN select t1.id, t2.id from t1 join t2 on t2.id = t1.id where t1.id>200;
|
||||
Query Plan
|
||||
=========================================
|
||||
|ID|OPERATOR |NAME|EST. ROWS|COST|
|
||||
-----------------------------------------
|
||||
|0 |NESTED-LOOP JOIN| |1 |73 |
|
||||
|1 | TABLE SCAN |t1 |1 |36 |
|
||||
|2 | TABLE GET |t2 |1 |36 |
|
||||
=========================================
|
||||
|
||||
Outputs & filters:
|
||||
-------------------------------------
|
||||
0 - output([t1.id], [t2.id]), filter(nil),
|
||||
conds(nil), nl_params_([t1.id])
|
||||
1 - output([t1.id]), filter(nil),
|
||||
access([t1.id]), partitions(p0)
|
||||
2 - output([t2.id]), filter(nil),
|
||||
access([t2.id]), partitions(p0)
|
||||
|
||||
select t1.id, t2.id from t1 join t2 on t2.id = t1.id where t1.id>200;
|
||||
+----+----+
|
||||
| id | id |
|
||||
+----+----+
|
||||
+----+----+
|
||||
|
||||
EXPLAIN select t1.id, t2.id from t1 join t2 on t2.id = t1.id where t1.id>200 and t1.id<200;
|
||||
Query Plan
|
||||
=========================================
|
||||
|ID|OPERATOR |NAME|EST. ROWS|COST|
|
||||
-----------------------------------------
|
||||
|0 |NESTED-LOOP JOIN| |1 |73 |
|
||||
|1 | TABLE SCAN |t1 |1 |36 |
|
||||
|2 | TABLE GET |t2 |1 |36 |
|
||||
=========================================
|
||||
|
||||
Outputs & filters:
|
||||
-------------------------------------
|
||||
0 - output([t1.id], [t2.id]), filter(nil),
|
||||
conds(nil), nl_params_([t1.id])
|
||||
1 - output([t1.id]), filter(nil),
|
||||
access([t1.id]), partitions(p0)
|
||||
2 - output([t2.id]), filter(nil),
|
||||
access([t2.id]), partitions(p0)
|
||||
|
||||
select t1.id, t2.id from t1 join t2 on t2.id = t1.id where t1.id>200 and t1.id<200;
|
||||
+----+----+
|
||||
| id | id |
|
||||
+----+----+
|
||||
+----+----+
|
||||
|
||||
EXPLAIN select a.id , b.id from t1 a join t2 b on a.id = b.id where a.id>200 and a.id<200;
|
||||
Query Plan
|
||||
=========================================
|
||||
|ID|OPERATOR |NAME|EST. ROWS|COST|
|
||||
-----------------------------------------
|
||||
|0 |NESTED-LOOP JOIN| |1 |73 |
|
||||
|1 | TABLE SCAN |a |1 |36 |
|
||||
|2 | TABLE GET |b |1 |36 |
|
||||
=========================================
|
||||
|
||||
Outputs & filters:
|
||||
-------------------------------------
|
||||
0 - output([a.id], [b.id]), filter(nil),
|
||||
conds(nil), nl_params_([a.id])
|
||||
1 - output([a.id]), filter(nil),
|
||||
access([a.id]), partitions(p0)
|
||||
2 - output([b.id]), filter(nil),
|
||||
access([b.id]), partitions(p0)
|
||||
|
||||
select a.id , b.id from t1 a join t2 b on a.id = b.id where a.id>200 and a.id<200;
|
||||
+----+----+
|
||||
| id | id |
|
||||
+----+----+
|
||||
+----+----+
|
||||
|
||||
EXPLAIN select a.id , b.id from t1 a join t2 b on a.id = a.id where a.id>200 and a.id<200;
|
||||
Query Plan
|
||||
===================================================
|
||||
|ID|OPERATOR |NAME|EST. ROWS|COST|
|
||||
---------------------------------------------------
|
||||
|0 |NESTED-LOOP JOIN CARTESIAN| |3 |75 |
|
||||
|1 | TABLE SCAN |b |3 |37 |
|
||||
|2 | MATERIAL | |1 |37 |
|
||||
|3 | TABLE SCAN |a |1 |36 |
|
||||
===================================================
|
||||
|
||||
Outputs & filters:
|
||||
-------------------------------------
|
||||
0 - output([a.id], [b.id]), filter(nil),
|
||||
conds(nil), nl_params_(nil)
|
||||
1 - output([b.id]), filter(nil),
|
||||
access([b.id]), partitions(p0)
|
||||
2 - output([a.id]), filter(nil)
|
||||
3 - output([a.id]), filter([a.id = a.id]),
|
||||
access([a.id]), partitions(p0)
|
||||
|
||||
select a.id , b.id from t1 a join t2 b on a.id = a.id where a.id>200 and a.id<200;
|
||||
+----+----+
|
||||
| id | id |
|
||||
+----+----+
|
||||
+----+----+
|
||||
drop table t1, t2;
|
||||
Reference in New Issue
Block a user