[FEAT MERGE]4_2_sql_feature
Co-authored-by: yinyj17 <yinyijun92@gmail.com> Co-authored-by: xianyu-w <707512433@qq.com> Co-authored-by: jingtaoye35 <1255153887@qq.com>
This commit is contained in:
@ -689,7 +689,7 @@ Outputs & filters:
|
||||
access([t4.d1], [t4.d2]), partitions(p0)
|
||||
is_index_back=false, is_global_index=false,
|
||||
range_key([t4.__pk_increment]), range(MIN ; MAX)always true
|
||||
11 - output([t5.c1], [t5.c2], [t6.d2]), filter(nil), rowset=256
|
||||
11 - output([t5.c1], [t6.d2], [t5.c2]), filter(nil), rowset=256
|
||||
conds(nil), nl_params_(nil), use_batch=false
|
||||
12 - output([t5.c1], [t5.c2]), filter(nil), rowset=256
|
||||
access([t5.c1], [t5.c2]), partitions(p0)
|
||||
@ -1065,7 +1065,7 @@ Outputs & filters:
|
||||
equal_conds([t4.d2 % 5 = t5.c1 % 6], [t4.d1 % 3 = t6.d2 % 2], [t4.d1 % 4 = t6.d1 % 4], [t4.d1 % 7 = t6.d1 % 7]), other_conds(nil)
|
||||
6 - output([t5.c1], [t5.c1 % 6], [t6.d1 % 4], [t6.d1 % 7], [t8.d2], [t6.d2]), filter(nil), rowset=256
|
||||
equal_conds([t5.c1 % 4 = t7.c1 % 1], [t5.c1 % 6 = t7.c2 % 5], [t5.c1 % 7 = t8.d1 % 6], [t6.d1 % 4 = t7.c1 % 3], [t6.d1 % 7 = t7.c1 % 7]), other_conds(nil)
|
||||
7 - output([t7.c1 % 7], [t7.c1], [t8.d1], [t8.d2], [t7.c2]), filter(nil), rowset=256
|
||||
7 - output([t7.c1], [t7.c1 % 7], [t8.d1], [t8.d2], [t7.c2]), filter(nil), rowset=256
|
||||
equal_conds([t7.c1 % 7 = t8.d1 % 3]), other_conds(nil)
|
||||
8 - output([t8.d1], [t8.d2]), filter(nil), rowset=256
|
||||
access([t8.d1], [t8.d2]), partitions(p0)
|
||||
@ -1075,7 +1075,7 @@ Outputs & filters:
|
||||
access([t7.c1], [t7.c2]), partitions(p0)
|
||||
is_index_back=false, is_global_index=false,
|
||||
range_key([t7.__pk_increment]), range(MIN ; MAX)always true
|
||||
10 - output([t5.c1], [t5.c1 % 6], [t6.d1], [t6.d2]), filter(nil), rowset=256
|
||||
10 - output([t5.c1], [t6.d1], [t5.c1 % 6], [t6.d2]), filter(nil), rowset=256
|
||||
equal_conds([t5.c1 % 2 = t6.d2 % 5]), other_conds(nil)
|
||||
11 - output([t6.d2], [t6.d1]), filter(nil), rowset=256
|
||||
access([t6.d2], [t6.d1]), partitions(p0)
|
||||
@ -1274,13 +1274,13 @@ Outputs & filters:
|
||||
access([a.c1]), partitions(p0)
|
||||
is_index_back=false, is_global_index=false,
|
||||
range_key([a.__pk_increment]), range(MIN ; MAX)always true
|
||||
5 - output([c.c2], [d.d2], [b.d1]), filter(nil), rowset=256
|
||||
5 - output([b.d1], [c.c2], [d.d2]), filter(nil), rowset=256
|
||||
equal_conds([b.d2 = c.c1], [c.c2 = d.d2]), other_conds(nil)
|
||||
6 - output([c.c1], [c.c2]), filter(nil), rowset=256
|
||||
access([c.c1], [c.c2]), partitions(p0)
|
||||
is_index_back=false, is_global_index=false,
|
||||
range_key([c.__pk_increment]), range(MIN ; MAX)always true
|
||||
7 - output([d.d2], [b.d1], [b.d2]), filter(nil), rowset=256
|
||||
7 - output([b.d1], [d.d2], [b.d2]), filter(nil), rowset=256
|
||||
conds(nil), nl_params_(nil), use_batch=false
|
||||
8 - output([b.d1], [b.d2]), filter(nil), rowset=256
|
||||
access([b.d1], [b.d2]), partitions(p0)
|
||||
|
||||
@ -1584,23 +1584,23 @@ Query Plan
|
||||
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
|
||||
-------------------------------------------------------
|
||||
|0 |MERGE UNION DISTINCT| |6 |5 |
|
||||
|1 |├─TABLE FULL SCAN |x2(ix2)|3 |2 |
|
||||
|2 |└─SORT | |3 |3 |
|
||||
|3 | └─TABLE FULL SCAN |x1 |3 |2 |
|
||||
|1 |├─SORT | |3 |3 |
|
||||
|2 |│ └─TABLE FULL SCAN |x1 |3 |2 |
|
||||
|3 |└─TABLE FULL SCAN |x2(ix2)|3 |2 |
|
||||
=======================================================
|
||||
Outputs & filters:
|
||||
-------------------------------------
|
||||
0 - output([UNION([1])], [UNION([2])]), filter(nil), rowset=256
|
||||
1 - output([x2.d2], [x2.d3]), filter(nil), rowset=256
|
||||
access([x2.d2], [x2.d3]), partitions(p0)
|
||||
is_index_back=false, is_global_index=false,
|
||||
range_key([x2.d2], [x2.d3], [x2.__pk_increment]), range(MIN,MIN,MIN ; MAX,MAX,MAX)always true
|
||||
2 - output([x1.c2], [x1.c3]), filter(nil), rowset=256
|
||||
1 - output([x1.c2], [x1.c3]), filter(nil), rowset=256
|
||||
sort_keys([x1.c2, ASC], [x1.c3, ASC])
|
||||
3 - output([x1.c2], [x1.c3]), filter(nil), rowset=256
|
||||
2 - output([x1.c2], [x1.c3]), filter(nil), rowset=256
|
||||
access([x1.c2], [x1.c3]), partitions(p0)
|
||||
is_index_back=false, is_global_index=false,
|
||||
range_key([x1.__pk_increment]), range(MIN ; MAX)always true
|
||||
3 - output([x2.d2], [x2.d3]), filter(nil), rowset=256
|
||||
access([x2.d2], [x2.d3]), partitions(p0)
|
||||
is_index_back=false, is_global_index=false,
|
||||
range_key([x2.d2], [x2.d3], [x2.__pk_increment]), range(MIN,MIN,MIN ; MAX,MAX,MAX)always true
|
||||
select c2, c3 from x1 union select /*+ index(x2 ix2) */ d2, d3 from x2 order by 1,2;
|
||||
+------+------+
|
||||
| c2 | c3 |
|
||||
|
||||
Reference in New Issue
Block a user