Skip to content

Commit

Permalink
[Fix](Nereids) fix test leading change disable join reorder parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
LiBinfeng-01 committed Oct 9, 2023
1 parent eac45af commit c0558e3
Showing 1 changed file with 63 additions and 62 deletions.
125 changes: 63 additions & 62 deletions regression-test/data/nereids_p0/hint/test_leading.out
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
PhysicalResultSink
--PhysicalDistribute
----PhysicalProject
------hashJoin[INNER_JOIN](t1.c1 = t2.c2)
------hashJoin[INNER_JOIN] hashCondition=((t1.c1 = t2.c2))otherCondition=()
--------PhysicalOlapScan[t2]
--------PhysicalDistribute
----------PhysicalOlapScan[t1]
Expand All @@ -16,7 +16,7 @@ SyntaxError:
PhysicalResultSink
--PhysicalDistribute
----PhysicalProject
------hashJoin[INNER_JOIN](t1.c1 = t2.c2)
------hashJoin[INNER_JOIN] hashCondition=((t1.c1 = t2.c2))otherCondition=()
--------PhysicalOlapScan[t1]
--------PhysicalDistribute
----------PhysicalOlapScan[t2]
Expand All @@ -29,8 +29,8 @@ SyntaxError:
PhysicalResultSink
--PhysicalDistribute
----PhysicalProject
------hashJoin[INNER_JOIN](t2.c2 = t3.c3)
--------hashJoin[INNER_JOIN](t1.c1 = t2.c2)
------hashJoin[INNER_JOIN] hashCondition=((t2.c2 = t3.c3))otherCondition=()
--------hashJoin[INNER_JOIN] hashCondition=((t1.c1 = t2.c2))otherCondition=()
----------PhysicalOlapScan[t1]
----------PhysicalDistribute
------------PhysicalOlapScan[t2]
Expand All @@ -45,13 +45,13 @@ SyntaxError:
PhysicalResultSink
--PhysicalDistribute
----PhysicalProject
------hashJoin[INNER_JOIN](t1.c1 = t2.c2)
--------PhysicalOlapScan[t1]
------hashJoin[INNER_JOIN] hashCondition=((t1.c1 = t2.c2))otherCondition=()
--------hashJoin[INNER_JOIN] hashCondition=((t2.c2 = t3.c3))otherCondition=()
----------PhysicalOlapScan[t2]
----------PhysicalDistribute
------------PhysicalOlapScan[t3]
--------PhysicalDistribute
----------hashJoin[INNER_JOIN](t2.c2 = t3.c3)
------------PhysicalOlapScan[t2]
------------PhysicalDistribute
--------------PhysicalOlapScan[t3]
----------PhysicalOlapScan[t1]

Used: leading(t1 { t2 t3 })
UnUsed:
Expand All @@ -61,14 +61,14 @@ SyntaxError:
PhysicalResultSink
--PhysicalDistribute
----PhysicalProject
------hashJoin[INNER_JOIN](t3.c3 = t4.c4)
--------hashJoin[INNER_JOIN](t1.c1 = t2.c2)
----------PhysicalOlapScan[t1]
------hashJoin[INNER_JOIN] hashCondition=((t3.c3 = t4.c4))otherCondition=()
--------hashJoin[INNER_JOIN] hashCondition=((t1.c1 = t2.c2))otherCondition=()
----------hashJoin[INNER_JOIN] hashCondition=((t2.c2 = t3.c3))otherCondition=()
------------PhysicalOlapScan[t2]
------------PhysicalDistribute
--------------PhysicalOlapScan[t3]
----------PhysicalDistribute
------------hashJoin[INNER_JOIN](t2.c2 = t3.c3)
--------------PhysicalOlapScan[t2]
--------------PhysicalDistribute
----------------PhysicalOlapScan[t3]
------------PhysicalOlapScan[t1]
--------PhysicalDistribute
----------PhysicalOlapScan[t4]

