Skip to content

Commit

Permalink
add regression
Browse files Browse the repository at this point in the history
  • Loading branch information
feiniaofeiafei committed Aug 21, 2024
1 parent d1c1aa1 commit 77ca637
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,20 @@ PhysicalResultSink
------filter((max_min_filter_push_down1.value1 > 40))
--------PhysicalOlapScan[max_min_filter_push_down1]

-- !min_expr --
PhysicalResultSink
--hashAgg[GLOBAL]
----hashAgg[LOCAL]
------filter((cast(value1 as BIGINT) < 19))
--------PhysicalOlapScan[max_min_filter_push_down1]

-- !max_expr --
PhysicalResultSink
--hashAgg[GLOBAL]
----hashAgg[LOCAL]
------filter((abs(value1) > 39))
--------PhysicalOlapScan[max_min_filter_push_down1]

-- !min_commute --
PhysicalResultSink
--hashAgg[GLOBAL]
Expand Down Expand Up @@ -106,6 +120,14 @@ PhysicalResultSink
3 61
4 45

-- !min_expr_res --
1 11

-- !max_expr_res --
2 74
3 62
4 46

-- !min_commute_res --
1 10
2 19
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ suite("max_min_filter_push_down") {
select id,max(value1) from max_min_filter_push_down1 group by id having max(value1) >40;
"""

qt_min_expr """
explain shape plan
select id,min(value1+1) from max_min_filter_push_down1 group by id having min(value1+1) <40 and min(value1+1) <20;
"""
qt_max_expr """
explain shape plan
select id,max(abs(value1)+1) from max_min_filter_push_down1 group by id having max(abs(value1)+1) >40;
"""

qt_min_commute """
explain shape plan
select id,min(value1) from max_min_filter_push_down1 group by id having 40>min(value1);
Expand Down Expand Up @@ -103,7 +112,12 @@ suite("max_min_filter_push_down") {
qt_max_res """
select id,max(value1) from max_min_filter_push_down1 group by id having max(value1) >40 order by 1,2;
"""

qt_min_expr_res """
select id,min(value1+1) from max_min_filter_push_down1 group by id having min(value1+1) <40 and min(value1+1) <20 order by 1,2;
"""
qt_max_expr_res """
select id,max(abs(value1)+1) from max_min_filter_push_down1 group by id having max(abs(value1)+1) >40 order by 1,2;
"""
qt_min_commute_res """
select id,min(value1) from max_min_filter_push_down1 group by id having 40>min(value1) order by 1,2;
"""
Expand Down

0 comments on commit 77ca637

Please sign in to comment.