[CP] reorder the order of complex filters

This commit is contained in:
obdev
2024-02-21 09:19:05 +00:00
committed by ob-robot
parent 0c3b7d08c4
commit fea19bc54e
31 changed files with 335 additions and 21 deletions

View File

@ -123,7 +123,7 @@ Query Plan
Outputs & filters:
-------------------------------------
0 - output([xy_t1.c1], [xy_t1.c2]), filter(nil), rowset=16
conds([xy_t1.c1 = xy_t2.c1], [xy_t1.c2 > xy_t2.c2]), nl_params_(nil), use_batch=false
conds([xy_t1.c2 > xy_t2.c2], [xy_t1.c1 = xy_t2.c1]), nl_params_(nil), use_batch=false
1 - output([xy_t1.c1], [xy_t1.c2]), filter(nil), rowset=16
access([xy_t1.c1], [xy_t1.c2]), partitions(p0)
is_index_back=false, is_global_index=false,
@ -343,7 +343,7 @@ Query Plan
Outputs & filters:
-------------------------------------
0 - output([xy_t1.c1], [xy_t1.c2]), filter(nil), rowset=16
conds([xy_t1.c1 = xy_t2.c1], [xy_t1.c2 > xy_t2.c2]), nl_params_(nil), use_batch=false
conds([xy_t1.c2 > xy_t2.c2], [xy_t1.c1 = xy_t2.c1]), nl_params_(nil), use_batch=false
1 - output([xy_t1.c1], [xy_t1.c2]), filter(nil), rowset=16
access([xy_t1.c1], [xy_t1.c2]), partitions(p0)
is_index_back=false, is_global_index=false,
@ -438,7 +438,7 @@ Query Plan
Outputs & filters:
-------------------------------------
0 - output([xy_t1.c1], [xy_t1.c2], [xy_t1.c1], [xy_t1.c2]), filter(nil), rowset=16
conds([xy_t1.c1 = xy_t2.c1], [xy_t1.c2 > xy_t2.c2]), nl_params_(nil), use_batch=false
conds([xy_t1.c2 > xy_t2.c2], [xy_t1.c1 = xy_t2.c1]), nl_params_(nil), use_batch=false
1 - output([xy_t1.c1], [xy_t1.c2]), filter(nil), rowset=16
access([xy_t1.c1], [xy_t1.c2]), partitions(p0)
is_index_back=false, is_global_index=false,
@ -549,7 +549,7 @@ Query Plan
Outputs & filters:
-------------------------------------
0 - output([xy_t1.c1], [xy_t1.c2], [xy_t1.c1], [xy_t1.c2]), filter(nil), rowset=16
conds([xy_t1.c1 = xy_t2.c1], [xy_t1.c2 > xy_t2.c2]), nl_params_(nil), use_batch=false
conds([xy_t1.c2 > xy_t2.c2], [xy_t1.c1 = xy_t2.c1]), nl_params_(nil), use_batch=false
1 - output([xy_t1.c1], [xy_t1.c2]), filter(nil), rowset=16
access([xy_t1.c1], [xy_t1.c2]), partitions(p0)
is_index_back=false, is_global_index=false,
@ -731,7 +731,7 @@ Query Plan
Outputs & filters:
-------------------------------------
0 - output([xy_x_t.x1], [xy_x_t.x2]), filter(nil), rowset=256
conds([xy_y_t.y2 < xy_x_t.x2], [xy_x_t.x1 = xy_y_t.y1]), nl_params_(nil), use_batch=false
conds([xy_x_t.x1 = xy_y_t.y1], [xy_y_t.y2 < xy_x_t.x2]), nl_params_(nil), use_batch=false
1 - output([xy_x_t.x2], [xy_x_t.x1]), filter(nil), rowset=256
access([xy_x_t.x2], [xy_x_t.x1]), partitions(p0)
is_index_back=false, is_global_index=false,
@ -4042,7 +4042,7 @@ Outputs & filters:
0 - output([xy_t1.c2], [xy_t1.c3]), filter(nil), rowset=16
sort_keys([xy_t1.c2, ASC], [xy_t1.c3, ASC])
1 - output([xy_t1.c2], [xy_t1.c3]), filter(nil), rowset=16
conds([xy_t1.c2 = xy_t2.c2], [xy_t1.c3 < xy_t2.c3]), nl_params_(nil), use_batch=false
conds([xy_t1.c3 < xy_t2.c3], [xy_t1.c2 = xy_t2.c2]), nl_params_(nil), use_batch=false
2 - output([xy_t1.c2], [xy_t1.c3]), filter(nil), rowset=16
access([xy_t1.c2], [xy_t1.c3]), partitions(p0)
is_index_back=false, is_global_index=false,
@ -4192,7 +4192,7 @@ Outputs & filters:
0 - output([xy_t2.c2], [xy_t2.c3]), filter(nil), rowset=16
sort_keys([xy_t2.c2, ASC], [xy_t2.c3, ASC])
1 - output([xy_t2.c2], [xy_t2.c3]), filter(nil), rowset=16
conds([xy_t1.c2 = xy_t2.c2], [xy_t1.c3 < xy_t2.c3]), nl_params_(nil), use_batch=false
conds([xy_t1.c3 < xy_t2.c3], [xy_t1.c2 = xy_t2.c2]), nl_params_(nil), use_batch=false
2 - output([xy_t2.c2], [xy_t2.c3]), filter(nil), rowset=16
access([xy_t2.c2], [xy_t2.c3]), partitions(p0)
is_index_back=false, is_global_index=false,

View File

@ -1504,7 +1504,7 @@ Outputs & filters:
0 - output([t2.a], [t2.b], [t2.c], [t7.a], [t7.b], [t7.c], [t7.d]), filter(nil), rowset=16
sort_keys([t2.a, ASC], [t2.b, ASC], [t7.a, ASC], [t7.b, ASC])
1 - output([t2.a], [t2.b], [t7.a], [t7.b], [t2.c], [t7.c], [t7.d]), filter(nil), rowset=16
conds([cast(t2.b, DECIMAL(-1, -1)) = cast(t7.a, DECIMAL(10, 0))], [t2.c = t7.d]), nl_params_(nil), use_batch=false
conds([t2.c = t7.d], [cast(t2.b, DECIMAL(-1, -1)) = cast(t7.a, DECIMAL(10, 0))]), nl_params_(nil), use_batch=false
2 - output([t7.a], [t7.d], [t7.b], [t7.c]), filter(nil), rowset=16
access([t7.a], [t7.d], [t7.b], [t7.c]), partitions(p0)
is_index_back=false, is_global_index=false,
@ -1669,7 +1669,7 @@ Outputs & filters:
0 - output([t2.a], [t2.b], [t2.c], [t7.a], [t7.b], [t7.c], [t7.d]), filter(nil), rowset=16
sort_keys([t2.a, ASC], [t2.b, ASC], [t7.a, ASC], [t7.b, ASC])
1 - output([t2.a], [t2.b], [t7.a], [t7.b], [t2.c], [t7.c], [t7.d]), filter(nil), rowset=16
conds([cast(t2.b, DECIMAL(-1, -1)) = cast(t7.a, DECIMAL(10, 0))], [t2.c = t7.d]), nl_params_(nil), use_batch=false
conds([t2.c = t7.d], [cast(t2.b, DECIMAL(-1, -1)) = cast(t7.a, DECIMAL(10, 0))]), nl_params_(nil), use_batch=false
2 - output([t2.b], [t2.c], [t2.a]), filter(nil), rowset=16
access([t2.b], [t2.c], [t2.a]), partitions(p0)
is_index_back=false, is_global_index=false,