From ce64f0c917c03664772d823f3b6680201deb31d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E5=81=A5?= Date: Fri, 10 Nov 2023 14:56:28 +0800 Subject: [PATCH] [enhancement](Nereids): add phase in shape string (#26682) --- .../trees/plans/physical/PhysicalLimit.java | 5 ++++ .../plans/physical/PhysicalQuickSort.java | 5 ++++ .../trees/plans/physical/PhysicalTopN.java | 5 ++++ .../data/nereids_hint_tpch_p0/shape/q1.out | 4 ++-- .../data/nereids_hint_tpch_p0/shape/q10.out | 4 ++-- .../data/nereids_hint_tpch_p0/shape/q12.out | 4 ++-- .../data/nereids_hint_tpch_p0/shape/q13.out | 4 ++-- .../data/nereids_hint_tpch_p0/shape/q16.out | 4 ++-- .../data/nereids_hint_tpch_p0/shape/q3.out | 4 ++-- .../data/nereids_hint_tpch_p0/shape/q4.out | 4 ++-- .../data/nereids_hint_tpch_p0/shape/q5.out | 4 ++-- .../data/nereids_hint_tpch_p0/shape/q9.out | 4 ++-- .../cte/test_cte_filter_pushdown.out | 4 ++-- .../nereids_ssb_shape_sf100_p0/shape/q2.1.out | 4 ++-- .../nereids_ssb_shape_sf100_p0/shape/q2.2.out | 4 ++-- .../nereids_ssb_shape_sf100_p0/shape/q2.3.out | 4 ++-- .../nereids_ssb_shape_sf100_p0/shape/q3.1.out | 4 ++-- .../nereids_ssb_shape_sf100_p0/shape/q3.2.out | 4 ++-- .../nereids_ssb_shape_sf100_p0/shape/q3.3.out | 4 ++-- .../nereids_ssb_shape_sf100_p0/shape/q3.4.out | 4 ++-- .../nereids_ssb_shape_sf100_p0/shape/q4.1.out | 4 ++-- .../nereids_ssb_shape_sf100_p0/shape/q4.2.out | 4 ++-- .../nereids_ssb_shape_sf100_p0/shape/q4.3.out | 4 ++-- .../push_filter_through_ptopn.out | 6 ++--- .../push_filter_through_window.out | 8 +++---- .../shape/query1.out | 4 ++-- .../shape/query10.out | 4 ++-- .../shape/query11.out | 4 ++-- .../shape/query12.out | 6 ++--- .../shape/query14.out | 8 +++---- .../shape/query15.out | 4 ++-- .../shape/query16.out | 4 ++-- .../shape/query17.out | 4 ++-- .../shape/query18.out | 4 ++-- .../shape/query19.out | 4 ++-- .../shape/query2.out | 4 ++-- .../shape/query20.out | 6 ++--- .../shape/query21.out | 4 ++-- .../shape/query22.out | 4 ++-- .../shape/query23.out | 8 +++---- .../shape/query24.out | 8 +++---- .../shape/query25.out | 4 ++-- .../shape/query26.out | 4 ++-- .../shape/query27.out | 4 ++-- .../shape/query28.out | 24 +++++++++---------- .../shape/query29.out | 4 ++-- .../shape/query3.out | 4 ++-- .../shape/query30.out | 4 ++-- .../shape/query31.out | 4 ++-- .../shape/query32.out | 6 ++--- .../shape/query33.out | 4 ++-- .../shape/query34.out | 4 ++-- .../shape/query35.out | 4 ++-- .../shape/query36.out | 6 ++--- .../shape/query37.out | 4 ++-- .../shape/query38.out | 4 ++-- .../shape/query39.out | 8 +++---- .../shape/query4.out | 4 ++-- .../shape/query40.out | 4 ++-- .../shape/query41.out | 4 ++-- .../shape/query42.out | 4 ++-- .../shape/query43.out | 4 ++-- .../shape/query44.out | 12 +++++----- .../shape/query45.out | 4 ++-- .../shape/query46.out | 4 ++-- .../shape/query47.out | 8 +++---- .../shape/query49.out | 22 ++++++++--------- .../shape/query5.out | 4 ++-- .../shape/query50.out | 4 ++-- .../shape/query51.out | 10 ++++---- .../shape/query52.out | 4 ++-- .../shape/query53.out | 6 ++--- .../shape/query54.out | 4 ++-- .../shape/query55.out | 4 ++-- .../shape/query56.out | 4 ++-- .../shape/query57.out | 8 +++---- .../shape/query58.out | 4 ++-- .../shape/query59.out | 4 ++-- .../shape/query6.out | 4 ++-- .../shape/query60.out | 4 ++-- .../shape/query61.out | 4 ++-- .../shape/query62.out | 4 ++-- .../shape/query63.out | 6 ++--- .../shape/query64.out | 4 ++-- .../shape/query65.out | 4 ++-- .../shape/query66.out | 4 ++-- .../shape/query67.out | 4 ++-- .../shape/query68.out | 4 ++-- .../shape/query69.out | 4 ++-- .../shape/query7.out | 4 ++-- .../shape/query70.out | 6 ++--- .../shape/query71.out | 4 ++-- .../shape/query72.out | 4 ++-- .../shape/query73.out | 4 ++-- .../shape/query74.out | 4 ++-- .../shape/query75.out | 4 ++-- .../shape/query76.out | 4 ++-- .../shape/query77.out | 4 ++-- .../shape/query78.out | 4 ++-- .../shape/query79.out | 4 ++-- .../shape/query8.out | 4 ++-- .../shape/query80.out | 4 ++-- .../shape/query81.out | 4 ++-- .../shape/query82.out | 4 ++-- .../shape/query83.out | 4 ++-- .../shape/query84.out | 4 ++-- .../shape/query85.out | 4 ++-- .../shape/query86.out | 6 ++--- .../shape/query89.out | 6 ++--- .../shape/query90.out | 4 ++-- .../shape/query91.out | 4 ++-- .../shape/query92.out | 6 ++--- .../shape/query93.out | 4 ++-- .../shape/query94.out | 4 ++-- .../shape/query95.out | 4 ++-- .../shape/query96.out | 4 ++-- .../shape/query97.out | 4 ++-- .../shape/query98.out | 6 ++--- .../shape/query99.out | 4 ++-- .../shape/query1.out | 4 ++-- .../shape/query10.out | 4 ++-- .../shape/query11.out | 4 ++-- .../shape/query12.out | 6 ++--- .../shape/query14.out | 4 ++-- .../shape/query15.out | 4 ++-- .../shape/query16.out | 4 ++-- .../shape/query17.out | 4 ++-- .../shape/query18.out | 4 ++-- .../shape/query19.out | 4 ++-- .../shape/query2.out | 4 ++-- .../shape/query20.out | 6 ++--- .../shape/query21.out | 4 ++-- .../shape/query22.out | 4 ++-- .../shape/query23.out | 4 ++-- .../shape/query24.out | 4 ++-- .../shape/query25.out | 4 ++-- .../shape/query26.out | 4 ++-- .../shape/query27.out | 4 ++-- .../shape/query28.out | 24 +++++++++---------- .../shape/query29.out | 4 ++-- .../shape/query3.out | 4 ++-- .../shape/query30.out | 4 ++-- .../shape/query31.out | 4 ++-- .../shape/query32.out | 6 ++--- .../shape/query33.out | 4 ++-- .../shape/query34.out | 4 ++-- .../shape/query35.out | 4 ++-- .../shape/query36.out | 6 ++--- .../shape/query37.out | 4 ++-- .../shape/query38.out | 4 ++-- .../shape/query39.out | 4 ++-- .../shape/query4.out | 4 ++-- .../shape/query40.out | 4 ++-- .../shape/query41.out | 4 ++-- .../shape/query42.out | 4 ++-- .../shape/query43.out | 4 ++-- .../shape/query44.out | 12 +++++----- .../shape/query45.out | 4 ++-- .../shape/query46.out | 4 ++-- .../shape/query47.out | 8 +++---- .../shape/query49.out | 22 ++++++++--------- .../shape/query5.out | 4 ++-- .../shape/query50.out | 4 ++-- .../shape/query51.out | 10 ++++---- .../shape/query52.out | 4 ++-- .../shape/query53.out | 6 ++--- .../shape/query54.out | 4 ++-- .../shape/query55.out | 4 ++-- .../shape/query56.out | 4 ++-- .../shape/query57.out | 8 +++---- .../shape/query58.out | 4 ++-- .../shape/query59.out | 4 ++-- .../shape/query6.out | 4 ++-- .../shape/query60.out | 4 ++-- .../shape/query61.out | 4 ++-- .../shape/query62.out | 4 ++-- .../shape/query63.out | 6 ++--- .../shape/query64.out | 4 ++-- .../shape/query65.out | 4 ++-- .../shape/query66.out | 4 ++-- .../shape/query67.out | 4 ++-- .../shape/query68.out | 4 ++-- .../shape/query69.out | 4 ++-- .../shape/query7.out | 4 ++-- .../shape/query70.out | 6 ++--- .../shape/query71.out | 4 ++-- .../shape/query72.out | 4 ++-- .../shape/query73.out | 4 ++-- .../shape/query74.out | 4 ++-- .../shape/query75.out | 4 ++-- .../shape/query76.out | 4 ++-- .../shape/query77.out | 4 ++-- .../shape/query78.out | 4 ++-- .../shape/query79.out | 4 ++-- .../shape/query8.out | 4 ++-- .../shape/query80.out | 4 ++-- .../shape/query81.out | 4 ++-- .../shape/query82.out | 4 ++-- .../shape/query83.out | 4 ++-- .../shape/query84.out | 4 ++-- .../shape/query85.out | 4 ++-- .../shape/query86.out | 6 ++--- .../shape/query89.out | 6 ++--- .../shape/query90.out | 4 ++-- .../shape/query91.out | 4 ++-- .../shape/query92.out | 6 ++--- .../shape/query93.out | 4 ++-- .../shape/query94.out | 4 ++-- .../shape/query95.out | 4 ++-- .../shape/query96.out | 4 ++-- .../shape/query97.out | 4 ++-- .../shape/query98.out | 6 ++--- .../shape/query99.out | 4 ++-- .../nereids_tpch_shape_sf1000_p0/shape/q1.out | 4 ++-- .../shape/q10.out | 4 ++-- .../shape/q11.out | 4 ++-- .../shape/q12.out | 4 ++-- .../shape/q13.out | 4 ++-- .../shape/q15.out | 4 ++-- .../shape/q16.out | 4 ++-- .../shape/q17.out | 2 +- .../shape/q18.out | 4 ++-- .../nereids_tpch_shape_sf1000_p0/shape/q2.out | 6 ++--- .../shape/q20-rewrite.out | 4 ++-- .../shape/q20.out | 4 ++-- .../shape/q21.out | 4 ++-- .../shape/q22.out | 4 ++-- .../nereids_tpch_shape_sf1000_p0/shape/q3.out | 4 ++-- .../nereids_tpch_shape_sf1000_p0/shape/q4.out | 4 ++-- .../nereids_tpch_shape_sf1000_p0/shape/q5.out | 4 ++-- .../nereids_tpch_shape_sf1000_p0/shape/q7.out | 4 ++-- .../nereids_tpch_shape_sf1000_p0/shape/q8.out | 4 ++-- .../nereids_tpch_shape_sf1000_p0/shape/q9.out | 4 ++-- 233 files changed, 568 insertions(+), 553 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalLimit.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalLimit.java index b6cc19f81b..ab7f5f811e 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalLimit.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalLimit.java @@ -164,6 +164,11 @@ public class PhysicalLimit extends PhysicalUnary computeOutput() { return child().getOutput(); diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalQuickSort.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalQuickSort.java index 57c77cc4fb..c1973668c7 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalQuickSort.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalQuickSort.java @@ -99,6 +99,11 @@ public class PhysicalQuickSort extends AbstractPhysical statistics, child()); } + @Override + public String shapeInfo() { + return this.getClass().getSimpleName() + "[" + phase + "]"; + } + @Override public String toString() { return Utils.toSqlString("PhysicalQuickSort[" + id.asInt() + "]" + getGroupIdWithPrefix(), diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalTopN.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalTopN.java index 4c24a03b78..6989284e0b 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalTopN.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalTopN.java @@ -147,6 +147,11 @@ public class PhysicalTopN extends AbstractPhysicalSort< groupExpression, getLogicalProperties(), physicalProperties, statistics, child()); } + @Override + public String shapeInfo() { + return this.getClass().getSimpleName() + "[" + phase + "]"; + } + @Override public String toString() { return Utils.toSqlString("PhysicalTopN[" + id.asInt() + "]" + getGroupIdWithPrefix(), diff --git a/regression-test/data/nereids_hint_tpch_p0/shape/q1.out b/regression-test/data/nereids_hint_tpch_p0/shape/q1.out index 6d8f63d340..3eb68a3c45 100644 --- a/regression-test/data/nereids_hint_tpch_p0/shape/q1.out +++ b/regression-test/data/nereids_hint_tpch_p0/shape/q1.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_hint_tpch_p0/shape/q10.out b/regression-test/data/nereids_hint_tpch_p0/shape/q10.out index 8a594b075b..e851939352 100644 --- a/regression-test/data/nereids_hint_tpch_p0/shape/q10.out +++ b/regression-test/data/nereids_hint_tpch_p0/shape/q10.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_hint_tpch_p0/shape/q12.out b/regression-test/data/nereids_hint_tpch_p0/shape/q12.out index 6c73fa0d7f..57568e3f9a 100644 --- a/regression-test/data/nereids_hint_tpch_p0/shape/q12.out +++ b/regression-test/data/nereids_hint_tpch_p0/shape/q12.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_hint_tpch_p0/shape/q13.out b/regression-test/data/nereids_hint_tpch_p0/shape/q13.out index 1f0c4ce70b..f2536ac81b 100644 --- a/regression-test/data/nereids_hint_tpch_p0/shape/q13.out +++ b/regression-test/data/nereids_hint_tpch_p0/shape/q13.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_hint_tpch_p0/shape/q16.out b/regression-test/data/nereids_hint_tpch_p0/shape/q16.out index 642ee4dc37..308e8fe650 100644 --- a/regression-test/data/nereids_hint_tpch_p0/shape/q16.out +++ b/regression-test/data/nereids_hint_tpch_p0/shape/q16.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_hint_tpch_p0/shape/q3.out b/regression-test/data/nereids_hint_tpch_p0/shape/q3.out index cd78e320cf..87b731ecc7 100644 --- a/regression-test/data/nereids_hint_tpch_p0/shape/q3.out +++ b/regression-test/data/nereids_hint_tpch_p0/shape/q3.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[LOCAL] ----------PhysicalProject ------------hashJoin[INNER_JOIN] hashCondition=((lineitem.l_orderkey = orders.o_orderkey))otherCondition=() diff --git a/regression-test/data/nereids_hint_tpch_p0/shape/q4.out b/regression-test/data/nereids_hint_tpch_p0/shape/q4.out index fdd19b8718..0d10507395 100644 --- a/regression-test/data/nereids_hint_tpch_p0/shape/q4.out +++ b/regression-test/data/nereids_hint_tpch_p0/shape/q4.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_hint_tpch_p0/shape/q5.out b/regression-test/data/nereids_hint_tpch_p0/shape/q5.out index 099a47a492..df95bf5e70 100644 --- a/regression-test/data/nereids_hint_tpch_p0/shape/q5.out +++ b/regression-test/data/nereids_hint_tpch_p0/shape/q5.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_hint_tpch_p0/shape/q9.out b/regression-test/data/nereids_hint_tpch_p0/shape/q9.out index e442d4a9a3..b5fbe20655 100644 --- a/regression-test/data/nereids_hint_tpch_p0/shape/q9.out +++ b/regression-test/data/nereids_hint_tpch_p0/shape/q9.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_p0/cte/test_cte_filter_pushdown.out b/regression-test/data/nereids_p0/cte/test_cte_filter_pushdown.out index 1988eab0d7..1c07885350 100644 --- a/regression-test/data/nereids_p0/cte/test_cte_filter_pushdown.out +++ b/regression-test/data/nereids_p0/cte/test_cte_filter_pushdown.out @@ -3,7 +3,7 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --PhysicalCteProducer ( cteId=CTEId#0 ) ----PhysicalWindow -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------PhysicalProject ----------filter((main.k1 = 1)) ------------PhysicalOlapScan[test] @@ -25,7 +25,7 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ----PhysicalProject ------filter((main.k1 = 1)) --------PhysicalWindow -----------PhysicalQuickSort +----------PhysicalQuickSort[LOCAL_SORT] ------------PhysicalDistribute --------------PhysicalProject ----------------PhysicalOlapScan[test] diff --git a/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q2.1.out b/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q2.1.out index 5bd7275b44..b9621f8507 100644 --- a/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q2.1.out +++ b/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q2.1.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q2.2.out b/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q2.2.out index 22c54a6645..535a65bc8a 100644 --- a/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q2.2.out +++ b/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q2.2.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q2.3.out b/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q2.3.out index 10cb72fe32..a4d529d60d 100644 --- a/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q2.3.out +++ b/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q2.3.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q3.1.out b/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q3.1.out index 982b99bdb3..28d1704573 100644 --- a/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q3.1.out +++ b/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q3.1.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q3.2.out b/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q3.2.out index 15c25139c7..35a4432d29 100644 --- a/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q3.2.out +++ b/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q3.2.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q3.3.out b/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q3.3.out index cca14c087d..61e28be69f 100644 --- a/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q3.3.out +++ b/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q3.3.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q3.4.out b/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q3.4.out index 79f7f88e89..9fff884f6e 100644 --- a/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q3.4.out +++ b/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q3.4.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q4.1.out b/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q4.1.out index e8c9005add..87017db4e3 100644 --- a/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q4.1.out +++ b/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q4.1.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q4.2.out b/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q4.2.out index d4e8df36a8..da173a743e 100644 --- a/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q4.2.out +++ b/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q4.2.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q4.3.out b/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q4.3.out index 6a6660283d..b036458c4d 100644 --- a/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q4.3.out +++ b/regression-test/data/nereids_ssb_shape_sf100_p0/shape/q4.3.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_syntax_p0/push_filter_through_ptopn.out b/regression-test/data/nereids_syntax_p0/push_filter_through_ptopn.out index 05343ae859..5a8348710b 100644 --- a/regression-test/data/nereids_syntax_p0/push_filter_through_ptopn.out +++ b/regression-test/data/nereids_syntax_p0/push_filter_through_ptopn.out @@ -8,7 +8,7 @@ PhysicalResultSink --PhysicalDistribute ----filter((rn <= 2)) ------PhysicalWindow ---------PhysicalQuickSort +--------PhysicalQuickSort[LOCAL_SORT] ----------PhysicalPartitionTopN ------------PhysicalProject --------------filter((T.a = 1)) @@ -24,7 +24,7 @@ PhysicalResultSink ----PhysicalProject ------filter((rn <= 2)) --------PhysicalWindow -----------PhysicalQuickSort +----------PhysicalQuickSort[LOCAL_SORT] ------------PhysicalPartitionTopN --------------filter((T.a = 1)) ----------------PhysicalOlapScan[push_filter_through_ptopn_tbl] @@ -34,7 +34,7 @@ PhysicalResultSink --PhysicalDistribute ----filter((T.b = 2) and (rn <= 2)) ------PhysicalWindow ---------PhysicalQuickSort +--------PhysicalQuickSort[LOCAL_SORT] ----------PhysicalPartitionTopN ------------PhysicalOlapScan[push_filter_through_ptopn_tbl] diff --git a/regression-test/data/nereids_syntax_p0/push_filter_through_window.out b/regression-test/data/nereids_syntax_p0/push_filter_through_window.out index 8d0356b5f1..7eefeafce8 100644 --- a/regression-test/data/nereids_syntax_p0/push_filter_through_window.out +++ b/regression-test/data/nereids_syntax_p0/push_filter_through_window.out @@ -7,7 +7,7 @@ PhysicalResultSink --PhysicalDistribute ----PhysicalWindow -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------PhysicalProject ----------filter((T.a = 1)) ------------PhysicalOlapScan[push_filter_through_window_tbl] @@ -21,7 +21,7 @@ PhysicalResultSink --PhysicalDistribute ----PhysicalProject ------PhysicalWindow ---------PhysicalQuickSort +--------PhysicalQuickSort[LOCAL_SORT] ----------filter((T.a = 1)) ------------PhysicalOlapScan[push_filter_through_window_tbl] @@ -30,7 +30,7 @@ PhysicalResultSink --PhysicalDistribute ----filter((T.b = 2)) ------PhysicalWindow ---------PhysicalQuickSort +--------PhysicalQuickSort[LOCAL_SORT] ----------PhysicalOlapScan[push_filter_through_window_tbl] -- !5 -- @@ -39,7 +39,7 @@ PhysicalResultSink ----PhysicalProject ------filter((T.b = 2)) --------PhysicalWindow -----------PhysicalQuickSort +----------PhysicalQuickSort[LOCAL_SORT] ------------PhysicalDistribute --------------PhysicalProject ----------------PhysicalOlapScan[push_filter_through_window_tbl] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query1.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query1.out index 50d0c4bce6..e133014879 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query1.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query1.out @@ -15,9 +15,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------------filter((date_dim.d_year = 2000)) ----------------------PhysicalOlapScan[date_dim] --PhysicalResultSink -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject ------------hashJoin[INNER_JOIN] hashCondition=((ctr1.ctr_customer_sk = customer.c_customer_sk))otherCondition=() --------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query10.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query10.out index 62c923c29b..701e54cb82 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query10.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query10.out @@ -2,9 +2,9 @@ -- !ds_shape_10 -- PhysicalResultSink --PhysicalProject -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------hashAgg[GLOBAL] ------------PhysicalDistribute --------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query11.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query11.out index ee18391874..645b672533 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query11.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query11.out @@ -38,9 +38,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------------PhysicalProject ----------------------PhysicalOlapScan[customer] --PhysicalResultSink -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject ------------hashJoin[INNER_JOIN] hashCondition=((t_s_firstyear.customer_id = t_w_secyear.customer_id))otherCondition=((if((year_total > 0.00), (cast(year_total as DOUBLE) / cast(year_total as DOUBLE)), 0) > if((year_total > 0.00), (cast(year_total as DOUBLE) / cast(year_total as DOUBLE)), 0))) --------------PhysicalProject diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query12.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query12.out index cc63d3aa14..f20a1becc9 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query12.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query12.out @@ -1,12 +1,12 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_12 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------PhysicalWindow -------------PhysicalQuickSort +------------PhysicalQuickSort[LOCAL_SORT] --------------PhysicalDistribute ----------------hashAgg[GLOBAL] ------------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query14.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query14.out index fd080e2ecc..b8263da7ab 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query14.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query14.out @@ -87,9 +87,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ----------------------filter((date_dim.d_year <= 2001) and (date_dim.d_year >= 1999)) ------------------------PhysicalOlapScan[date_dim] ----PhysicalResultSink -------PhysicalTopN +------PhysicalTopN[MERGE_SORT] --------PhysicalDistribute -----------PhysicalTopN +----------PhysicalTopN[LOCAL_SORT] ------------PhysicalProject --------------hashAgg[GLOBAL] ----------------PhysicalDistribute @@ -254,9 +254,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ----------------------filter((date_dim.d_year <= 2001) and (date_dim.d_year >= 1999)) ------------------------PhysicalOlapScan[date_dim] ----PhysicalResultSink -------PhysicalTopN +------PhysicalTopN[MERGE_SORT] --------PhysicalDistribute -----------PhysicalTopN +----------PhysicalTopN[LOCAL_SORT] ------------hashJoin[INNER_JOIN] hashCondition=((ty_brand = ly_brand) and (ty_category = ly_category) and (ty_class = ly_class))otherCondition=() --------------PhysicalProject ----------------NestedLoopJoin[INNER_JOIN](cast(ty_sales as DOUBLE) > cast(average_sales as DOUBLE)) diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query15.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query15.out index 2a7e9897c5..2291446150 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query15.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query15.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_15 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query16.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query16.out index 01a55e611a..363da12511 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query16.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query16.out @@ -1,8 +1,8 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_16 -- PhysicalResultSink ---PhysicalTopN -----PhysicalTopN +--PhysicalTopN[MERGE_SORT] +----PhysicalTopN[LOCAL_SORT] ------hashAgg[DISTINCT_GLOBAL] --------PhysicalDistribute ----------hashAgg[DISTINCT_LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query17.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query17.out index 7d073ac5f4..0a1d9f2442 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query17.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query17.out @@ -2,9 +2,9 @@ -- !ds_shape_17 -- PhysicalResultSink --PhysicalProject -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------hashAgg[GLOBAL] ------------PhysicalDistribute --------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query18.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query18.out index d8d3d49c12..62991b6366 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query18.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query18.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_18 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashAgg[GLOBAL] ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query19.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query19.out index a0909c8bac..1a3cda920a 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query19.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query19.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_19 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashAgg[GLOBAL] ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query2.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query2.out index fb43ce4add..af16154cfe 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query2.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query2.out @@ -18,9 +18,9 @@ PhysicalCteAnchor ( cteId=CTEId#1 ) ----------------PhysicalProject ------------------PhysicalOlapScan[date_dim] --PhysicalResultSink -----PhysicalQuickSort +----PhysicalQuickSort[MERGE_SORT] ------PhysicalDistribute ---------PhysicalQuickSort +--------PhysicalQuickSort[LOCAL_SORT] ----------PhysicalProject ------------hashJoin[INNER_JOIN] hashCondition=((expr_cast(d_week_seq1 as BIGINT) = expr_(d_week_seq2 - 53)))otherCondition=() --------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query20.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query20.out index ffc14c2160..670332983b 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query20.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query20.out @@ -1,12 +1,12 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_20 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------PhysicalWindow -------------PhysicalQuickSort +------------PhysicalQuickSort[LOCAL_SORT] --------------PhysicalDistribute ----------------hashAgg[GLOBAL] ------------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query21.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query21.out index d19570684b..f84ec324ee 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query21.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query21.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_21 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------filter((if((inv_before > 0), (cast(inv_after as DOUBLE) / cast(inv_before as DOUBLE)), NULL) <= 1.5) and (if((inv_before > 0), (cast(inv_after as DOUBLE) / cast(inv_before as DOUBLE)), NULL) >= cast((2.000000 / 3.0) as DOUBLE))) ----------hashAgg[GLOBAL] ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query22.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query22.out index 8c5e3283e1..bd9b7d8773 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query22.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query22.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_22 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashAgg[GLOBAL] ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query23.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query23.out index 0f59b217de..96102c3276 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query23.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query23.out @@ -54,8 +54,8 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------------------PhysicalProject --------------------------------PhysicalOlapScan[customer] ----PhysicalResultSink -------PhysicalLimit ---------PhysicalLimit +------PhysicalLimit[GLOBAL] +--------PhysicalLimit[LOCAL] ----------hashAgg[GLOBAL] ------------PhysicalDistribute --------------hashAgg[LOCAL] @@ -148,9 +148,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------------------PhysicalProject --------------------------------PhysicalOlapScan[customer] ----PhysicalResultSink -------PhysicalTopN +------PhysicalTopN[MERGE_SORT] --------PhysicalDistribute -----------PhysicalTopN +----------PhysicalTopN[LOCAL_SORT] ------------PhysicalUnion --------------hashAgg[GLOBAL] ----------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query24.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query24.out index 6aceccd646..cae08667f7 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query24.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query24.out @@ -36,9 +36,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------PhysicalProject --------------------PhysicalOlapScan[store_returns] --PhysicalResultSink -----PhysicalQuickSort +----PhysicalQuickSort[MERGE_SORT] ------PhysicalDistribute ---------PhysicalQuickSort +--------PhysicalQuickSort[LOCAL_SORT] ----------PhysicalProject ------------NestedLoopJoin[INNER_JOIN](cast(paid as DOUBLE) > cast((0.05 * avg(cast(netpaid as DECIMALV3(38, 4)))) as DOUBLE)) --------------hashAgg[GLOBAL] @@ -94,9 +94,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------PhysicalProject --------------------PhysicalOlapScan[store_returns] --PhysicalResultSink -----PhysicalQuickSort +----PhysicalQuickSort[MERGE_SORT] ------PhysicalDistribute ---------PhysicalQuickSort +--------PhysicalQuickSort[LOCAL_SORT] ----------PhysicalProject ------------NestedLoopJoin[INNER_JOIN](cast(paid as DOUBLE) > cast((0.05 * avg(cast(netpaid as DECIMALV3(38, 4)))) as DOUBLE)) --------------hashAgg[GLOBAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query25.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query25.out index b6e51a1d8a..dce0204e58 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query25.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query25.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_25 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query26.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query26.out index cb045fc077..b495fa3ecf 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query26.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query26.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_26 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query27.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query27.out index 3ce04df2fd..472fd8e410 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query27.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query27.out @@ -2,9 +2,9 @@ -- !ds_shape_27 -- PhysicalResultSink --PhysicalProject -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject ------------hashAgg[GLOBAL] --------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query28.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query28.out index 191a71e5f1..d1cd54e3d2 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query28.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query28.out @@ -1,19 +1,19 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_28 -- PhysicalResultSink ---PhysicalLimit -----PhysicalLimit +--PhysicalLimit[GLOBAL] +----PhysicalLimit[LOCAL] ------PhysicalProject --------NestedLoopJoin[CROSS_JOIN] -----------PhysicalLimit +----------PhysicalLimit[LOCAL] ------------NestedLoopJoin[CROSS_JOIN] ---------------PhysicalLimit +--------------PhysicalLimit[LOCAL] ----------------NestedLoopJoin[CROSS_JOIN] -------------------PhysicalLimit +------------------PhysicalLimit[LOCAL] --------------------NestedLoopJoin[CROSS_JOIN] -----------------------PhysicalLimit +----------------------PhysicalLimit[LOCAL] ------------------------NestedLoopJoin[CROSS_JOIN] ---------------------------PhysicalLimit +--------------------------PhysicalLimit[LOCAL] ----------------------------hashAgg[GLOBAL] ------------------------------PhysicalDistribute --------------------------------hashAgg[LOCAL] @@ -21,7 +21,7 @@ PhysicalResultSink ------------------------------------filter(((((store_sales.ss_list_price >= 107.00) AND (store_sales.ss_list_price <= 117.00)) OR ((store_sales.ss_coupon_amt >= 1319.00) AND (store_sales.ss_coupon_amt <= 2319.00))) OR ((store_sales.ss_wholesale_cost >= 60.00) AND (store_sales.ss_wholesale_cost <= 80.00))) and (store_sales.ss_quantity <= 5) and (store_sales.ss_quantity >= 0)) --------------------------------------PhysicalOlapScan[store_sales] --------------------------PhysicalDistribute -----------------------------PhysicalLimit +----------------------------PhysicalLimit[LOCAL] ------------------------------hashAgg[GLOBAL] --------------------------------PhysicalDistribute ----------------------------------hashAgg[LOCAL] @@ -29,7 +29,7 @@ PhysicalResultSink --------------------------------------filter(((((store_sales.ss_list_price >= 23.00) AND (store_sales.ss_list_price <= 33.00)) OR ((store_sales.ss_coupon_amt >= 825.00) AND (store_sales.ss_coupon_amt <= 1825.00))) OR ((store_sales.ss_wholesale_cost >= 43.00) AND (store_sales.ss_wholesale_cost <= 63.00))) and (store_sales.ss_quantity <= 10) and (store_sales.ss_quantity >= 6)) ----------------------------------------PhysicalOlapScan[store_sales] ----------------------PhysicalDistribute -------------------------PhysicalLimit +------------------------PhysicalLimit[LOCAL] --------------------------hashAgg[GLOBAL] ----------------------------PhysicalDistribute ------------------------------hashAgg[LOCAL] @@ -37,7 +37,7 @@ PhysicalResultSink ----------------------------------filter(((((store_sales.ss_list_price >= 74.00) AND (store_sales.ss_list_price <= 84.00)) OR ((store_sales.ss_coupon_amt >= 4381.00) AND (store_sales.ss_coupon_amt <= 5381.00))) OR ((store_sales.ss_wholesale_cost >= 57.00) AND (store_sales.ss_wholesale_cost <= 77.00))) and (store_sales.ss_quantity <= 15) and (store_sales.ss_quantity >= 11)) ------------------------------------PhysicalOlapScan[store_sales] ------------------PhysicalDistribute ---------------------PhysicalLimit +--------------------PhysicalLimit[LOCAL] ----------------------hashAgg[GLOBAL] ------------------------PhysicalDistribute --------------------------hashAgg[LOCAL] @@ -45,7 +45,7 @@ PhysicalResultSink ------------------------------filter(((((store_sales.ss_list_price >= 89.00) AND (store_sales.ss_list_price <= 99.00)) OR ((store_sales.ss_coupon_amt >= 3117.00) AND (store_sales.ss_coupon_amt <= 4117.00))) OR ((store_sales.ss_wholesale_cost >= 68.00) AND (store_sales.ss_wholesale_cost <= 88.00))) and (store_sales.ss_quantity <= 20) and (store_sales.ss_quantity >= 16)) --------------------------------PhysicalOlapScan[store_sales] --------------PhysicalDistribute -----------------PhysicalLimit +----------------PhysicalLimit[LOCAL] ------------------hashAgg[GLOBAL] --------------------PhysicalDistribute ----------------------hashAgg[LOCAL] @@ -53,7 +53,7 @@ PhysicalResultSink --------------------------filter(((((store_sales.ss_list_price >= 58.00) AND (store_sales.ss_list_price <= 68.00)) OR ((store_sales.ss_coupon_amt >= 9402.00) AND (store_sales.ss_coupon_amt <= 10402.00))) OR ((store_sales.ss_wholesale_cost >= 38.00) AND (store_sales.ss_wholesale_cost <= 58.00))) and (store_sales.ss_quantity <= 25) and (store_sales.ss_quantity >= 21)) ----------------------------PhysicalOlapScan[store_sales] ----------PhysicalDistribute -------------PhysicalLimit +------------PhysicalLimit[LOCAL] --------------hashAgg[GLOBAL] ----------------PhysicalDistribute ------------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query29.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query29.out index eb9652b6b5..57a803bf43 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query29.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query29.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_29 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query3.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query3.out index b8dd6e6379..4ac7e3fb97 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query3.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query3.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_3 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashAgg[GLOBAL] ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query30.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query30.out index 114468ffaf..d24ec81845 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query30.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query30.out @@ -21,9 +21,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------PhysicalProject --------------------PhysicalOlapScan[customer_address] --PhysicalResultSink -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject ------------hashJoin[INNER_JOIN] hashCondition=((ctr1.ctr_state = ctr2.ctr_state))otherCondition=((cast(ctr_total_return as DOUBLE) > cast((avg(cast(ctr_total_return as DECIMALV3(38, 4))) * 1.2) as DOUBLE))) --------------PhysicalProject diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query31.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query31.out index 9df9c5a744..0bfa56bdde 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query31.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query31.out @@ -39,9 +39,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------PhysicalProject --------------------PhysicalOlapScan[customer_address] ----PhysicalResultSink -------PhysicalQuickSort +------PhysicalQuickSort[MERGE_SORT] --------PhysicalDistribute -----------PhysicalQuickSort +----------PhysicalQuickSort[LOCAL_SORT] ------------PhysicalProject --------------hashJoin[INNER_JOIN] hashCondition=((ws1.ca_county = ws3.ca_county))otherCondition=((if((web_sales > 0.00), (cast(web_sales as DOUBLE) / cast(web_sales as DOUBLE)), NULL) > if((store_sales > 0.00), (cast(store_sales as DOUBLE) / cast(store_sales as DOUBLE)), NULL))) ----------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query32.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query32.out index c3451a1452..be92e351c0 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query32.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query32.out @@ -1,15 +1,15 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_32 -- PhysicalResultSink ---PhysicalLimit -----PhysicalLimit +--PhysicalLimit[GLOBAL] +----PhysicalLimit[LOCAL] ------hashAgg[GLOBAL] --------PhysicalDistribute ----------hashAgg[LOCAL] ------------PhysicalProject --------------filter((cast(cs_ext_discount_amt as DECIMALV3(38, 5)) > (1.3 * avg(cast(cs_ext_discount_amt as DECIMALV3(9, 4))) OVER(PARTITION BY i_item_sk)))) ----------------PhysicalWindow -------------------PhysicalQuickSort +------------------PhysicalQuickSort[LOCAL_SORT] --------------------PhysicalDistribute ----------------------PhysicalProject ------------------------hashJoin[INNER_JOIN] hashCondition=((date_dim.d_date_sk = catalog_sales.cs_sold_date_sk))otherCondition=() diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query33.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query33.out index 09bf5a1d2a..6995aed8d5 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query33.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query33.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_33 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query34.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query34.out index 10f1443302..2865b49325 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query34.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query34.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_34 -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------PhysicalProject ----------hashJoin[INNER_JOIN] hashCondition=((dn.ss_customer_sk = customer.c_customer_sk))otherCondition=() ------------PhysicalProject diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query35.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query35.out index c4edf4f650..ddab6d5db4 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query35.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query35.out @@ -2,9 +2,9 @@ -- !ds_shape_35 -- PhysicalResultSink --PhysicalProject -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------hashAgg[GLOBAL] ------------PhysicalDistribute --------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query36.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query36.out index 88fb5809c0..3bdfcf5a61 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query36.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query36.out @@ -2,12 +2,12 @@ -- !ds_shape_36 -- PhysicalResultSink --PhysicalProject -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject ------------PhysicalWindow ---------------PhysicalQuickSort +--------------PhysicalQuickSort[LOCAL_SORT] ----------------PhysicalDistribute ------------------PhysicalProject --------------------hashAgg[GLOBAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query37.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query37.out index 70d5ec9f5a..73d039c614 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query37.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query37.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_37 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query38.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query38.out index b110f03b16..ce02d06e17 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query38.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query38.out @@ -1,8 +1,8 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_38 -- PhysicalResultSink ---PhysicalLimit -----PhysicalLimit +--PhysicalLimit[GLOBAL] +----PhysicalLimit[LOCAL] ------hashAgg[GLOBAL] --------PhysicalDistribute ----------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query39.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query39.out index f8a43add21..f18a957943 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query39.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query39.out @@ -24,9 +24,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------------PhysicalProject ----------------------PhysicalOlapScan[item] --PhysicalResultSink -----PhysicalQuickSort +----PhysicalQuickSort[MERGE_SORT] ------PhysicalDistribute ---------PhysicalQuickSort +--------PhysicalQuickSort[LOCAL_SORT] ----------PhysicalProject ------------hashJoin[INNER_JOIN] hashCondition=((inv1.i_item_sk = inv2.i_item_sk) and (inv1.w_warehouse_sk = inv2.w_warehouse_sk))otherCondition=() --------------PhysicalDistribute @@ -63,9 +63,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------------PhysicalProject ----------------------PhysicalOlapScan[item] --PhysicalResultSink -----PhysicalQuickSort +----PhysicalQuickSort[MERGE_SORT] ------PhysicalDistribute ---------PhysicalQuickSort +--------PhysicalQuickSort[LOCAL_SORT] ----------PhysicalProject ------------hashJoin[INNER_JOIN] hashCondition=((inv1.i_item_sk = inv2.i_item_sk) and (inv1.w_warehouse_sk = inv2.w_warehouse_sk))otherCondition=() --------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query4.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query4.out index 95d9e38065..195492c087 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query4.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query4.out @@ -55,9 +55,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------------PhysicalProject ----------------------PhysicalOlapScan[customer] --PhysicalResultSink -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject ------------hashJoin[INNER_JOIN] hashCondition=((t_s_firstyear.customer_id = t_w_secyear.customer_id))otherCondition=((if((year_total > 0.000000), (cast(year_total as DOUBLE) / cast(year_total as DOUBLE)), NULL) > if((year_total > 0.000000), (cast(year_total as DOUBLE) / cast(year_total as DOUBLE)), NULL))) --------------PhysicalProject diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query40.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query40.out index fd52637cfb..4d33ee5ecc 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query40.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query40.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_40 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query41.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query41.out index ce2bf7c139..fd6198a810 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query41.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query41.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_41 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query42.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query42.out index ee0b3b62dc..4b459677a0 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query42.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query42.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_42 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query43.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query43.out index ff88ac67fd..2de89e8dfb 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query43.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query43.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_43 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query44.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query44.out index 968e74869b..2cdf10e959 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query44.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query44.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_44 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashJoin[INNER_JOIN] hashCondition=((asceding.rnk = descending.rnk))otherCondition=() ------------PhysicalDistribute @@ -15,9 +15,9 @@ PhysicalResultSink --------------------PhysicalProject ----------------------filter((rnk < 11)) ------------------------PhysicalWindow ---------------------------PhysicalQuickSort +--------------------------PhysicalQuickSort[MERGE_SORT] ----------------------------PhysicalDistribute -------------------------------PhysicalQuickSort +------------------------------PhysicalQuickSort[LOCAL_SORT] --------------------------------PhysicalPartitionTopN ----------------------------------PhysicalProject ------------------------------------NestedLoopJoin[INNER_JOIN](cast(rank_col as DOUBLE) > cast((0.9 * rank_col) as DOUBLE)) @@ -46,9 +46,9 @@ PhysicalResultSink ------------------PhysicalProject --------------------filter((rnk < 11)) ----------------------PhysicalWindow -------------------------PhysicalQuickSort +------------------------PhysicalQuickSort[MERGE_SORT] --------------------------PhysicalDistribute -----------------------------PhysicalQuickSort +----------------------------PhysicalQuickSort[LOCAL_SORT] ------------------------------PhysicalPartitionTopN --------------------------------PhysicalProject ----------------------------------NestedLoopJoin[INNER_JOIN](cast(rank_col as DOUBLE) > cast((0.9 * rank_col) as DOUBLE)) diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query45.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query45.out index f4cc293d14..f03f89c964 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query45.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query45.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_45 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query46.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query46.out index 33785ed9ae..a8ffcefc85 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query46.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query46.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_46 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashJoin[INNER_JOIN] hashCondition=((customer.c_current_addr_sk = current_addr.ca_address_sk))otherCondition=(( not (ca_city = bought_city))) ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query47.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query47.out index c6251b9449..e20ba37e0e 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query47.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query47.out @@ -4,9 +4,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --PhysicalCteProducer ( cteId=CTEId#0 ) ----PhysicalProject ------PhysicalWindow ---------PhysicalQuickSort +--------PhysicalQuickSort[LOCAL_SORT] ----------PhysicalWindow -------------PhysicalQuickSort +------------PhysicalQuickSort[LOCAL_SORT] --------------PhysicalDistribute ----------------PhysicalProject ------------------hashAgg[GLOBAL] @@ -31,9 +31,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------------------------PhysicalOlapScan[item] --PhysicalResultSink ----PhysicalProject -------PhysicalTopN +------PhysicalTopN[MERGE_SORT] --------PhysicalDistribute -----------PhysicalTopN +----------PhysicalTopN[LOCAL_SORT] ------------PhysicalProject --------------hashJoin[INNER_JOIN] hashCondition=((v1.i_brand = v1_lag.i_brand) and (v1.i_category = v1_lag.i_category) and (v1.rn = expr_(rn + 1)) and (v1.s_company_name = v1_lag.s_company_name) and (v1.s_store_name = v1_lag.s_store_name))otherCondition=() ----------------hashJoin[INNER_JOIN] hashCondition=((v1.i_brand = v1_lead.i_brand) and (v1.i_category = v1_lead.i_category) and (v1.rn = expr_(rn - 1)) and (v1.s_company_name = v1_lead.s_company_name) and (v1.s_store_name = v1_lead.s_store_name))otherCondition=() diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query49.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query49.out index a8ab13bb0f..079a67186e 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query49.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query49.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_49 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] @@ -12,11 +12,11 @@ PhysicalResultSink ------------------PhysicalProject --------------------filter(((return_rank <= 10) OR (currency_rank <= 10))) ----------------------PhysicalWindow -------------------------PhysicalQuickSort +------------------------PhysicalQuickSort[LOCAL_SORT] --------------------------PhysicalWindow -----------------------------PhysicalQuickSort +----------------------------PhysicalQuickSort[MERGE_SORT] ------------------------------PhysicalDistribute ---------------------------------PhysicalQuickSort +--------------------------------PhysicalQuickSort[LOCAL_SORT] ----------------------------------PhysicalProject ------------------------------------hashAgg[GLOBAL] --------------------------------------PhysicalDistribute @@ -38,11 +38,11 @@ PhysicalResultSink ------------------PhysicalProject --------------------filter(((return_rank <= 10) OR (currency_rank <= 10))) ----------------------PhysicalWindow -------------------------PhysicalQuickSort +------------------------PhysicalQuickSort[LOCAL_SORT] --------------------------PhysicalWindow -----------------------------PhysicalQuickSort +----------------------------PhysicalQuickSort[MERGE_SORT] ------------------------------PhysicalDistribute ---------------------------------PhysicalQuickSort +--------------------------------PhysicalQuickSort[LOCAL_SORT] ----------------------------------PhysicalProject ------------------------------------hashAgg[GLOBAL] --------------------------------------PhysicalDistribute @@ -64,11 +64,11 @@ PhysicalResultSink ------------------PhysicalProject --------------------filter(((return_rank <= 10) OR (currency_rank <= 10))) ----------------------PhysicalWindow -------------------------PhysicalQuickSort +------------------------PhysicalQuickSort[LOCAL_SORT] --------------------------PhysicalWindow -----------------------------PhysicalQuickSort +----------------------------PhysicalQuickSort[MERGE_SORT] ------------------------------PhysicalDistribute ---------------------------------PhysicalQuickSort +--------------------------------PhysicalQuickSort[LOCAL_SORT] ----------------------------------PhysicalProject ------------------------------------hashAgg[GLOBAL] --------------------------------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query5.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query5.out index 58cbdf6bfd..d495010b27 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query5.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query5.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_5 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashAgg[GLOBAL] ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query50.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query50.out index 7e5f0eb8fa..b1f5db0557 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query50.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query50.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_50 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query51.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query51.out index 0d9179ef40..2d409b1970 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query51.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query51.out @@ -1,20 +1,20 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_51 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------filter((web_cumulative > store_cumulative)) ------------PhysicalWindow ---------------PhysicalQuickSort +--------------PhysicalQuickSort[LOCAL_SORT] ----------------PhysicalDistribute ------------------PhysicalProject --------------------hashJoin[FULL_OUTER_JOIN] hashCondition=((web.d_date = store.d_date) and (web.item_sk = store.item_sk))otherCondition=() ----------------------PhysicalDistribute ------------------------PhysicalProject --------------------------PhysicalWindow -----------------------------PhysicalQuickSort +----------------------------PhysicalQuickSort[LOCAL_SORT] ------------------------------PhysicalDistribute --------------------------------PhysicalProject ----------------------------------hashAgg[GLOBAL] @@ -31,7 +31,7 @@ PhysicalResultSink ----------------------PhysicalDistribute ------------------------PhysicalProject --------------------------PhysicalWindow -----------------------------PhysicalQuickSort +----------------------------PhysicalQuickSort[LOCAL_SORT] ------------------------------PhysicalDistribute --------------------------------PhysicalProject ----------------------------------hashAgg[GLOBAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query52.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query52.out index f3c19be2ce..3a03bb3261 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query52.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query52.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_52 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashAgg[GLOBAL] ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query53.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query53.out index e2dc0a8112..a99eb55b98 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query53.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query53.out @@ -1,13 +1,13 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_53 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------filter((if((avg_quarterly_sales > 0.0000), (abs((cast(sum_sales as DOUBLE) - cast(avg_quarterly_sales as DOUBLE))) / cast(avg_quarterly_sales as DOUBLE)), NULL) > 0.1)) ------------PhysicalWindow ---------------PhysicalQuickSort +--------------PhysicalQuickSort[LOCAL_SORT] ----------------PhysicalDistribute ------------------PhysicalProject --------------------hashAgg[GLOBAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query54.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query54.out index 7384490c69..d90cf7a7ed 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query54.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query54.out @@ -2,9 +2,9 @@ -- !ds_shape_54 -- PhysicalResultSink --PhysicalProject -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------hashAgg[GLOBAL] ------------PhysicalDistribute --------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query55.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query55.out index bceff84507..643871af39 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query55.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query55.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_55 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashAgg[GLOBAL] ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query56.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query56.out index 4554f7f78f..bcd9be985e 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query56.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query56.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_56 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query57.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query57.out index efeca69dc7..bc7b55585b 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query57.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query57.out @@ -4,9 +4,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --PhysicalCteProducer ( cteId=CTEId#0 ) ----PhysicalProject ------PhysicalWindow ---------PhysicalQuickSort +--------PhysicalQuickSort[LOCAL_SORT] ----------PhysicalWindow -------------PhysicalQuickSort +------------PhysicalQuickSort[LOCAL_SORT] --------------PhysicalDistribute ----------------PhysicalProject ------------------hashAgg[GLOBAL] @@ -31,9 +31,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------------------------PhysicalOlapScan[item] --PhysicalResultSink ----PhysicalProject -------PhysicalTopN +------PhysicalTopN[MERGE_SORT] --------PhysicalDistribute -----------PhysicalTopN +----------PhysicalTopN[LOCAL_SORT] ------------PhysicalProject --------------hashJoin[INNER_JOIN] hashCondition=((v1.cc_name = v1_lag.cc_name) and (v1.i_brand = v1_lag.i_brand) and (v1.i_category = v1_lag.i_category) and (v1.rn = expr_(rn + 1)))otherCondition=() ----------------hashJoin[INNER_JOIN] hashCondition=((v1.cc_name = v1_lead.cc_name) and (v1.i_brand = v1_lead.i_brand) and (v1.i_category = v1_lead.i_category) and (v1.rn = expr_(rn - 1)))otherCondition=() diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query58.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query58.out index d0ac61aee6..055f2e5f39 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query58.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query58.out @@ -2,9 +2,9 @@ -- !ds_shape_58 -- PhysicalResultSink --PhysicalProject -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject ------------hashJoin[INNER_JOIN] hashCondition=((ss_items.item_id = ws_items.item_id))otherCondition=((cast(cs_item_rev as DOUBLE) <= cast((1.1 * ws_item_rev) as DOUBLE)) and (cast(cs_item_rev as DOUBLE) >= cast((0.9 * ws_item_rev) as DOUBLE)) and (cast(ss_item_rev as DOUBLE) <= cast((1.1 * ws_item_rev) as DOUBLE)) and (cast(ss_item_rev as DOUBLE) >= cast((0.9 * ws_item_rev) as DOUBLE)) and (cast(ws_item_rev as DOUBLE) <= cast((1.1 * cs_item_rev) as DOUBLE)) and (cast(ws_item_rev as DOUBLE) <= cast((1.1 * ss_item_rev) as DOUBLE)) and (cast(ws_item_rev as DOUBLE) >= cast((0.9 * cs_item_rev) as DOUBLE)) and (cast(ws_item_rev as DOUBLE) >= cast((0.9 * ss_item_rev) as DOUBLE))) --------------PhysicalProject diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query59.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query59.out index 83a98a113c..df2399cf4a 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query59.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query59.out @@ -14,9 +14,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------PhysicalOlapScan[date_dim] --PhysicalResultSink ----PhysicalProject -------PhysicalTopN +------PhysicalTopN[MERGE_SORT] --------PhysicalDistribute -----------PhysicalTopN +----------PhysicalTopN[LOCAL_SORT] ------------PhysicalProject --------------hashJoin[INNER_JOIN] hashCondition=((expr_cast(d_week_seq1 as BIGINT) = expr_(d_week_seq2 - 52)) and (y.s_store_id1 = x.s_store_id2))otherCondition=() ----------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query6.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query6.out index 0fe5f610ea..a6495f7e2d 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query6.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query6.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_6 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------filter((cnt >= 10)) ------------hashAgg[GLOBAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query60.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query60.out index 80fe9ec50b..508c0607d9 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query60.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query60.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_60 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query61.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query61.out index 952a849fa0..7ca0aac486 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query61.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query61.out @@ -2,8 +2,8 @@ -- !ds_shape_61 -- PhysicalResultSink --PhysicalProject -----PhysicalTopN -------PhysicalTopN +----PhysicalTopN[MERGE_SORT] +------PhysicalTopN[LOCAL_SORT] --------NestedLoopJoin[CROSS_JOIN] ----------hashAgg[GLOBAL] ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query62.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query62.out index 5ca2e7cf98..684b83de6a 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query62.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query62.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_62 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query63.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query63.out index d236b08d5b..5f35925286 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query63.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query63.out @@ -1,13 +1,13 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_63 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------filter((if((avg_monthly_sales > 0.0000), (abs((cast(sum_sales as DOUBLE) - cast(avg_monthly_sales as DOUBLE))) / cast(avg_monthly_sales as DOUBLE)), NULL) > 0.1)) ------------PhysicalWindow ---------------PhysicalQuickSort +--------------PhysicalQuickSort[LOCAL_SORT] ----------------PhysicalDistribute ------------------PhysicalProject --------------------hashAgg[GLOBAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query64.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query64.out index f296828f39..bbdaf2a791 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query64.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query64.out @@ -111,9 +111,9 @@ PhysicalCteAnchor ( cteId=CTEId#1 ) ------------------PhysicalProject --------------------PhysicalOlapScan[date_dim] --PhysicalResultSink -----PhysicalQuickSort +----PhysicalQuickSort[MERGE_SORT] ------PhysicalDistribute ---------PhysicalQuickSort +--------PhysicalQuickSort[LOCAL_SORT] ----------PhysicalProject ------------hashJoin[INNER_JOIN] hashCondition=((cs1.item_sk = cs2.item_sk) and (cs1.store_name = cs2.store_name) and (cs1.store_zip = cs2.store_zip))otherCondition=((cs2.cnt <= cs1.cnt)) --------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query65.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query65.out index 589c259ea4..a371c540d7 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query65.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query65.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_65 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashJoin[INNER_JOIN] hashCondition=((item.i_item_sk = sc.ss_item_sk))otherCondition=() ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query66.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query66.out index fa91fe18a4..4ee06f0801 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query66.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query66.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_66 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query67.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query67.out index 43b7d32bf9..c0cda8bc0c 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query67.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query67.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_67 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------filter((rk <= 100)) ----------PhysicalWindow ------------PhysicalPartitionTopN diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query68.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query68.out index b39f1bab1a..d260ce0313 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query68.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query68.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_68 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashJoin[INNER_JOIN] hashCondition=((customer.c_current_addr_sk = current_addr.ca_address_sk))otherCondition=(( not (ca_city = bought_city))) ------------PhysicalProject diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query69.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query69.out index 165c8346e2..da3031f82c 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query69.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query69.out @@ -2,9 +2,9 @@ -- !ds_shape_69 -- PhysicalResultSink --PhysicalProject -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------hashAgg[GLOBAL] ------------PhysicalDistribute --------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query7.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query7.out index 7a6fb1ff5f..d367161211 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query7.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query7.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_7 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query70.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query70.out index f918b12281..be1b1fdc79 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query70.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query70.out @@ -2,12 +2,12 @@ -- !ds_shape_70 -- PhysicalResultSink --PhysicalProject -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject ------------PhysicalWindow ---------------PhysicalQuickSort +--------------PhysicalQuickSort[LOCAL_SORT] ----------------PhysicalDistribute ------------------PhysicalProject --------------------hashAgg[GLOBAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query71.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query71.out index 22f0defabe..c290b168ae 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query71.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query71.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_71 -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------PhysicalProject ----------hashAgg[GLOBAL] ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query72.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query72.out index ffbb06a508..e0b738a33c 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query72.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query72.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_72 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query73.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query73.out index e2e1d8f5c1..53f5e41412 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query73.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query73.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_73 -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------PhysicalProject ----------hashJoin[INNER_JOIN] hashCondition=((dj.ss_customer_sk = customer.c_customer_sk))otherCondition=() ------------PhysicalProject diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query74.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query74.out index 81949aeca4..d075079ea8 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query74.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query74.out @@ -31,9 +31,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------PhysicalDistribute --------------------PhysicalOlapScan[customer] --PhysicalResultSink -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject ------------hashJoin[INNER_JOIN] hashCondition=((t_s_firstyear.customer_id = t_w_firstyear.customer_id))otherCondition=((if((year_total > 0.00), (cast(year_total as DECIMALV3(13, 8)) / year_total), NULL) > if((year_total > 0.00), (cast(year_total as DECIMALV3(13, 8)) / year_total), NULL))) --------------hashJoin[INNER_JOIN] hashCondition=((t_s_firstyear.customer_id = t_w_secyear.customer_id))otherCondition=() diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query75.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query75.out index fb9d10e30f..f188a63175 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query75.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query75.out @@ -67,9 +67,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------------------------filter(d_year IN (2001, 2002)) ----------------------------------PhysicalOlapScan[date_dim] --PhysicalResultSink -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject ------------hashJoin[INNER_JOIN] hashCondition=((curr_yr.i_brand_id = prev_yr.i_brand_id) and (curr_yr.i_category_id = prev_yr.i_category_id) and (curr_yr.i_class_id = prev_yr.i_class_id) and (curr_yr.i_manufact_id = prev_yr.i_manufact_id))otherCondition=(((cast(cast(sales_cnt as DECIMALV3(17, 2)) as DECIMALV3(23, 8)) / cast(sales_cnt as DECIMALV3(17, 2))) < 0.900000)) --------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query76.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query76.out index 67a08ffc12..e397c8c30a 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query76.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query76.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_76 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query77.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query77.out index 117b6b2988..0c80dfd62a 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query77.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query77.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_77 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashAgg[GLOBAL] ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query78.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query78.out index ec31b9868f..0323a2f629 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query78.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query78.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_78 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------filter(((coalesce(ws_qty, 0) > 0) OR (coalesce(cs_qty, 0) > 0))) ------------hashJoin[LEFT_OUTER_JOIN] hashCondition=((cs.cs_customer_sk = ss.ss_customer_sk) and (cs.cs_item_sk = ss.ss_item_sk) and (cs.cs_sold_year = ss.ss_sold_year))otherCondition=() diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query79.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query79.out index b9804e5ba3..cc78d62071 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query79.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query79.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_79 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashJoin[INNER_JOIN] hashCondition=((ms.ss_customer_sk = customer.c_customer_sk))otherCondition=() ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query8.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query8.out index 0fa9438af1..e8922e8c0f 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query8.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query8.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_8 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query80.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query80.out index a6377a2ddf..5ce5de041e 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query80.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query80.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_80 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashAgg[GLOBAL] ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query81.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query81.out index 59468a5e58..61e82c6b44 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query81.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query81.out @@ -21,9 +21,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------PhysicalProject --------------------PhysicalOlapScan[customer_address] --PhysicalResultSink -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject ------------hashJoin[INNER_JOIN] hashCondition=((ctr1.ctr_state = ctr2.ctr_state))otherCondition=((cast(ctr_total_return as DOUBLE) > cast((avg(cast(ctr_total_return as DECIMALV3(38, 4))) * 1.2) as DOUBLE))) --------------PhysicalProject diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query82.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query82.out index 1fbc26430f..9a9d5630e6 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query82.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query82.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_82 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query83.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query83.out index 4d3363e6c4..660a658861 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query83.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query83.out @@ -2,9 +2,9 @@ -- !ds_shape_83 -- PhysicalResultSink --PhysicalProject -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject ------------hashJoin[INNER_JOIN] hashCondition=((sr_items.item_id = cr_items.item_id))otherCondition=() --------------PhysicalProject diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query84.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query84.out index 22cffae451..e57dc5e852 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query84.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query84.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_84 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashJoin[INNER_JOIN] hashCondition=((store_returns.sr_cdemo_sk = customer_demographics.cd_demo_sk))otherCondition=() ------------PhysicalProject diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query85.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query85.out index 738005ee2c..2db1070fca 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query85.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query85.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_85 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashAgg[GLOBAL] ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query86.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query86.out index 85fca75f79..50c1cc760c 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query86.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query86.out @@ -2,12 +2,12 @@ -- !ds_shape_86 -- PhysicalResultSink --PhysicalProject -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject ------------PhysicalWindow ---------------PhysicalQuickSort +--------------PhysicalQuickSort[LOCAL_SORT] ----------------PhysicalDistribute ------------------PhysicalProject --------------------hashAgg[GLOBAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query89.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query89.out index a543329a65..ecebf270a6 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query89.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query89.out @@ -2,13 +2,13 @@ -- !ds_shape_89 -- PhysicalResultSink --PhysicalProject -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject ------------filter((if(( not (avg_monthly_sales = 0.0000)), (abs((cast(sum_sales as DOUBLE) - cast(avg_monthly_sales as DOUBLE))) / cast(avg_monthly_sales as DOUBLE)), NULL) > 0.1)) --------------PhysicalWindow -----------------PhysicalQuickSort +----------------PhysicalQuickSort[LOCAL_SORT] ------------------PhysicalDistribute --------------------PhysicalProject ----------------------hashAgg[GLOBAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query90.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query90.out index b960ee7c92..f76b7b35a7 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query90.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query90.out @@ -1,8 +1,8 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_90 -- PhysicalResultSink ---PhysicalTopN -----PhysicalTopN +--PhysicalTopN[MERGE_SORT] +----PhysicalTopN[LOCAL_SORT] ------PhysicalProject --------NestedLoopJoin[CROSS_JOIN] ----------hashAgg[GLOBAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query91.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query91.out index cb4a9931b3..120bcaba97 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query91.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query91.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_91 -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------PhysicalProject ----------hashAgg[GLOBAL] ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query92.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query92.out index c3c59baa27..fcdca1b4d9 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query92.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query92.out @@ -1,15 +1,15 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_92 -- PhysicalResultSink ---PhysicalTopN -----PhysicalTopN +--PhysicalTopN[MERGE_SORT] +----PhysicalTopN[LOCAL_SORT] ------hashAgg[GLOBAL] --------PhysicalDistribute ----------hashAgg[LOCAL] ------------PhysicalProject --------------filter((cast(ws_ext_discount_amt as DECIMALV3(38, 5)) > (1.3 * avg(cast(ws_ext_discount_amt as DECIMALV3(9, 4))) OVER(PARTITION BY i_item_sk)))) ----------------PhysicalWindow -------------------PhysicalQuickSort +------------------PhysicalQuickSort[LOCAL_SORT] --------------------PhysicalDistribute ----------------------PhysicalProject ------------------------hashJoin[INNER_JOIN] hashCondition=((date_dim.d_date_sk = web_sales.ws_sold_date_sk))otherCondition=() diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query93.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query93.out index 6a778c2094..58329f5a05 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query93.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query93.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_93 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query94.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query94.out index dc502f11b1..ec08722f34 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query94.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query94.out @@ -1,8 +1,8 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_94 -- PhysicalResultSink ---PhysicalTopN -----PhysicalTopN +--PhysicalTopN[MERGE_SORT] +----PhysicalTopN[LOCAL_SORT] ------hashAgg[DISTINCT_GLOBAL] --------PhysicalDistribute ----------hashAgg[DISTINCT_LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query95.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query95.out index 6d9ffab7d5..4b2bd6131d 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query95.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query95.out @@ -11,8 +11,8 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ----------PhysicalProject ------------PhysicalOlapScan[web_sales] --PhysicalResultSink -----PhysicalTopN -------PhysicalTopN +----PhysicalTopN[MERGE_SORT] +------PhysicalTopN[LOCAL_SORT] --------hashAgg[DISTINCT_GLOBAL] ----------PhysicalDistribute ------------hashAgg[DISTINCT_LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query96.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query96.out index 0a770c1079..896d70bd2b 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query96.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query96.out @@ -1,8 +1,8 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_96 -- PhysicalResultSink ---PhysicalTopN -----PhysicalTopN +--PhysicalTopN[MERGE_SORT] +----PhysicalTopN[LOCAL_SORT] ------hashAgg[GLOBAL] --------PhysicalDistribute ----------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query97.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query97.out index b3a3d68d23..626e219d34 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query97.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query97.out @@ -1,8 +1,8 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_97 -- PhysicalResultSink ---PhysicalLimit -----PhysicalLimit +--PhysicalLimit[GLOBAL] +----PhysicalLimit[LOCAL] ------hashAgg[GLOBAL] --------PhysicalDistribute ----------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query98.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query98.out index 82ee8db96c..7f20168175 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query98.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query98.out @@ -1,12 +1,12 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_98 -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------PhysicalProject ----------PhysicalWindow -------------PhysicalQuickSort +------------PhysicalQuickSort[LOCAL_SORT] --------------PhysicalDistribute ----------------hashAgg[GLOBAL] ------------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query99.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query99.out index 9eed8eb347..806e90647c 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query99.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query99.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_99 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query1.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query1.out index 11eb0d9c9b..d9a0bb579b 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query1.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query1.out @@ -15,9 +15,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------------filter((date_dim.d_year = 2000)) ----------------------PhysicalOlapScan[date_dim] --PhysicalResultSink -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject ------------hashJoin[INNER_JOIN] hashCondition=((ctr1.ctr_customer_sk = customer.c_customer_sk))otherCondition=() --------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query10.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query10.out index c4a144a545..3a23b11e57 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query10.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query10.out @@ -2,9 +2,9 @@ -- !ds_shape_10 -- PhysicalResultSink --PhysicalProject -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------hashAgg[GLOBAL] ------------PhysicalDistribute --------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query11.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query11.out index 661b975e08..95346d44d2 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query11.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query11.out @@ -38,9 +38,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------------PhysicalProject ----------------------PhysicalOlapScan[customer] --PhysicalResultSink -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject ------------hashJoin[INNER_JOIN] hashCondition=((t_s_firstyear.customer_id = t_w_secyear.customer_id))otherCondition=((if((year_total > 0.00), (cast(year_total as DOUBLE) / cast(year_total as DOUBLE)), 0) > if((year_total > 0.00), (cast(year_total as DOUBLE) / cast(year_total as DOUBLE)), 0))) --------------PhysicalProject diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query12.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query12.out index c1f36374be..3900466d2b 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query12.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query12.out @@ -1,12 +1,12 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_12 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------PhysicalWindow -------------PhysicalQuickSort +------------PhysicalQuickSort[LOCAL_SORT] --------------PhysicalDistribute ----------------hashAgg[GLOBAL] ------------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query14.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query14.out index 490557556d..56a114cf96 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query14.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query14.out @@ -89,9 +89,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ----------------------filter((date_dim.d_year <= 2002) and (date_dim.d_year >= 2000)) ------------------------PhysicalOlapScan[date_dim] ----PhysicalResultSink -------PhysicalTopN +------PhysicalTopN[MERGE_SORT] --------PhysicalDistribute -----------PhysicalTopN +----------PhysicalTopN[LOCAL_SORT] ------------PhysicalProject --------------hashAgg[GLOBAL] ----------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query15.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query15.out index 8b0f3345ed..865ce1e148 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query15.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query15.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_15 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query16.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query16.out index 18b3bffdae..534a8c0f20 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query16.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query16.out @@ -1,8 +1,8 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_16 -- PhysicalResultSink ---PhysicalTopN -----PhysicalTopN +--PhysicalTopN[MERGE_SORT] +----PhysicalTopN[LOCAL_SORT] ------hashAgg[DISTINCT_GLOBAL] --------PhysicalDistribute ----------hashAgg[DISTINCT_LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query17.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query17.out index 7d073ac5f4..0a1d9f2442 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query17.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query17.out @@ -2,9 +2,9 @@ -- !ds_shape_17 -- PhysicalResultSink --PhysicalProject -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------hashAgg[GLOBAL] ------------PhysicalDistribute --------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query18.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query18.out index 212241e2d6..f9581a9be6 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query18.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query18.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_18 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashAgg[GLOBAL] ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query19.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query19.out index 156e41249b..3adb9a508c 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query19.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query19.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_19 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashAgg[GLOBAL] ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query2.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query2.out index fb43ce4add..af16154cfe 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query2.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query2.out @@ -18,9 +18,9 @@ PhysicalCteAnchor ( cteId=CTEId#1 ) ----------------PhysicalProject ------------------PhysicalOlapScan[date_dim] --PhysicalResultSink -----PhysicalQuickSort +----PhysicalQuickSort[MERGE_SORT] ------PhysicalDistribute ---------PhysicalQuickSort +--------PhysicalQuickSort[LOCAL_SORT] ----------PhysicalProject ------------hashJoin[INNER_JOIN] hashCondition=((expr_cast(d_week_seq1 as BIGINT) = expr_(d_week_seq2 - 53)))otherCondition=() --------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query20.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query20.out index ac753d9b07..cd37227b8b 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query20.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query20.out @@ -1,12 +1,12 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_20 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------PhysicalWindow -------------PhysicalQuickSort +------------PhysicalQuickSort[LOCAL_SORT] --------------PhysicalDistribute ----------------hashAgg[GLOBAL] ------------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query21.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query21.out index fcbd2facf0..9b679a5643 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query21.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query21.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_21 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------filter((if((inv_before > 0), (cast(inv_after as DOUBLE) / cast(inv_before as DOUBLE)), NULL) <= 1.5) and (if((inv_before > 0), (cast(inv_after as DOUBLE) / cast(inv_before as DOUBLE)), NULL) >= cast((2.000000 / 3.0) as DOUBLE))) ----------hashAgg[GLOBAL] ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query22.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query22.out index 1a38000011..40b5cf6891 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query22.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query22.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_22 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashAgg[GLOBAL] ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query23.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query23.out index 35891e403c..651f5cde30 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query23.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query23.out @@ -54,8 +54,8 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------------------PhysicalProject --------------------------------PhysicalOlapScan[customer] ----PhysicalResultSink -------PhysicalLimit ---------PhysicalLimit +------PhysicalLimit[GLOBAL] +--------PhysicalLimit[LOCAL] ----------hashAgg[GLOBAL] ------------PhysicalDistribute --------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query24.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query24.out index 4e894ab30a..61e8e7e6ba 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query24.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query24.out @@ -36,9 +36,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------PhysicalProject --------------------PhysicalOlapScan[store_returns] --PhysicalResultSink -----PhysicalQuickSort +----PhysicalQuickSort[MERGE_SORT] ------PhysicalDistribute ---------PhysicalQuickSort +--------PhysicalQuickSort[LOCAL_SORT] ----------PhysicalProject ------------NestedLoopJoin[INNER_JOIN](cast(paid as DOUBLE) > cast((0.05 * avg(cast(netpaid as DECIMALV3(38, 4)))) as DOUBLE)) --------------hashAgg[GLOBAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query25.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query25.out index 742a1f10b6..f61b5e790c 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query25.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query25.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_25 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query26.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query26.out index 14dc817252..4f74381a99 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query26.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query26.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_26 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query27.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query27.out index caceba8398..34fb5e3064 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query27.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query27.out @@ -2,9 +2,9 @@ -- !ds_shape_27 -- PhysicalResultSink --PhysicalProject -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject ------------hashAgg[GLOBAL] --------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query28.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query28.out index e585932d6f..079837446a 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query28.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query28.out @@ -1,19 +1,19 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_28 -- PhysicalResultSink ---PhysicalLimit -----PhysicalLimit +--PhysicalLimit[GLOBAL] +----PhysicalLimit[LOCAL] ------PhysicalProject --------NestedLoopJoin[CROSS_JOIN] -----------PhysicalLimit +----------PhysicalLimit[LOCAL] ------------NestedLoopJoin[CROSS_JOIN] ---------------PhysicalLimit +--------------PhysicalLimit[LOCAL] ----------------NestedLoopJoin[CROSS_JOIN] -------------------PhysicalLimit +------------------PhysicalLimit[LOCAL] --------------------NestedLoopJoin[CROSS_JOIN] -----------------------PhysicalLimit +----------------------PhysicalLimit[LOCAL] ------------------------NestedLoopJoin[CROSS_JOIN] ---------------------------PhysicalLimit +--------------------------PhysicalLimit[LOCAL] ----------------------------hashAgg[GLOBAL] ------------------------------PhysicalDistribute --------------------------------hashAgg[LOCAL] @@ -21,7 +21,7 @@ PhysicalResultSink ------------------------------------filter(((((store_sales.ss_list_price >= 131.00) AND (store_sales.ss_list_price <= 141.00)) OR ((store_sales.ss_coupon_amt >= 16798.00) AND (store_sales.ss_coupon_amt <= 17798.00))) OR ((store_sales.ss_wholesale_cost >= 25.00) AND (store_sales.ss_wholesale_cost <= 45.00))) and (store_sales.ss_quantity <= 5) and (store_sales.ss_quantity >= 0)) --------------------------------------PhysicalOlapScan[store_sales] --------------------------PhysicalDistribute -----------------------------PhysicalLimit +----------------------------PhysicalLimit[LOCAL] ------------------------------hashAgg[GLOBAL] --------------------------------PhysicalDistribute ----------------------------------hashAgg[LOCAL] @@ -29,7 +29,7 @@ PhysicalResultSink --------------------------------------filter(((((store_sales.ss_list_price >= 145.00) AND (store_sales.ss_list_price <= 155.00)) OR ((store_sales.ss_coupon_amt >= 14792.00) AND (store_sales.ss_coupon_amt <= 15792.00))) OR ((store_sales.ss_wholesale_cost >= 46.00) AND (store_sales.ss_wholesale_cost <= 66.00))) and (store_sales.ss_quantity <= 10) and (store_sales.ss_quantity >= 6)) ----------------------------------------PhysicalOlapScan[store_sales] ----------------------PhysicalDistribute -------------------------PhysicalLimit +------------------------PhysicalLimit[LOCAL] --------------------------hashAgg[GLOBAL] ----------------------------PhysicalDistribute ------------------------------hashAgg[LOCAL] @@ -37,7 +37,7 @@ PhysicalResultSink ----------------------------------filter(((((store_sales.ss_list_price >= 150.00) AND (store_sales.ss_list_price <= 1.6E+2)) OR ((store_sales.ss_coupon_amt >= 6600.00) AND (store_sales.ss_coupon_amt <= 7.6E+3))) OR ((store_sales.ss_wholesale_cost >= 9.00) AND (store_sales.ss_wholesale_cost <= 29.00))) and (store_sales.ss_quantity <= 15) and (store_sales.ss_quantity >= 11)) ------------------------------------PhysicalOlapScan[store_sales] ------------------PhysicalDistribute ---------------------PhysicalLimit +--------------------PhysicalLimit[LOCAL] ----------------------hashAgg[GLOBAL] ------------------------PhysicalDistribute --------------------------hashAgg[LOCAL] @@ -45,7 +45,7 @@ PhysicalResultSink ------------------------------filter(((((store_sales.ss_list_price >= 91.00) AND (store_sales.ss_list_price <= 101.00)) OR ((store_sales.ss_coupon_amt >= 13493.00) AND (store_sales.ss_coupon_amt <= 14493.00))) OR ((store_sales.ss_wholesale_cost >= 36.00) AND (store_sales.ss_wholesale_cost <= 56.00))) and (store_sales.ss_quantity <= 20) and (store_sales.ss_quantity >= 16)) --------------------------------PhysicalOlapScan[store_sales] --------------PhysicalDistribute -----------------PhysicalLimit +----------------PhysicalLimit[LOCAL] ------------------hashAgg[GLOBAL] --------------------PhysicalDistribute ----------------------hashAgg[LOCAL] @@ -53,7 +53,7 @@ PhysicalResultSink --------------------------filter(((((store_sales.ss_list_price >= 0.00) AND (store_sales.ss_list_price <= 10.00)) OR ((store_sales.ss_coupon_amt >= 7629.00) AND (store_sales.ss_coupon_amt <= 8629.00))) OR ((store_sales.ss_wholesale_cost >= 6.00) AND (store_sales.ss_wholesale_cost <= 26.00))) and (store_sales.ss_quantity <= 25) and (store_sales.ss_quantity >= 21)) ----------------------------PhysicalOlapScan[store_sales] ----------PhysicalDistribute -------------PhysicalLimit +------------PhysicalLimit[LOCAL] --------------hashAgg[GLOBAL] ----------------PhysicalDistribute ------------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query29.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query29.out index 77be349243..33bc2edb51 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query29.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query29.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_29 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query3.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query3.out index a505a9ff33..f175b13fc7 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query3.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query3.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_3 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashAgg[GLOBAL] ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query30.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query30.out index edac382179..b54a7316fa 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query30.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query30.out @@ -21,9 +21,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------PhysicalProject --------------------PhysicalOlapScan[customer_address] --PhysicalResultSink -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject ------------hashJoin[INNER_JOIN] hashCondition=((ctr1.ctr_state = ctr2.ctr_state))otherCondition=((cast(ctr_total_return as DOUBLE) > cast((avg(cast(ctr_total_return as DECIMALV3(38, 4))) * 1.2) as DOUBLE))) --------------PhysicalProject diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query31.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query31.out index 72e8d4025e..f1a5d581a4 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query31.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query31.out @@ -39,9 +39,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------PhysicalProject --------------------PhysicalOlapScan[customer_address] ----PhysicalResultSink -------PhysicalQuickSort +------PhysicalQuickSort[MERGE_SORT] --------PhysicalDistribute -----------PhysicalQuickSort +----------PhysicalQuickSort[LOCAL_SORT] ------------PhysicalProject --------------hashJoin[INNER_JOIN] hashCondition=((ws1.ca_county = ws3.ca_county))otherCondition=((if((web_sales > 0.00), (cast(web_sales as DOUBLE) / cast(web_sales as DOUBLE)), NULL) > if((store_sales > 0.00), (cast(store_sales as DOUBLE) / cast(store_sales as DOUBLE)), NULL))) ----------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query32.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query32.out index 8c33b8f02d..42975bbb56 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query32.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query32.out @@ -1,15 +1,15 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_32 -- PhysicalResultSink ---PhysicalLimit -----PhysicalLimit +--PhysicalLimit[GLOBAL] +----PhysicalLimit[LOCAL] ------hashAgg[GLOBAL] --------PhysicalDistribute ----------hashAgg[LOCAL] ------------PhysicalProject --------------filter((cast(cs_ext_discount_amt as DECIMALV3(38, 5)) > (1.3 * avg(cast(cs_ext_discount_amt as DECIMALV3(9, 4))) OVER(PARTITION BY i_item_sk)))) ----------------PhysicalWindow -------------------PhysicalQuickSort +------------------PhysicalQuickSort[LOCAL_SORT] --------------------PhysicalDistribute ----------------------PhysicalProject ------------------------hashJoin[INNER_JOIN] hashCondition=((date_dim.d_date_sk = catalog_sales.cs_sold_date_sk))otherCondition=() diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query33.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query33.out index 0d3bf5f7a6..ca7f0bf6d7 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query33.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query33.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_33 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query34.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query34.out index 2773c40224..56bf599cb4 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query34.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query34.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_34 -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------PhysicalProject ----------hashJoin[INNER_JOIN] hashCondition=((dn.ss_customer_sk = customer.c_customer_sk))otherCondition=() ------------PhysicalProject diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query35.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query35.out index 3455b7d1fc..ee5513aad0 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query35.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query35.out @@ -2,9 +2,9 @@ -- !ds_shape_35 -- PhysicalResultSink --PhysicalProject -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------hashAgg[GLOBAL] ------------PhysicalDistribute --------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query36.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query36.out index 7e5d2e91d8..3680845786 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query36.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query36.out @@ -2,12 +2,12 @@ -- !ds_shape_36 -- PhysicalResultSink --PhysicalProject -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject ------------PhysicalWindow ---------------PhysicalQuickSort +--------------PhysicalQuickSort[LOCAL_SORT] ----------------PhysicalDistribute ------------------PhysicalProject --------------------hashAgg[GLOBAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query37.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query37.out index 309892d8df..1d3cf22831 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query37.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query37.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_37 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query38.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query38.out index 5f163f63af..b0418929d3 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query38.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query38.out @@ -1,8 +1,8 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_38 -- PhysicalResultSink ---PhysicalLimit -----PhysicalLimit +--PhysicalLimit[GLOBAL] +----PhysicalLimit[LOCAL] ------hashAgg[GLOBAL] --------PhysicalDistribute ----------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query39.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query39.out index a40db2ce11..e8f8fe1db9 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query39.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query39.out @@ -24,9 +24,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------------PhysicalProject ----------------------PhysicalOlapScan[warehouse] --PhysicalResultSink -----PhysicalQuickSort +----PhysicalQuickSort[MERGE_SORT] ------PhysicalDistribute ---------PhysicalQuickSort +--------PhysicalQuickSort[LOCAL_SORT] ----------PhysicalProject ------------hashJoin[INNER_JOIN] hashCondition=((inv1.i_item_sk = inv2.i_item_sk) and (inv1.w_warehouse_sk = inv2.w_warehouse_sk))otherCondition=() --------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query4.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query4.out index f6731eeefb..2f8fc5cc02 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query4.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query4.out @@ -55,9 +55,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------------PhysicalProject ----------------------PhysicalOlapScan[customer] --PhysicalResultSink -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject ------------hashJoin[INNER_JOIN] hashCondition=((t_s_firstyear.customer_id = t_w_secyear.customer_id))otherCondition=((if((year_total > 0.000000), (cast(year_total as DOUBLE) / cast(year_total as DOUBLE)), NULL) > if((year_total > 0.000000), (cast(year_total as DOUBLE) / cast(year_total as DOUBLE)), NULL))) --------------PhysicalProject diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query40.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query40.out index 50ce711030..abb63d88ef 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query40.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query40.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_40 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query41.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query41.out index 88bbf3f20b..37cf369efc 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query41.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query41.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_41 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query42.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query42.out index 84b53306ef..f171008a2f 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query42.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query42.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_42 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query43.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query43.out index ff88ac67fd..2de89e8dfb 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query43.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query43.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_43 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query44.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query44.out index 4d147f0b31..2f8a258fe9 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query44.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query44.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_44 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashJoin[INNER_JOIN] hashCondition=((asceding.rnk = descending.rnk))otherCondition=() ------------PhysicalDistribute @@ -15,9 +15,9 @@ PhysicalResultSink --------------------PhysicalProject ----------------------filter((rnk < 11)) ------------------------PhysicalWindow ---------------------------PhysicalQuickSort +--------------------------PhysicalQuickSort[MERGE_SORT] ----------------------------PhysicalDistribute -------------------------------PhysicalQuickSort +------------------------------PhysicalQuickSort[LOCAL_SORT] --------------------------------PhysicalPartitionTopN ----------------------------------PhysicalProject ------------------------------------NestedLoopJoin[INNER_JOIN](cast(rank_col as DOUBLE) > cast((0.9 * rank_col) as DOUBLE)) @@ -46,9 +46,9 @@ PhysicalResultSink ------------------PhysicalProject --------------------filter((rnk < 11)) ----------------------PhysicalWindow -------------------------PhysicalQuickSort +------------------------PhysicalQuickSort[MERGE_SORT] --------------------------PhysicalDistribute -----------------------------PhysicalQuickSort +----------------------------PhysicalQuickSort[LOCAL_SORT] ------------------------------PhysicalPartitionTopN --------------------------------PhysicalProject ----------------------------------NestedLoopJoin[INNER_JOIN](cast(rank_col as DOUBLE) > cast((0.9 * rank_col) as DOUBLE)) diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query45.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query45.out index 8bb11d71e2..a067375700 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query45.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query45.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_45 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query46.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query46.out index 8b2da870aa..7290b1d3d2 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query46.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query46.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_46 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashJoin[INNER_JOIN] hashCondition=((dn.ss_customer_sk = customer.c_customer_sk))otherCondition=(( not (ca_city = bought_city))) ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query47.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query47.out index d54603a48c..e9bb70dad0 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query47.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query47.out @@ -4,9 +4,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --PhysicalCteProducer ( cteId=CTEId#0 ) ----PhysicalProject ------PhysicalWindow ---------PhysicalQuickSort +--------PhysicalQuickSort[LOCAL_SORT] ----------PhysicalWindow -------------PhysicalQuickSort +------------PhysicalQuickSort[LOCAL_SORT] --------------PhysicalDistribute ----------------PhysicalProject ------------------hashAgg[GLOBAL] @@ -31,9 +31,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------------------------PhysicalOlapScan[store] --PhysicalResultSink ----PhysicalProject -------PhysicalTopN +------PhysicalTopN[MERGE_SORT] --------PhysicalDistribute -----------PhysicalTopN +----------PhysicalTopN[LOCAL_SORT] ------------PhysicalProject --------------hashJoin[INNER_JOIN] hashCondition=((v1.i_brand = v1_lag.i_brand) and (v1.i_category = v1_lag.i_category) and (v1.rn = expr_(rn + 1)) and (v1.s_company_name = v1_lag.s_company_name) and (v1.s_store_name = v1_lag.s_store_name))otherCondition=() ----------------hashJoin[INNER_JOIN] hashCondition=((v1.i_brand = v1_lead.i_brand) and (v1.i_category = v1_lead.i_category) and (v1.rn = expr_(rn - 1)) and (v1.s_company_name = v1_lead.s_company_name) and (v1.s_store_name = v1_lead.s_store_name))otherCondition=() diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query49.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query49.out index 92cf94f079..26c4be6005 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query49.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query49.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_49 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] @@ -12,11 +12,11 @@ PhysicalResultSink ------------------PhysicalProject --------------------filter(((return_rank <= 10) OR (currency_rank <= 10))) ----------------------PhysicalWindow -------------------------PhysicalQuickSort +------------------------PhysicalQuickSort[LOCAL_SORT] --------------------------PhysicalWindow -----------------------------PhysicalQuickSort +----------------------------PhysicalQuickSort[MERGE_SORT] ------------------------------PhysicalDistribute ---------------------------------PhysicalQuickSort +--------------------------------PhysicalQuickSort[LOCAL_SORT] ----------------------------------PhysicalProject ------------------------------------hashAgg[GLOBAL] --------------------------------------PhysicalDistribute @@ -38,11 +38,11 @@ PhysicalResultSink ------------------PhysicalProject --------------------filter(((return_rank <= 10) OR (currency_rank <= 10))) ----------------------PhysicalWindow -------------------------PhysicalQuickSort +------------------------PhysicalQuickSort[LOCAL_SORT] --------------------------PhysicalWindow -----------------------------PhysicalQuickSort +----------------------------PhysicalQuickSort[MERGE_SORT] ------------------------------PhysicalDistribute ---------------------------------PhysicalQuickSort +--------------------------------PhysicalQuickSort[LOCAL_SORT] ----------------------------------PhysicalProject ------------------------------------hashAgg[GLOBAL] --------------------------------------PhysicalDistribute @@ -64,11 +64,11 @@ PhysicalResultSink ------------------PhysicalProject --------------------filter(((return_rank <= 10) OR (currency_rank <= 10))) ----------------------PhysicalWindow -------------------------PhysicalQuickSort +------------------------PhysicalQuickSort[LOCAL_SORT] --------------------------PhysicalWindow -----------------------------PhysicalQuickSort +----------------------------PhysicalQuickSort[MERGE_SORT] ------------------------------PhysicalDistribute ---------------------------------PhysicalQuickSort +--------------------------------PhysicalQuickSort[LOCAL_SORT] ----------------------------------PhysicalProject ------------------------------------hashAgg[GLOBAL] --------------------------------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query5.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query5.out index 58cbdf6bfd..d495010b27 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query5.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query5.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_5 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashAgg[GLOBAL] ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query50.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query50.out index 5c67a1f42b..86484910b6 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query50.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query50.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_50 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query51.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query51.out index cfa64c7daa..d6e8883101 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query51.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query51.out @@ -1,20 +1,20 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_51 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------filter((web_cumulative > store_cumulative)) ------------PhysicalWindow ---------------PhysicalQuickSort +--------------PhysicalQuickSort[LOCAL_SORT] ----------------PhysicalDistribute ------------------PhysicalProject --------------------hashJoin[FULL_OUTER_JOIN] hashCondition=((web.d_date = store.d_date) and (web.item_sk = store.item_sk))otherCondition=() ----------------------PhysicalDistribute ------------------------PhysicalProject --------------------------PhysicalWindow -----------------------------PhysicalQuickSort +----------------------------PhysicalQuickSort[LOCAL_SORT] ------------------------------PhysicalDistribute --------------------------------PhysicalProject ----------------------------------hashAgg[GLOBAL] @@ -31,7 +31,7 @@ PhysicalResultSink ----------------------PhysicalDistribute ------------------------PhysicalProject --------------------------PhysicalWindow -----------------------------PhysicalQuickSort +----------------------------PhysicalQuickSort[LOCAL_SORT] ------------------------------PhysicalDistribute --------------------------------PhysicalProject ----------------------------------hashAgg[GLOBAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query52.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query52.out index 523764e3ae..526e12a38e 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query52.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query52.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_52 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashAgg[GLOBAL] ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query53.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query53.out index 11095f6f34..9ed8ec60fa 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query53.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query53.out @@ -1,13 +1,13 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_53 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------filter((if((avg_quarterly_sales > 0.0000), (abs((cast(sum_sales as DOUBLE) - cast(avg_quarterly_sales as DOUBLE))) / cast(avg_quarterly_sales as DOUBLE)), NULL) > 0.1)) ------------PhysicalWindow ---------------PhysicalQuickSort +--------------PhysicalQuickSort[LOCAL_SORT] ----------------PhysicalDistribute ------------------PhysicalProject --------------------hashAgg[GLOBAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query54.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query54.out index b7c4c2b1c3..dfcd1c03d6 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query54.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query54.out @@ -2,9 +2,9 @@ -- !ds_shape_54 -- PhysicalResultSink --PhysicalProject -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------hashAgg[GLOBAL] ------------PhysicalDistribute --------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query55.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query55.out index 7e1ae9a83e..f5385d84bd 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query55.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query55.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_55 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashAgg[GLOBAL] ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query56.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query56.out index f18f25836c..ecd860221f 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query56.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query56.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_56 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query57.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query57.out index 8458fc4f55..65f2acb719 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query57.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query57.out @@ -4,9 +4,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --PhysicalCteProducer ( cteId=CTEId#0 ) ----PhysicalProject ------PhysicalWindow ---------PhysicalQuickSort +--------PhysicalQuickSort[LOCAL_SORT] ----------PhysicalWindow -------------PhysicalQuickSort +------------PhysicalQuickSort[LOCAL_SORT] --------------PhysicalDistribute ----------------PhysicalProject ------------------hashAgg[GLOBAL] @@ -32,9 +32,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------------------------PhysicalOlapScan[call_center] --PhysicalResultSink ----PhysicalProject -------PhysicalTopN +------PhysicalTopN[MERGE_SORT] --------PhysicalDistribute -----------PhysicalTopN +----------PhysicalTopN[LOCAL_SORT] ------------PhysicalProject --------------hashJoin[INNER_JOIN] hashCondition=((v1.cc_name = v1_lag.cc_name) and (v1.i_brand = v1_lag.i_brand) and (v1.i_category = v1_lag.i_category) and (v1.rn = expr_(rn + 1)))otherCondition=() ----------------hashJoin[INNER_JOIN] hashCondition=((v1.cc_name = v1_lead.cc_name) and (v1.i_brand = v1_lead.i_brand) and (v1.i_category = v1_lead.i_category) and (v1.rn = expr_(rn - 1)))otherCondition=() diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query58.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query58.out index 95960c610a..c9a152f27f 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query58.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query58.out @@ -2,9 +2,9 @@ -- !ds_shape_58 -- PhysicalResultSink --PhysicalProject -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject ------------hashJoin[INNER_JOIN] hashCondition=((ss_items.item_id = cs_items.item_id))otherCondition=((cast(cs_item_rev as DOUBLE) <= cast((1.1 * ss_item_rev) as DOUBLE)) and (cast(cs_item_rev as DOUBLE) <= cast((1.1 * ws_item_rev) as DOUBLE)) and (cast(cs_item_rev as DOUBLE) >= cast((0.9 * ss_item_rev) as DOUBLE)) and (cast(cs_item_rev as DOUBLE) >= cast((0.9 * ws_item_rev) as DOUBLE)) and (cast(ss_item_rev as DOUBLE) <= cast((1.1 * cs_item_rev) as DOUBLE)) and (cast(ss_item_rev as DOUBLE) >= cast((0.9 * cs_item_rev) as DOUBLE)) and (cast(ws_item_rev as DOUBLE) <= cast((1.1 * cs_item_rev) as DOUBLE)) and (cast(ws_item_rev as DOUBLE) >= cast((0.9 * cs_item_rev) as DOUBLE))) --------------PhysicalProject diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query59.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query59.out index df51fbd738..4a19d7e8d2 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query59.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query59.out @@ -14,9 +14,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------PhysicalOlapScan[date_dim] --PhysicalResultSink ----PhysicalProject -------PhysicalTopN +------PhysicalTopN[MERGE_SORT] --------PhysicalDistribute -----------PhysicalTopN +----------PhysicalTopN[LOCAL_SORT] ------------PhysicalProject --------------hashJoin[INNER_JOIN] hashCondition=((expr_cast(d_week_seq1 as BIGINT) = expr_(d_week_seq2 - 52)) and (y.s_store_id1 = x.s_store_id2))otherCondition=() ----------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query6.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query6.out index a7389bfaad..cdda516cb5 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query6.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query6.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_6 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------filter((cnt >= 10)) ------------hashAgg[GLOBAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query60.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query60.out index d7cbe91685..3da5f55de3 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query60.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query60.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_60 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query61.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query61.out index 61b94d2996..ecba2a2c6a 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query61.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query61.out @@ -2,8 +2,8 @@ -- !ds_shape_61 -- PhysicalResultSink --PhysicalProject -----PhysicalTopN -------PhysicalTopN +----PhysicalTopN[MERGE_SORT] +------PhysicalTopN[LOCAL_SORT] --------NestedLoopJoin[CROSS_JOIN] ----------hashAgg[GLOBAL] ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query62.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query62.out index 7970c74bb7..ca39675130 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query62.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query62.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_62 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query63.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query63.out index 573db03dab..c02185f452 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query63.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query63.out @@ -1,13 +1,13 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_63 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------filter((if((avg_monthly_sales > 0.0000), (abs((cast(sum_sales as DOUBLE) - cast(avg_monthly_sales as DOUBLE))) / cast(avg_monthly_sales as DOUBLE)), NULL) > 0.1)) ------------PhysicalWindow ---------------PhysicalQuickSort +--------------PhysicalQuickSort[LOCAL_SORT] ----------------PhysicalDistribute ------------------PhysicalProject --------------------hashAgg[GLOBAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query64.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query64.out index e2e5af4a76..531dbc4069 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query64.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query64.out @@ -111,9 +111,9 @@ PhysicalCteAnchor ( cteId=CTEId#1 ) ------------------PhysicalProject --------------------PhysicalOlapScan[date_dim] --PhysicalResultSink -----PhysicalQuickSort +----PhysicalQuickSort[MERGE_SORT] ------PhysicalDistribute ---------PhysicalQuickSort +--------PhysicalQuickSort[LOCAL_SORT] ----------PhysicalProject ------------hashJoin[INNER_JOIN] hashCondition=((cs1.item_sk = cs2.item_sk) and (cs1.store_name = cs2.store_name) and (cs1.store_zip = cs2.store_zip))otherCondition=((cs2.cnt <= cs1.cnt)) --------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query65.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query65.out index 373b32c731..35294f5b65 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query65.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query65.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_65 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashJoin[INNER_JOIN] hashCondition=((store.s_store_sk = sc.ss_store_sk))otherCondition=() ------------PhysicalProject diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query66.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query66.out index d04ce6a4e1..6491fbfdcb 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query66.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query66.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_66 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query67.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query67.out index 95b508c418..6d963af329 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query67.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query67.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_67 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------filter((rk <= 100)) ----------PhysicalWindow ------------PhysicalPartitionTopN diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query68.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query68.out index 69571f4745..96b4968478 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query68.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query68.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_68 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashJoin[INNER_JOIN] hashCondition=((customer.c_current_addr_sk = current_addr.ca_address_sk))otherCondition=(( not (ca_city = bought_city))) ------------PhysicalProject diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query69.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query69.out index dbf40c620b..cbd40a5c6c 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query69.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query69.out @@ -2,9 +2,9 @@ -- !ds_shape_69 -- PhysicalResultSink --PhysicalProject -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------hashAgg[GLOBAL] ------------PhysicalDistribute --------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query7.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query7.out index 7a6fb1ff5f..d367161211 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query7.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query7.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_7 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query70.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query70.out index 8960570d8a..92b070b03f 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query70.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query70.out @@ -2,12 +2,12 @@ -- !ds_shape_70 -- PhysicalResultSink --PhysicalProject -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject ------------PhysicalWindow ---------------PhysicalQuickSort +--------------PhysicalQuickSort[LOCAL_SORT] ----------------PhysicalDistribute ------------------PhysicalProject --------------------hashAgg[GLOBAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query71.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query71.out index 98860bd352..b13f0ac8c9 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query71.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query71.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_71 -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------PhysicalProject ----------hashAgg[GLOBAL] ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query72.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query72.out index ead7385767..247b836807 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query72.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query72.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_72 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query73.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query73.out index 87f4763b99..ff7654df2d 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query73.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query73.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_73 -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------PhysicalProject ----------hashJoin[INNER_JOIN] hashCondition=((dj.ss_customer_sk = customer.c_customer_sk))otherCondition=() ------------PhysicalProject diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query74.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query74.out index 53ddf9c93f..79c348e7ee 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query74.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query74.out @@ -31,9 +31,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------PhysicalDistribute --------------------PhysicalOlapScan[customer] --PhysicalResultSink -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject ------------hashJoin[INNER_JOIN] hashCondition=((t_s_firstyear.customer_id = t_w_firstyear.customer_id))otherCondition=((if((year_total > 0), (year_total / year_total), NULL) > if((year_total > 0), (year_total / year_total), NULL))) --------------hashJoin[INNER_JOIN] hashCondition=((t_s_firstyear.customer_id = t_w_secyear.customer_id))otherCondition=() diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query75.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query75.out index 07745a5f3d..24aee83858 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query75.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query75.out @@ -67,9 +67,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------------------------filter(d_year IN (1998, 1999)) ----------------------------------PhysicalOlapScan[date_dim] --PhysicalResultSink -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject ------------hashJoin[INNER_JOIN] hashCondition=((curr_yr.i_brand_id = prev_yr.i_brand_id) and (curr_yr.i_category_id = prev_yr.i_category_id) and (curr_yr.i_class_id = prev_yr.i_class_id) and (curr_yr.i_manufact_id = prev_yr.i_manufact_id))otherCondition=(((cast(cast(sales_cnt as DECIMALV3(17, 2)) as DECIMALV3(23, 8)) / cast(sales_cnt as DECIMALV3(17, 2))) < 0.900000)) --------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query76.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query76.out index 8ed03212c3..a9f9d40d15 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query76.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query76.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_76 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query77.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query77.out index d09617fa06..d8df435aea 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query77.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query77.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_77 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashAgg[GLOBAL] ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query78.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query78.out index 41b3261598..be24ceaf4d 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query78.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query78.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_78 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------filter(((coalesce(ws_qty, 0) > 0) OR (coalesce(cs_qty, 0) > 0))) ------------hashJoin[LEFT_OUTER_JOIN] hashCondition=((cs.cs_customer_sk = ss.ss_customer_sk) and (cs.cs_item_sk = ss.ss_item_sk) and (cs.cs_sold_year = ss.ss_sold_year))otherCondition=() diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query79.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query79.out index f1746cd950..ed87e713d3 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query79.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query79.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_79 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashJoin[INNER_JOIN] hashCondition=((ms.ss_customer_sk = customer.c_customer_sk))otherCondition=() ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query8.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query8.out index 0fa9438af1..e8922e8c0f 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query8.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query8.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_8 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query80.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query80.out index 1c24205ee4..17104ec97a 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query80.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query80.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_80 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashAgg[GLOBAL] ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query81.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query81.out index d7a42aa7ee..2b784b3c65 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query81.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query81.out @@ -21,9 +21,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------PhysicalProject --------------------PhysicalOlapScan[customer_address] --PhysicalResultSink -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject ------------hashJoin[INNER_JOIN] hashCondition=((ctr1.ctr_state = ctr2.ctr_state))otherCondition=((cast(ctr_total_return as DOUBLE) > cast((avg(cast(ctr_total_return as DECIMALV3(38, 4))) * 1.2) as DOUBLE))) --------------PhysicalProject diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query82.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query82.out index eda98164b6..2e9b118c8a 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query82.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query82.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_82 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query83.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query83.out index 242460d1c0..1a4ec53d6b 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query83.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query83.out @@ -2,9 +2,9 @@ -- !ds_shape_83 -- PhysicalResultSink --PhysicalProject -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject ------------hashJoin[INNER_JOIN] hashCondition=((sr_items.item_id = cr_items.item_id))otherCondition=() --------------PhysicalProject diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query84.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query84.out index 3cb79e15f3..f035e1067f 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query84.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query84.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_84 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashJoin[INNER_JOIN] hashCondition=((store_returns.sr_cdemo_sk = customer_demographics.cd_demo_sk))otherCondition=() ------------PhysicalProject diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query85.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query85.out index ff44888133..a2aa93345a 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query85.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query85.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_85 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------hashAgg[GLOBAL] ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query86.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query86.out index d8b7351d0d..59d287679e 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query86.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query86.out @@ -2,12 +2,12 @@ -- !ds_shape_86 -- PhysicalResultSink --PhysicalProject -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject ------------PhysicalWindow ---------------PhysicalQuickSort +--------------PhysicalQuickSort[LOCAL_SORT] ----------------PhysicalDistribute ------------------PhysicalProject --------------------hashAgg[GLOBAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query89.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query89.out index 2865c0b68b..80e478c28c 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query89.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query89.out @@ -2,13 +2,13 @@ -- !ds_shape_89 -- PhysicalResultSink --PhysicalProject -----PhysicalTopN +----PhysicalTopN[MERGE_SORT] ------PhysicalDistribute ---------PhysicalTopN +--------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject ------------filter((if(( not (avg_monthly_sales = 0.0000)), (abs((cast(sum_sales as DOUBLE) - cast(avg_monthly_sales as DOUBLE))) / cast(avg_monthly_sales as DOUBLE)), NULL) > 0.1)) --------------PhysicalWindow -----------------PhysicalQuickSort +----------------PhysicalQuickSort[LOCAL_SORT] ------------------PhysicalDistribute --------------------PhysicalProject ----------------------hashAgg[GLOBAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query90.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query90.out index 90dd75d3de..b771e1b766 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query90.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query90.out @@ -1,8 +1,8 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_90 -- PhysicalResultSink ---PhysicalTopN -----PhysicalTopN +--PhysicalTopN[MERGE_SORT] +----PhysicalTopN[LOCAL_SORT] ------PhysicalProject --------NestedLoopJoin[CROSS_JOIN] ----------hashAgg[GLOBAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query91.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query91.out index 6f2dd12ca9..aacf125e56 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query91.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query91.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_91 -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------PhysicalProject ----------hashAgg[GLOBAL] ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query92.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query92.out index e2fbc35b42..f8f6faffbe 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query92.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query92.out @@ -1,15 +1,15 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_92 -- PhysicalResultSink ---PhysicalTopN -----PhysicalTopN +--PhysicalTopN[MERGE_SORT] +----PhysicalTopN[LOCAL_SORT] ------hashAgg[GLOBAL] --------PhysicalDistribute ----------hashAgg[LOCAL] ------------PhysicalProject --------------filter((cast(ws_ext_discount_amt as DECIMALV3(38, 5)) > (1.3 * avg(cast(ws_ext_discount_amt as DECIMALV3(9, 4))) OVER(PARTITION BY i_item_sk)))) ----------------PhysicalWindow -------------------PhysicalQuickSort +------------------PhysicalQuickSort[LOCAL_SORT] --------------------PhysicalDistribute ----------------------PhysicalProject ------------------------hashJoin[INNER_JOIN] hashCondition=((date_dim.d_date_sk = web_sales.ws_sold_date_sk))otherCondition=() diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query93.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query93.out index 6acc7e3337..df740dc47a 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query93.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query93.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_93 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query94.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query94.out index 55ed769818..0534f2a47f 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query94.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query94.out @@ -1,8 +1,8 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_94 -- PhysicalResultSink ---PhysicalTopN -----PhysicalTopN +--PhysicalTopN[MERGE_SORT] +----PhysicalTopN[LOCAL_SORT] ------hashAgg[DISTINCT_GLOBAL] --------PhysicalDistribute ----------hashAgg[DISTINCT_LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query95.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query95.out index 863e429dd4..1659f43a7b 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query95.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query95.out @@ -11,8 +11,8 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ----------PhysicalProject ------------PhysicalOlapScan[web_sales] --PhysicalResultSink -----PhysicalTopN -------PhysicalTopN +----PhysicalTopN[MERGE_SORT] +------PhysicalTopN[LOCAL_SORT] --------hashAgg[DISTINCT_GLOBAL] ----------PhysicalDistribute ------------hashAgg[DISTINCT_LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query96.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query96.out index 42b27ad49b..ba329ef1e6 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query96.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query96.out @@ -1,8 +1,8 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_96 -- PhysicalResultSink ---PhysicalTopN -----PhysicalTopN +--PhysicalTopN[MERGE_SORT] +----PhysicalTopN[LOCAL_SORT] ------hashAgg[GLOBAL] --------PhysicalDistribute ----------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query97.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query97.out index 9ba62fe3fa..bf2180167a 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query97.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query97.out @@ -1,8 +1,8 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_97 -- PhysicalResultSink ---PhysicalLimit -----PhysicalLimit +--PhysicalLimit[GLOBAL] +----PhysicalLimit[LOCAL] ------hashAgg[GLOBAL] --------PhysicalDistribute ----------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query98.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query98.out index 649950b8ec..bde0951df8 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query98.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query98.out @@ -1,12 +1,12 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_98 -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------PhysicalProject ----------PhysicalWindow -------------PhysicalQuickSort +------------PhysicalQuickSort[LOCAL_SORT] --------------PhysicalDistribute ----------------hashAgg[GLOBAL] ------------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query99.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query99.out index 47b42b5159..2474748455 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query99.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query99.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !ds_shape_99 -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q1.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q1.out index 6d8f63d340..3eb68a3c45 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q1.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q1.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q10.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q10.out index fd3241032e..153916d635 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q10.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q10.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q11.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q11.out index ead04e26a7..0e99ca11fc 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q11.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q11.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------PhysicalProject ----------NestedLoopJoin[INNER_JOIN](cast(value as DOUBLE) > cast((sum((ps_supplycost * cast(ps_availqty as DECIMALV3(10, 0)))) * 0.000002) as DOUBLE)) ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q12.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q12.out index be65011c30..7b39d270bd 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q12.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q12.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q13.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q13.out index 81a0302dae..3685fbf902 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q13.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q13.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q15.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q15.out index 3cd7e267b2..b6758c1412 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q15.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q15.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------PhysicalProject ----------hashJoin[INNER_JOIN] hashCondition=((supplier.s_suppkey = revenue0.supplier_no))otherCondition=() ------------PhysicalProject diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q16.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q16.out index 4d2cf07573..0e52800824 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q16.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q16.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q17.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q17.out index 1c481f1106..bc710fc2b9 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q17.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q17.out @@ -8,7 +8,7 @@ PhysicalResultSink ----------PhysicalProject ------------filter((cast(l_quantity as DECIMALV3(38, 5)) < (0.2 * avg(cast(l_quantity as DECIMALV3(17, 4))) OVER(PARTITION BY p_partkey)))) --------------PhysicalWindow -----------------PhysicalQuickSort +----------------PhysicalQuickSort[LOCAL_SORT] ------------------PhysicalDistribute --------------------PhysicalProject ----------------------hashJoin[INNER_JOIN] hashCondition=((part.p_partkey = lineitem.l_partkey))otherCondition=() diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q18.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q18.out index 0f434ae587..6ce8d16c19 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q18.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q18.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[LOCAL] ----------PhysicalProject ------------hashJoin[INNER_JOIN] hashCondition=((orders.o_orderkey = lineitem.l_orderkey))otherCondition=() diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q2.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q2.out index a77e4d2b80..ff12de3850 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q2.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q2.out @@ -1,13 +1,13 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------PhysicalProject ----------filter((partsupp.ps_supplycost = min(ps_supplycost) OVER(PARTITION BY p_partkey))) ------------PhysicalWindow ---------------PhysicalQuickSort +--------------PhysicalQuickSort[LOCAL_SORT] ----------------PhysicalDistribute ------------------PhysicalProject --------------------hashJoin[INNER_JOIN] hashCondition=((supplier.s_suppkey = partsupp.ps_suppkey))otherCondition=() diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q20-rewrite.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q20-rewrite.out index 127efb417a..dbc892135b 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q20-rewrite.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q20-rewrite.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------PhysicalProject ----------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((supplier.s_suppkey = t3.ps_suppkey))otherCondition=() ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q20.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q20.out index 038762cfd7..8e647eb965 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q20.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q20.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------PhysicalProject ----------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((supplier.s_suppkey = partsupp.ps_suppkey))otherCondition=() ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q21.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q21.out index b1c0c54805..1282fff969 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q21.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q21.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q22.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q22.out index a0e1e755bd..e3bf696ac3 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q22.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q22.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q3.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q3.out index 9de8eece12..fe0ed0d242 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q3.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q3.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalTopN +--PhysicalTopN[MERGE_SORT] ----PhysicalDistribute -------PhysicalTopN +------PhysicalTopN[LOCAL_SORT] --------hashAgg[LOCAL] ----------PhysicalProject ------------hashJoin[INNER_JOIN] hashCondition=((lineitem.l_orderkey = orders.o_orderkey))otherCondition=() diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q4.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q4.out index 9ed7b052c9..d83a9043bd 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q4.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q4.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q5.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q5.out index c2d0e6a45c..7ea70e069c 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q5.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q5.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q7.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q7.out index cb7089e702..274bdb4b00 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q7.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q7.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q8.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q8.out index 280d78c129..3f093e8b15 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q8.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q8.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------PhysicalProject ----------hashAgg[GLOBAL] ------------PhysicalDistribute diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q9.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q9.out index c4db8fac69..87e49bb6d3 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q9.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape/q9.out @@ -1,9 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !select -- PhysicalResultSink ---PhysicalQuickSort +--PhysicalQuickSort[MERGE_SORT] ----PhysicalDistribute -------PhysicalQuickSort +------PhysicalQuickSort[LOCAL_SORT] --------hashAgg[GLOBAL] ----------PhysicalDistribute ------------hashAgg[LOCAL]