Expand All @@ -80,13 +80,13 @@ SyntaxError:
PhysicalResultSink
--PhysicalDistribute
----PhysicalProject
------hashJoin[INNER_JOIN](t2.c2 = t3.c3)
--------hashJoin[INNER_JOIN](t1.c1 = t2.c2)
------hashJoin[INNER_JOIN] hashCondition=((t2.c2 = t3.c3))otherCondition=()
--------hashJoin[INNER_JOIN] hashCondition=((t1.c1 = t2.c2))otherCondition=()
----------PhysicalOlapScan[t1]
----------PhysicalDistribute
------------PhysicalOlapScan[t2]
--------PhysicalDistribute
----------hashJoin[INNER_JOIN](t3.c3 = t4.c4)
----------hashJoin[INNER_JOIN] hashCondition=((t3.c3 = t4.c4))otherCondition=()
------------PhysicalOlapScan[t3]
------------PhysicalDistribute
--------------PhysicalOlapScan[t4]
Expand All @@ -99,13 +99,13 @@ SyntaxError:
PhysicalResultSink
--PhysicalDistribute
----PhysicalProject
------hashJoin[INNER_JOIN](t2.c2 = t3.c3)
--------hashJoin[INNER_JOIN](t1.c1 = t2.c2)
------hashJoin[INNER_JOIN] hashCondition=((t2.c2 = t3.c3))otherCondition=()
--------hashJoin[INNER_JOIN] hashCondition=((t1.c1 = t2.c2))otherCondition=()
----------PhysicalOlapScan[t1]
----------PhysicalDistribute
------------PhysicalOlapScan[t2]
--------PhysicalDistribute
----------hashJoin[INNER_JOIN](t3.c3 = t4.c4)
----------hashJoin[INNER_JOIN] hashCondition=((t3.c3 = t4.c4))otherCondition=()
------------PhysicalOlapScan[t3]
------------PhysicalDistribute
--------------PhysicalOlapScan[t4]
Expand All @@ -118,8 +118,8 @@ SyntaxError:
PhysicalResultSink
--PhysicalDistribute
----PhysicalProject
------hashJoin[INNER_JOIN](t1.c1 = t3.c3)
--------hashJoin[LEFT_OUTER_JOIN](t1.c1 = t2.c2)
------hashJoin[INNER_JOIN] hashCondition=((t1.c1 = t3.c3))otherCondition=()
--------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.c1 = t2.c2))otherCondition=()
----------PhysicalOlapScan[t1]
----------PhysicalDistribute
------------PhysicalOlapScan[t2]
Expand All @@ -130,8 +130,8 @@ PhysicalResultSink
PhysicalResultSink
--PhysicalDistribute
----PhysicalProject
------hashJoin[LEFT_OUTER_JOIN](t1.c1 = t2.c2)
--------hashJoin[INNER_JOIN](t1.c1 = t3.c3)
------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.c1 = t2.c2))otherCondition=()
--------hashJoin[INNER_JOIN] hashCondition=((t1.c1 = t3.c3))otherCondition=()
----------PhysicalOlapScan[t1]
----------PhysicalDistribute
------------PhysicalOlapScan[t3]
Expand All @@ -146,8 +146,8 @@ SyntaxError:
PhysicalResultSink
--PhysicalDistribute
----PhysicalProject
------hashJoin[LEFT_OUTER_JOIN](t1.c1 = t3.c3)
--------hashJoin[LEFT_OUTER_JOIN](t1.c1 = t2.c2)
------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.c1 = t3.c3))otherCondition=()
--------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.c1 = t2.c2))otherCondition=()
----------PhysicalOlapScan[t1]
----------PhysicalDistribute
------------PhysicalOlapScan[t2]
Expand All @@ -158,8 +158,8 @@ PhysicalResultSink
PhysicalResultSink
--PhysicalDistribute
----PhysicalProject
------hashJoin[LEFT_OUTER_JOIN](t1.c1 = t2.c2)
--------hashJoin[LEFT_OUTER_JOIN](t1.c1 = t3.c3)
------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.c1 = t2.c2))otherCondition=()
--------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.c1 = t3.c3))otherCondition=()
----------PhysicalOlapScan[t1]
----------PhysicalDistribute
------------PhysicalOlapScan[t3]
Expand All @@ -174,8 +174,8 @@ SyntaxError:
PhysicalResultSink
--PhysicalDistribute
----PhysicalProject
------hashJoin[RIGHT_OUTER_JOIN](t1.c1 = t2.c2)
--------hashJoin[LEFT_OUTER_JOIN](t2.c2 = t3.c3)
------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.c1 = t2.c2))otherCondition=()
--------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t2.c2 = t3.c3))otherCondition=()
----------PhysicalOlapScan[t2]
----------PhysicalDistribute
------------PhysicalOlapScan[t3]
Expand All @@ -190,13 +190,13 @@ SyntaxError:
PhysicalResultSink
--PhysicalDistribute
----PhysicalProject
------hashJoin[INNER_JOIN](t1.c1 = t2.c2)
--------PhysicalOlapScan[t1]
------hashJoin[INNER_JOIN] hashCondition=((t1.c1 = t2.c2))otherCondition=()
--------hashJoin[INNER_JOIN] hashCondition=((t2.c2 = t3.c3))otherCondition=()
----------PhysicalOlapScan[t2]
----------PhysicalDistribute
------------PhysicalOlapScan[t3]
--------PhysicalDistribute
----------hashJoin[INNER_JOIN](t2.c2 = t3.c3)
------------PhysicalOlapScan[t2]
------------PhysicalDistribute
--------------PhysicalOlapScan[t3]
----------PhysicalOlapScan[t1]

