Skip to content

Commit

Permalink
fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
feiniaofeiafei committed Aug 30, 2024
1 parent fe47861 commit f0f82a8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,11 @@ PhysicalResultSink
------hashAgg[LOCAL]
--------PhysicalUnion
----------filter(a IN (1, 2))
------------PhysicalOlapScan[test_like1]
------------PhysicalOlapScan[test_pull_up_predicate_set_op1]
----------filter(a IN (1, 2))
------------PhysicalOlapScan[test_like2]
------------PhysicalOlapScan[test_pull_up_predicate_set_op2]
----filter(a IN (1, 2))
------PhysicalOlapScan[test_like3]
------PhysicalOlapScan[test_pull_up_predicate_set_op3]

-- !union_child_and_const_exprs_andpredicates --
PhysicalResultSink
Expand All @@ -192,9 +192,9 @@ PhysicalResultSink
------hashAgg[LOCAL]
--------PhysicalUnion
----------filter(a IN (1, 2) and b IN ('2d', '3'))
------------PhysicalOlapScan[test_like1]
------------PhysicalOlapScan[test_pull_up_predicate_set_op1]
----filter(a IN (1, 2) and b IN ('2d', '3'))
------PhysicalOlapScan[test_like3]
------PhysicalOlapScan[test_pull_up_predicate_set_op3]

-- !union_child_and_const_exprs_orpredicates --
PhysicalResultSink
Expand All @@ -203,8 +203,8 @@ PhysicalResultSink
------hashAgg[LOCAL]
--------PhysicalUnion
----------filter((a IN (1, 2) OR b IN ('2d', '3')))
------------PhysicalOlapScan[test_like1]
----PhysicalOlapScan[test_like3]
------------PhysicalOlapScan[test_pull_up_predicate_set_op1]
----PhysicalOlapScan[test_pull_up_predicate_set_op3]

-- !intersect_one_side_constant_one_side_column_left_join --
PhysicalResultSink
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,17 +184,17 @@ suite("test_pull_up_predicate_set_op") {

qt_union_child_and_const_exprs """
explain shape plan
select t.a,t3.b from (select a,b from test_like1 where a in (1,2) union select a,b from test_like2 where a in (1,2) union select 2,2 union select 2,2) t inner join test_like3 t3
select t.a,t3.b from (select a,b from test_pull_up_predicate_set_op1 where a in (1,2) union select a,b from test_pull_up_predicate_set_op2 where a in (1,2) union select 2,2 union select 2,2) t inner join test_pull_up_predicate_set_op3 t3
on t3.a=t.a and t3.b=t.b;
"""
qt_union_child_and_const_exprs_andpredicates """
explain shape plan
select t.a,t3.b from (select a,b from test_like1 where a in (1,2) and b in ('2d','3') union select 2,'2d' union select 2,'3') t inner join test_like3 t3
select t.a,t3.b from (select a,b from test_pull_up_predicate_set_op1 where a in (1,2) and b in ('2d','3') union select 2,'2d' union select 2,'3') t inner join test_pull_up_predicate_set_op3 t3
on t3.a=t.a and t3.b=t.b;
"""
qt_union_child_and_const_exprs_orpredicates """
explain shape plan
select t.a,t3.b from (select a,b from test_like1 where a in (1,2) or b in ('2d','3') union select 2,'2d' union select 2,'3') t inner join test_like3 t3
select t.a,t3.b from (select a,b from test_pull_up_predicate_set_op1 where a in (1,2) or b in ('2d','3') union select 2,'2d' union select 2,'3') t inner join test_pull_up_predicate_set_op3 t3
on t3.a=t.a and t3.b=t.b;"""

// test_different join type
Expand Down Expand Up @@ -456,14 +456,14 @@ suite("test_pull_up_predicate_set_op") {
qt_union_and_const_res """select c2 from (select 2 id,'abc' c2 union select 1 ,'abbbb' c4 ) t inner join test_pull_up_predicate_set_op3 t2 on t.id=t2.a order by 1"""

qt_union_child_and_const_exprs_res """
select t.a,t3.b from (select a,b from test_like1 where a in (1,2) union select a,b from test_like2 where a in (1,2) union select 2,2 union select 2,2) t inner join test_like3 t3
select t.a,t3.b from (select a,b from test_pull_up_predicate_set_op1 where a in (1,2) union select a,b from test_pull_up_predicate_set_op2 where a in (1,2) union select 2,2 union select 2,2) t inner join test_pull_up_predicate_set_op3 t3
on t3.a=t.a and t3.b=t.b order by 1,2;
"""
qt_union_child_and_const_exprs_andpredicates_res """
select t.a,t3.b from (select a,b from test_like1 where a in (1,2) and b in ('2d','3') union select 2,'2d' union select 2,'3') t inner join test_like3 t3
select t.a,t3.b from (select a,b from test_pull_up_predicate_set_op1 where a in (1,2) and b in ('2d','3') union select 2,'2d' union select 2,'3') t inner join test_pull_up_predicate_set_op3 t3
on t3.a=t.a and t3.b=t.b order by 1,2;
"""
qt_union_child_and_const_exprs_orpredicates_res """
select t.a,t3.b from (select a,b from test_like1 where a in (1,2) or b in ('2d','3') union select 2,'2d' union select 2,'3') t inner join test_like3 t3
select t.a,t3.b from (select a,b from test_pull_up_predicate_set_op1 where a in (1,2) or b in ('2d','3') union select 2,'2d' union select 2,'3') t inner join test_pull_up_predicate_set_op3 t3
on t3.a=t.a and t3.b=t.b order by 1,2;"""
}

0 comments on commit f0f82a8

Please sign in to comment.