Skip to content

Commit

Permalink
fix-rt
Browse files Browse the repository at this point in the history
  • Loading branch information
englefly committed Sep 18, 2024
1 parent 39c8c1b commit 6c9fde7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 )
--------filter((main.k1 = 1))
----------PhysicalOlapScan[test]
--PhysicalResultSink
----hashJoin[INNER_JOIN] hashCondition=((m1.k1 = m2.k1)) otherCondition=() build RFs:RF0 k1->[k1];RF1 k1->[k1]
----hashJoin[INNER_JOIN] hashCondition=((m1.k1 = m2.k1)) otherCondition=() build RFs:RF0 k1->[k1]
------filter((temp.k1 = 1))
--------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF0 RF1
--------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF0
------filter((m2.k1 = 1))
--------PhysicalCteConsumer ( cteId=CTEId#0 )

Expand All @@ -21,9 +21,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 )
--------PhysicalQuickSort[LOCAL_SORT]
----------PhysicalOlapScan[test]
--PhysicalResultSink
----hashJoin[INNER_JOIN] hashCondition=((m1.k1 = m2.k1)) otherCondition=() build RFs:RF0 k1->[k1];RF1 k1->[k1]
----hashJoin[INNER_JOIN] hashCondition=((m1.k1 = m2.k1)) otherCondition=() build RFs:RF0 k1->[k1]
------filter((temp.k1 = 1))
--------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF0 RF1
--------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF0
------filter((m2.k1 = 1))
--------PhysicalCteConsumer ( cteId=CTEId#0 )

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 )
--------filter((main.k1 = 1))
----------PhysicalOlapScan[test]
--PhysicalResultSink
----hashJoin[INNER_JOIN] hashCondition=((m1.k1 = m2.k1)) otherCondition=() build RFs:RF0 k1->[k1];RF1 k1->[k1]
----hashJoin[INNER_JOIN] hashCondition=((m1.k1 = m2.k1)) otherCondition=() build RFs:RF0 k1->[k1]
------filter((temp.k1 = 1))
--------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF0 RF1
--------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF0
------filter((m2.k1 = 1))
--------PhysicalCteConsumer ( cteId=CTEId#0 )

Expand All @@ -21,9 +21,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 )
--------PhysicalQuickSort[LOCAL_SORT]
----------PhysicalOlapScan[test]
--PhysicalResultSink
----hashJoin[INNER_JOIN] hashCondition=((m1.k1 = m2.k1)) otherCondition=() build RFs:RF0 k1->[k1];RF1 k1->[k1]
----hashJoin[INNER_JOIN] hashCondition=((m1.k1 = m2.k1)) otherCondition=() build RFs:RF0 k1->[k1]
------filter((temp.k1 = 1))
--------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF0 RF1
--------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF0
------filter((m2.k1 = 1))
--------PhysicalCteConsumer ( cteId=CTEId#0 )

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ suite("test_cte_filter_pushdown") {
sql "SET enable_nereids_planner=true"
sql "SET enable_pipeline_engine=true"
sql "SET enable_fallback_to_original_planner=false"
sql "set runtime_filter_type=2;"
sql "set ignore_shape_nodes='PhysicalDistribute, PhysicalProject'"
// CTE filter pushing down with the same filter
qt_cte_filter_pushdown_1 """
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ suite("test_cte_filter_pushdown") {
sql "SET enable_nereids_planner=true"
sql "SET enable_pipeline_engine=true"
sql "SET enable_fallback_to_original_planner=false"
sql "set runtime_filter_type=2;"
sql "set ignore_shape_nodes='PhysicalDistribute, PhysicalProject'"
sql "set disable_nereids_rules=PRUNE_EMPTY_PARTITION"

Expand Down

0 comments on commit 6c9fde7

Please sign in to comment.