Used: leading(t1 { t2 t3 })
UnUsed:
Expand All @@ -206,8 +206,8 @@ SyntaxError:
PhysicalResultSink
--PhysicalDistribute
----PhysicalProject
------hashJoin[RIGHT_OUTER_JOIN](t1.c1 = tmp.c2)
--------hashJoin[INNER_JOIN](t2.c2 = t3.c3)
------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.c1 = tmp.c2))otherCondition=()
--------hashJoin[INNER_JOIN] hashCondition=((t2.c2 = t3.c3))otherCondition=()
----------PhysicalOlapScan[t2]
----------PhysicalDistribute
------------PhysicalOlapScan[t3]
Expand All @@ -218,8 +218,8 @@ PhysicalResultSink
PhysicalResultSink
--PhysicalDistribute
----PhysicalProject
------hashJoin[RIGHT_OUTER_JOIN](t1.c1 = tmp.c2)
--------hashJoin[INNER_JOIN](t2.c2 = t3.c3)
------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.c1 = tmp.c2))otherCondition=()
--------hashJoin[INNER_JOIN] hashCondition=((t2.c2 = t3.c3))otherCondition=()
----------PhysicalOlapScan[t2]
----------PhysicalDistribute
------------PhysicalOlapScan[t3]
Expand All @@ -234,7 +234,7 @@ SyntaxError:
PhysicalResultSink
--PhysicalDistribute
----PhysicalProject
------hashJoin[LEFT_SEMI_JOIN](t1.c1 = t2.c2)
------hashJoin[LEFT_SEMI_JOIN] hashCondition=((t1.c1 = t2.c2))otherCondition=()
--------PhysicalOlapScan[t1]
--------PhysicalDistribute
----------PhysicalProject
Expand All @@ -244,11 +244,11 @@ PhysicalResultSink
PhysicalResultSink
--PhysicalDistribute
----PhysicalProject
------hashJoin[RIGHT_SEMI_JOIN](t1.c1 = t2.c2)
--------PhysicalProject
----------PhysicalOlapScan[t2]
------hashJoin[LEFT_SEMI_JOIN] hashCondition=((t1.c1 = t2.c2))otherCondition=()
--------PhysicalOlapScan[t1]
--------PhysicalDistribute
----------PhysicalOlapScan[t1]
----------PhysicalProject
------------PhysicalOlapScan[t2]

Used: leading(t2 t1)
UnUsed:
Expand All @@ -272,10 +272,10 @@ PhysicalResultSink
--PhysicalDistribute
----PhysicalProject
------NestedLoopJoin[CROSS_JOIN]
--------PhysicalProject
----------PhysicalOlapScan[t2]
--------PhysicalOlapScan[t1]
--------PhysicalDistribute
----------PhysicalOlapScan[t1]
----------PhysicalProject
------------PhysicalOlapScan[t2]

Used: leading(t2 t1)
UnUsed:
Expand All @@ -286,7 +286,7 @@ PhysicalResultSink
--PhysicalDistribute
----PhysicalProject
------NestedLoopJoin[CROSS_JOIN]
--------hashJoin[INNER_JOIN](cte.c1 = cte.c2)
--------hashJoin[INNER_JOIN] hashCondition=((cte.c1 = cte.c2))otherCondition=()
----------PhysicalProject
------------PhysicalOlapScan[t1]
----------PhysicalDistribute
Expand Down Expand Up @@ -317,7 +317,7 @@ SyntaxError:
PhysicalResultSink
--PhysicalDistribute
----PhysicalProject
------hashJoin[INNER_JOIN](t1.c1 = t2.c2)
------hashJoin[INNER_JOIN] hashCondition=((t1.c1 = t2.c2))otherCondition=()
--------PhysicalOlapScan[t1]
--------PhysicalDistribute
----------PhysicalOlapScan[t2]
Expand All @@ -330,7 +330,7 @@ SyntaxError: leading(t66 t1) Msg:can not find table: t66
PhysicalResultSink
--PhysicalDistribute
----PhysicalProject
------hashJoin[INNER_JOIN](t1.c1 = t2.c2)
------hashJoin[INNER_JOIN] hashCondition=((t1.c1 = t2.c2))otherCondition=()
--------PhysicalOlapScan[t1]
--------PhysicalDistribute
----------PhysicalOlapScan[t2]
Expand All @@ -344,7 +344,7 @@ PhysicalResultSink
--PhysicalDistribute
----PhysicalProject
------NestedLoopJoin[CROSS_JOIN]
--------hashJoin[INNER_JOIN](cte.c1 = cte.c2)
--------hashJoin[INNER_JOIN] hashCondition=((cte.c1 = cte.c2))otherCondition=()
----------PhysicalProject
------------PhysicalOlapScan[t1]
----------PhysicalDistribute
Expand All @@ -361,8 +361,8 @@ SyntaxError: leading(t2 cte t1) Msg:Leading alias can only be table name alias
PhysicalResultSink
--PhysicalDistribute
----PhysicalProject
------hashJoin[INNER_JOIN](t2.c2 = t3.c3)
--------hashJoin[INNER_JOIN](t1.c1 = t2.c2)
------hashJoin[INNER_JOIN] hashCondition=((t2.c2 = t3.c3))otherCondition=()
--------hashJoin[INNER_JOIN] hashCondition=((t1.c1 = t2.c2))otherCondition=()
----------PhysicalOlapScan[t1]
----------PhysicalDistribute
------------PhysicalOlapScan[t2]
Expand All @@ -377,8 +377,8 @@ SyntaxError: leading(t1 t2) Msg:tables should be same as join tables
PhysicalResultSink
--PhysicalDistribute
----PhysicalProject
------hashJoin[INNER_JOIN](t2.c2 = t3.c3)
--------hashJoin[INNER_JOIN](t1.c1 = t2.c2)
------hashJoin[INNER_JOIN] hashCondition=((t2.c2 = t3.c3))otherCondition=()
--------hashJoin[INNER_JOIN] hashCondition=((t1.c1 = t2.c2))otherCondition=()
----------PhysicalOlapScan[t1]
----------PhysicalDistribute
------------PhysicalOlapScan[t2]
Expand All @@ -393,7 +393,7 @@ SyntaxError: leading(t1 t1 t2 t3) Msg:duplicated table
PhysicalResultSink
--PhysicalDistribute
----PhysicalProject
------hashJoin[INNER_JOIN](t1.c1 = t_2.c2)
------hashJoin[INNER_JOIN] hashCondition=((t1.c1 = t_2.c2))otherCondition=()
--------PhysicalOlapScan[t1]
--------PhysicalDistribute
----------PhysicalOlapScan[t2]
Expand All @@ -406,7 +406,7 @@ SyntaxError:
PhysicalResultSink
--PhysicalDistribute
----PhysicalProject
------hashJoin[INNER_JOIN](t1.c1 = t_2.c2)
------hashJoin[INNER_JOIN] hashCondition=((t1.c1 = t_2.c2))otherCondition=()
--------PhysicalOlapScan[t1]
--------PhysicalDistribute
----------PhysicalOlapScan[t2]
Expand All @@ -419,10 +419,11 @@ SyntaxError: leading(t1 t2) Msg:can not find table: t2
PhysicalResultSink
--PhysicalDistribute
----PhysicalProject
------hashJoin[INNER_JOIN](t1.c1 = t_1.c1)
------hashJoin[INNER_JOIN] hashCondition=((t1.c1 = t_1.c1))otherCondition=()
--------PhysicalOlapScan[t1]
--------PhysicalOlapScan[t1]

Used: leading(t1 t_1)
UnUsed:
SyntaxError:

0 comments on commit c0558e3

Please sign in to comment.