diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/Plan.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/Plan.java index 521cba8483..aa87de0fca 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/Plan.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/Plan.java @@ -163,7 +163,7 @@ public interface Plan extends TreeNode { */ default String shape(String prefix) { StringBuilder builder = new StringBuilder(); - String me = shapeInfo(); + String me = this.getClass().getSimpleName(); String prefixTail = ""; if (! ConnectContext.get().getSessionVariable().getIgnoreShapePlanNodes().contains(me)) { builder.append(prefix).append(shapeInfo()).append("\n"); diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java b/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java index e2ebde3db9..f84414e27e 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java +++ b/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java @@ -513,7 +513,7 @@ public class SessionVariable implements Serializable, Writable { public boolean isSingleSetVar = false; @VariableMgr.VarAttr(name = EXPAND_RUNTIME_FILTER_BY_INNER_JION) - public boolean expandRuntimeFilterByInnerJoin = false; + public boolean expandRuntimeFilterByInnerJoin = true; @VariableMgr.VarAttr(name = JDBC_CLICKHOUSE_QUERY_FINAL) public boolean jdbcClickhouseQueryFinal = false; diff --git a/regression-test/data/nereids_p0/eliminate_outer_join/eliminate_outer_join.out b/regression-test/data/nereids_p0/eliminate_outer_join/eliminate_outer_join.out index 1307653cc2..63c635b85e 100644 --- a/regression-test/data/nereids_p0/eliminate_outer_join/eliminate_outer_join.out +++ b/regression-test/data/nereids_p0/eliminate_outer_join/eliminate_outer_join.out @@ -1,20 +1,16 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !1 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((partsupp.ps_suppkey = supplier.s_suppkey)) otherCondition=() build RFs:RF2 ps_suppkey->[s_suppkey] -------hashJoin[INNER_JOIN] hashCondition=((nation.n_nationkey = supplier.s_suppkey)) otherCondition=() build RFs:RF1 s_suppkey->[n_nationkey] ---------hashJoin[INNER_JOIN] hashCondition=((region.r_regionkey = nation.n_regionkey)) otherCondition=() build RFs:RF0 n_regionkey->[r_regionkey] -----------PhysicalOlapScan[region] apply RFs: RF0 -----------PhysicalDistribute[DistributionSpecReplicated] -------------filter(( not n_nationkey IS NULL) and (nation.n_nationkey > 1)) ---------------PhysicalOlapScan[nation] apply RFs: RF1 ---------PhysicalDistribute[DistributionSpecReplicated] -----------filter(( not s_suppkey IS NULL) and (supplier.s_suppkey > 1)) -------------PhysicalOlapScan[supplier] apply RFs: RF2 -------PhysicalDistribute[DistributionSpecReplicated] ---------filter(( not ps_suppkey IS NULL) and (partsupp.ps_suppkey > 1)) -----------PhysicalOlapScan[partsupp] +--hashJoin[INNER_JOIN] hashCondition=((partsupp.ps_suppkey = supplier.s_suppkey)) otherCondition=() +----hashJoin[INNER_JOIN] hashCondition=((nation.n_nationkey = supplier.s_suppkey)) otherCondition=() +------hashJoin[INNER_JOIN] hashCondition=((region.r_regionkey = nation.n_regionkey)) otherCondition=() +--------PhysicalOlapScan[region] +--------filter(( not n_nationkey IS NULL) and (nation.n_nationkey > 1)) +----------PhysicalOlapScan[nation] +------filter(( not s_suppkey IS NULL) and (supplier.s_suppkey > 1)) +--------PhysicalOlapScan[supplier] +----filter(( not ps_suppkey IS NULL) and (partsupp.ps_suppkey > 1)) +------PhysicalOlapScan[partsupp] Hint log: Used: [broadcast]_2 @@ -23,22 +19,15 @@ SyntaxError: -- !2 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[RIGHT_OUTER_JOIN] hashCondition=((partsupp.ps_suppkey = supplier.s_suppkey)) otherCondition=() -------PhysicalDistribute[DistributionSpecHash] ---------filter((supplier.s_suppkey > 1)) -----------hashJoin[FULL_OUTER_JOIN] hashCondition=((nation.n_nationkey = supplier.s_suppkey)) otherCondition=() -------------PhysicalDistribute[DistributionSpecHash] ---------------hashJoin[FULL_OUTER_JOIN] hashCondition=((region.r_regionkey = nation.n_regionkey)) otherCondition=() -----------------PhysicalDistribute[DistributionSpecHash] -------------------PhysicalOlapScan[region] -----------------PhysicalDistribute[DistributionSpecHash] -------------------PhysicalOlapScan[nation] -------------PhysicalDistribute[DistributionSpecHash] ---------------PhysicalOlapScan[supplier] -------PhysicalDistribute[DistributionSpecHash] ---------filter(( not ps_suppkey IS NULL) and (partsupp.ps_suppkey > 1)) -----------PhysicalOlapScan[partsupp] +--hashJoin[RIGHT_OUTER_JOIN] hashCondition=((partsupp.ps_suppkey = supplier.s_suppkey)) otherCondition=() +----filter((supplier.s_suppkey > 1)) +------hashJoin[FULL_OUTER_JOIN] hashCondition=((nation.n_nationkey = supplier.s_suppkey)) otherCondition=() +--------hashJoin[FULL_OUTER_JOIN] hashCondition=((region.r_regionkey = nation.n_regionkey)) otherCondition=() +----------PhysicalOlapScan[region] +----------PhysicalOlapScan[nation] +--------PhysicalOlapScan[supplier] +----filter(( not ps_suppkey IS NULL) and (partsupp.ps_suppkey > 1)) +------PhysicalOlapScan[partsupp] Hint log: Used: @@ -47,21 +36,15 @@ SyntaxError: -- !3 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[RIGHT_OUTER_JOIN] hashCondition=((partsupp.ps_suppkey = supplier.s_suppkey)) otherCondition=() -------PhysicalDistribute[DistributionSpecHash] ---------filter((supplier.s_suppkey > 1)) -----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((nation.n_nationkey = supplier.s_suppkey)) otherCondition=() -------------hashJoin[FULL_OUTER_JOIN] hashCondition=((region.r_regionkey = nation.n_regionkey)) otherCondition=() ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalOlapScan[region] ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalOlapScan[nation] -------------PhysicalDistribute[DistributionSpecReplicated] ---------------PhysicalOlapScan[supplier] -------PhysicalDistribute[DistributionSpecHash] ---------filter(( not ps_suppkey IS NULL) and (partsupp.ps_suppkey > 1)) -----------PhysicalOlapScan[partsupp] +--hashJoin[RIGHT_OUTER_JOIN] hashCondition=((partsupp.ps_suppkey = supplier.s_suppkey)) otherCondition=() +----filter((supplier.s_suppkey > 1)) +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((nation.n_nationkey = supplier.s_suppkey)) otherCondition=() +--------hashJoin[FULL_OUTER_JOIN] hashCondition=((region.r_regionkey = nation.n_regionkey)) otherCondition=() +----------PhysicalOlapScan[region] +----------PhysicalOlapScan[nation] +--------PhysicalOlapScan[supplier] +----filter(( not ps_suppkey IS NULL) and (partsupp.ps_suppkey > 1)) +------PhysicalOlapScan[partsupp] Hint log: Used: @@ -70,12 +53,10 @@ SyntaxError: -- !4 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_OUTER_JOIN] hashCondition=((region.r_regionkey = nation.n_regionkey)) otherCondition=() -------filter(( not r_name IS NULL) and (region.r_name = '')) ---------PhysicalOlapScan[region] -------PhysicalDistribute[DistributionSpecReplicated] ---------PhysicalOlapScan[nation] +--hashJoin[LEFT_OUTER_JOIN] hashCondition=((region.r_regionkey = nation.n_regionkey)) otherCondition=() +----filter(( not r_name IS NULL) and (region.r_name = '')) +------PhysicalOlapScan[region] +----PhysicalOlapScan[nation] Hint log: Used: [broadcast]_2 @@ -84,15 +65,12 @@ SyntaxError: -- !5 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_OUTER_JOIN] hashCondition=((nation.n_nationkey = supplier.s_suppkey)) otherCondition=() -------hashJoin[LEFT_OUTER_JOIN] hashCondition=((region.r_regionkey = nation.n_regionkey)) otherCondition=() ---------filter(( not r_name IS NULL) and (region.r_name = '')) -----------PhysicalOlapScan[region] ---------PhysicalDistribute[DistributionSpecReplicated] -----------PhysicalOlapScan[nation] -------PhysicalDistribute[DistributionSpecReplicated] ---------PhysicalOlapScan[supplier] +--hashJoin[LEFT_OUTER_JOIN] hashCondition=((nation.n_nationkey = supplier.s_suppkey)) otherCondition=() +----hashJoin[LEFT_OUTER_JOIN] hashCondition=((region.r_regionkey = nation.n_regionkey)) otherCondition=() +------filter(( not r_name IS NULL) and (region.r_name = '')) +--------PhysicalOlapScan[region] +------PhysicalOlapScan[nation] +----PhysicalOlapScan[supplier] Hint log: Used: [broadcast]_2 @@ -101,18 +79,14 @@ SyntaxError: -- !6 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_OUTER_JOIN] hashCondition=((partsupp.ps_suppkey = supplier.s_suppkey)) otherCondition=() -------hashJoin[LEFT_OUTER_JOIN] hashCondition=((nation.n_nationkey = supplier.s_suppkey)) otherCondition=() ---------hashJoin[LEFT_OUTER_JOIN] hashCondition=((region.r_regionkey = nation.n_regionkey)) otherCondition=() -----------filter(( not r_name IS NULL) and (region.r_name = '')) -------------PhysicalOlapScan[region] -----------PhysicalDistribute[DistributionSpecReplicated] -------------PhysicalOlapScan[nation] ---------PhysicalDistribute[DistributionSpecReplicated] -----------PhysicalOlapScan[supplier] -------PhysicalDistribute[DistributionSpecReplicated] ---------PhysicalOlapScan[partsupp] +--hashJoin[LEFT_OUTER_JOIN] hashCondition=((partsupp.ps_suppkey = supplier.s_suppkey)) otherCondition=() +----hashJoin[LEFT_OUTER_JOIN] hashCondition=((nation.n_nationkey = supplier.s_suppkey)) otherCondition=() +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((region.r_regionkey = nation.n_regionkey)) otherCondition=() +--------filter(( not r_name IS NULL) and (region.r_name = '')) +----------PhysicalOlapScan[region] +--------PhysicalOlapScan[nation] +------PhysicalOlapScan[supplier] +----PhysicalOlapScan[partsupp] Hint log: Used: [broadcast]_2 @@ -121,20 +95,15 @@ SyntaxError: -- !7 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[FULL_OUTER_JOIN] hashCondition=((partsupp.ps_suppkey = supplier.s_suppkey)) otherCondition=() -------PhysicalDistribute[DistributionSpecHash] ---------hashJoin[LEFT_OUTER_JOIN] hashCondition=((nation.n_nationkey = supplier.s_suppkey)) otherCondition=() -----------hashJoin[INNER_JOIN] hashCondition=((region.r_regionkey = nation.n_regionkey)) otherCondition=() build RFs:RF0 n_regionkey->[r_regionkey] -------------filter(( not r_regionkey IS NULL)) ---------------PhysicalOlapScan[region] apply RFs: RF0 -------------PhysicalDistribute[DistributionSpecReplicated] ---------------filter(( not n_regionkey IS NULL)) -----------------PhysicalOlapScan[nation] -----------PhysicalDistribute[DistributionSpecReplicated] -------------PhysicalOlapScan[supplier] -------PhysicalDistribute[DistributionSpecHash] ---------PhysicalOlapScan[partsupp] +--hashJoin[FULL_OUTER_JOIN] hashCondition=((partsupp.ps_suppkey = supplier.s_suppkey)) otherCondition=() +----hashJoin[LEFT_OUTER_JOIN] hashCondition=((nation.n_nationkey = supplier.s_suppkey)) otherCondition=() +------hashJoin[INNER_JOIN] hashCondition=((region.r_regionkey = nation.n_regionkey)) otherCondition=() +--------filter(( not r_regionkey IS NULL)) +----------PhysicalOlapScan[region] +--------filter(( not n_regionkey IS NULL)) +----------PhysicalOlapScan[nation] +------PhysicalOlapScan[supplier] +----PhysicalOlapScan[partsupp] Hint log: Used: [broadcast]_2 @@ -143,19 +112,15 @@ SyntaxError: -- !8 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_OUTER_JOIN] hashCondition=((partsupp.ps_suppkey = supplier.s_suppkey)) otherCondition=() -------hashJoin[LEFT_OUTER_JOIN] hashCondition=((nation.n_nationkey = supplier.s_suppkey)) otherCondition=() ---------hashJoin[INNER_JOIN] hashCondition=((region.r_regionkey = nation.n_regionkey)) otherCondition=() build RFs:RF0 n_regionkey->[r_regionkey] -----------filter(( not r_name IS NULL) and ( not r_regionkey IS NULL) and (region.r_name = '')) -------------PhysicalOlapScan[region] apply RFs: RF0 -----------PhysicalDistribute[DistributionSpecReplicated] -------------filter(( not n_regionkey IS NULL)) ---------------PhysicalOlapScan[nation] ---------PhysicalDistribute[DistributionSpecReplicated] -----------PhysicalOlapScan[supplier] -------PhysicalDistribute[DistributionSpecReplicated] ---------PhysicalOlapScan[partsupp] +--hashJoin[LEFT_OUTER_JOIN] hashCondition=((partsupp.ps_suppkey = supplier.s_suppkey)) otherCondition=() +----hashJoin[LEFT_OUTER_JOIN] hashCondition=((nation.n_nationkey = supplier.s_suppkey)) otherCondition=() +------hashJoin[INNER_JOIN] hashCondition=((region.r_regionkey = nation.n_regionkey)) otherCondition=() +--------filter(( not r_name IS NULL) and ( not r_regionkey IS NULL) and (region.r_name = '')) +----------PhysicalOlapScan[region] +--------filter(( not n_regionkey IS NULL)) +----------PhysicalOlapScan[nation] +------PhysicalOlapScan[supplier] +----PhysicalOlapScan[partsupp] Hint log: Used: [broadcast]_2 @@ -164,19 +129,15 @@ SyntaxError: -- !9 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_OUTER_JOIN] hashCondition=((partsupp.ps_suppkey = supplier.s_suppkey)) otherCondition=() -------hashJoin[INNER_JOIN] hashCondition=((nation.n_nationkey = supplier.s_suppkey)) otherCondition=() build RFs:RF1 s_suppkey->[n_nationkey] ---------hashJoin[INNER_JOIN] hashCondition=((region.r_regionkey = nation.n_regionkey)) otherCondition=() build RFs:RF0 n_regionkey->[r_regionkey] -----------filter(( not r_name IS NULL) and ( not r_regionkey IS NULL) and (region.r_name = '')) -------------PhysicalOlapScan[region] apply RFs: RF0 -----------PhysicalDistribute[DistributionSpecReplicated] -------------filter(( not n_regionkey IS NULL)) ---------------PhysicalOlapScan[nation] apply RFs: RF1 ---------PhysicalDistribute[DistributionSpecReplicated] -----------PhysicalOlapScan[supplier] -------PhysicalDistribute[DistributionSpecReplicated] ---------PhysicalOlapScan[partsupp] +--hashJoin[LEFT_OUTER_JOIN] hashCondition=((partsupp.ps_suppkey = supplier.s_suppkey)) otherCondition=() +----hashJoin[INNER_JOIN] hashCondition=((nation.n_nationkey = supplier.s_suppkey)) otherCondition=() +------hashJoin[INNER_JOIN] hashCondition=((region.r_regionkey = nation.n_regionkey)) otherCondition=() +--------filter(( not r_name IS NULL) and ( not r_regionkey IS NULL) and (region.r_name = '')) +----------PhysicalOlapScan[region] +--------filter(( not n_regionkey IS NULL)) +----------PhysicalOlapScan[nation] +------PhysicalOlapScan[supplier] +----PhysicalOlapScan[partsupp] Hint log: Used: [broadcast]_2 diff --git a/regression-test/data/nereids_rules_p0/eager_aggregate/basic.out b/regression-test/data/nereids_rules_p0/eager_aggregate/basic.out index 49380e018c..a526355634 100644 --- a/regression-test/data/nereids_rules_p0/eager_aggregate/basic.out +++ b/regression-test/data/nereids_rules_p0/eager_aggregate/basic.out @@ -1,55 +1,43 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !1 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((a.device_id = b.device_id)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((a.device_id = b.device_id)) otherCondition=() build RFs:RF0 device_id->[device_id] -------------hashAgg[LOCAL] ---------------filter((a.event_id = 'ad_click')) -----------------PhysicalOlapScan[com_dd_library] apply RFs: RF0 -------------PhysicalDistribute[DistributionSpecHash] ---------------hashAgg[LOCAL] -----------------filter((cast(experiment_id as DOUBLE) = 37.0)) -------------------PhysicalOlapScan[shunt_log_com_dd_library] +----------filter((a.event_id = 'ad_click')) +------------PhysicalOlapScan[com_dd_library] +--------hashAgg[LOCAL] +----------filter((cast(experiment_id as DOUBLE) = 37.0)) +------------PhysicalOlapScan[shunt_log_com_dd_library] -- !2 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((a.device_id = b.device_id)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((a.device_id = b.device_id)) otherCondition=() build RFs:RF0 device_id->[device_id] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[com_dd_library] apply RFs: RF0 -------------PhysicalDistribute[DistributionSpecHash] ---------------hashAgg[LOCAL] -----------------filter((cast(experiment_id as DOUBLE) = 73.0)) -------------------PhysicalOlapScan[shunt_log_com_dd_library] +----------PhysicalOlapScan[com_dd_library] +--------hashAgg[LOCAL] +----------filter((cast(experiment_id as DOUBLE) = 73.0)) +------------PhysicalOlapScan[shunt_log_com_dd_library] -- !3 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((a.device_id = b.device_id)) otherCondition=() build RFs:RF0 device_id->[device_id] -------------PhysicalOlapScan[com_dd_library] apply RFs: RF0 -------------PhysicalDistribute[DistributionSpecHash] ---------------filter((cast(experiment_id as DOUBLE) = 73.0)) -----------------PhysicalOlapScan[shunt_log_com_dd_library] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((a.device_id = b.device_id)) otherCondition=() +--------PhysicalOlapScan[com_dd_library] +--------filter((cast(experiment_id as DOUBLE) = 73.0)) +----------PhysicalOlapScan[shunt_log_com_dd_library] -- !4 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((a.device_id = b.device_id)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((a.device_id = b.device_id)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[com_dd_library] -------------PhysicalDistribute[DistributionSpecHash] ---------------hashAgg[LOCAL] -----------------PhysicalOlapScan[shunt_log_com_dd_library] +----------PhysicalOlapScan[com_dd_library] +--------hashAgg[LOCAL] +----------PhysicalOlapScan[shunt_log_com_dd_library] diff --git a/regression-test/data/nereids_rules_p0/eager_aggregate/basic_one_side.out b/regression-test/data/nereids_rules_p0/eager_aggregate/basic_one_side.out index 8b90b18b99..087b10ea4a 100644 --- a/regression-test/data/nereids_rules_p0/eager_aggregate/basic_one_side.out +++ b/regression-test/data/nereids_rules_p0/eager_aggregate/basic_one_side.out @@ -1,52 +1,40 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !1 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((a.device_id = b.device_id)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((a.device_id = b.device_id)) otherCondition=() build RFs:RF0 device_id->[device_id] -------------hashAgg[LOCAL] ---------------filter((a.event_id = 'ad_click')) -----------------PhysicalOlapScan[com_dd_library_one_side] apply RFs: RF0 -------------PhysicalDistribute[DistributionSpecHash] ---------------filter((cast(experiment_id as DOUBLE) = 37.0)) -----------------PhysicalOlapScan[shunt_log_com_dd_library_one_side] +----------filter((a.event_id = 'ad_click')) +------------PhysicalOlapScan[com_dd_library_one_side] +--------filter((cast(experiment_id as DOUBLE) = 37.0)) +----------PhysicalOlapScan[shunt_log_com_dd_library_one_side] -- !2 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((a.device_id = b.device_id)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((a.device_id = b.device_id)) otherCondition=() build RFs:RF0 device_id->[device_id] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[com_dd_library_one_side] apply RFs: RF0 -------------PhysicalDistribute[DistributionSpecHash] ---------------filter((cast(experiment_id as DOUBLE) = 73.0)) -----------------PhysicalOlapScan[shunt_log_com_dd_library_one_side] +----------PhysicalOlapScan[com_dd_library_one_side] +--------filter((cast(experiment_id as DOUBLE) = 73.0)) +----------PhysicalOlapScan[shunt_log_com_dd_library_one_side] -- !3 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((a.device_id = b.device_id)) otherCondition=() build RFs:RF0 device_id->[device_id] -------------PhysicalOlapScan[com_dd_library_one_side] apply RFs: RF0 -------------PhysicalDistribute[DistributionSpecHash] ---------------filter((cast(experiment_id as DOUBLE) = 73.0)) -----------------PhysicalOlapScan[shunt_log_com_dd_library_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((a.device_id = b.device_id)) otherCondition=() +--------PhysicalOlapScan[com_dd_library_one_side] +--------filter((cast(experiment_id as DOUBLE) = 73.0)) +----------PhysicalOlapScan[shunt_log_com_dd_library_one_side] -- !4 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((a.device_id = b.device_id)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((a.device_id = b.device_id)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[com_dd_library_one_side] -------------PhysicalDistribute[DistributionSpecHash] ---------------PhysicalOlapScan[shunt_log_com_dd_library_one_side] +----------PhysicalOlapScan[com_dd_library_one_side] +--------PhysicalOlapScan[shunt_log_com_dd_library_one_side] diff --git a/regression-test/data/nereids_rules_p0/eager_aggregate/push_down_count_through_join.out b/regression-test/data/nereids_rules_p0/eager_aggregate/push_down_count_through_join.out index 135190f5ce..2cdf0df3cf 100644 --- a/regression-test/data/nereids_rules_p0/eager_aggregate/push_down_count_through_join.out +++ b/regression-test/data/nereids_rules_p0/eager_aggregate/push_down_count_through_join.out @@ -1,557 +1,461 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !groupby_pushdown_basic -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t] +----------PhysicalOlapScan[count_t] +--------hashAgg[LOCAL] +----------PhysicalOlapScan[count_t] -- !groupby_pushdown_left_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t] -------------PhysicalOlapScan[count_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t] +--------PhysicalOlapScan[count_t] -- !groupby_pushdown_right_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t] -------------PhysicalOlapScan[count_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t] +--------PhysicalOlapScan[count_t] -- !groupby_pushdown_full_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t] -------------PhysicalOlapScan[count_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t] +--------PhysicalOlapScan[count_t] -- !groupby_pushdown_left_semi_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t] +----------PhysicalOlapScan[count_t] +--------hashAgg[LOCAL] +----------PhysicalOlapScan[count_t] -- !groupby_pushdown_left_anti_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t] -------------PhysicalOlapScan[count_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t] +--------PhysicalOlapScan[count_t] -- !groupby_pushdown_complex_conditions -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.name < t2.name)) -------------PhysicalOlapScan[count_t] -------------PhysicalOlapScan[count_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.name < t2.name)) +--------PhysicalOlapScan[count_t] +--------PhysicalOlapScan[count_t] -- !groupby_pushdown_with_aggregate -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t] -------------PhysicalOlapScan[count_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t] +--------PhysicalOlapScan[count_t] -- !groupby_pushdown_subquery -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t] apply RFs: RF0 -------------hashAgg[LOCAL] ---------------filter((count_t.score > 10)) -----------------PhysicalOlapScan[count_t] +----------PhysicalOlapScan[count_t] +--------hashAgg[LOCAL] +----------filter((count_t.score > 10)) +------------PhysicalOlapScan[count_t] -- !groupby_pushdown_outer_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t] -------------PhysicalOlapScan[count_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t] +--------PhysicalOlapScan[count_t] -- !groupby_pushdown_deep_subquery -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t] apply RFs: RF0 -------------hashAgg[LOCAL] ---------------filter((count_t.score > 10)) -----------------PhysicalOlapScan[count_t] +----------PhysicalOlapScan[count_t] +--------hashAgg[LOCAL] +----------filter((count_t.score > 10)) +------------PhysicalOlapScan[count_t] -- !groupby_pushdown_having -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----filter((count(score) > 100)) -------hashAgg[GLOBAL] ---------PhysicalDistribute[DistributionSpecHash] +--filter((count(score) > 100)) +----hashAgg[GLOBAL] +------hashAgg[LOCAL] +--------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ----------hashAgg[LOCAL] -------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------------hashAgg[LOCAL] -----------------PhysicalOlapScan[count_t] ---------------hashAgg[LOCAL] -----------------PhysicalOlapScan[count_t] +------------PhysicalOlapScan[count_t] +----------hashAgg[LOCAL] +------------PhysicalOlapScan[count_t] -- !groupby_pushdown_mixed_aggregates -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t] -------------PhysicalOlapScan[count_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t] +--------PhysicalOlapScan[count_t] -- !groupby_pushdown_multi_table_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[LOCAL] -------hashJoin[INNER_JOIN] hashCondition=((t1.name = t3.name)) otherCondition=() ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------------hashAgg[LOCAL] -------------------PhysicalOlapScan[count_t] -----------------hashAgg[LOCAL] -------------------PhysicalOlapScan[count_t] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] +--hashAgg[LOCAL] +----hashJoin[INNER_JOIN] hashCondition=((t1.name = t3.name)) otherCondition=() +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ------------hashAgg[LOCAL] --------------PhysicalOlapScan[count_t] +------------hashAgg[LOCAL] +--------------PhysicalOlapScan[count_t] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------PhysicalOlapScan[count_t] -- !groupby_pushdown_with_order_by -- PhysicalResultSink --PhysicalQuickSort[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalQuickSort[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] +----PhysicalQuickSort[LOCAL_SORT] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ------------hashAgg[LOCAL] ---------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------------hashAgg[LOCAL] -------------------PhysicalOlapScan[count_t] -----------------hashAgg[LOCAL] -------------------PhysicalOlapScan[count_t] +--------------PhysicalOlapScan[count_t] +------------hashAgg[LOCAL] +--------------PhysicalOlapScan[count_t] -- !groupby_pushdown_multiple_equal_conditions -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t] +----------PhysicalOlapScan[count_t] +--------hashAgg[LOCAL] +----------PhysicalOlapScan[count_t] -- !groupby_pushdown_equal_conditions_with_aggregate -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() -------------PhysicalOlapScan[count_t] -------------PhysicalOlapScan[count_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() +--------PhysicalOlapScan[count_t] +--------PhysicalOlapScan[count_t] -- !groupby_pushdown_equal_conditions_non_aggregate_selection -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t] +----------PhysicalOlapScan[count_t] +--------hashAgg[LOCAL] +----------PhysicalOlapScan[count_t] -- !groupby_pushdown_equal_conditions_non_aggregate_selection_with_aggregate -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t] +----------PhysicalOlapScan[count_t] +--------hashAgg[LOCAL] +----------PhysicalOlapScan[count_t] -- !groupby_pushdown_with_where_clause -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t] apply RFs: RF0 -------------hashAgg[LOCAL] ---------------filter((t1.score > 50)) -----------------PhysicalOlapScan[count_t] +----------PhysicalOlapScan[count_t] +--------hashAgg[LOCAL] +----------filter((t1.score > 50)) +------------PhysicalOlapScan[count_t] -- !groupby_pushdown_varied_aggregates -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t] -------------PhysicalOlapScan[count_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t] +--------PhysicalOlapScan[count_t] -- !groupby_pushdown_with_order_by_limit -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ------------hashAgg[LOCAL] ---------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------------hashAgg[LOCAL] -------------------PhysicalOlapScan[count_t] -----------------hashAgg[LOCAL] -------------------PhysicalOlapScan[count_t] +--------------PhysicalOlapScan[count_t] +------------hashAgg[LOCAL] +--------------PhysicalOlapScan[count_t] -- !groupby_pushdown_alias_multiple_equal_conditions -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1_alias.id = t2_alias.id) and (t1_alias.name = t2_alias.name)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1_alias.id = t2_alias.id) and (t1_alias.name = t2_alias.name)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t] +----------PhysicalOlapScan[count_t] +--------hashAgg[LOCAL] +----------PhysicalOlapScan[count_t] -- !groupby_pushdown_complex_join_condition -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.score = t2.score)) otherCondition=(( not (name = name))) -------------PhysicalOlapScan[count_t] -------------PhysicalOlapScan[count_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.score = t2.score)) otherCondition=(( not (name = name))) +--------PhysicalOlapScan[count_t] +--------PhysicalOlapScan[count_t] -- !groupby_pushdown_function_processed_columns -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t] -------------PhysicalOlapScan[count_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t] +--------PhysicalOlapScan[count_t] -- !groupby_pushdown_nested_queries -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------hashAgg[LOCAL] ---------------filter((count_t.id < 100)) -----------------PhysicalOlapScan[count_t] apply RFs: RF0 -------------hashAgg[LOCAL] ---------------filter((count_t.score > 20) and (t1.id < 100)) -----------------PhysicalOlapScan[count_t] +----------filter((count_t.id < 100)) +------------PhysicalOlapScan[count_t] +--------hashAgg[LOCAL] +----------filter((count_t.score > 20) and (t1.id < 100)) +------------PhysicalOlapScan[count_t] -- !groupby_pushdown_basic -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t] +----------PhysicalOlapScan[count_t] +--------hashAgg[LOCAL] +----------PhysicalOlapScan[count_t] -- !groupby_pushdown_left_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t] -------------PhysicalOlapScan[count_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t] +--------PhysicalOlapScan[count_t] -- !groupby_pushdown_right_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t] -------------PhysicalOlapScan[count_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t] +--------PhysicalOlapScan[count_t] -- !groupby_pushdown_full_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t] -------------PhysicalOlapScan[count_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t] +--------PhysicalOlapScan[count_t] -- !groupby_pushdown_left_semi_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t] +----------PhysicalOlapScan[count_t] +--------hashAgg[LOCAL] +----------PhysicalOlapScan[count_t] -- !groupby_pushdown_left_anti_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t] -------------PhysicalOlapScan[count_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t] +--------PhysicalOlapScan[count_t] -- !groupby_pushdown_complex_conditions -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.name < t2.name)) -------------PhysicalOlapScan[count_t] -------------PhysicalOlapScan[count_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.name < t2.name)) +--------PhysicalOlapScan[count_t] +--------PhysicalOlapScan[count_t] -- !groupby_pushdown_with_aggregate -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------hashAgg[LOCAL] +----------PhysicalOlapScan[count_t] +--------hashAgg[LOCAL] +----------PhysicalOlapScan[count_t] + +-- !groupby_pushdown_subquery -- +PhysicalResultSink +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------hashAgg[LOCAL] +----------PhysicalOlapScan[count_t] +--------hashAgg[LOCAL] +----------filter((count_t.score > 10)) +------------PhysicalOlapScan[count_t] + +-- !groupby_pushdown_outer_join -- +PhysicalResultSink +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t] +--------PhysicalOlapScan[count_t] + +-- !groupby_pushdown_deep_subquery -- +PhysicalResultSink +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------hashAgg[LOCAL] +----------PhysicalOlapScan[count_t] +--------hashAgg[LOCAL] +----------filter((count_t.score > 10)) +------------PhysicalOlapScan[count_t] + +-- !groupby_pushdown_having -- +PhysicalResultSink +--filter((count(*) > 100)) ----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +------hashAgg[LOCAL] +--------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----------hashAgg[LOCAL] +------------PhysicalOlapScan[count_t] +----------hashAgg[LOCAL] +------------PhysicalOlapScan[count_t] + +-- !groupby_pushdown_multi_table_join -- +PhysicalResultSink +--hashAgg[LOCAL] +----hashJoin[INNER_JOIN] hashCondition=((t1.name = t3.name)) otherCondition=() +------hashAgg[GLOBAL] --------hashAgg[LOCAL] ----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ------------hashAgg[LOCAL] --------------PhysicalOlapScan[count_t] ------------hashAgg[LOCAL] --------------PhysicalOlapScan[count_t] - --- !groupby_pushdown_subquery -- -PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t] apply RFs: RF0 -------------hashAgg[LOCAL] ---------------filter((count_t.score > 10)) -----------------PhysicalOlapScan[count_t] - --- !groupby_pushdown_outer_join -- -PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t] -------------PhysicalOlapScan[count_t] - --- !groupby_pushdown_deep_subquery -- -PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t] apply RFs: RF0 -------------hashAgg[LOCAL] ---------------filter((count_t.score > 10)) -----------------PhysicalOlapScan[count_t] - --- !groupby_pushdown_having -- -PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----filter((count(*) > 100)) ------hashAgg[GLOBAL] ---------PhysicalDistribute[DistributionSpecHash] -----------hashAgg[LOCAL] -------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------------hashAgg[LOCAL] -----------------PhysicalOlapScan[count_t] ---------------hashAgg[LOCAL] -----------------PhysicalOlapScan[count_t] - --- !groupby_pushdown_multi_table_join -- -PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[LOCAL] -------hashJoin[INNER_JOIN] hashCondition=((t1.name = t3.name)) otherCondition=() ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------------hashAgg[LOCAL] -------------------PhysicalOlapScan[count_t] -----------------hashAgg[LOCAL] -------------------PhysicalOlapScan[count_t] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t] +--------hashAgg[LOCAL] +----------PhysicalOlapScan[count_t] -- !groupby_pushdown_with_order_by -- PhysicalResultSink --PhysicalQuickSort[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalQuickSort[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] +----PhysicalQuickSort[LOCAL_SORT] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ------------hashAgg[LOCAL] ---------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------------hashAgg[LOCAL] -------------------PhysicalOlapScan[count_t] -----------------hashAgg[LOCAL] -------------------PhysicalOlapScan[count_t] +--------------PhysicalOlapScan[count_t] +------------hashAgg[LOCAL] +--------------PhysicalOlapScan[count_t] -- !groupby_pushdown_multiple_equal_conditions -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t] +----------PhysicalOlapScan[count_t] +--------hashAgg[LOCAL] +----------PhysicalOlapScan[count_t] -- !groupby_pushdown_equal_conditions_non_aggregate_selection -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t] +----------PhysicalOlapScan[count_t] +--------hashAgg[LOCAL] +----------PhysicalOlapScan[count_t] -- !groupby_pushdown_with_where_clause -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t] apply RFs: RF0 -------------hashAgg[LOCAL] ---------------filter((t1.score > 50)) -----------------PhysicalOlapScan[count_t] +----------PhysicalOlapScan[count_t] +--------hashAgg[LOCAL] +----------filter((t1.score > 50)) +------------PhysicalOlapScan[count_t] -- !groupby_pushdown_varied_aggregates -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t] -------------PhysicalOlapScan[count_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t] +--------PhysicalOlapScan[count_t] -- !groupby_pushdown_with_order_by_limit -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ------------hashAgg[LOCAL] ---------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------------hashAgg[LOCAL] -------------------PhysicalOlapScan[count_t] -----------------hashAgg[LOCAL] -------------------PhysicalOlapScan[count_t] +--------------PhysicalOlapScan[count_t] +------------hashAgg[LOCAL] +--------------PhysicalOlapScan[count_t] -- !groupby_pushdown_complex_join_condition -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.score = t2.score)) otherCondition=(( not (name = name))) -------------PhysicalOlapScan[count_t] -------------PhysicalOlapScan[count_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.score = t2.score)) otherCondition=(( not (name = name))) +--------PhysicalOlapScan[count_t] +--------PhysicalOlapScan[count_t] -- !groupby_pushdown_nested_queries -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------hashAgg[LOCAL] ---------------filter((count_t.id < 100)) -----------------PhysicalOlapScan[count_t] apply RFs: RF0 -------------hashAgg[LOCAL] ---------------filter((count_t.score > 20) and (t1.id < 100)) -----------------PhysicalOlapScan[count_t] +----------filter((count_t.id < 100)) +------------PhysicalOlapScan[count_t] +--------hashAgg[LOCAL] +----------filter((count_t.score > 20) and (t1.id < 100)) +------------PhysicalOlapScan[count_t] diff --git a/regression-test/data/nereids_rules_p0/eager_aggregate/push_down_count_through_join_one_side.out b/regression-test/data/nereids_rules_p0/eager_aggregate/push_down_count_through_join_one_side.out index f35a74ae3d..59c57e460e 100644 --- a/regression-test/data/nereids_rules_p0/eager_aggregate/push_down_count_through_join_one_side.out +++ b/regression-test/data/nereids_rules_p0/eager_aggregate/push_down_count_through_join_one_side.out @@ -1,513 +1,417 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !groupby_pushdown_basic -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t_one_side] -------------PhysicalOlapScan[count_t_one_side] +----------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_left_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t_one_side] -------------PhysicalOlapScan[count_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_right_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t_one_side] -------------PhysicalOlapScan[count_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_full_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t_one_side] -------------PhysicalOlapScan[count_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_left_semi_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t_one_side] -------------PhysicalOlapScan[count_t_one_side] +----------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_left_anti_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t_one_side] -------------PhysicalOlapScan[count_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_complex_conditions -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.name < t2.name)) -------------PhysicalOlapScan[count_t_one_side] -------------PhysicalOlapScan[count_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.name < t2.name)) +--------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_with_aggregate -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t_one_side] -------------PhysicalOlapScan[count_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_subquery -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t_one_side] --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------PhysicalOlapScan[count_t_one_side] apply RFs: RF0 -------------hashAgg[LOCAL] ---------------filter((count_t_one_side.score > 10)) -----------------PhysicalOlapScan[count_t_one_side] +----------filter((count_t_one_side.score > 10)) +------------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_outer_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t_one_side] -------------PhysicalOlapScan[count_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_deep_subquery -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t_one_side] --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------PhysicalOlapScan[count_t_one_side] apply RFs: RF0 -------------hashAgg[LOCAL] ---------------filter((count_t_one_side.score > 10)) -----------------PhysicalOlapScan[count_t_one_side] +----------filter((count_t_one_side.score > 10)) +------------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_having -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----filter((count(score) > 100)) -------hashAgg[GLOBAL] ---------PhysicalDistribute[DistributionSpecHash] +--filter((count(score) > 100)) +----hashAgg[GLOBAL] +------hashAgg[LOCAL] +--------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ----------hashAgg[LOCAL] -------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------------hashAgg[LOCAL] -----------------PhysicalOlapScan[count_t_one_side] ---------------PhysicalOlapScan[count_t_one_side] +------------PhysicalOlapScan[count_t_one_side] +----------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_mixed_aggregates -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t_one_side] -------------PhysicalOlapScan[count_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_multi_table_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[LOCAL] -------hashJoin[INNER_JOIN] hashCondition=((t1.name = t3.name)) otherCondition=() ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] +--hashAgg[LOCAL] +----hashJoin[INNER_JOIN] hashCondition=((t1.name = t3.name)) otherCondition=() +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ------------hashAgg[LOCAL] ---------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------------hashAgg[LOCAL] -------------------PhysicalOlapScan[count_t_one_side] -----------------PhysicalOlapScan[count_t_one_side] ---------PhysicalDistribute[DistributionSpecHash] -----------PhysicalOlapScan[count_t_one_side] +--------------PhysicalOlapScan[count_t_one_side] +------------PhysicalOlapScan[count_t_one_side] +------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_with_order_by -- PhysicalResultSink --PhysicalQuickSort[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalQuickSort[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------------hashAgg[LOCAL] -------------------PhysicalOlapScan[count_t_one_side] -----------------PhysicalOlapScan[count_t_one_side] - --- !groupby_pushdown_multiple_equal_conditions -- -PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +----PhysicalQuickSort[LOCAL_SORT] +------hashAgg[GLOBAL] --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() +----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ------------hashAgg[LOCAL] --------------PhysicalOlapScan[count_t_one_side] ------------PhysicalOlapScan[count_t_one_side] +-- !groupby_pushdown_multiple_equal_conditions -- +PhysicalResultSink +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() +--------hashAgg[LOCAL] +----------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] + -- !groupby_pushdown_equal_conditions_with_aggregate -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() -------------PhysicalOlapScan[count_t_one_side] -------------PhysicalOlapScan[count_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() +--------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_equal_conditions_non_aggregate_selection -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t_one_side] -------------PhysicalOlapScan[count_t_one_side] +----------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_equal_conditions_non_aggregate_selection_with_aggregate -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t_one_side] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t_one_side] +----------PhysicalOlapScan[count_t_one_side] +--------hashAgg[LOCAL] +----------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_with_where_clause -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t_one_side] --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------PhysicalOlapScan[count_t_one_side] apply RFs: RF0 -------------hashAgg[LOCAL] ---------------filter((t1.score > 50)) -----------------PhysicalOlapScan[count_t_one_side] +----------filter((t1.score > 50)) +------------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_varied_aggregates -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t_one_side] -------------PhysicalOlapScan[count_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_with_order_by_limit -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ------------hashAgg[LOCAL] ---------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------------hashAgg[LOCAL] -------------------PhysicalOlapScan[count_t_one_side] -----------------PhysicalOlapScan[count_t_one_side] +--------------PhysicalOlapScan[count_t_one_side] +------------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_alias_multiple_equal_conditions -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1_alias.id = t2_alias.id) and (t1_alias.name = t2_alias.name)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1_alias.id = t2_alias.id) and (t1_alias.name = t2_alias.name)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[count_t_one_side] -------------PhysicalOlapScan[count_t_one_side] +----------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_complex_join_condition -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.score = t2.score)) otherCondition=(( not (name = name))) -------------PhysicalOlapScan[count_t_one_side] -------------PhysicalOlapScan[count_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.score = t2.score)) otherCondition=(( not (name = name))) +--------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_function_processed_columns -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t_one_side] -------------PhysicalOlapScan[count_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_nested_queries -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------filter((count_t_one_side.id < 100)) +----------PhysicalOlapScan[count_t_one_side] --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------filter((count_t_one_side.id < 100)) ---------------PhysicalOlapScan[count_t_one_side] apply RFs: RF0 -------------hashAgg[LOCAL] ---------------filter((count_t_one_side.score > 20) and (t1.id < 100)) -----------------PhysicalOlapScan[count_t_one_side] +----------filter((count_t_one_side.score > 20) and (t1.id < 100)) +------------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_basic -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t_one_side] -------------PhysicalOlapScan[count_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_left_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t_one_side] -------------PhysicalOlapScan[count_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_right_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t_one_side] -------------PhysicalOlapScan[count_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_full_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t_one_side] -------------PhysicalOlapScan[count_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_left_semi_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t_one_side] -------------PhysicalOlapScan[count_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_left_anti_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t_one_side] -------------PhysicalOlapScan[count_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_complex_conditions -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.name < t2.name)) -------------PhysicalOlapScan[count_t_one_side] -------------PhysicalOlapScan[count_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.name < t2.name)) +--------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_with_aggregate -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t_one_side] -------------PhysicalOlapScan[count_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_subquery -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------PhysicalOlapScan[count_t_one_side] apply RFs: RF0 -------------filter((count_t_one_side.score > 10)) ---------------PhysicalOlapScan[count_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t_one_side] +--------filter((count_t_one_side.score > 10)) +----------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_outer_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[count_t_one_side] -------------PhysicalOlapScan[count_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_deep_subquery -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------PhysicalOlapScan[count_t_one_side] apply RFs: RF0 -------------filter((count_t_one_side.score > 10)) ---------------PhysicalOlapScan[count_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t_one_side] +--------filter((count_t_one_side.score > 10)) +----------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_having -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----filter((count(*) > 100)) -------hashAgg[GLOBAL] ---------PhysicalDistribute[DistributionSpecHash] -----------hashAgg[LOCAL] -------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------------PhysicalOlapScan[count_t_one_side] ---------------PhysicalOlapScan[count_t_one_side] +--filter((count(*) > 100)) +----hashAgg[GLOBAL] +------hashAgg[LOCAL] +--------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----------PhysicalOlapScan[count_t_one_side] +----------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_multi_table_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.name = t3.name)) otherCondition=() -------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------------PhysicalOlapScan[count_t_one_side] ---------------PhysicalOlapScan[count_t_one_side] -------------PhysicalDistribute[DistributionSpecReplicated] ---------------PhysicalOlapScan[count_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.name = t3.name)) otherCondition=() +--------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----------PhysicalOlapScan[count_t_one_side] +----------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_with_order_by -- PhysicalResultSink --PhysicalQuickSort[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalQuickSort[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------------PhysicalOlapScan[count_t_one_side] -----------------PhysicalOlapScan[count_t_one_side] - --- !groupby_pushdown_multiple_equal_conditions -- -PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() -------------PhysicalOlapScan[count_t_one_side] -------------PhysicalOlapScan[count_t_one_side] - --- !groupby_pushdown_equal_conditions_non_aggregate_selection -- -PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() -------------PhysicalOlapScan[count_t_one_side] -------------PhysicalOlapScan[count_t_one_side] - --- !groupby_pushdown_with_where_clause -- -PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------PhysicalOlapScan[count_t_one_side] apply RFs: RF0 -------------filter((t1.score > 50)) ---------------PhysicalOlapScan[count_t_one_side] - --- !groupby_pushdown_varied_aggregates -- -PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +----PhysicalQuickSort[LOCAL_SORT] +------hashAgg[GLOBAL] --------hashAgg[LOCAL] ----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ------------PhysicalOlapScan[count_t_one_side] ------------PhysicalOlapScan[count_t_one_side] +-- !groupby_pushdown_multiple_equal_conditions -- +PhysicalResultSink +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() +--------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] + +-- !groupby_pushdown_equal_conditions_non_aggregate_selection -- +PhysicalResultSink +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() +--------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] + +-- !groupby_pushdown_with_where_clause -- +PhysicalResultSink +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t_one_side] +--------filter((t1.score > 50)) +----------PhysicalOlapScan[count_t_one_side] + +-- !groupby_pushdown_varied_aggregates -- +PhysicalResultSink +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] + -- !groupby_pushdown_with_order_by_limit -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------------PhysicalOlapScan[count_t_one_side] -----------------PhysicalOlapScan[count_t_one_side] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------------PhysicalOlapScan[count_t_one_side] +------------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_complex_join_condition -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.score = t2.score)) otherCondition=(( not (name = name))) -------------PhysicalOlapScan[count_t_one_side] -------------PhysicalOlapScan[count_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.score = t2.score)) otherCondition=(( not (name = name))) +--------PhysicalOlapScan[count_t_one_side] +--------PhysicalOlapScan[count_t_one_side] -- !groupby_pushdown_nested_queries -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------filter((count_t_one_side.id < 100)) ---------------PhysicalOlapScan[count_t_one_side] apply RFs: RF0 -------------filter((count_t_one_side.score > 20) and (t1.id < 100)) ---------------PhysicalOlapScan[count_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------filter((count_t_one_side.id < 100)) +----------PhysicalOlapScan[count_t_one_side] +--------filter((count_t_one_side.score > 20) and (t1.id < 100)) +----------PhysicalOlapScan[count_t_one_side] diff --git a/regression-test/data/nereids_rules_p0/eager_aggregate/push_down_max_through_join.out b/regression-test/data/nereids_rules_p0/eager_aggregate/push_down_max_through_join.out index 7f8839733c..bd4430fcb6 100644 --- a/regression-test/data/nereids_rules_p0/eager_aggregate/push_down_max_through_join.out +++ b/regression-test/data/nereids_rules_p0/eager_aggregate/push_down_max_through_join.out @@ -1,290 +1,237 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !groupby_pushdown_basic -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[max_t] -------------PhysicalOlapScan[max_t] +----------PhysicalOlapScan[max_t] +--------PhysicalOlapScan[max_t] -- !groupby_pushdown_left_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[max_t] -------------PhysicalOlapScan[max_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[max_t] +--------PhysicalOlapScan[max_t] -- !groupby_pushdown_right_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[max_t] -------------PhysicalOlapScan[max_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[max_t] +--------PhysicalOlapScan[max_t] -- !groupby_pushdown_full_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[max_t] -------------PhysicalOlapScan[max_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[max_t] +--------PhysicalOlapScan[max_t] -- !groupby_pushdown_left_semi_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[max_t] -------------PhysicalOlapScan[max_t] +----------PhysicalOlapScan[max_t] +--------PhysicalOlapScan[max_t] -- !groupby_pushdown_left_anti_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[max_t] -------------PhysicalOlapScan[max_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[max_t] +--------PhysicalOlapScan[max_t] -- !groupby_pushdown_complex_conditions -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.name < t2.name)) -------------PhysicalOlapScan[max_t] -------------PhysicalOlapScan[max_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.name < t2.name)) +--------PhysicalOlapScan[max_t] +--------PhysicalOlapScan[max_t] -- !groupby_pushdown_with_aggregate -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[max_t] -------------PhysicalOlapScan[max_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[max_t] +--------PhysicalOlapScan[max_t] -- !groupby_pushdown_subquery -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[max_t] --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------PhysicalOlapScan[max_t] apply RFs: RF0 -------------hashAgg[LOCAL] ---------------filter((max_t.score > 10)) -----------------PhysicalOlapScan[max_t] +----------filter((max_t.score > 10)) +------------PhysicalOlapScan[max_t] -- !groupby_pushdown_outer_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[max_t] -------------PhysicalOlapScan[max_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[max_t] +--------PhysicalOlapScan[max_t] -- !groupby_pushdown_deep_subquery -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[max_t] --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------PhysicalOlapScan[max_t] apply RFs: RF0 -------------hashAgg[LOCAL] ---------------filter((max_t.score > 10)) -----------------PhysicalOlapScan[max_t] +----------filter((max_t.score > 10)) +------------PhysicalOlapScan[max_t] -- !groupby_pushdown_having -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----filter((max(score) > 100)) -------hashAgg[GLOBAL] ---------PhysicalDistribute[DistributionSpecHash] +--filter((max(score) > 100)) +----hashAgg[GLOBAL] +------hashAgg[LOCAL] +--------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ----------hashAgg[LOCAL] -------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------------hashAgg[LOCAL] -----------------PhysicalOlapScan[max_t] ---------------PhysicalOlapScan[max_t] +------------PhysicalOlapScan[max_t] +----------PhysicalOlapScan[max_t] -- !groupby_pushdown_mixed_aggregates -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[max_t] -------------PhysicalOlapScan[max_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[max_t] +--------PhysicalOlapScan[max_t] -- !groupby_pushdown_multi_table_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[LOCAL] -------hashJoin[INNER_JOIN] hashCondition=((t1.name = t3.name)) otherCondition=() ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] +--hashAgg[LOCAL] +----hashJoin[INNER_JOIN] hashCondition=((t1.name = t3.name)) otherCondition=() +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ------------hashAgg[LOCAL] ---------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------------hashAgg[LOCAL] -------------------PhysicalOlapScan[max_t] -----------------PhysicalOlapScan[max_t] ---------PhysicalDistribute[DistributionSpecHash] -----------PhysicalOlapScan[max_t] +--------------PhysicalOlapScan[max_t] +------------PhysicalOlapScan[max_t] +------PhysicalOlapScan[max_t] -- !groupby_pushdown_with_order_by -- PhysicalResultSink --PhysicalQuickSort[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalQuickSort[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] +----PhysicalQuickSort[LOCAL_SORT] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ------------hashAgg[LOCAL] ---------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------------hashAgg[LOCAL] -------------------PhysicalOlapScan[max_t] -----------------PhysicalOlapScan[max_t] +--------------PhysicalOlapScan[max_t] +------------PhysicalOlapScan[max_t] -- !groupby_pushdown_multiple_equal_conditions -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[max_t] -------------PhysicalOlapScan[max_t] +----------PhysicalOlapScan[max_t] +--------PhysicalOlapScan[max_t] -- !groupby_pushdown_equal_conditions_with_aggregate -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() -------------PhysicalOlapScan[max_t] -------------PhysicalOlapScan[max_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() +--------PhysicalOlapScan[max_t] +--------PhysicalOlapScan[max_t] -- !groupby_pushdown_equal_conditions_non_aggregate_selection -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[max_t] -------------PhysicalOlapScan[max_t] +----------PhysicalOlapScan[max_t] +--------PhysicalOlapScan[max_t] -- !groupby_pushdown_equal_conditions_non_aggregate_selection_with_aggregate -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[max_t] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[max_t] +----------PhysicalOlapScan[max_t] +--------hashAgg[LOCAL] +----------PhysicalOlapScan[max_t] -- !groupby_pushdown_with_where_clause -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[max_t] --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------PhysicalOlapScan[max_t] apply RFs: RF0 -------------hashAgg[LOCAL] ---------------filter((t1.score > 50)) -----------------PhysicalOlapScan[max_t] +----------filter((t1.score > 50)) +------------PhysicalOlapScan[max_t] -- !groupby_pushdown_varied_aggregates -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[max_t] -------------PhysicalOlapScan[max_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[max_t] +--------PhysicalOlapScan[max_t] -- !groupby_pushdown_with_order_by_limit -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------------hashAgg[LOCAL] -------------------PhysicalOlapScan[max_t] -----------------PhysicalOlapScan[max_t] - --- !groupby_pushdown_alias_multiple_equal_conditions -- -PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[GLOBAL] --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1_alias.id = t2_alias.id) and (t1_alias.name = t2_alias.name)) otherCondition=() +----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ------------hashAgg[LOCAL] --------------PhysicalOlapScan[max_t] ------------PhysicalOlapScan[max_t] +-- !groupby_pushdown_alias_multiple_equal_conditions -- +PhysicalResultSink +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1_alias.id = t2_alias.id) and (t1_alias.name = t2_alias.name)) otherCondition=() +--------hashAgg[LOCAL] +----------PhysicalOlapScan[max_t] +--------PhysicalOlapScan[max_t] + -- !groupby_pushdown_complex_join_condition -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.score = t2.score)) otherCondition=(( not (name = name))) -------------PhysicalOlapScan[max_t] -------------PhysicalOlapScan[max_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.score = t2.score)) otherCondition=(( not (name = name))) +--------PhysicalOlapScan[max_t] +--------PhysicalOlapScan[max_t] -- !groupby_pushdown_function_processed_columns -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[max_t] -------------PhysicalOlapScan[max_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[max_t] +--------PhysicalOlapScan[max_t] -- !groupby_pushdown_nested_queries -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------filter((max_t.id < 100)) +----------PhysicalOlapScan[max_t] --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------filter((max_t.id < 100)) ---------------PhysicalOlapScan[max_t] apply RFs: RF0 -------------hashAgg[LOCAL] ---------------filter((max_t.score > 20) and (t1.id < 100)) -----------------PhysicalOlapScan[max_t] +----------filter((max_t.score > 20) and (t1.id < 100)) +------------PhysicalOlapScan[max_t] diff --git a/regression-test/data/nereids_rules_p0/eager_aggregate/push_down_min_through_join.out b/regression-test/data/nereids_rules_p0/eager_aggregate/push_down_min_through_join.out index a4cc06ff14..a0a2acd944 100644 --- a/regression-test/data/nereids_rules_p0/eager_aggregate/push_down_min_through_join.out +++ b/regression-test/data/nereids_rules_p0/eager_aggregate/push_down_min_through_join.out @@ -1,290 +1,237 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !groupby_pushdown_basic -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[min_t] -------------PhysicalOlapScan[min_t] +----------PhysicalOlapScan[min_t] +--------PhysicalOlapScan[min_t] -- !groupby_pushdown_left_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[min_t] -------------PhysicalOlapScan[min_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[min_t] +--------PhysicalOlapScan[min_t] -- !groupby_pushdown_right_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[min_t] -------------PhysicalOlapScan[min_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[min_t] +--------PhysicalOlapScan[min_t] -- !groupby_pushdown_full_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[min_t] -------------PhysicalOlapScan[min_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[min_t] +--------PhysicalOlapScan[min_t] -- !groupby_pushdown_left_semi_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[min_t] -------------PhysicalOlapScan[min_t] +----------PhysicalOlapScan[min_t] +--------PhysicalOlapScan[min_t] -- !groupby_pushdown_left_anti_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[min_t] -------------PhysicalOlapScan[min_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[min_t] +--------PhysicalOlapScan[min_t] -- !groupby_pushdown_complex_conditions -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.name < t2.name)) -------------PhysicalOlapScan[min_t] -------------PhysicalOlapScan[min_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.name < t2.name)) +--------PhysicalOlapScan[min_t] +--------PhysicalOlapScan[min_t] -- !groupby_pushdown_with_aggregate -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[min_t] -------------PhysicalOlapScan[min_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[min_t] +--------PhysicalOlapScan[min_t] -- !groupby_pushdown_subquery -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[min_t] --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------PhysicalOlapScan[min_t] apply RFs: RF0 -------------hashAgg[LOCAL] ---------------filter((min_t.score > 10)) -----------------PhysicalOlapScan[min_t] +----------filter((min_t.score > 10)) +------------PhysicalOlapScan[min_t] -- !groupby_pushdown_outer_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[min_t] -------------PhysicalOlapScan[min_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[min_t] +--------PhysicalOlapScan[min_t] -- !groupby_pushdown_deep_subquery -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[min_t] --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------PhysicalOlapScan[min_t] apply RFs: RF0 -------------hashAgg[LOCAL] ---------------filter((min_t.score > 10)) -----------------PhysicalOlapScan[min_t] +----------filter((min_t.score > 10)) +------------PhysicalOlapScan[min_t] -- !groupby_pushdown_having -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----filter((min(score) > 100)) -------hashAgg[GLOBAL] ---------PhysicalDistribute[DistributionSpecHash] +--filter((min(score) > 100)) +----hashAgg[GLOBAL] +------hashAgg[LOCAL] +--------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ----------hashAgg[LOCAL] -------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------------hashAgg[LOCAL] -----------------PhysicalOlapScan[min_t] ---------------PhysicalOlapScan[min_t] +------------PhysicalOlapScan[min_t] +----------PhysicalOlapScan[min_t] -- !groupby_pushdown_mixed_aggregates -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[min_t] -------------PhysicalOlapScan[min_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[min_t] +--------PhysicalOlapScan[min_t] -- !groupby_pushdown_multi_table_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[LOCAL] -------hashJoin[INNER_JOIN] hashCondition=((t1.name = t3.name)) otherCondition=() ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] +--hashAgg[LOCAL] +----hashJoin[INNER_JOIN] hashCondition=((t1.name = t3.name)) otherCondition=() +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ------------hashAgg[LOCAL] ---------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------------hashAgg[LOCAL] -------------------PhysicalOlapScan[min_t] -----------------PhysicalOlapScan[min_t] ---------PhysicalDistribute[DistributionSpecHash] -----------PhysicalOlapScan[min_t] +--------------PhysicalOlapScan[min_t] +------------PhysicalOlapScan[min_t] +------PhysicalOlapScan[min_t] -- !groupby_pushdown_with_order_by -- PhysicalResultSink --PhysicalQuickSort[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalQuickSort[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] +----PhysicalQuickSort[LOCAL_SORT] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ------------hashAgg[LOCAL] ---------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------------hashAgg[LOCAL] -------------------PhysicalOlapScan[min_t] -----------------PhysicalOlapScan[min_t] +--------------PhysicalOlapScan[min_t] +------------PhysicalOlapScan[min_t] -- !groupby_pushdown_multiple_equal_conditions -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[min_t] -------------PhysicalOlapScan[min_t] +----------PhysicalOlapScan[min_t] +--------PhysicalOlapScan[min_t] -- !groupby_pushdown_equal_conditions_with_aggregate -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() -------------PhysicalOlapScan[min_t] -------------PhysicalOlapScan[min_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() +--------PhysicalOlapScan[min_t] +--------PhysicalOlapScan[min_t] -- !groupby_pushdown_equal_conditions_non_aggregate_selection -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[min_t] -------------PhysicalOlapScan[min_t] +----------PhysicalOlapScan[min_t] +--------PhysicalOlapScan[min_t] -- !groupby_pushdown_equal_conditions_non_aggregate_selection_with_aggregate -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[min_t] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[min_t] +----------PhysicalOlapScan[min_t] +--------hashAgg[LOCAL] +----------PhysicalOlapScan[min_t] -- !groupby_pushdown_with_where_clause -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[min_t] --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------PhysicalOlapScan[min_t] apply RFs: RF0 -------------hashAgg[LOCAL] ---------------filter((t1.score > 50)) -----------------PhysicalOlapScan[min_t] +----------filter((t1.score > 50)) +------------PhysicalOlapScan[min_t] -- !groupby_pushdown_varied_aggregates -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[min_t] -------------PhysicalOlapScan[min_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[min_t] +--------PhysicalOlapScan[min_t] -- !groupby_pushdown_with_order_by_limit -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------------hashAgg[LOCAL] -------------------PhysicalOlapScan[min_t] -----------------PhysicalOlapScan[min_t] - --- !groupby_pushdown_alias_multiple_equal_conditions -- -PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[GLOBAL] --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1_alias.id = t2_alias.id) and (t1_alias.name = t2_alias.name)) otherCondition=() +----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ------------hashAgg[LOCAL] --------------PhysicalOlapScan[min_t] ------------PhysicalOlapScan[min_t] +-- !groupby_pushdown_alias_multiple_equal_conditions -- +PhysicalResultSink +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1_alias.id = t2_alias.id) and (t1_alias.name = t2_alias.name)) otherCondition=() +--------hashAgg[LOCAL] +----------PhysicalOlapScan[min_t] +--------PhysicalOlapScan[min_t] + -- !groupby_pushdown_complex_join_condition -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.score = t2.score)) otherCondition=(( not (name = name))) -------------PhysicalOlapScan[min_t] -------------PhysicalOlapScan[min_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.score = t2.score)) otherCondition=(( not (name = name))) +--------PhysicalOlapScan[min_t] +--------PhysicalOlapScan[min_t] -- !groupby_pushdown_function_processed_columns -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[min_t] -------------PhysicalOlapScan[min_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[min_t] +--------PhysicalOlapScan[min_t] -- !groupby_pushdown_nested_queries -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------filter((min_t.id < 100)) +----------PhysicalOlapScan[min_t] --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------filter((min_t.id < 100)) ---------------PhysicalOlapScan[min_t] apply RFs: RF0 -------------hashAgg[LOCAL] ---------------filter((min_t.score > 20) and (t1.id < 100)) -----------------PhysicalOlapScan[min_t] +----------filter((min_t.score > 20) and (t1.id < 100)) +------------PhysicalOlapScan[min_t] diff --git a/regression-test/data/nereids_rules_p0/eager_aggregate/push_down_sum_through_join.out b/regression-test/data/nereids_rules_p0/eager_aggregate/push_down_sum_through_join.out index 1e497ebd80..da05df5419 100644 --- a/regression-test/data/nereids_rules_p0/eager_aggregate/push_down_sum_through_join.out +++ b/regression-test/data/nereids_rules_p0/eager_aggregate/push_down_sum_through_join.out @@ -1,303 +1,250 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !groupby_pushdown_basic -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[sum_t] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[sum_t] +----------PhysicalOlapScan[sum_t] +--------hashAgg[LOCAL] +----------PhysicalOlapScan[sum_t] -- !groupby_pushdown_left_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[sum_t] -------------PhysicalOlapScan[sum_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[sum_t] +--------PhysicalOlapScan[sum_t] -- !groupby_pushdown_right_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[sum_t] -------------PhysicalOlapScan[sum_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[sum_t] +--------PhysicalOlapScan[sum_t] -- !groupby_pushdown_full_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[sum_t] -------------PhysicalOlapScan[sum_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[sum_t] +--------PhysicalOlapScan[sum_t] -- !groupby_pushdown_left_semi_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[sum_t] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[sum_t] +----------PhysicalOlapScan[sum_t] +--------hashAgg[LOCAL] +----------PhysicalOlapScan[sum_t] -- !groupby_pushdown_left_anti_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[sum_t] -------------PhysicalOlapScan[sum_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[sum_t] +--------PhysicalOlapScan[sum_t] -- !groupby_pushdown_complex_conditions -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.name < t2.name)) -------------PhysicalOlapScan[sum_t] -------------PhysicalOlapScan[sum_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.name < t2.name)) +--------PhysicalOlapScan[sum_t] +--------PhysicalOlapScan[sum_t] -- !groupby_pushdown_with_aggregate -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[sum_t] -------------PhysicalOlapScan[sum_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[sum_t] +--------PhysicalOlapScan[sum_t] -- !groupby_pushdown_subquery -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[sum_t] apply RFs: RF0 -------------hashAgg[LOCAL] ---------------filter((sum_t.score > 10)) -----------------PhysicalOlapScan[sum_t] +----------PhysicalOlapScan[sum_t] +--------hashAgg[LOCAL] +----------filter((sum_t.score > 10)) +------------PhysicalOlapScan[sum_t] -- !groupby_pushdown_outer_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[sum_t] -------------PhysicalOlapScan[sum_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[sum_t] +--------PhysicalOlapScan[sum_t] -- !groupby_pushdown_deep_subquery -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[sum_t] apply RFs: RF0 -------------hashAgg[LOCAL] ---------------filter((sum_t.score > 10)) -----------------PhysicalOlapScan[sum_t] +----------PhysicalOlapScan[sum_t] +--------hashAgg[LOCAL] +----------filter((sum_t.score > 10)) +------------PhysicalOlapScan[sum_t] -- !groupby_pushdown_having -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----filter((sum(score) > 100)) -------hashAgg[GLOBAL] ---------PhysicalDistribute[DistributionSpecHash] +--filter((sum(score) > 100)) +----hashAgg[GLOBAL] +------hashAgg[LOCAL] +--------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ----------hashAgg[LOCAL] -------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------------hashAgg[LOCAL] -----------------PhysicalOlapScan[sum_t] ---------------hashAgg[LOCAL] -----------------PhysicalOlapScan[sum_t] +------------PhysicalOlapScan[sum_t] +----------hashAgg[LOCAL] +------------PhysicalOlapScan[sum_t] -- !groupby_pushdown_mixed_aggregates -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[sum_t] -------------PhysicalOlapScan[sum_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[sum_t] +--------PhysicalOlapScan[sum_t] -- !groupby_pushdown_multi_table_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[LOCAL] -------hashJoin[INNER_JOIN] hashCondition=((t1.name = t3.name)) otherCondition=() ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------------hashAgg[LOCAL] -------------------PhysicalOlapScan[sum_t] -----------------hashAgg[LOCAL] -------------------PhysicalOlapScan[sum_t] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] +--hashAgg[LOCAL] +----hashJoin[INNER_JOIN] hashCondition=((t1.name = t3.name)) otherCondition=() +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ------------hashAgg[LOCAL] --------------PhysicalOlapScan[sum_t] +------------hashAgg[LOCAL] +--------------PhysicalOlapScan[sum_t] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------PhysicalOlapScan[sum_t] -- !groupby_pushdown_with_order_by -- PhysicalResultSink --PhysicalQuickSort[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalQuickSort[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] +----PhysicalQuickSort[LOCAL_SORT] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ------------hashAgg[LOCAL] ---------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------------hashAgg[LOCAL] -------------------PhysicalOlapScan[sum_t] -----------------hashAgg[LOCAL] -------------------PhysicalOlapScan[sum_t] +--------------PhysicalOlapScan[sum_t] +------------hashAgg[LOCAL] +--------------PhysicalOlapScan[sum_t] -- !groupby_pushdown_multiple_equal_conditions -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[sum_t] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[sum_t] +----------PhysicalOlapScan[sum_t] +--------hashAgg[LOCAL] +----------PhysicalOlapScan[sum_t] -- !groupby_pushdown_equal_conditions_with_aggregate -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() -------------PhysicalOlapScan[sum_t] -------------PhysicalOlapScan[sum_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() +--------PhysicalOlapScan[sum_t] +--------PhysicalOlapScan[sum_t] -- !groupby_pushdown_equal_conditions_non_aggregate_selection -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[sum_t] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[sum_t] +----------PhysicalOlapScan[sum_t] +--------hashAgg[LOCAL] +----------PhysicalOlapScan[sum_t] -- !groupby_pushdown_equal_conditions_non_aggregate_selection_with_aggregate -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() -------------PhysicalOlapScan[sum_t] -------------PhysicalOlapScan[sum_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() +--------PhysicalOlapScan[sum_t] +--------PhysicalOlapScan[sum_t] -- !groupby_pushdown_with_where_clause -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[sum_t] apply RFs: RF0 -------------hashAgg[LOCAL] ---------------filter((t1.score > 50)) -----------------PhysicalOlapScan[sum_t] +----------PhysicalOlapScan[sum_t] +--------hashAgg[LOCAL] +----------filter((t1.score > 50)) +------------PhysicalOlapScan[sum_t] -- !groupby_pushdown_varied_aggregates -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[sum_t] -------------PhysicalOlapScan[sum_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[sum_t] +--------PhysicalOlapScan[sum_t] -- !groupby_pushdown_with_order_by_limit -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ------------hashAgg[LOCAL] ---------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------------hashAgg[LOCAL] -------------------PhysicalOlapScan[sum_t] -----------------hashAgg[LOCAL] -------------------PhysicalOlapScan[sum_t] +--------------PhysicalOlapScan[sum_t] +------------hashAgg[LOCAL] +--------------PhysicalOlapScan[sum_t] -- !groupby_pushdown_alias_multiple_equal_conditions -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1_alias.id = t2_alias.id) and (t1_alias.name = t2_alias.name)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1_alias.id = t2_alias.id) and (t1_alias.name = t2_alias.name)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[sum_t] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[sum_t] +----------PhysicalOlapScan[sum_t] +--------hashAgg[LOCAL] +----------PhysicalOlapScan[sum_t] -- !groupby_pushdown_complex_join_condition -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.score = t2.score)) otherCondition=(( not (name = name))) -------------PhysicalOlapScan[sum_t] -------------PhysicalOlapScan[sum_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.score = t2.score)) otherCondition=(( not (name = name))) +--------PhysicalOlapScan[sum_t] +--------PhysicalOlapScan[sum_t] -- !groupby_pushdown_function_processed_columns -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[sum_t] -------------PhysicalOlapScan[sum_t] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[sum_t] +--------PhysicalOlapScan[sum_t] -- !groupby_pushdown_nested_queries -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------hashAgg[LOCAL] ---------------filter((sum_t.id < 100)) -----------------PhysicalOlapScan[sum_t] apply RFs: RF0 -------------hashAgg[LOCAL] ---------------filter((sum_t.score > 20) and (t1.id < 100)) -----------------PhysicalOlapScan[sum_t] +----------filter((sum_t.id < 100)) +------------PhysicalOlapScan[sum_t] +--------hashAgg[LOCAL] +----------filter((sum_t.score > 20) and (t1.id < 100)) +------------PhysicalOlapScan[sum_t] diff --git a/regression-test/data/nereids_rules_p0/eager_aggregate/push_down_sum_through_join_one_side.out b/regression-test/data/nereids_rules_p0/eager_aggregate/push_down_sum_through_join_one_side.out index 120d293e37..8046cec6d9 100644 --- a/regression-test/data/nereids_rules_p0/eager_aggregate/push_down_sum_through_join_one_side.out +++ b/regression-test/data/nereids_rules_p0/eager_aggregate/push_down_sum_through_join_one_side.out @@ -1,290 +1,237 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !groupby_pushdown_basic -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[sum_t_one_side] -------------PhysicalOlapScan[sum_t_one_side] +----------PhysicalOlapScan[sum_t_one_side] +--------PhysicalOlapScan[sum_t_one_side] -- !groupby_pushdown_left_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[sum_t_one_side] -------------PhysicalOlapScan[sum_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[sum_t_one_side] +--------PhysicalOlapScan[sum_t_one_side] -- !groupby_pushdown_right_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[sum_t_one_side] -------------PhysicalOlapScan[sum_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[sum_t_one_side] +--------PhysicalOlapScan[sum_t_one_side] -- !groupby_pushdown_full_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[sum_t_one_side] -------------PhysicalOlapScan[sum_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[sum_t_one_side] +--------PhysicalOlapScan[sum_t_one_side] -- !groupby_pushdown_left_semi_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[sum_t_one_side] -------------PhysicalOlapScan[sum_t_one_side] +----------PhysicalOlapScan[sum_t_one_side] +--------PhysicalOlapScan[sum_t_one_side] -- !groupby_pushdown_left_anti_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[sum_t_one_side] -------------PhysicalOlapScan[sum_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[sum_t_one_side] +--------PhysicalOlapScan[sum_t_one_side] -- !groupby_pushdown_complex_conditions -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.name < t2.name)) -------------PhysicalOlapScan[sum_t_one_side] -------------PhysicalOlapScan[sum_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.name < t2.name)) +--------PhysicalOlapScan[sum_t_one_side] +--------PhysicalOlapScan[sum_t_one_side] -- !groupby_pushdown_with_aggregate -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[sum_t_one_side] -------------PhysicalOlapScan[sum_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[sum_t_one_side] +--------PhysicalOlapScan[sum_t_one_side] -- !groupby_pushdown_subquery -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[sum_t_one_side] --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------PhysicalOlapScan[sum_t_one_side] apply RFs: RF0 -------------hashAgg[LOCAL] ---------------filter((sum_t_one_side.score > 10)) -----------------PhysicalOlapScan[sum_t_one_side] +----------filter((sum_t_one_side.score > 10)) +------------PhysicalOlapScan[sum_t_one_side] -- !groupby_pushdown_outer_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[sum_t_one_side] -------------PhysicalOlapScan[sum_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[sum_t_one_side] +--------PhysicalOlapScan[sum_t_one_side] -- !groupby_pushdown_deep_subquery -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[sum_t_one_side] --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------PhysicalOlapScan[sum_t_one_side] apply RFs: RF0 -------------hashAgg[LOCAL] ---------------filter((sum_t_one_side.score > 10)) -----------------PhysicalOlapScan[sum_t_one_side] +----------filter((sum_t_one_side.score > 10)) +------------PhysicalOlapScan[sum_t_one_side] -- !groupby_pushdown_having -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----filter((sum(score) > 100)) -------hashAgg[GLOBAL] ---------PhysicalDistribute[DistributionSpecHash] +--filter((sum(score) > 100)) +----hashAgg[GLOBAL] +------hashAgg[LOCAL] +--------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ----------hashAgg[LOCAL] -------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------------hashAgg[LOCAL] -----------------PhysicalOlapScan[sum_t_one_side] ---------------PhysicalOlapScan[sum_t_one_side] +------------PhysicalOlapScan[sum_t_one_side] +----------PhysicalOlapScan[sum_t_one_side] -- !groupby_pushdown_mixed_aggregates -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[sum_t_one_side] -------------PhysicalOlapScan[sum_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[sum_t_one_side] +--------PhysicalOlapScan[sum_t_one_side] -- !groupby_pushdown_multi_table_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[LOCAL] -------hashJoin[INNER_JOIN] hashCondition=((t1.name = t3.name)) otherCondition=() ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] +--hashAgg[LOCAL] +----hashJoin[INNER_JOIN] hashCondition=((t1.name = t3.name)) otherCondition=() +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ------------hashAgg[LOCAL] ---------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------------hashAgg[LOCAL] -------------------PhysicalOlapScan[sum_t_one_side] -----------------PhysicalOlapScan[sum_t_one_side] ---------PhysicalDistribute[DistributionSpecHash] -----------PhysicalOlapScan[sum_t_one_side] +--------------PhysicalOlapScan[sum_t_one_side] +------------PhysicalOlapScan[sum_t_one_side] +------PhysicalOlapScan[sum_t_one_side] -- !groupby_pushdown_with_order_by -- PhysicalResultSink --PhysicalQuickSort[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalQuickSort[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] +----PhysicalQuickSort[LOCAL_SORT] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ------------hashAgg[LOCAL] ---------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------------hashAgg[LOCAL] -------------------PhysicalOlapScan[sum_t_one_side] -----------------PhysicalOlapScan[sum_t_one_side] +--------------PhysicalOlapScan[sum_t_one_side] +------------PhysicalOlapScan[sum_t_one_side] -- !groupby_pushdown_multiple_equal_conditions -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[sum_t_one_side] -------------PhysicalOlapScan[sum_t_one_side] +----------PhysicalOlapScan[sum_t_one_side] +--------PhysicalOlapScan[sum_t_one_side] -- !groupby_pushdown_equal_conditions_with_aggregate -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() -------------PhysicalOlapScan[sum_t_one_side] -------------PhysicalOlapScan[sum_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() +--------PhysicalOlapScan[sum_t_one_side] +--------PhysicalOlapScan[sum_t_one_side] -- !groupby_pushdown_equal_conditions_non_aggregate_selection -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[sum_t_one_side] -------------PhysicalOlapScan[sum_t_one_side] +----------PhysicalOlapScan[sum_t_one_side] +--------PhysicalOlapScan[sum_t_one_side] -- !groupby_pushdown_equal_conditions_non_aggregate_selection_with_aggregate -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[sum_t_one_side] -------------hashAgg[LOCAL] ---------------PhysicalOlapScan[sum_t_one_side] +----------PhysicalOlapScan[sum_t_one_side] +--------hashAgg[LOCAL] +----------PhysicalOlapScan[sum_t_one_side] -- !groupby_pushdown_with_where_clause -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[sum_t_one_side] --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------PhysicalOlapScan[sum_t_one_side] apply RFs: RF0 -------------hashAgg[LOCAL] ---------------filter((t1.score > 50)) -----------------PhysicalOlapScan[sum_t_one_side] +----------filter((t1.score > 50)) +------------PhysicalOlapScan[sum_t_one_side] -- !groupby_pushdown_varied_aggregates -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[sum_t_one_side] -------------PhysicalOlapScan[sum_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[sum_t_one_side] +--------PhysicalOlapScan[sum_t_one_side] -- !groupby_pushdown_with_order_by_limit -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------------hashAgg[LOCAL] -------------------PhysicalOlapScan[sum_t_one_side] -----------------PhysicalOlapScan[sum_t_one_side] - --- !groupby_pushdown_alias_multiple_equal_conditions -- -PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[GLOBAL] --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1_alias.id = t2_alias.id) and (t1_alias.name = t2_alias.name)) otherCondition=() +----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ------------hashAgg[LOCAL] --------------PhysicalOlapScan[sum_t_one_side] ------------PhysicalOlapScan[sum_t_one_side] +-- !groupby_pushdown_alias_multiple_equal_conditions -- +PhysicalResultSink +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1_alias.id = t2_alias.id) and (t1_alias.name = t2_alias.name)) otherCondition=() +--------hashAgg[LOCAL] +----------PhysicalOlapScan[sum_t_one_side] +--------PhysicalOlapScan[sum_t_one_side] + -- !groupby_pushdown_complex_join_condition -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.score = t2.score)) otherCondition=(( not (name = name))) -------------PhysicalOlapScan[sum_t_one_side] -------------PhysicalOlapScan[sum_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.score = t2.score)) otherCondition=(( not (name = name))) +--------PhysicalOlapScan[sum_t_one_side] +--------PhysicalOlapScan[sum_t_one_side] -- !groupby_pushdown_function_processed_columns -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[sum_t_one_side] -------------PhysicalOlapScan[sum_t_one_side] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[sum_t_one_side] +--------PhysicalOlapScan[sum_t_one_side] -- !groupby_pushdown_nested_queries -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------filter((sum_t_one_side.id < 100)) +----------PhysicalOlapScan[sum_t_one_side] --------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------filter((sum_t_one_side.id < 100)) ---------------PhysicalOlapScan[sum_t_one_side] apply RFs: RF0 -------------hashAgg[LOCAL] ---------------filter((sum_t_one_side.score > 20) and (t1.id < 100)) -----------------PhysicalOlapScan[sum_t_one_side] +----------filter((sum_t_one_side.score > 20) and (t1.id < 100)) +------------PhysicalOlapScan[sum_t_one_side] diff --git a/regression-test/data/nereids_rules_p0/eliminate_join_condition/eliminate_join_condition.out b/regression-test/data/nereids_rules_p0/eliminate_join_condition/eliminate_join_condition.out index a673508edb..4c765dcf37 100644 --- a/regression-test/data/nereids_rules_p0/eliminate_join_condition/eliminate_join_condition.out +++ b/regression-test/data/nereids_rules_p0/eliminate_join_condition/eliminate_join_condition.out @@ -1,40 +1,31 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !inner_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----NestedLoopJoin[CROSS_JOIN] -------PhysicalOlapScan[t] -------PhysicalDistribute[DistributionSpecReplicated] ---------PhysicalOlapScan[t] +--NestedLoopJoin[CROSS_JOIN] +----PhysicalOlapScan[t] +----PhysicalOlapScan[t] -- !left_outer_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----NestedLoopJoin[LEFT_OUTER_JOIN] -------PhysicalOlapScan[t] -------PhysicalDistribute[DistributionSpecReplicated] ---------PhysicalOlapScan[t] +--NestedLoopJoin[LEFT_OUTER_JOIN] +----PhysicalOlapScan[t] +----PhysicalOlapScan[t] -- !right_outer_join -- PhysicalResultSink --NestedLoopJoin[RIGHT_OUTER_JOIN] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalOlapScan[t] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalOlapScan[t] +----PhysicalOlapScan[t] +----PhysicalOlapScan[t] -- !full_outer_join -- PhysicalResultSink --NestedLoopJoin[FULL_OUTER_JOIN] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalOlapScan[t] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalOlapScan[t] +----PhysicalOlapScan[t] +----PhysicalOlapScan[t] -- !left_semi_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----PhysicalOlapScan[t] +--PhysicalOlapScan[t] -- !left_anti_join -- PhysicalResultSink @@ -43,18 +34,14 @@ PhysicalResultSink -- !right_semi_join -- PhysicalResultSink --NestedLoopJoin[RIGHT_SEMI_JOIN] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalOlapScan[t] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalOlapScan[t] +----PhysicalOlapScan[t] +----PhysicalOlapScan[t] -- !right_anti_join -- PhysicalResultSink --NestedLoopJoin[RIGHT_ANTI_JOIN] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalOlapScan[t] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalOlapScan[t] +----PhysicalOlapScan[t] +----PhysicalOlapScan[t] -- !inner_join -- 1 1 a 1 1 a diff --git a/regression-test/data/nereids_rules_p0/eliminate_not_null/eliminate_not_null.out b/regression-test/data/nereids_rules_p0/eliminate_not_null/eliminate_not_null.out index 9c3c820d44..a238db46ce 100644 --- a/regression-test/data/nereids_rules_p0/eliminate_not_null/eliminate_not_null.out +++ b/regression-test/data/nereids_rules_p0/eliminate_not_null/eliminate_not_null.out @@ -1,66 +1,55 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !eliminate_not_null_basic_comparison -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----filter(( not score IS NULL) and (t.score > 13)) -------PhysicalOlapScan[t] +--filter(( not score IS NULL) and (t.score > 13)) +----PhysicalOlapScan[t] -- !eliminate_not_null_in_clause -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----filter(( not id IS NULL) and id IN (1, 2, 3)) -------PhysicalOlapScan[t] +--filter(( not id IS NULL) and id IN (1, 2, 3)) +----PhysicalOlapScan[t] -- !eliminate_not_null_not_equal -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----filter(( not (score = 13)) and ( not score IS NULL)) -------PhysicalOlapScan[t] +--filter(( not (score = 13)) and ( not score IS NULL)) +----PhysicalOlapScan[t] -- !eliminate_not_null_string_function -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----filter(( not name IS NULL) and (length(name) > 0)) -------PhysicalOlapScan[t] +--filter(( not name IS NULL) and (length(name) > 0)) +----PhysicalOlapScan[t] -- !eliminate_not_null_aggregate -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[LOCAL] -------filter(( not score IS NULL) and (t.score > 0)) ---------PhysicalOlapScan[t] +--hashAgg[LOCAL] +----filter(( not score IS NULL) and (t.score > 0)) +------PhysicalOlapScan[t] -- !eliminate_not_null_between -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----filter(( not score IS NULL) and (t.score <= 10) and (t.score >= 1)) -------PhysicalOlapScan[t] +--filter(( not score IS NULL) and (t.score <= 10) and (t.score >= 1)) +----PhysicalOlapScan[t] -- !eliminate_not_null_math_function -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----filter(( not score IS NULL) and (abs(score) = 5)) -------PhysicalOlapScan[t] +--filter(( not score IS NULL) and (abs(score) = 5)) +----PhysicalOlapScan[t] -- !eliminate_not_null_complex_logic -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----filter(( not score IS NULL) and ((t.score > 5) OR (t.id < 10))) -------PhysicalOlapScan[t] +--filter(( not score IS NULL) and ((t.score > 5) OR (t.id < 10))) +----PhysicalOlapScan[t] -- !eliminate_not_null_date_function -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----filter(( not name IS NULL) and (year(cast(name as DATEV2)) = 2022)) -------PhysicalOlapScan[t] +--filter(( not name IS NULL) and (year(cast(name as DATEV2)) = 2022)) +----PhysicalOlapScan[t] -- !eliminate_not_null_with_subquery -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_SEMI_JOIN] hashCondition=((t.score = t.score)) otherCondition=() build RFs:RF0 score->[score] -------filter(( not score IS NULL) and (t.score > 0)) ---------PhysicalOlapScan[t] apply RFs: RF0 -------PhysicalDistribute[DistributionSpecReplicated] ---------filter((t.score > 0)) -----------PhysicalOlapScan[t] +--hashJoin[LEFT_SEMI_JOIN] hashCondition=((t.score = t.score)) otherCondition=() +----filter(( not score IS NULL) and (t.score > 0)) +------PhysicalOlapScan[t] +----filter((t.score > 0)) +------PhysicalOlapScan[t] diff --git a/regression-test/data/nereids_rules_p0/eliminate_outer_join/eliminate_outer_join.out b/regression-test/data/nereids_rules_p0/eliminate_outer_join/eliminate_outer_join.out index 138eb0e62d..b714f8594f 100644 --- a/regression-test/data/nereids_rules_p0/eliminate_outer_join/eliminate_outer_join.out +++ b/regression-test/data/nereids_rules_p0/eliminate_outer_join/eliminate_outer_join.out @@ -3,8 +3,8 @@ PhysicalResultSink --PhysicalDistribute[DistributionSpecGather] ----PhysicalProject -------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] ---------PhysicalOlapScan[t] apply RFs: RF0 +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t] --------filter((t2.score > 10)) ----------PhysicalOlapScan[t] @@ -12,8 +12,8 @@ PhysicalResultSink PhysicalResultSink --PhysicalDistribute[DistributionSpecGather] ----PhysicalProject -------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] ---------PhysicalOlapScan[t] apply RFs: RF0 +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t] --------filter((t1.score > 10)) ----------PhysicalOlapScan[t] @@ -21,8 +21,8 @@ PhysicalResultSink PhysicalResultSink --PhysicalDistribute[DistributionSpecGather] ----PhysicalProject -------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] ---------PhysicalOlapScan[t] apply RFs: RF0 +------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t] --------filter((t1.score > 10)) ----------PhysicalOlapScan[t] @@ -30,8 +30,8 @@ PhysicalResultSink PhysicalResultSink --PhysicalDistribute[DistributionSpecGather] ----PhysicalProject -------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] ---------PhysicalOlapScan[t] apply RFs: RF0 +------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t] --------filter((t2.score > 10)) ----------PhysicalOlapScan[t] @@ -39,9 +39,9 @@ PhysicalResultSink PhysicalResultSink --PhysicalDistribute[DistributionSpecGather] ----PhysicalProject -------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() --------filter((t1.score > 10)) -----------PhysicalOlapScan[t] apply RFs: RF0 +----------PhysicalOlapScan[t] --------filter((t2.score > 10)) ----------PhysicalOlapScan[t] @@ -49,9 +49,9 @@ PhysicalResultSink PhysicalResultSink --PhysicalDistribute[DistributionSpecGather] ----PhysicalProject -------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() --------filter((t1.score > 10)) -----------PhysicalOlapScan[t] apply RFs: RF0 +----------PhysicalOlapScan[t] --------filter((t2.score > 10)) ----------PhysicalOlapScan[t] @@ -60,8 +60,8 @@ PhysicalResultSink --PhysicalDistribute[DistributionSpecGather] ----PhysicalProject ------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() ---------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -----------PhysicalOlapScan[t] apply RFs: RF0 +--------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----------PhysicalOlapScan[t] ----------filter((t1.score > 10)) ------------PhysicalOlapScan[t] --------PhysicalOlapScan[t] @@ -71,8 +71,8 @@ PhysicalResultSink --PhysicalDistribute[DistributionSpecGather] ----PhysicalProject ------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() ---------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -----------PhysicalOlapScan[t] apply RFs: RF0 +--------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----------PhysicalOlapScan[t] ----------filter((t2.score > 10)) ------------PhysicalOlapScan[t] --------PhysicalOlapScan[t] @@ -81,10 +81,10 @@ PhysicalResultSink PhysicalResultSink --PhysicalDistribute[DistributionSpecGather] ----PhysicalProject -------hashJoin[INNER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() build RFs:RF1 id->[id] ---------PhysicalOlapScan[t] apply RFs: RF1 ---------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -----------PhysicalOlapScan[t] apply RFs: RF0 +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +--------PhysicalOlapScan[t] +--------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----------PhysicalOlapScan[t] ----------filter((t1.score > 10)) ------------PhysicalOlapScan[t] @@ -92,10 +92,10 @@ PhysicalResultSink PhysicalResultSink --PhysicalDistribute[DistributionSpecGather] ----PhysicalProject -------hashJoin[INNER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() build RFs:RF1 id->[id] ---------PhysicalOlapScan[t] apply RFs: RF1 ---------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -----------PhysicalOlapScan[t] apply RFs: RF0 +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +--------PhysicalOlapScan[t] +--------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----------PhysicalOlapScan[t] ----------filter((t2.score > 10)) ------------PhysicalOlapScan[t] @@ -104,8 +104,8 @@ PhysicalResultSink --PhysicalDistribute[DistributionSpecGather] ----PhysicalProject ------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() ---------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -----------PhysicalOlapScan[t] apply RFs: RF0 +--------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----------PhysicalOlapScan[t] ----------filter((t1.score > 10)) ------------PhysicalOlapScan[t] --------PhysicalOlapScan[t] @@ -115,8 +115,8 @@ PhysicalResultSink --PhysicalDistribute[DistributionSpecGather] ----PhysicalProject ------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() ---------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -----------PhysicalOlapScan[t] apply RFs: RF0 +--------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----------PhysicalOlapScan[t] ----------filter((t2.score > 10)) ------------PhysicalOlapScan[t] --------PhysicalDistribute[DistributionSpecReplicated] @@ -126,8 +126,8 @@ PhysicalResultSink PhysicalResultSink --PhysicalDistribute[DistributionSpecGather] ----PhysicalProject -------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] ---------PhysicalOlapScan[t] apply RFs: RF0 +------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t] --------filter(( not id IS NULL) and (t1.score > 5)) ----------PhysicalOlapScan[t] @@ -135,8 +135,8 @@ PhysicalResultSink PhysicalResultSink --PhysicalDistribute[DistributionSpecGather] ----PhysicalProject -------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] ---------PhysicalOlapScan[t] apply RFs: RF0 +------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t] --------filter(( not id IS NULL) and (t2.score > 5)) ----------PhysicalOlapScan[t] @@ -153,9 +153,9 @@ PhysicalResultSink PhysicalResultSink --PhysicalDistribute[DistributionSpecGather] ----PhysicalProject -------hashJoin[INNER_JOIN] hashCondition=((t2.id = t3.id)) otherCondition=() build RFs:RF1 id->[id] ---------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -----------PhysicalOlapScan[t] apply RFs: RF0 RF1 +------hashJoin[INNER_JOIN] hashCondition=((t2.id = t3.id)) otherCondition=() +--------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----------PhysicalOlapScan[t] ----------filter((t1.score > 5)) ------------PhysicalOlapScan[t] --------filter(( not score IS NULL)) @@ -199,9 +199,9 @@ PhysicalResultSink PhysicalResultSink --PhysicalDistribute[DistributionSpecGather] ----PhysicalProject -------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() --------filter(( not name IS NULL)) -----------PhysicalOlapScan[t] apply RFs: RF0 +----------PhysicalOlapScan[t] --------filter((t1.score > 10)) ----------PhysicalOlapScan[t] @@ -209,9 +209,9 @@ PhysicalResultSink PhysicalResultSink --PhysicalDistribute[DistributionSpecGather] ----PhysicalProject -------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() --------filter(( not name IS NULL)) -----------PhysicalOlapScan[t] apply RFs: RF0 +----------PhysicalOlapScan[t] --------filter((t1.score > 10)) ----------PhysicalOlapScan[t] @@ -219,9 +219,9 @@ PhysicalResultSink PhysicalResultSink --PhysicalDistribute[DistributionSpecGather] ----PhysicalProject -------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() --------filter(( not name IS NULL)) -----------PhysicalOlapScan[t] apply RFs: RF0 +----------PhysicalOlapScan[t] --------filter((t1.score > 10)) ----------PhysicalOlapScan[t] @@ -229,8 +229,8 @@ PhysicalResultSink PhysicalResultSink --PhysicalDistribute[DistributionSpecGather] ----PhysicalProject -------hashJoin[INNER_JOIN] hashCondition=((t1.id = t1_alias.id)) otherCondition=() build RFs:RF0 id->[id] ---------PhysicalOlapScan[t] apply RFs: RF0 +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t1_alias.id)) otherCondition=() +--------PhysicalOlapScan[t] --------filter((t1_alias.name > '2023-01-01')) ----------PhysicalOlapScan[t] @@ -262,8 +262,8 @@ PhysicalResultSink PhysicalResultSink --PhysicalDistribute[DistributionSpecGather] ----PhysicalProject -------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] ---------PhysicalOlapScan[t] apply RFs: RF0 +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t] --------PhysicalProject ----------filter((t2.score > 20)) ------------PhysicalOlapScan[t] @@ -296,8 +296,8 @@ PhysicalResultSink PhysicalResultSink --PhysicalDistribute[DistributionSpecGather] ----PhysicalProject -------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] ---------PhysicalOlapScan[t] apply RFs: RF0 +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t] --------filter(( not name IS NULL)) ----------PhysicalOlapScan[t] diff --git a/regression-test/data/nereids_rules_p0/filter_push_down/push_down_filter_other_condition.out b/regression-test/data/nereids_rules_p0/filter_push_down/push_down_filter_other_condition.out index 9c5aa03f4d..affd081e07 100644 --- a/regression-test/data/nereids_rules_p0/filter_push_down/push_down_filter_other_condition.out +++ b/regression-test/data/nereids_rules_p0/filter_push_down/push_down_filter_other_condition.out @@ -1,333 +1,253 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !pushdown_inner_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------filter((t1.id > 1)) ---------PhysicalOlapScan[t1] apply RFs: RF0 -------PhysicalDistribute[DistributionSpecHash] ---------filter((t2.id > 1)) -----------PhysicalOlapScan[t2] +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----filter((t1.id > 1)) +------PhysicalOlapScan[t1] +----filter((t2.id > 1)) +------PhysicalOlapScan[t2] -- !pushdown_left_semi_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------filter((t1.id > 1)) ---------PhysicalOlapScan[t1] apply RFs: RF0 -------PhysicalDistribute[DistributionSpecHash] ---------filter((t2.id > 1)) -----------PhysicalOlapScan[t2] +--hashJoin[LEFT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----filter((t1.id > 1)) +------PhysicalOlapScan[t1] +----filter((t2.id > 1)) +------PhysicalOlapScan[t2] -- !pushdown_right_semi_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[RIGHT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------filter((t1.id > 1)) ---------PhysicalOlapScan[t1] apply RFs: RF0 -------PhysicalDistribute[DistributionSpecHash] ---------filter((t2.id > 1)) -----------PhysicalOlapScan[t2] +--hashJoin[RIGHT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----filter((t1.id > 1)) +------PhysicalOlapScan[t1] +----filter((t2.id > 1)) +------PhysicalOlapScan[t2] -- !pushdown_left_outer_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.id > 1)) -------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecHash] ---------filter((t2.id > 1)) -----------PhysicalOlapScan[t2] +--hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.id > 1)) +----PhysicalOlapScan[t1] +----filter((t2.id > 1)) +------PhysicalOlapScan[t2] -- !pushdown_right_outer_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------PhysicalDistribute[DistributionSpecHash] ---------filter((t1.id > 1)) -----------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecHash] ---------PhysicalOlapScan[t2] +--hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----filter((t1.id > 1)) +------PhysicalOlapScan[t1] +----PhysicalOlapScan[t2] -- !pushdown_full_outer_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.id > 1)) -------PhysicalDistribute[DistributionSpecHash] ---------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecHash] ---------PhysicalOlapScan[t2] +--hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.id > 1)) +----PhysicalOlapScan[t1] +----PhysicalOlapScan[t2] -- !pushdown_left_anti_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.id > 1)) -------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecHash] ---------filter((t2.id > 1)) -----------PhysicalOlapScan[t2] +--hashJoin[LEFT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.id > 1)) +----PhysicalOlapScan[t1] +----filter((t2.id > 1)) +------PhysicalOlapScan[t2] -- !pushdown_right_anti_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[RIGHT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------PhysicalDistribute[DistributionSpecHash] ---------filter((t1.id > 1)) -----------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecHash] ---------PhysicalOlapScan[t2] +--hashJoin[RIGHT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----filter((t1.id > 1)) +------PhysicalOlapScan[t1] +----PhysicalOlapScan[t2] -- !pushdown_cross_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------filter((t1.id > 1)) ---------PhysicalOlapScan[t1] apply RFs: RF0 -------PhysicalDistribute[DistributionSpecHash] ---------filter((t2.id > 1)) -----------PhysicalOlapScan[t2] +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----filter((t1.id > 1)) +------PhysicalOlapScan[t1] +----filter((t2.id > 1)) +------PhysicalOlapScan[t2] -- !pushdown_inner_join_combined -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t2.id = t3.id)) otherCondition=() build RFs:RF1 id->[id] -------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] ---------filter((t1.id < 10) and (t1.id > 1)) -----------PhysicalOlapScan[t1] apply RFs: RF0 ---------PhysicalDistribute[DistributionSpecHash] -----------filter((t2.id < 10) and (t2.id > 1)) -------------PhysicalOlapScan[t2] apply RFs: RF1 -------PhysicalDistribute[DistributionSpecHash] ---------filter((t3.id < 10) and (t3.id > 1)) -----------PhysicalOlapScan[t3] +--hashJoin[INNER_JOIN] hashCondition=((t2.id = t3.id)) otherCondition=() +----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------filter((t1.id < 10) and (t1.id > 1)) +--------PhysicalOlapScan[t1] +------filter((t2.id < 10) and (t2.id > 1)) +--------PhysicalOlapScan[t2] +----filter((t3.id < 10) and (t3.id > 1)) +------PhysicalOlapScan[t3] -- !pushdown_left_semi_join_combined -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() build RFs:RF1 id->[id] -------hashJoin[LEFT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] ---------filter((t1.id < 10) and (t1.id > 1)) -----------PhysicalOlapScan[t1] apply RFs: RF0 RF1 ---------PhysicalDistribute[DistributionSpecHash] -----------filter((t2.id < 10) and (t2.id > 1)) -------------PhysicalOlapScan[t2] -------PhysicalDistribute[DistributionSpecHash] ---------filter((t3.id < 10) and (t3.id > 1)) -----------PhysicalOlapScan[t3] +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +----hashJoin[LEFT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------filter((t1.id < 10) and (t1.id > 1)) +--------PhysicalOlapScan[t1] +------filter((t2.id < 10) and (t2.id > 1)) +--------PhysicalOlapScan[t2] +----filter((t3.id < 10) and (t3.id > 1)) +------PhysicalOlapScan[t3] -- !pushdown_right_semi_join_combined -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t2.id = t3.id)) otherCondition=() build RFs:RF1 id->[id] -------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] ---------filter((t1.id < 10) and (t1.id > 1)) -----------PhysicalOlapScan[t1] apply RFs: RF0 ---------PhysicalDistribute[DistributionSpecHash] -----------filter((t2.id < 10) and (t2.id > 1)) -------------PhysicalOlapScan[t2] apply RFs: RF1 -------PhysicalDistribute[DistributionSpecHash] ---------filter((t3.id < 10) and (t3.id > 1)) -----------PhysicalOlapScan[t3] +--hashJoin[INNER_JOIN] hashCondition=((t2.id = t3.id)) otherCondition=() +----hashJoin[RIGHT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------filter((t1.id < 10) and (t1.id > 1)) +--------PhysicalOlapScan[t1] +------filter((t2.id < 10) and (t2.id > 1)) +--------PhysicalOlapScan[t2] +----filter((t3.id < 10) and (t3.id > 1)) +------PhysicalOlapScan[t3] -- !pushdown_left_outer_join_combined -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t2.id = t3.id)) otherCondition=() build RFs:RF1 id->[id] -------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] ---------filter((t1.id < 10) and (t1.id > 1)) -----------PhysicalOlapScan[t1] apply RFs: RF0 ---------PhysicalDistribute[DistributionSpecHash] -----------filter((t2.id < 10) and (t2.id > 1)) -------------PhysicalOlapScan[t2] apply RFs: RF1 -------PhysicalDistribute[DistributionSpecHash] ---------filter((t3.id < 10) and (t3.id > 1)) -----------PhysicalOlapScan[t3] +--hashJoin[INNER_JOIN] hashCondition=((t2.id = t3.id)) otherCondition=() +----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------filter((t1.id < 10) and (t1.id > 1)) +--------PhysicalOlapScan[t1] +------filter((t2.id < 10) and (t2.id > 1)) +--------PhysicalOlapScan[t2] +----filter((t3.id < 10) and (t3.id > 1)) +------PhysicalOlapScan[t3] -- !pushdown_right_outer_join_combined -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t2.id = t3.id)) otherCondition=() build RFs:RF1 id->[id] -------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] ---------PhysicalDistribute[DistributionSpecHash] -----------filter((t1.id < 10) and (t1.id > 1)) -------------PhysicalOlapScan[t1] apply RFs: RF0 ---------PhysicalDistribute[DistributionSpecHash] -----------filter((t2.id < 10)) -------------PhysicalOlapScan[t2] apply RFs: RF1 -------PhysicalDistribute[DistributionSpecHash] ---------filter((t3.id < 10)) -----------PhysicalOlapScan[t3] +--hashJoin[INNER_JOIN] hashCondition=((t2.id = t3.id)) otherCondition=() +----hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------filter((t1.id < 10) and (t1.id > 1)) +--------PhysicalOlapScan[t1] +------filter((t2.id < 10)) +--------PhysicalOlapScan[t2] +----filter((t3.id < 10)) +------PhysicalOlapScan[t3] -- !pushdown_full_outer_join_combined -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t2.id = t3.id)) otherCondition=() build RFs:RF1 id->[id] -------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] ---------PhysicalDistribute[DistributionSpecHash] -----------filter((t1.id < 10) and (t1.id > 1)) -------------PhysicalOlapScan[t1] apply RFs: RF0 ---------PhysicalDistribute[DistributionSpecHash] -----------filter((t2.id < 10)) -------------PhysicalOlapScan[t2] apply RFs: RF1 -------PhysicalDistribute[DistributionSpecHash] ---------filter((t3.id < 10)) -----------PhysicalOlapScan[t3] +--hashJoin[INNER_JOIN] hashCondition=((t2.id = t3.id)) otherCondition=() +----hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------filter((t1.id < 10) and (t1.id > 1)) +--------PhysicalOlapScan[t1] +------filter((t2.id < 10)) +--------PhysicalOlapScan[t2] +----filter((t3.id < 10)) +------PhysicalOlapScan[t3] -- !pushdown_left_anti_join_combined -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() build RFs:RF0 id->[id] -------hashJoin[LEFT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.id > 1)) ---------filter((t1.id < 10)) -----------PhysicalOlapScan[t1] apply RFs: RF0 ---------PhysicalDistribute[DistributionSpecHash] -----------filter((t2.id < 10) and (t2.id > 1)) -------------PhysicalOlapScan[t2] -------PhysicalDistribute[DistributionSpecHash] ---------filter((t3.id < 10)) -----------PhysicalOlapScan[t3] +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +----hashJoin[LEFT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.id > 1)) +------filter((t1.id < 10)) +--------PhysicalOlapScan[t1] +------filter((t2.id < 10) and (t2.id > 1)) +--------PhysicalOlapScan[t2] +----filter((t3.id < 10)) +------PhysicalOlapScan[t3] -- !pushdown_right_anti_join_combined -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t2.id = t3.id)) otherCondition=() build RFs:RF1 id->[id] -------hashJoin[RIGHT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] ---------PhysicalDistribute[DistributionSpecHash] -----------filter((t1.id < 10) and (t1.id > 1)) -------------PhysicalOlapScan[t1] apply RFs: RF0 ---------PhysicalDistribute[DistributionSpecHash] -----------filter((t2.id < 10)) -------------PhysicalOlapScan[t2] apply RFs: RF1 -------PhysicalDistribute[DistributionSpecHash] ---------filter((t3.id < 10)) -----------PhysicalOlapScan[t3] +--hashJoin[INNER_JOIN] hashCondition=((t2.id = t3.id)) otherCondition=() +----hashJoin[RIGHT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------filter((t1.id < 10) and (t1.id > 1)) +--------PhysicalOlapScan[t1] +------filter((t2.id < 10)) +--------PhysicalOlapScan[t2] +----filter((t3.id < 10)) +------PhysicalOlapScan[t3] -- !pushdown_cross_join_combined -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t2.id = t3.id)) otherCondition=() build RFs:RF0 id->[id] -------PhysicalDistribute[DistributionSpecHash] ---------NestedLoopJoin[CROSS_JOIN] -----------PhysicalOlapScan[t1] -----------PhysicalDistribute[DistributionSpecReplicated] -------------filter((t2.id < 10)) ---------------PhysicalOlapScan[t2] apply RFs: RF0 -------PhysicalDistribute[DistributionSpecHash] ---------filter((t3.id < 10)) -----------PhysicalOlapScan[t3] +--hashJoin[INNER_JOIN] hashCondition=((t2.id = t3.id)) otherCondition=() +----NestedLoopJoin[CROSS_JOIN] +------PhysicalOlapScan[t1] +------filter((t2.id < 10)) +--------PhysicalOlapScan[t2] +----filter((t3.id < 10)) +------PhysicalOlapScan[t3] -- !pushdown_null_aware_anti_join_combined -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[NULL_AWARE_LEFT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecReplicated] ---------filter((t2.id > 0)) -----------PhysicalOlapScan[t2] +--hashJoin[NULL_AWARE_LEFT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----PhysicalOlapScan[t1] +----filter((t2.id > 0)) +------PhysicalOlapScan[t2] -- !pushdown_inner_join_subquery -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((expr_cast(id as BIGINT) = sum(id))) otherCondition=() build RFs:RF0 sum(id)->[id] -------PhysicalDistribute[DistributionSpecHash] ---------filter((cast(id as BIGINT) = 1) and (t1.id = 1)) -----------PhysicalOlapScan[t1] apply RFs: RF0 -------PhysicalDistribute[DistributionSpecHash] ---------filter((sum(id) = 1)) -----------hashAgg[GLOBAL] -------------PhysicalDistribute[DistributionSpecGather] ---------------hashAgg[LOCAL] -----------------PhysicalOlapScan[t2] +--hashJoin[INNER_JOIN] hashCondition=((expr_cast(id as BIGINT) = sum(id))) otherCondition=() +----filter((cast(id as BIGINT) = 1) and (t1.id = 1)) +------PhysicalOlapScan[t1] +----filter((sum(id) = 1)) +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------PhysicalOlapScan[t2] -- !pushdown_left_semi_join_subquery -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------filter((t1.id > 1)) ---------PhysicalOlapScan[t1] apply RFs: RF0 -------PhysicalDistribute[DistributionSpecHash] ---------filter((t2.id > 1)) -----------PhysicalOlapScan[t2] +--hashJoin[LEFT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----filter((t1.id > 1)) +------PhysicalOlapScan[t1] +----filter((t2.id > 1)) +------PhysicalOlapScan[t2] -- !pushdown_left_outer_join_subquery -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----filter(((cast(id as BIGINT) = sum(id)) OR id IS NULL)) -------NestedLoopJoin[LEFT_OUTER_JOIN](t1.id = 1) ---------PhysicalOlapScan[t1] ---------PhysicalDistribute[DistributionSpecReplicated] -----------hashAgg[GLOBAL] -------------PhysicalDistribute[DistributionSpecGather] ---------------hashAgg[LOCAL] -----------------PhysicalOlapScan[t2] +--filter(((cast(id as BIGINT) = sum(id)) OR id IS NULL)) +----NestedLoopJoin[LEFT_OUTER_JOIN](t1.id = 1) +------PhysicalOlapScan[t1] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------PhysicalOlapScan[t2] -- !pushdown_left_anti_join_subquery -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----NestedLoopJoin[LEFT_ANTI_JOIN](((t1.id = t2.id) OR id IS NULL) OR id IS NULL)(t1.id > 1) -------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecReplicated] ---------PhysicalOlapScan[t2] +--NestedLoopJoin[LEFT_ANTI_JOIN](((t1.id = t2.id) OR id IS NULL) OR id IS NULL)(t1.id > 1) +----PhysicalOlapScan[t1] +----PhysicalOlapScan[t2] -- !pushdown_cross_subquery -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----NestedLoopJoin[LEFT_SEMI_JOIN] -------filter((t1.id > 1)) ---------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecReplicated] ---------PhysicalOlapScan[t2] +--NestedLoopJoin[LEFT_SEMI_JOIN] +----filter((t1.id > 1)) +------PhysicalOlapScan[t1] +----PhysicalOlapScan[t2] -- !pushdown_inner_join_subquery_outer -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------filter((t1.id > 1)) ---------PhysicalOlapScan[t1] apply RFs: RF0 -------PhysicalDistribute[DistributionSpecHash] ---------filter((t2.id > 1)) -----------PhysicalAssertNumRows -------------PhysicalDistribute[DistributionSpecGather] ---------------PhysicalOlapScan[t2] +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----filter((t1.id > 1)) +------PhysicalOlapScan[t1] +----filter((t2.id > 1)) +------PhysicalAssertNumRows +--------PhysicalOlapScan[t2] -- !pushdown_left_semi_join_subquery_outer -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------filter((t1.id > 1)) ---------PhysicalOlapScan[t1] apply RFs: RF0 -------PhysicalDistribute[DistributionSpecHash] ---------filter((t2.id > 1)) -----------PhysicalOlapScan[t2] +--hashJoin[LEFT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----filter((t1.id > 1)) +------PhysicalOlapScan[t1] +----filter((t2.id > 1)) +------PhysicalOlapScan[t2] -- !pushdown_left_outer_join_subquery_outer -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----NestedLoopJoin[INNER_JOIN]((t1.id = t2.id) OR (id IS NULL AND (t1.id > 1))) -------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecReplicated] ---------PhysicalAssertNumRows -----------PhysicalDistribute[DistributionSpecGather] -------------PhysicalOlapScan[t2] +--NestedLoopJoin[INNER_JOIN]((t1.id = t2.id) OR (id IS NULL AND (t1.id > 1))) +----PhysicalOlapScan[t1] +----PhysicalAssertNumRows +------PhysicalOlapScan[t2] -- !pushdown_left_anti_join_subquery_outer -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[NULL_AWARE_LEFT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------filter((t1.id > 1)) ---------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecReplicated] ---------filter((t2.id > 1)) -----------PhysicalOlapScan[t2] +--hashJoin[NULL_AWARE_LEFT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----filter((t1.id > 1)) +------PhysicalOlapScan[t1] +----filter((t2.id > 1)) +------PhysicalOlapScan[t2] -- !pushdown_cross_join_subquery_outer -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----NestedLoopJoin[CROSS_JOIN] -------filter((t1.id > 1)) ---------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecReplicated] ---------PhysicalLimit[GLOBAL] -----------PhysicalDistribute[DistributionSpecGather] -------------PhysicalLimit[LOCAL] ---------------PhysicalOlapScan[t2] +--NestedLoopJoin[CROSS_JOIN] +----filter((t1.id > 1)) +------PhysicalOlapScan[t1] +----PhysicalLimit[GLOBAL] +------PhysicalLimit[LOCAL] +--------PhysicalOlapScan[t2] diff --git a/regression-test/data/nereids_rules_p0/filter_push_down/push_filter_inside_join.out b/regression-test/data/nereids_rules_p0/filter_push_down/push_filter_inside_join.out index 5acf85a076..355b4b231f 100644 --- a/regression-test/data/nereids_rules_p0/filter_push_down/push_filter_inside_join.out +++ b/regression-test/data/nereids_rules_p0/filter_push_down/push_filter_inside_join.out @@ -1,140 +1,103 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !pushdown_cross_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----NestedLoopJoin[INNER_JOIN](t1.msg > t2.msg) -------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecReplicated] ---------PhysicalOlapScan[t2] +--NestedLoopJoin[INNER_JOIN](t1.msg > t2.msg) +----PhysicalOlapScan[t1] +----PhysicalOlapScan[t2] -- !pushdown_cross_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.msg = t2.msg)) otherCondition=() -------PhysicalDistribute[DistributionSpecHash] ---------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecHash] ---------PhysicalOlapScan[t2] +--hashJoin[INNER_JOIN] hashCondition=((t1.msg = t2.msg)) otherCondition=() +----PhysicalOlapScan[t1] +----PhysicalOlapScan[t2] -- !pushdown_inner_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.msg > t2.msg)) -------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecHash] ---------PhysicalOlapScan[t2] +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.msg > t2.msg)) +----PhysicalOlapScan[t1] +----PhysicalOlapScan[t2] -- !pushdown_left_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.msg > t2.msg)) -------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecHash] ---------PhysicalOlapScan[t2] +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.msg > t2.msg)) +----PhysicalOlapScan[t1] +----PhysicalOlapScan[t2] -- !pushdown_right_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t2.msg < t1.msg)) -------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecHash] ---------PhysicalOlapScan[t2] +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t2.msg < t1.msg)) +----PhysicalOlapScan[t1] +----PhysicalOlapScan[t2] -- !pushdown_full_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.msg < t2.msg)) -------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecHash] ---------PhysicalOlapScan[t2] +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.msg < t2.msg)) +----PhysicalOlapScan[t1] +----PhysicalOlapScan[t2] -- !pushdown_cross_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----NestedLoopJoin[INNER_JOIN](t1.msg < t2.msg) -------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecReplicated] ---------PhysicalOlapScan[t2] +--NestedLoopJoin[INNER_JOIN](t1.msg < t2.msg) +----PhysicalOlapScan[t1] +----PhysicalOlapScan[t2] -- !pushdown_inner_join_hash -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.msg = t2.msg)) otherCondition=() -------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecHash] ---------PhysicalOlapScan[t2] +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.msg = t2.msg)) otherCondition=() +----PhysicalOlapScan[t1] +----PhysicalOlapScan[t2] -- !pushdown_left_join_hash -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.msg = t2.msg)) otherCondition=() -------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecHash] ---------PhysicalOlapScan[t2] +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.msg = t2.msg)) otherCondition=() +----PhysicalOlapScan[t1] +----PhysicalOlapScan[t2] -- !pushdown_right_join_hash -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t2.msg = t1.msg)) otherCondition=() -------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecHash] ---------PhysicalOlapScan[t2] +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t2.msg = t1.msg)) otherCondition=() +----PhysicalOlapScan[t1] +----PhysicalOlapScan[t2] -- !pushdown_full_join_hash -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.msg = t2.msg)) otherCondition=() -------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecHash] ---------PhysicalOlapScan[t2] +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.msg = t2.msg)) otherCondition=() +----PhysicalOlapScan[t1] +----PhysicalOlapScan[t2] -- !pushdown_cross_join_combine -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.msg = t2.msg)) otherCondition=(((cast(msg as DOUBLE) + cast(msg as DOUBLE)) = cast('' as DOUBLE))) -------PhysicalDistribute[DistributionSpecHash] ---------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecHash] ---------PhysicalOlapScan[t2] +--hashJoin[INNER_JOIN] hashCondition=((t1.msg = t2.msg)) otherCondition=(((cast(msg as DOUBLE) + cast(msg as DOUBLE)) = cast('' as DOUBLE))) +----PhysicalOlapScan[t1] +----PhysicalOlapScan[t2] -- !pushdown_inner_join_combine -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.msg = t2.msg)) otherCondition=(((cast(msg as DOUBLE) + cast(msg as DOUBLE)) = cast('' as DOUBLE))) -------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecHash] ---------PhysicalOlapScan[t2] +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.msg = t2.msg)) otherCondition=(((cast(msg as DOUBLE) + cast(msg as DOUBLE)) = cast('' as DOUBLE))) +----PhysicalOlapScan[t1] +----PhysicalOlapScan[t2] -- !pushdown_left_join_combine -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.msg = t2.msg)) otherCondition=(((cast(msg as DOUBLE) + cast(msg as DOUBLE)) = cast('' as DOUBLE))) -------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecHash] ---------PhysicalOlapScan[t2] +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.msg = t2.msg)) otherCondition=(((cast(msg as DOUBLE) + cast(msg as DOUBLE)) = cast('' as DOUBLE))) +----PhysicalOlapScan[t1] +----PhysicalOlapScan[t2] -- !pushdown_right_join_combine -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t2.msg = t1.msg)) otherCondition=(((cast(msg as DOUBLE) + cast(msg as DOUBLE)) = cast('' as DOUBLE))) -------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecHash] ---------PhysicalOlapScan[t2] +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t2.msg = t1.msg)) otherCondition=(((cast(msg as DOUBLE) + cast(msg as DOUBLE)) = cast('' as DOUBLE))) +----PhysicalOlapScan[t1] +----PhysicalOlapScan[t2] -- !pushdown_full_join_combine -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.msg = t2.msg)) otherCondition=(((cast(msg as DOUBLE) + cast(msg as DOUBLE)) = cast('' as DOUBLE))) -------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecHash] ---------PhysicalOlapScan[t2] +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.msg = t2.msg)) otherCondition=(((cast(msg as DOUBLE) + cast(msg as DOUBLE)) = cast('' as DOUBLE))) +----PhysicalOlapScan[t1] +----PhysicalOlapScan[t2] -- !pushdown_cross_join_combine -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.msg = t2.msg)) otherCondition=(((cast(msg as DOUBLE) + cast(msg as DOUBLE)) = cast('' as DOUBLE))) -------PhysicalDistribute[DistributionSpecHash] ---------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecHash] ---------PhysicalOlapScan[t2] +--hashJoin[INNER_JOIN] hashCondition=((t1.msg = t2.msg)) otherCondition=(((cast(msg as DOUBLE) + cast(msg as DOUBLE)) = cast('' as DOUBLE))) +----PhysicalOlapScan[t1] +----PhysicalOlapScan[t2] diff --git a/regression-test/data/nereids_rules_p0/filter_push_down/push_filter_through.out b/regression-test/data/nereids_rules_p0/filter_push_down/push_filter_through.out index da3ef8a7a3..82e2624942 100644 --- a/regression-test/data/nereids_rules_p0/filter_push_down/push_filter_through.out +++ b/regression-test/data/nereids_rules_p0/filter_push_down/push_filter_through.out @@ -1,8 +1,9 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !filter_project_alias -- PhysicalResultSink ---filter((t1.id = 1)) -----PhysicalOlapScan[t1] +--PhysicalDistribute[DistributionSpecGather] +----filter((t1.id = 1)) +------PhysicalOlapScan[t1] -- !filter_project_constant -- PhysicalResultSink @@ -10,397 +11,499 @@ PhysicalResultSink -- !filter_project_arithmetic -- PhysicalResultSink ---filter((cast(id as BIGINT) = 1)) -----PhysicalOlapScan[t1] +--PhysicalDistribute[DistributionSpecGather] +----filter((cast(id as BIGINT) = 1)) +------PhysicalOlapScan[t1] -- !filter_order_by -- PhysicalResultSink ---filter((t.id = 1)) -----PhysicalOlapScan[t1] +--PhysicalDistribute[DistributionSpecGather] +----filter((t.id = 1)) +------PhysicalOlapScan[t1] -- !filter_order_by_limit -- PhysicalResultSink --filter((t.id = 1)) ----PhysicalTopN[MERGE_SORT] -------PhysicalTopN[LOCAL_SORT] ---------PhysicalOlapScan[t1] +------PhysicalDistribute[DistributionSpecGather] +--------PhysicalTopN[LOCAL_SORT] +----------PhysicalOlapScan[t1] -- !filter_order_by_constant -- PhysicalResultSink ---filter((t.id = 1)) -----PhysicalOlapScan[t1] - --- !filter_join_inner -- -PhysicalResultSink ---hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -----filter((t1.id = 1)) -------PhysicalOlapScan[t1] apply RFs: RF0 -----filter((t2.id = 1)) -------PhysicalOlapScan[t2] - --- !filter_join_inner -- -PhysicalResultSink ---hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -----filter((t1.id = 1)) -------PhysicalOlapScan[t1] apply RFs: RF0 -----filter((t2.id = 1)) -------PhysicalOlapScan[t2] - --- !filter_join_inner -- -PhysicalResultSink ---hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----filter((t1.msg = '')) +--PhysicalDistribute[DistributionSpecGather] +----filter((t.id = 1)) ------PhysicalOlapScan[t1] -----PhysicalOlapScan[t2] -- !filter_join_inner -- PhysicalResultSink ---hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -----filter((t1.id = 1) and (t1.id = 2)) -------PhysicalOlapScan[t1] apply RFs: RF0 -----filter((t2.id = 1) and (t2.id = 2)) -------PhysicalOlapScan[t2] +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------filter((t1.id = 1)) +--------PhysicalOlapScan[t1] +------PhysicalDistribute[DistributionSpecHash] +--------filter((t2.id = 1)) +----------PhysicalOlapScan[t2] -- !filter_join_inner -- PhysicalResultSink ---hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=(((t1.id = 1) OR (t2.id = 2))) -----PhysicalOlapScan[t1] -----PhysicalOlapScan[t2] +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------filter((t1.id = 1)) +--------PhysicalOlapScan[t1] +------PhysicalDistribute[DistributionSpecHash] +--------filter((t2.id = 1)) +----------PhysicalOlapScan[t2] --- !filter_join_left -- +-- !filter_join_inner -- PhysicalResultSink ---hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----filter((t1.id = 1)) +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------filter((t1.msg = '')) +--------PhysicalOlapScan[t1] +------PhysicalDistribute[DistributionSpecHash] +--------PhysicalOlapScan[t2] + +-- !filter_join_inner -- +PhysicalResultSink +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------filter((t1.id = 1) and (t1.id = 2)) +--------PhysicalOlapScan[t1] +------PhysicalDistribute[DistributionSpecHash] +--------filter((t2.id = 1) and (t2.id = 2)) +----------PhysicalOlapScan[t2] + +-- !filter_join_inner -- +PhysicalResultSink +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=(((t1.id = 1) OR (t2.id = 2))) ------PhysicalOlapScan[t1] -----filter((t2.id = 1)) -------PhysicalOlapScan[t2] +------PhysicalDistribute[DistributionSpecHash] +--------PhysicalOlapScan[t2] -- !filter_join_left -- PhysicalResultSink ---hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -----filter((t1.id = 1) and (t1.id = 2)) -------PhysicalOlapScan[t1] apply RFs: RF0 -----filter((t2.id = 1) and (t2.id = 2)) -------PhysicalOlapScan[t2] - --- !filter_join_left -- -PhysicalResultSink ---filter(((t1.id = 1) OR (t2.id = 2))) +--PhysicalDistribute[DistributionSpecGather] ----hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------PhysicalOlapScan[t1] -------PhysicalOlapScan[t2] +------filter((t1.id = 1)) +--------PhysicalOlapScan[t1] +------PhysicalDistribute[DistributionSpecHash] +--------filter((t2.id = 1)) +----------PhysicalOlapScan[t2] + +-- !filter_join_left -- +PhysicalResultSink +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------filter((t1.id = 1) and (t1.id = 2)) +--------PhysicalOlapScan[t1] +------PhysicalDistribute[DistributionSpecHash] +--------filter((t2.id = 1) and (t2.id = 2)) +----------PhysicalOlapScan[t2] + +-- !filter_join_left -- +PhysicalResultSink +--PhysicalDistribute[DistributionSpecGather] +----filter(((t1.id = 1) OR (t2.id = 2))) +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t1] +--------PhysicalDistribute[DistributionSpecHash] +----------PhysicalOlapScan[t2] -- !filter_join_right -- PhysicalResultSink ---hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -----filter((t1.id = 1)) -------PhysicalOlapScan[t1] apply RFs: RF0 -----filter((t2.id = 1)) -------PhysicalOlapScan[t2] +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------filter((t1.id = 1)) +--------PhysicalOlapScan[t1] +------PhysicalDistribute[DistributionSpecHash] +--------filter((t2.id = 1)) +----------PhysicalOlapScan[t2] -- !filter_join_full -- PhysicalResultSink ---hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----filter((t1.id = 1)) -------PhysicalOlapScan[t1] -----filter((t2.id = 1)) -------PhysicalOlapScan[t2] - --- !filter_join_left -- -PhysicalResultSink ---hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -----filter((t1.id = 1) and (t1.id = 2)) -------PhysicalOlapScan[t1] apply RFs: RF0 -----filter((t2.id = 1) and (t2.id = 2)) -------PhysicalOlapScan[t2] - --- !filter_join_left -- -PhysicalResultSink ---filter(((t1.id = 1) OR (t2.id = 2))) -----hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------PhysicalOlapScan[t1] -------PhysicalOlapScan[t2] - --- !filter_join_cross -- -PhysicalResultSink ---NestedLoopJoin[CROSS_JOIN] -----filter((t1.id = 1)) -------PhysicalOlapScan[t1] -----PhysicalDistribute[DistributionSpecReplicated] -------PhysicalOlapScan[t2] - --- !filter_join_left_anti -- -PhysicalResultSink ---hashJoin[LEFT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----filter((t1.id = 1)) -------PhysicalOlapScan[t1] -----filter((t2.id = 1)) -------PhysicalOlapScan[t2] - --- !filter_join_left_semi -- -PhysicalResultSink ---hashJoin[LEFT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -----filter((t1.id = 1)) -------PhysicalOlapScan[t1] apply RFs: RF0 -----filter((t2.id = 1)) -------PhysicalOlapScan[t2] - --- !filter_join_right_anti -- -PhysicalResultSink ---hashJoin[RIGHT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -----filter((t1.id = 1)) -------PhysicalOlapScan[t1] apply RFs: RF0 -----filter((t2.id = 1)) -------PhysicalOlapScan[t2] - --- !filter_join_right_semi -- -PhysicalResultSink ---hashJoin[RIGHT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -----filter((t1.id = 1)) -------PhysicalOlapScan[t1] apply RFs: RF0 -----filter((t2.id = 1)) -------PhysicalOlapScan[t2] - --- !filter_join_right_semi -- -PhysicalResultSink ---hashJoin[RIGHT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -----filter((t1.id = 1)) -------PhysicalOlapScan[t1] apply RFs: RF0 -----filter((t2.id = 1)) -------PhysicalOlapScan[t2] - --- !filter_multi_inner -- -PhysicalResultSink ---hashJoin[INNER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() build RFs:RF1 id->[id] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------filter((t1.id = 1)) ---------PhysicalOlapScan[t1] apply RFs: RF0 RF1 -------filter((t2.id = 1)) ---------PhysicalOlapScan[t2] -----filter((t3.id = 1)) -------PhysicalOlapScan[t3] - --- !filter_mixed_inner_left -- -PhysicalResultSink ---filter((((t1.id = 1) AND (t2.id = 2)) OR (t3.id = 2))) -----hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() -------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------PhysicalOlapScan[t1] ---------PhysicalOlapScan[t2] -------PhysicalOlapScan[t3] - --- !filter_multi_left -- -PhysicalResultSink ---filter((((t1.id = 1) AND (t2.id > 1)) OR (t3.id < 4))) -----hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() -------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------PhysicalOlapScan[t1] ---------PhysicalOlapScan[t2] -------PhysicalOlapScan[t3] - --- !filter_multi_outer -- -PhysicalResultSink ---hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +--PhysicalDistribute[DistributionSpecGather] ----hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ------filter((t1.id = 1)) --------PhysicalOlapScan[t1] -------filter((t2.id = 1)) ---------PhysicalOlapScan[t2] -----filter((t3.id = 1)) -------PhysicalOlapScan[t3] +------PhysicalDistribute[DistributionSpecHash] +--------filter((t2.id = 1)) +----------PhysicalOlapScan[t2] --- !filter_multi_cross -- +-- !filter_join_left -- PhysicalResultSink ---NestedLoopJoin[CROSS_JOIN] +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------filter((t1.id = 1) and (t1.id = 2)) +--------PhysicalOlapScan[t1] +------PhysicalDistribute[DistributionSpecHash] +--------filter((t2.id = 1) and (t2.id = 2)) +----------PhysicalOlapScan[t2] + +-- !filter_join_left -- +PhysicalResultSink +--PhysicalDistribute[DistributionSpecGather] +----filter(((t1.id = 1) OR (t2.id = 2))) +------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalDistribute[DistributionSpecHash] +----------PhysicalOlapScan[t1] +--------PhysicalDistribute[DistributionSpecHash] +----------PhysicalOlapScan[t2] + +-- !filter_join_cross -- +PhysicalResultSink +--PhysicalDistribute[DistributionSpecGather] ----NestedLoopJoin[CROSS_JOIN] ------filter((t1.id = 1)) --------PhysicalOlapScan[t1] ------PhysicalDistribute[DistributionSpecReplicated] --------PhysicalOlapScan[t2] -----PhysicalDistribute[DistributionSpecReplicated] -------PhysicalOlapScan[t3] + +-- !filter_join_left_anti -- +PhysicalResultSink +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[LEFT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------filter((t1.id = 1)) +--------PhysicalOlapScan[t1] +------PhysicalDistribute[DistributionSpecHash] +--------filter((t2.id = 1)) +----------PhysicalOlapScan[t2] + +-- !filter_join_left_semi -- +PhysicalResultSink +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[LEFT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------filter((t1.id = 1)) +--------PhysicalOlapScan[t1] +------PhysicalDistribute[DistributionSpecHash] +--------filter((t2.id = 1)) +----------PhysicalOlapScan[t2] + +-- !filter_join_right_anti -- +PhysicalResultSink +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[RIGHT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------PhysicalDistribute[DistributionSpecHash] +--------filter((t1.id = 1)) +----------PhysicalOlapScan[t1] +------PhysicalDistribute[DistributionSpecHash] +--------filter((t2.id = 1)) +----------PhysicalOlapScan[t2] + +-- !filter_join_right_semi -- +PhysicalResultSink +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[RIGHT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------filter((t1.id = 1)) +--------PhysicalOlapScan[t1] +------PhysicalDistribute[DistributionSpecHash] +--------filter((t2.id = 1)) +----------PhysicalOlapScan[t2] + +-- !filter_join_right_semi -- +PhysicalResultSink +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[RIGHT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------filter((t1.id = 1)) +--------PhysicalOlapScan[t1] +------PhysicalDistribute[DistributionSpecHash] +--------filter((t2.id = 1)) +----------PhysicalOlapScan[t2] + +-- !filter_multi_inner -- +PhysicalResultSink +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[INNER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------filter((t1.id = 1)) +----------PhysicalOlapScan[t1] +--------PhysicalDistribute[DistributionSpecHash] +----------filter((t2.id = 1)) +------------PhysicalOlapScan[t2] +------PhysicalDistribute[DistributionSpecHash] +--------filter((t3.id = 1)) +----------PhysicalOlapScan[t3] + +-- !filter_mixed_inner_left -- +PhysicalResultSink +--PhysicalDistribute[DistributionSpecGather] +----filter((((t1.id = 1) AND (t2.id = 2)) OR (t3.id = 2))) +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +--------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----------PhysicalOlapScan[t1] +----------PhysicalDistribute[DistributionSpecHash] +------------PhysicalOlapScan[t2] +--------PhysicalDistribute[DistributionSpecHash] +----------PhysicalOlapScan[t3] + +-- !filter_multi_left -- +PhysicalResultSink +--PhysicalDistribute[DistributionSpecGather] +----filter((((t1.id = 1) AND (t2.id > 1)) OR (t3.id < 4))) +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +--------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----------PhysicalOlapScan[t1] +----------PhysicalDistribute[DistributionSpecHash] +------------PhysicalOlapScan[t2] +--------PhysicalDistribute[DistributionSpecHash] +----------PhysicalOlapScan[t3] + +-- !filter_multi_outer -- +PhysicalResultSink +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------filter((t1.id = 1)) +----------PhysicalOlapScan[t1] +--------PhysicalDistribute[DistributionSpecHash] +----------filter((t2.id = 1)) +------------PhysicalOlapScan[t2] +------PhysicalDistribute[DistributionSpecHash] +--------filter((t3.id = 1)) +----------PhysicalOlapScan[t3] + +-- !filter_multi_cross -- +PhysicalResultSink +--PhysicalDistribute[DistributionSpecGather] +----NestedLoopJoin[CROSS_JOIN] +------NestedLoopJoin[CROSS_JOIN] +--------filter((t1.id = 1)) +----------PhysicalOlapScan[t1] +--------PhysicalDistribute[DistributionSpecReplicated] +----------PhysicalOlapScan[t2] +------PhysicalDistribute[DistributionSpecReplicated] +--------PhysicalOlapScan[t3] -- !filter_multi_mixed -- PhysicalResultSink ---hashJoin[INNER_JOIN] hashCondition=((t1.id = t4.id)) otherCondition=() build RFs:RF1 id->[id] -----hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() -------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] ---------filter((t1.id = 1)) -----------PhysicalOlapScan[t1] apply RFs: RF0 RF1 ---------filter((t2.id = 1)) -----------PhysicalOlapScan[t2] -------filter((t3.id = 1)) ---------PhysicalOlapScan[t3] -----filter((t4.id = 1)) -------PhysicalOlapScan[t4] +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[INNER_JOIN] hashCondition=((t1.id = t4.id)) otherCondition=() +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +--------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----------filter((t1.id = 1)) +------------PhysicalOlapScan[t1] +----------PhysicalDistribute[DistributionSpecHash] +------------filter((t2.id = 1)) +--------------PhysicalOlapScan[t2] +--------PhysicalDistribute[DistributionSpecHash] +----------filter((t3.id = 1)) +------------PhysicalOlapScan[t3] +------PhysicalDistribute[DistributionSpecHash] +--------filter((t4.id = 1)) +----------PhysicalOlapScan[t4] -- !filter_aggregation_filtered_agg_func -- PhysicalResultSink ---filter((count(*) > 10)) -----hashAgg[GLOBAL] -------hashAgg[LOCAL] ---------PhysicalOlapScan[t1] - --- !filter_aggregation_group_set -- -PhysicalResultSink ---filter((cast(msg as DOUBLE) = 1.0)) -----hashAgg[GLOBAL] -------hashAgg[LOCAL] ---------PhysicalRepeat -----------filter((t1.id > 10)) +--PhysicalDistribute[DistributionSpecGather] +----filter((count(*) > 10)) +------hashAgg[GLOBAL] +--------PhysicalDistribute[DistributionSpecHash] +----------hashAgg[LOCAL] ------------PhysicalOlapScan[t1] -- !filter_aggregation_group_set -- PhysicalResultSink ---filter(((t1.id > 10) OR (cast(msg as DOUBLE) = 1.0))) -----hashAgg[GLOBAL] -------hashAgg[LOCAL] ---------PhysicalRepeat -----------PhysicalOlapScan[t1] +--PhysicalDistribute[DistributionSpecGather] +----filter((cast(msg as DOUBLE) = 1.0)) +------hashAgg[GLOBAL] +--------PhysicalDistribute[DistributionSpecHash] +----------hashAgg[LOCAL] +------------PhysicalRepeat +--------------filter((t1.id > 10)) +----------------PhysicalOlapScan[t1] + +-- !filter_aggregation_group_set -- +PhysicalResultSink +--PhysicalDistribute[DistributionSpecGather] +----filter(((t1.id > 10) OR (cast(msg as DOUBLE) = 1.0))) +------hashAgg[GLOBAL] +--------PhysicalDistribute[DistributionSpecHash] +----------hashAgg[LOCAL] +------------PhysicalRepeat +--------------PhysicalOlapScan[t1] -- !filter_aggregation_filtered_key -- PhysicalResultSink ---hashAgg[LOCAL] -----filter((t1.id > 10)) -------PhysicalOlapScan[t1] - --- !filter_aggregation_filtered_part_key -- -PhysicalResultSink ---hashAgg[LOCAL] -----filter((t1.id > 10)) -------PhysicalOlapScan[t1] - --- !filter_aggregation_filtered_part_key -- - --- !filter_aggregation_filtered_part_key -- -PhysicalResultSink ---filter((t.c > 10)) +--PhysicalDistribute[DistributionSpecGather] ----hashAgg[LOCAL] -------PhysicalOlapScan[t1] - --- !push_filter_union -- -PhysicalResultSink ---hashAgg[GLOBAL] -----hashAgg[LOCAL] -------PhysicalUnion ---------PhysicalDistribute[DistributionSpecExecutionAny] -----------filter((t1.id = 2)) -------------PhysicalOlapScan[t1] ---------PhysicalDistribute[DistributionSpecExecutionAny] -----------filter((t2.id = 2)) -------------PhysicalOlapScan[t2] - --- !push_filter_union_all -- -PhysicalResultSink ---PhysicalUnion -----PhysicalDistribute[DistributionSpecExecutionAny] -------filter((t1.id = 2)) +------filter((t1.id > 10)) --------PhysicalOlapScan[t1] -----PhysicalDistribute[DistributionSpecExecutionAny] -------filter((t2.id = 2)) ---------PhysicalOlapScan[t2] --- !push_filter_intersect -- +-- !filter_aggregation_filtered_part_key -- PhysicalResultSink ---PhysicalIntersect -----filter((t1.id = 2)) -------PhysicalOlapScan[t1] -----filter((t2.id = 2)) -------PhysicalOlapScan[t2] +--PhysicalDistribute[DistributionSpecGather] +----hashAgg[LOCAL] +------filter((t1.id > 10)) +--------PhysicalOlapScan[t1] --- !push_filter_except -- +-- !filter_aggregation_filtered_part_key -- + +-- !filter_aggregation_filtered_part_key -- PhysicalResultSink ---PhysicalExcept -----filter((t1.id = 2)) -------PhysicalOlapScan[t1] -----filter((t2.id = 2)) -------PhysicalOlapScan[t2] +--PhysicalDistribute[DistributionSpecGather] +----filter((t.c > 10)) +------hashAgg[LOCAL] +--------PhysicalOlapScan[t1] -- !push_filter_union -- PhysicalResultSink ---hashAgg[GLOBAL] -----hashAgg[LOCAL] -------PhysicalUnion ---------PhysicalDistribute[DistributionSpecExecutionAny] -----------filter((cast(random() as INT) = 2)) -------------PhysicalOneRowRelation ---------PhysicalDistribute[DistributionSpecExecutionAny] -----------filter((t2.id = 2)) -------------PhysicalOlapScan[t2] +--PhysicalDistribute[DistributionSpecGather] +----hashAgg[GLOBAL] +------PhysicalDistribute[DistributionSpecHash] +--------hashAgg[LOCAL] +----------PhysicalUnion +------------PhysicalDistribute[DistributionSpecExecutionAny] +--------------filter((t1.id = 2)) +----------------PhysicalOlapScan[t1] +------------PhysicalDistribute[DistributionSpecExecutionAny] +--------------filter((t2.id = 2)) +----------------PhysicalOlapScan[t2] -- !push_filter_union_all -- PhysicalResultSink ---PhysicalUnion -----PhysicalDistribute[DistributionSpecExecutionAny] -------filter(((cast(random() as INT) = 2) OR (cast(random() as INT) = 3))) ---------PhysicalOneRowRelation -----PhysicalDistribute[DistributionSpecExecutionAny] -------filter(id IN (2, 3)) ---------PhysicalOlapScan[t2] +--PhysicalDistribute[DistributionSpecGather] +----PhysicalUnion +------PhysicalDistribute[DistributionSpecExecutionAny] +--------filter((t1.id = 2)) +----------PhysicalOlapScan[t1] +------PhysicalDistribute[DistributionSpecExecutionAny] +--------filter((t2.id = 2)) +----------PhysicalOlapScan[t2] -- !push_filter_intersect -- PhysicalResultSink ---PhysicalIntersect -----filter(((cast(random() as INT) = 2) OR (cast(random() as INT) = 3))) -------PhysicalOneRowRelation -----filter(id IN (2, 3)) -------PhysicalOlapScan[t2] +--PhysicalDistribute[DistributionSpecGather] +----PhysicalIntersect +------PhysicalDistribute[DistributionSpecHash] +--------filter((t1.id = 2)) +----------PhysicalOlapScan[t1] +------PhysicalDistribute[DistributionSpecHash] +--------filter((t2.id = 2)) +----------PhysicalOlapScan[t2] -- !push_filter_except -- PhysicalResultSink ---PhysicalExcept -----filter((cast(random() as INT) = 2) and (t1.msg = '')) -------PhysicalOlapScan[t1] -----filter((t2.id = 2) and (t2.msg = '')) -------PhysicalOlapScan[t2] - --- !push_filter_except -- -PhysicalResultSink ---hashJoin[INNER_JOIN] hashCondition=((t3.id = t.id)) otherCondition=() +--PhysicalDistribute[DistributionSpecGather] ----PhysicalExcept -------filter((t1.id = 2)) ---------PhysicalOlapScan[t1] -------filter((t2.id = 2)) ---------PhysicalOlapScan[t2] -----PhysicalOlapScan[t3] +------PhysicalDistribute[DistributionSpecHash] +--------filter((t1.id = 2)) +----------PhysicalOlapScan[t1] +------PhysicalDistribute[DistributionSpecHash] +--------filter((t2.id = 2)) +----------PhysicalOlapScan[t2] + +-- !push_filter_union -- +PhysicalResultSink +--PhysicalDistribute[DistributionSpecGather] +----hashAgg[GLOBAL] +------PhysicalDistribute[DistributionSpecHash] +--------hashAgg[LOCAL] +----------PhysicalUnion +------------PhysicalDistribute[DistributionSpecExecutionAny] +--------------filter((cast(random() as INT) = 2)) +----------------PhysicalOneRowRelation +------------PhysicalDistribute[DistributionSpecExecutionAny] +--------------filter((t2.id = 2)) +----------------PhysicalOlapScan[t2] + +-- !push_filter_union_all -- +PhysicalResultSink +--PhysicalDistribute[DistributionSpecGather] +----PhysicalUnion +------PhysicalDistribute[DistributionSpecExecutionAny] +--------filter(((cast(random() as INT) = 2) OR (cast(random() as INT) = 3))) +----------PhysicalOneRowRelation +------PhysicalDistribute[DistributionSpecExecutionAny] +--------filter(id IN (2, 3)) +----------PhysicalOlapScan[t2] + +-- !push_filter_intersect -- +PhysicalResultSink +--PhysicalDistribute[DistributionSpecGather] +----PhysicalIntersect +------PhysicalDistribute[DistributionSpecHash] +--------filter(((cast(random() as INT) = 2) OR (cast(random() as INT) = 3))) +----------PhysicalOneRowRelation +------PhysicalDistribute[DistributionSpecHash] +--------filter(id IN (2, 3)) +----------PhysicalOlapScan[t2] + +-- !push_filter_except -- +PhysicalResultSink +--PhysicalDistribute[DistributionSpecGather] +----PhysicalExcept +------PhysicalDistribute[DistributionSpecHash] +--------filter((cast(random() as INT) = 2) and (t1.msg = '')) +----------PhysicalOlapScan[t1] +------PhysicalDistribute[DistributionSpecHash] +--------filter((t2.id = 2) and (t2.msg = '')) +----------PhysicalOlapScan[t2] + +-- !push_filter_except -- +PhysicalResultSink +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[INNER_JOIN] hashCondition=((t3.id = t.id)) otherCondition=() +------PhysicalDistribute[DistributionSpecHash] +--------PhysicalExcept +----------PhysicalDistribute[DistributionSpecHash] +------------filter((t1.id = 2)) +--------------PhysicalOlapScan[t1] +----------PhysicalDistribute[DistributionSpecHash] +------------filter((t2.id = 2)) +--------------PhysicalOlapScan[t2] +------PhysicalDistribute[DistributionSpecHash] +--------PhysicalOlapScan[t3] -- !push_filter_subquery -- PhysicalResultSink ---hashJoin[INNER_JOIN] hashCondition=((t3.id = t.id)) otherCondition=() -----PhysicalExcept -------filter((t1.id = 2)) ---------PhysicalOlapScan[t1] -------filter((t2.id = 2)) ---------PhysicalOlapScan[t2] -----PhysicalOlapScan[t3] +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[INNER_JOIN] hashCondition=((t3.id = t.id)) otherCondition=() +------PhysicalDistribute[DistributionSpecHash] +--------PhysicalExcept +----------PhysicalDistribute[DistributionSpecHash] +------------filter((t1.id = 2)) +--------------PhysicalOlapScan[t1] +----------PhysicalDistribute[DistributionSpecHash] +------------filter((t2.id = 2)) +--------------PhysicalOlapScan[t2] +------PhysicalDistribute[DistributionSpecHash] +--------PhysicalOlapScan[t3] -- !filter_window_row_number -- PhysicalResultSink ---PhysicalWindow -----PhysicalQuickSort[LOCAL_SORT] -------filter((t1.id <= 5)) ---------PhysicalOlapScan[t1] +--PhysicalDistribute[DistributionSpecGather] +----PhysicalWindow +------PhysicalQuickSort[LOCAL_SORT] +--------filter((t1.id <= 5)) +----------PhysicalOlapScan[t1] -- !filter_window_order_row_number -- PhysicalResultSink ---PhysicalWindow -----PhysicalQuickSort[LOCAL_SORT] -------filter((t1.id <= 5)) ---------PhysicalOlapScan[t1] +--PhysicalDistribute[DistributionSpecGather] +----PhysicalWindow +------PhysicalQuickSort[LOCAL_SORT] +--------filter((t1.id <= 5)) +----------PhysicalOlapScan[t1] -- !filter_window_row_number_complex_predicate -- PhysicalResultSink ---PhysicalWindow -----PhysicalQuickSort[LOCAL_SORT] -------filter(((cast(id as DOUBLE) + cast(msg as DOUBLE)) = cast('' as DOUBLE))) ---------PhysicalOlapScan[t1] +--PhysicalDistribute[DistributionSpecGather] +----PhysicalWindow +------PhysicalQuickSort[LOCAL_SORT] +--------PhysicalDistribute[DistributionSpecHash] +----------filter(((cast(id as DOUBLE) + cast(msg as DOUBLE)) = cast('' as DOUBLE))) +------------PhysicalOlapScan[t1] -- !filter_multi_window -- PhysicalResultSink ---PhysicalWindow -----PhysicalQuickSort[LOCAL_SORT] -------PhysicalWindow ---------PhysicalQuickSort[LOCAL_SORT] -----------filter(((t1.msg = '') OR (t1.id = 2))) -------------PhysicalOlapScan[t1] +--PhysicalDistribute[DistributionSpecGather] +----PhysicalWindow +------PhysicalQuickSort[LOCAL_SORT] +--------PhysicalDistribute[DistributionSpecHash] +----------PhysicalWindow +------------PhysicalQuickSort[LOCAL_SORT] +--------------PhysicalDistribute[DistributionSpecHash] +----------------filter(((t1.msg = '') OR (t1.id = 2))) +------------------PhysicalOlapScan[t1] diff --git a/regression-test/data/nereids_rules_p0/limit_push_down/limit_push_down.out b/regression-test/data/nereids_rules_p0/limit_push_down/limit_push_down.out index 4f845e5b40..31ffeee07d 100644 --- a/regression-test/data/nereids_rules_p0/limit_push_down/limit_push_down.out +++ b/regression-test/data/nereids_rules_p0/limit_push_down/limit_push_down.out @@ -2,228 +2,185 @@ -- !limit_project -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------PhysicalOlapScan[t1] +----PhysicalLimit[LOCAL] +------PhysicalOlapScan[t1] -- !limit_offset_project -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------PhysicalOlapScan[t1] +----PhysicalLimit[LOCAL] +------PhysicalOlapScan[t1] -- !limit_join -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------PhysicalOlapScan[t1] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t2] +----PhysicalLimit[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t1] +--------PhysicalOlapScan[t2] -- !limit_semi_join -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashJoin[LEFT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------PhysicalOlapScan[t1] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t2] +----PhysicalLimit[LOCAL] +------hashJoin[LEFT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t1] +--------PhysicalOlapScan[t2] -- !right_semi_join -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------PhysicalOlapScan[t1] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t2] +----PhysicalLimit[LOCAL] +------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t1] +--------PhysicalOlapScan[t2] -- !left_anti_join -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashJoin[LEFT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------PhysicalOlapScan[t1] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t2] +----PhysicalLimit[LOCAL] +------hashJoin[LEFT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t1] +--------PhysicalOlapScan[t2] -- !right_anti_join -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashJoin[RIGHT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t1] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t2] +----PhysicalLimit[LOCAL] +------hashJoin[RIGHT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t1] +--------PhysicalOlapScan[t2] -- !full_outer_join -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t1] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t2] +----PhysicalLimit[LOCAL] +------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t1] +--------PhysicalOlapScan[t2] -- !left_outer_join -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------PhysicalLimit[LOCAL] -------------PhysicalOlapScan[t1] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t2] +----PhysicalLimit[LOCAL] +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalLimit[LOCAL] +----------PhysicalOlapScan[t1] +--------PhysicalOlapScan[t2] -- !right_outer_join -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t1] apply RFs: RF0 -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalLimit[LOCAL] ---------------PhysicalOlapScan[t2] +----PhysicalLimit[LOCAL] +------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t1] +--------PhysicalLimit[LOCAL] +----------PhysicalOlapScan[t2] -- !cross_join -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------NestedLoopJoin[CROSS_JOIN] -----------PhysicalLimit[LOCAL] -------------PhysicalOlapScan[t1] -----------PhysicalDistribute[DistributionSpecReplicated] -------------PhysicalLimit[LOCAL] ---------------PhysicalOlapScan[t2] +----PhysicalLimit[LOCAL] +------NestedLoopJoin[CROSS_JOIN] +--------PhysicalLimit[LOCAL] +----------PhysicalOlapScan[t1] +--------PhysicalLimit[LOCAL] +----------PhysicalOlapScan[t2] -- !limit_offset_join -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------PhysicalOlapScan[t1] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t2] +----PhysicalLimit[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t1] +--------PhysicalOlapScan[t2] -- !limit_distinct -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashAgg[LOCAL] -----------PhysicalOlapScan[t1] +----PhysicalLimit[LOCAL] +------hashAgg[LOCAL] +--------PhysicalOlapScan[t1] -- !limit_offset_agg -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[LOCAL] -----------PhysicalOlapScan[t1] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[LOCAL] +--------PhysicalOlapScan[t1] -- !limit_distinct -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashAgg[LOCAL] -----------NestedLoopJoin[CROSS_JOIN] -------------PhysicalLimit[LOCAL] ---------------hashAgg[LOCAL] -----------------PhysicalOlapScan[t1] -------------PhysicalDistribute[DistributionSpecReplicated] ---------------PhysicalOlapScan[t2] +----PhysicalLimit[LOCAL] +------hashAgg[LOCAL] +--------NestedLoopJoin[CROSS_JOIN] +----------PhysicalLimit[LOCAL] +------------hashAgg[LOCAL] +--------------PhysicalOlapScan[t1] +----------PhysicalOlapScan[t2] -- !limit_distinct -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashAgg[LOCAL] -----------NestedLoopJoin[CROSS_JOIN] -------------PhysicalLimit[LOCAL] ---------------hashAgg[LOCAL] -----------------PhysicalOlapScan[t1] -------------PhysicalDistribute[DistributionSpecReplicated] ---------------PhysicalOlapScan[t2] +----PhysicalLimit[LOCAL] +------hashAgg[LOCAL] +--------NestedLoopJoin[CROSS_JOIN] +----------PhysicalLimit[LOCAL] +------------hashAgg[LOCAL] +--------------PhysicalOlapScan[t1] +----------PhysicalOlapScan[t2] -- !limit_distinct -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalLimit[LOCAL] ---------------hashAgg[LOCAL] -----------------PhysicalOlapScan[t1] -------------PhysicalDistribute[DistributionSpecHash] ---------------PhysicalOlapScan[t2] +----PhysicalLimit[LOCAL] +------hashAgg[LOCAL] +--------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----------PhysicalLimit[LOCAL] +------------hashAgg[LOCAL] +--------------PhysicalOlapScan[t1] +----------PhysicalOlapScan[t2] -- !limit_distinct -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashAgg[LOCAL] -----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalLimit[LOCAL] ---------------hashAgg[LOCAL] -----------------PhysicalOlapScan[t1] -------------PhysicalDistribute[DistributionSpecHash] ---------------PhysicalOlapScan[t2] +----PhysicalLimit[LOCAL] +------hashAgg[LOCAL] +--------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----------PhysicalLimit[LOCAL] +------------hashAgg[LOCAL] +--------------PhysicalOlapScan[t1] +----------PhysicalOlapScan[t2] -- !limit_offset_agg -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[LOCAL] -----------PhysicalOlapScan[t1] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[LOCAL] +--------PhysicalOlapScan[t1] -- !limit_set_operation -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------PhysicalUnion -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalLimit[LOCAL] ---------------------hashAgg[LOCAL] -----------------------PhysicalOlapScan[t1] -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalLimit[LOCAL] ---------------------hashAgg[LOCAL] -----------------------PhysicalOlapScan[t2] +----PhysicalLimit[LOCAL] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------PhysicalUnion +------------PhysicalLimit[LOCAL] +--------------hashAgg[LOCAL] +----------------PhysicalOlapScan[t1] +------------PhysicalLimit[LOCAL] +--------------hashAgg[LOCAL] +----------------PhysicalOlapScan[t2] -- !limit_offset_set_operation -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------PhysicalIntersect -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t1] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t2] +----PhysicalLimit[LOCAL] +------PhysicalIntersect +--------PhysicalOlapScan[t1] +--------PhysicalOlapScan[t2] -- !limit_window -- PhysicalResultSink @@ -231,10 +188,9 @@ PhysicalResultSink ----PhysicalLimit[LOCAL] ------PhysicalWindow --------PhysicalQuickSort[MERGE_SORT] -----------PhysicalDistribute[DistributionSpecGather] -------------PhysicalQuickSort[LOCAL_SORT] ---------------PhysicalPartitionTopN -----------------PhysicalOlapScan[t1] +----------PhysicalQuickSort[LOCAL_SORT] +------------PhysicalPartitionTopN +--------------PhysicalOlapScan[t1] -- !limit_offset_window -- PhysicalResultSink @@ -242,71 +198,61 @@ PhysicalResultSink ----PhysicalLimit[LOCAL] ------PhysicalWindow --------PhysicalQuickSort[MERGE_SORT] -----------PhysicalDistribute[DistributionSpecGather] -------------PhysicalQuickSort[LOCAL_SORT] ---------------PhysicalPartitionTopN -----------------PhysicalOlapScan[t1] +----------PhysicalQuickSort[LOCAL_SORT] +------------PhysicalPartitionTopN +--------------PhysicalOlapScan[t1] -- !limit_filter -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------filter((t1.id = 1)) -----------PhysicalOlapScan[t1] +----PhysicalLimit[LOCAL] +------filter((t1.id = 1)) +--------PhysicalOlapScan[t1] -- !limit_offset_filter -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------filter((t1.id = 1)) -----------PhysicalOlapScan[t1] +----PhysicalLimit[LOCAL] +------filter((t1.id = 1)) +--------PhysicalOlapScan[t1] -- !limit_project_filter -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------filter((t1.id > 100)) -----------PhysicalOlapScan[t1] +----PhysicalLimit[LOCAL] +------filter((t1.id > 100)) +--------PhysicalOlapScan[t1] -- !limit_join_filter -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -----------filter((t1.id > 100)) -------------PhysicalOlapScan[t1] apply RFs: RF0 -----------PhysicalDistribute[DistributionSpecHash] -------------filter((t2.id > 100)) ---------------PhysicalOlapScan[t2] +----PhysicalLimit[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------filter((t1.id > 100)) +----------PhysicalOlapScan[t1] +--------filter((t2.id > 100)) +----------PhysicalOlapScan[t2] -- !limit_subquery -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------PhysicalOlapScan[t1] +----PhysicalLimit[LOCAL] +------PhysicalOlapScan[t1] -- !limit_subquery_filter -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------filter((t1.id > 100)) -----------PhysicalOlapScan[t1] +----PhysicalLimit[LOCAL] +------filter((t1.id > 100)) +--------PhysicalOlapScan[t1] -- !limit_subquery_join -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------PhysicalOlapScan[t1] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t2] +----PhysicalLimit[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t1] +--------PhysicalOlapScan[t2] -- !limit_subquery_window -- PhysicalResultSink @@ -314,208 +260,164 @@ PhysicalResultSink ----PhysicalLimit[LOCAL] ------PhysicalWindow --------PhysicalQuickSort[MERGE_SORT] -----------PhysicalDistribute[DistributionSpecGather] -------------PhysicalQuickSort[LOCAL_SORT] ---------------PhysicalPartitionTopN -----------------PhysicalOlapScan[t1] +----------PhysicalQuickSort[LOCAL_SORT] +------------PhysicalPartitionTopN +--------------PhysicalOlapScan[t1] -- !limit_nested_subquery -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------PhysicalOlapScan[t1] +----PhysicalLimit[LOCAL] +------PhysicalOlapScan[t1] -- !limit_union_filter -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------PhysicalUnion -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalLimit[LOCAL] ---------------------hashAgg[LOCAL] -----------------------filter((t1.id > 100)) -------------------------PhysicalOlapScan[t1] -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalLimit[LOCAL] ---------------------hashAgg[LOCAL] -----------------------filter((t2.id > 100)) -------------------------PhysicalOlapScan[t2] +----PhysicalLimit[LOCAL] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------PhysicalUnion +------------PhysicalLimit[LOCAL] +--------------hashAgg[LOCAL] +----------------filter((t1.id > 100)) +------------------PhysicalOlapScan[t1] +------------PhysicalLimit[LOCAL] +--------------hashAgg[LOCAL] +----------------filter((t2.id > 100)) +------------------PhysicalOlapScan[t2] -- !limit_union_join -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------PhysicalUnion -----------------PhysicalLimit[LOCAL] -------------------hashAgg[GLOBAL] ---------------------PhysicalDistribute[DistributionSpecHash] -----------------------hashAgg[LOCAL] -------------------------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------------------------PhysicalDistribute[DistributionSpecHash] -----------------------------PhysicalOlapScan[t1] ---------------------------PhysicalDistribute[DistributionSpecHash] -----------------------------PhysicalOlapScan[t2] -----------------PhysicalDistribute[DistributionSpecExecutionAny] +----PhysicalLimit[LOCAL] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------PhysicalUnion +------------PhysicalLimit[LOCAL] +--------------hashAgg[GLOBAL] +----------------hashAgg[LOCAL] +------------------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------------------PhysicalOlapScan[t1] +--------------------PhysicalOlapScan[t2] +------------PhysicalLimit[LOCAL] +--------------hashAgg[LOCAL] +----------------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t3.id = t4.id)) otherCondition=() ------------------PhysicalLimit[LOCAL] --------------------hashAgg[LOCAL] -----------------------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t3.id = t4.id)) otherCondition=() -------------------------PhysicalLimit[LOCAL] ---------------------------hashAgg[LOCAL] -----------------------------PhysicalOlapScan[t3] -------------------------PhysicalDistribute[DistributionSpecHash] ---------------------------PhysicalOlapScan[t4] +----------------------PhysicalOlapScan[t3] +------------------PhysicalOlapScan[t4] -- !limit_union_window -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashAgg[GLOBAL] -----------hashAgg[LOCAL] -------------PhysicalUnion ---------------PhysicalLimit[LOCAL] -----------------hashAgg[GLOBAL] -------------------PhysicalDistribute[DistributionSpecHash] ---------------------hashAgg[LOCAL] -----------------------PhysicalWindow -------------------------PhysicalQuickSort[MERGE_SORT] ---------------------------PhysicalDistribute[DistributionSpecGather] -----------------------------PhysicalQuickSort[LOCAL_SORT] -------------------------------PhysicalOlapScan[t1] ---------------PhysicalLimit[LOCAL] -----------------hashAgg[GLOBAL] -------------------PhysicalDistribute[DistributionSpecHash] ---------------------hashAgg[LOCAL] -----------------------PhysicalWindow -------------------------PhysicalQuickSort[MERGE_SORT] ---------------------------PhysicalDistribute[DistributionSpecGather] -----------------------------PhysicalQuickSort[LOCAL_SORT] -------------------------------PhysicalOlapScan[t2] +----PhysicalLimit[LOCAL] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------PhysicalUnion +------------PhysicalLimit[LOCAL] +--------------hashAgg[GLOBAL] +----------------hashAgg[LOCAL] +------------------PhysicalWindow +--------------------PhysicalQuickSort[MERGE_SORT] +----------------------PhysicalQuickSort[LOCAL_SORT] +------------------------PhysicalOlapScan[t1] +------------PhysicalLimit[LOCAL] +--------------hashAgg[GLOBAL] +----------------hashAgg[LOCAL] +------------------PhysicalWindow +--------------------PhysicalQuickSort[MERGE_SORT] +----------------------PhysicalQuickSort[LOCAL_SORT] +------------------------PhysicalOlapScan[t2] -- !limit_subquery_join_filter -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -----------filter((t1.id > 100)) -------------PhysicalOlapScan[t1] apply RFs: RF0 -----------PhysicalDistribute[DistributionSpecHash] -------------filter((t2.id > 100)) ---------------PhysicalOlapScan[t2] +----PhysicalLimit[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------filter((t1.id > 100)) +----------PhysicalOlapScan[t1] +--------filter((t2.id > 100)) +----------PhysicalOlapScan[t2] -- !limit_subquery_join_window -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------PhysicalWindow -----------PhysicalQuickSort[LOCAL_SORT] -------------PhysicalPartitionTopN ---------------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------------PhysicalOlapScan[t1] -----------------PhysicalDistribute[DistributionSpecHash] -------------------PhysicalOlapScan[t2] +----PhysicalLimit[LOCAL] +------PhysicalWindow +--------PhysicalQuickSort[LOCAL_SORT] +----------PhysicalPartitionTopN +------------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------------PhysicalOlapScan[t1] +--------------PhysicalOlapScan[t2] -- !limit_subquery_union_filter -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------PhysicalUnion -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalLimit[LOCAL] ---------------------hashAgg[LOCAL] -----------------------filter((t1.id > 100)) -------------------------PhysicalOlapScan[t1] -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalLimit[LOCAL] ---------------------hashAgg[LOCAL] -----------------------filter((t2.id > 100)) -------------------------PhysicalOlapScan[t2] +----PhysicalLimit[LOCAL] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------PhysicalUnion +------------PhysicalLimit[LOCAL] +--------------hashAgg[LOCAL] +----------------filter((t1.id > 100)) +------------------PhysicalOlapScan[t1] +------------PhysicalLimit[LOCAL] +--------------hashAgg[LOCAL] +----------------filter((t2.id > 100)) +------------------PhysicalOlapScan[t2] -- !limit_subquery_union_join -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------PhysicalUnion -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalLimit[LOCAL] ---------------------hashAgg[LOCAL] -----------------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------------------PhysicalOlapScan[t1] -------------------------PhysicalDistribute[DistributionSpecHash] ---------------------------PhysicalOlapScan[t2] -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalLimit[LOCAL] ---------------------hashAgg[LOCAL] -----------------------hashJoin[INNER_JOIN] hashCondition=((t3.id = t4.id)) otherCondition=() build RFs:RF1 id->[id] -------------------------PhysicalOlapScan[t3] apply RFs: RF1 -------------------------PhysicalDistribute[DistributionSpecHash] ---------------------------PhysicalOlapScan[t4] +----PhysicalLimit[LOCAL] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------PhysicalUnion +------------PhysicalLimit[LOCAL] +--------------hashAgg[LOCAL] +----------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------------------PhysicalOlapScan[t1] +------------------PhysicalOlapScan[t2] +------------PhysicalLimit[LOCAL] +--------------hashAgg[LOCAL] +----------------hashJoin[INNER_JOIN] hashCondition=((t3.id = t4.id)) otherCondition=() +------------------PhysicalOlapScan[t3] +------------------PhysicalOlapScan[t4] -- !limit_subquery_union_window -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------PhysicalWindow +----PhysicalLimit[LOCAL] +------PhysicalWindow +--------PhysicalPartitionTopN ----------PhysicalPartitionTopN -------------PhysicalDistribute[DistributionSpecHash] ---------------PhysicalPartitionTopN -----------------hashAgg[GLOBAL] -------------------PhysicalDistribute[DistributionSpecHash] ---------------------hashAgg[LOCAL] -----------------------PhysicalUnion -------------------------PhysicalDistribute[DistributionSpecExecutionAny] ---------------------------PhysicalOlapScan[t1] -------------------------PhysicalDistribute[DistributionSpecExecutionAny] ---------------------------PhysicalOlapScan[t2] +------------hashAgg[GLOBAL] +--------------hashAgg[LOCAL] +----------------PhysicalUnion +------------------PhysicalOlapScan[t1] +------------------PhysicalOlapScan[t2] -- !limit_correlated_subquery -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_SEMI_JOIN] hashCondition=((t2.id = t1.id)) otherCondition=() -------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecHash] ---------PhysicalOlapScan[t2] +--hashJoin[LEFT_SEMI_JOIN] hashCondition=((t2.id = t1.id)) otherCondition=() +----PhysicalOlapScan[t1] +----PhysicalOlapScan[t2] -- !limit_correlated_subquery_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_SEMI_JOIN] hashCondition=((t3.id = t1.id)) otherCondition=() -------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------PhysicalOlapScan[t1] ---------PhysicalDistribute[DistributionSpecHash] -----------PhysicalOlapScan[t2] -------PhysicalDistribute[DistributionSpecHash] ---------PhysicalOlapScan[t3] +--hashJoin[LEFT_SEMI_JOIN] hashCondition=((t3.id = t1.id)) otherCondition=() +----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------PhysicalOlapScan[t1] +------PhysicalOlapScan[t2] +----PhysicalOlapScan[t3] -- !limit_correlated_subquery_window -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----PhysicalWindow -------PhysicalQuickSort[LOCAL_SORT] ---------hashJoin[LEFT_SEMI_JOIN] hashCondition=((t2.id = t1.id)) otherCondition=() -----------PhysicalOlapScan[t1] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t2] +--PhysicalWindow +----PhysicalQuickSort[LOCAL_SORT] +------hashJoin[LEFT_SEMI_JOIN] hashCondition=((t2.id = t1.id)) otherCondition=() +--------PhysicalOlapScan[t1] +--------PhysicalOlapScan[t2] -- !limit_cte_query -- PhysicalCteAnchor ( cteId=CTEId#0 ) @@ -524,10 +426,8 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------PhysicalOlapScan[t1] --PhysicalResultSink ----PhysicalLimit[GLOBAL] -------PhysicalDistribute[DistributionSpecGather] ---------PhysicalLimit[LOCAL] -----------PhysicalDistribute[DistributionSpecExecutionAny] -------------PhysicalCteConsumer ( cteId=CTEId#0 ) +------PhysicalLimit[LOCAL] +--------PhysicalCteConsumer ( cteId=CTEId#0 ) -- !limit_cte_query_join -- PhysicalCteAnchor ( cteId=CTEId#0 ) @@ -540,13 +440,10 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------PhysicalOlapScan[t2] ----PhysicalResultSink ------PhysicalLimit[GLOBAL] ---------PhysicalDistribute[DistributionSpecGather] -----------PhysicalLimit[LOCAL] -------------hashJoin[FULL_OUTER_JOIN] hashCondition=((cte1.id = cte2.id)) otherCondition=() ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalCteConsumer ( cteId=CTEId#0 ) ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalCteConsumer ( cteId=CTEId#1 ) +--------PhysicalLimit[LOCAL] +----------hashJoin[FULL_OUTER_JOIN] hashCondition=((cte1.id = cte2.id)) otherCondition=() +------------PhysicalCteConsumer ( cteId=CTEId#0 ) +------------PhysicalCteConsumer ( cteId=CTEId#1 ) -- !limit_cte_query_window -- PhysicalCteAnchor ( cteId=CTEId#0 ) @@ -558,56 +455,47 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------PhysicalLimit[LOCAL] --------PhysicalWindow ----------PhysicalQuickSort[MERGE_SORT] -------------PhysicalDistribute[DistributionSpecGather] ---------------PhysicalQuickSort[LOCAL_SORT] -----------------PhysicalPartitionTopN -------------------PhysicalDistribute[DistributionSpecExecutionAny] ---------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +------------PhysicalQuickSort[LOCAL_SORT] +--------------PhysicalPartitionTopN +----------------PhysicalCteConsumer ( cteId=CTEId#0 ) -- !limit_project_filter -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------filter((t1.id > 100)) -----------PhysicalOlapScan[t1] +----PhysicalLimit[LOCAL] +------filter((t1.id > 100)) +--------PhysicalOlapScan[t1] -- !limit_join_filter -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -----------filter((t1.id > 100)) -------------PhysicalOlapScan[t1] apply RFs: RF0 -----------PhysicalDistribute[DistributionSpecHash] -------------filter((t2.id > 100)) ---------------PhysicalOlapScan[t2] +----PhysicalLimit[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------filter((t1.id > 100)) +----------PhysicalOlapScan[t1] +--------filter((t2.id > 100)) +----------PhysicalOlapScan[t2] -- !limit_subquery -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------PhysicalOlapScan[t1] +----PhysicalLimit[LOCAL] +------PhysicalOlapScan[t1] -- !limit_subquery_filter -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------filter((t1.id > 100)) -----------PhysicalOlapScan[t1] +----PhysicalLimit[LOCAL] +------filter((t1.id > 100)) +--------PhysicalOlapScan[t1] -- !limit_subquery_join -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------PhysicalOlapScan[t1] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t2] +----PhysicalLimit[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t1] +--------PhysicalOlapScan[t2] -- !limit_subquery_window -- PhysicalResultSink @@ -615,305 +503,229 @@ PhysicalResultSink ----PhysicalLimit[LOCAL] ------PhysicalWindow --------PhysicalQuickSort[MERGE_SORT] -----------PhysicalDistribute[DistributionSpecGather] -------------PhysicalQuickSort[LOCAL_SORT] ---------------PhysicalPartitionTopN -----------------PhysicalOlapScan[t1] +----------PhysicalQuickSort[LOCAL_SORT] +------------PhysicalPartitionTopN +--------------PhysicalOlapScan[t1] -- !limit_nested_subquery -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------PhysicalOlapScan[t1] +----PhysicalLimit[LOCAL] +------PhysicalOlapScan[t1] -- !limit_subquery_order_by -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------PhysicalOlapScan[t1] +----PhysicalLimit[LOCAL] +------PhysicalOlapScan[t1] -- !limit_subquery_order_by_offset -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------PhysicalOlapScan[t1] +----PhysicalLimit[LOCAL] +------PhysicalOlapScan[t1] -- !limit_subquery_distinct -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashAgg[LOCAL] -----------PhysicalOlapScan[t1] +----PhysicalLimit[LOCAL] +------hashAgg[LOCAL] +--------PhysicalOlapScan[t1] -- !limit_cross_join -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------NestedLoopJoin[CROSS_JOIN] -----------PhysicalLimit[LOCAL] -------------PhysicalOlapScan[t1] -----------PhysicalDistribute[DistributionSpecReplicated] -------------PhysicalLimit[LOCAL] ---------------PhysicalOlapScan[t2] +----PhysicalLimit[LOCAL] +------NestedLoopJoin[CROSS_JOIN] +--------PhysicalLimit[LOCAL] +----------PhysicalOlapScan[t1] +--------PhysicalLimit[LOCAL] +----------PhysicalOlapScan[t2] -- !limit_multiple_left_outer_join -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() -----------PhysicalLimit[LOCAL] -------------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------------PhysicalLimit[LOCAL] -----------------PhysicalOlapScan[t1] ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalOlapScan[t2] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t3] +----PhysicalLimit[LOCAL] +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +--------PhysicalLimit[LOCAL] +----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------------PhysicalLimit[LOCAL] +--------------PhysicalOlapScan[t1] +------------PhysicalOlapScan[t2] +--------PhysicalOlapScan[t3] -- !limit_multiple_right_outer_join -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() build RFs:RF1 id->[id] -----------PhysicalDistribute[DistributionSpecHash] -------------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalOlapScan[t1] apply RFs: RF1 ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalOlapScan[t2] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalLimit[LOCAL] ---------------PhysicalOlapScan[t3] +----PhysicalLimit[LOCAL] +------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +--------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----------PhysicalOlapScan[t1] +----------PhysicalOlapScan[t2] +--------PhysicalLimit[LOCAL] +----------PhysicalOlapScan[t3] -- !limit_multiple_full_outer_join -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() -----------PhysicalDistribute[DistributionSpecHash] -------------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalOlapScan[t1] ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalOlapScan[t2] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t3] +----PhysicalLimit[LOCAL] +------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +--------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----------PhysicalOlapScan[t1] +----------PhysicalOlapScan[t2] +--------PhysicalOlapScan[t3] -- !limit_multiple_cross_join -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------NestedLoopJoin[CROSS_JOIN] -----------PhysicalLimit[LOCAL] -------------NestedLoopJoin[CROSS_JOIN] ---------------PhysicalLimit[LOCAL] -----------------PhysicalOlapScan[t1] ---------------PhysicalDistribute[DistributionSpecReplicated] -----------------PhysicalLimit[LOCAL] -------------------PhysicalOlapScan[t2] -----------PhysicalDistribute[DistributionSpecReplicated] +----PhysicalLimit[LOCAL] +------NestedLoopJoin[CROSS_JOIN] +--------PhysicalLimit[LOCAL] +----------NestedLoopJoin[CROSS_JOIN] ------------PhysicalLimit[LOCAL] ---------------PhysicalOlapScan[t3] +--------------PhysicalOlapScan[t1] +------------PhysicalLimit[LOCAL] +--------------PhysicalOlapScan[t2] +--------PhysicalLimit[LOCAL] +----------PhysicalOlapScan[t3] -- !limit_left_outer_join_right_outer_join -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() build RFs:RF0 id->[id] -----------PhysicalDistribute[DistributionSpecHash] -------------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------------PhysicalOlapScan[t1] apply RFs: RF0 ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalOlapScan[t2] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalLimit[LOCAL] ---------------PhysicalOlapScan[t3] +----PhysicalLimit[LOCAL] +------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +--------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----------PhysicalOlapScan[t1] +----------PhysicalOlapScan[t2] +--------PhysicalLimit[LOCAL] +----------PhysicalOlapScan[t3] -- !limit_left_outer_join_full_outer_join -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() -----------PhysicalDistribute[DistributionSpecHash] -------------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------------PhysicalOlapScan[t1] ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalOlapScan[t2] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t3] +----PhysicalLimit[LOCAL] +------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +--------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----------PhysicalOlapScan[t1] +----------PhysicalOlapScan[t2] +--------PhysicalOlapScan[t3] -- !limit_left_outer_join_cross_join -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------NestedLoopJoin[CROSS_JOIN] -----------PhysicalLimit[LOCAL] -------------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------------PhysicalLimit[LOCAL] -----------------PhysicalOlapScan[t1] ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalOlapScan[t2] -----------PhysicalDistribute[DistributionSpecReplicated] +----PhysicalLimit[LOCAL] +------NestedLoopJoin[CROSS_JOIN] +--------PhysicalLimit[LOCAL] +----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ------------PhysicalLimit[LOCAL] ---------------PhysicalOlapScan[t3] +--------------PhysicalOlapScan[t1] +------------PhysicalOlapScan[t2] +--------PhysicalLimit[LOCAL] +----------PhysicalOlapScan[t3] -- !limit_right_outer_join_full_outer_join -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() -----------PhysicalDistribute[DistributionSpecHash] -------------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalOlapScan[t1] ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalOlapScan[t2] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t3] +----PhysicalLimit[LOCAL] +------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +--------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----------PhysicalOlapScan[t1] +----------PhysicalOlapScan[t2] +--------PhysicalOlapScan[t3] -- !limit_right_outer_join_cross_join -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------NestedLoopJoin[CROSS_JOIN] -----------PhysicalLimit[LOCAL] -------------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalOlapScan[t1] apply RFs: RF0 ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalLimit[LOCAL] -------------------PhysicalOlapScan[t2] -----------PhysicalDistribute[DistributionSpecReplicated] +----PhysicalLimit[LOCAL] +------NestedLoopJoin[CROSS_JOIN] +--------PhysicalLimit[LOCAL] +----------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------------PhysicalOlapScan[t1] ------------PhysicalLimit[LOCAL] ---------------PhysicalOlapScan[t3] +--------------PhysicalOlapScan[t2] +--------PhysicalLimit[LOCAL] +----------PhysicalOlapScan[t3] -- !limit_full_outer_join_cross_join -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------NestedLoopJoin[CROSS_JOIN] -----------PhysicalLimit[LOCAL] -------------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalOlapScan[t1] ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalOlapScan[t2] -----------PhysicalDistribute[DistributionSpecReplicated] -------------PhysicalLimit[LOCAL] ---------------PhysicalOlapScan[t3] +----PhysicalLimit[LOCAL] +------NestedLoopJoin[CROSS_JOIN] +--------PhysicalLimit[LOCAL] +----------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------------PhysicalOlapScan[t1] +------------PhysicalOlapScan[t2] +--------PhysicalLimit[LOCAL] +----------PhysicalOlapScan[t3] -- !limit_left_outer_join_right_outer_join_full_outer_join -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t4.id)) otherCondition=() -----------PhysicalDistribute[DistributionSpecHash] -------------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() ---------------PhysicalDistribute[DistributionSpecHash] -----------------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------------PhysicalOlapScan[t1] -------------------PhysicalDistribute[DistributionSpecHash] ---------------------PhysicalOlapScan[t2] ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalOlapScan[t3] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t4] +----PhysicalLimit[LOCAL] +------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t4.id)) otherCondition=() +--------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------------PhysicalOlapScan[t1] +------------PhysicalOlapScan[t2] +----------PhysicalOlapScan[t3] +--------PhysicalOlapScan[t4] -- !limit_left_outer_join_right_outer_join_cross_join -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------NestedLoopJoin[CROSS_JOIN] -----------PhysicalLimit[LOCAL] -------------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() build RFs:RF0 id->[id] ---------------PhysicalDistribute[DistributionSpecHash] -----------------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------------PhysicalOlapScan[t1] apply RFs: RF0 -------------------PhysicalDistribute[DistributionSpecHash] ---------------------PhysicalOlapScan[t2] ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalLimit[LOCAL] -------------------PhysicalOlapScan[t3] -----------PhysicalDistribute[DistributionSpecReplicated] +----PhysicalLimit[LOCAL] +------NestedLoopJoin[CROSS_JOIN] +--------PhysicalLimit[LOCAL] +----------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +------------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------------PhysicalOlapScan[t1] +--------------PhysicalOlapScan[t2] ------------PhysicalLimit[LOCAL] ---------------PhysicalOlapScan[t4] +--------------PhysicalOlapScan[t3] +--------PhysicalLimit[LOCAL] +----------PhysicalOlapScan[t4] -- !limit_left_outer_join_full_outer_join_cross_join -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------NestedLoopJoin[CROSS_JOIN] -----------PhysicalLimit[LOCAL] -------------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() ---------------PhysicalDistribute[DistributionSpecHash] -----------------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------------PhysicalOlapScan[t1] -------------------PhysicalDistribute[DistributionSpecHash] ---------------------PhysicalOlapScan[t2] ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalOlapScan[t3] -----------PhysicalDistribute[DistributionSpecReplicated] -------------PhysicalLimit[LOCAL] ---------------PhysicalOlapScan[t4] +----PhysicalLimit[LOCAL] +------NestedLoopJoin[CROSS_JOIN] +--------PhysicalLimit[LOCAL] +----------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +------------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------------PhysicalOlapScan[t1] +--------------PhysicalOlapScan[t2] +------------PhysicalOlapScan[t3] +--------PhysicalLimit[LOCAL] +----------PhysicalOlapScan[t4] -- !limit_right_outer_join_full_outer_join_cross_join -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------NestedLoopJoin[CROSS_JOIN] -----------PhysicalLimit[LOCAL] -------------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() ---------------PhysicalDistribute[DistributionSpecHash] -----------------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------------PhysicalDistribute[DistributionSpecHash] ---------------------PhysicalOlapScan[t1] -------------------PhysicalDistribute[DistributionSpecHash] ---------------------PhysicalOlapScan[t2] ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalOlapScan[t3] -----------PhysicalDistribute[DistributionSpecReplicated] -------------PhysicalLimit[LOCAL] ---------------PhysicalOlapScan[t4] +----PhysicalLimit[LOCAL] +------NestedLoopJoin[CROSS_JOIN] +--------PhysicalLimit[LOCAL] +----------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +------------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------------PhysicalOlapScan[t1] +--------------PhysicalOlapScan[t2] +------------PhysicalOlapScan[t3] +--------PhysicalLimit[LOCAL] +----------PhysicalOlapScan[t4] -- !limit_left_outer_join_right_outer_join_full_outer_join_cross_join -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------NestedLoopJoin[CROSS_JOIN] -----------PhysicalLimit[LOCAL] -------------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t4.id)) otherCondition=() ---------------PhysicalDistribute[DistributionSpecHash] -----------------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() -------------------PhysicalDistribute[DistributionSpecHash] ---------------------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------------------PhysicalOlapScan[t1] -----------------------PhysicalDistribute[DistributionSpecHash] -------------------------PhysicalOlapScan[t2] -------------------PhysicalDistribute[DistributionSpecHash] ---------------------PhysicalOlapScan[t3] ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalOlapScan[t4] -----------PhysicalDistribute[DistributionSpecReplicated] -------------PhysicalLimit[LOCAL] ---------------PhysicalOlapScan[t4] +----PhysicalLimit[LOCAL] +------NestedLoopJoin[CROSS_JOIN] +--------PhysicalLimit[LOCAL] +----------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t4.id)) otherCondition=() +------------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +--------------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----------------PhysicalOlapScan[t1] +----------------PhysicalOlapScan[t2] +--------------PhysicalOlapScan[t3] +------------PhysicalOlapScan[t4] +--------PhysicalLimit[LOCAL] +----------PhysicalOlapScan[t4] diff --git a/regression-test/data/nereids_rules_p0/limit_push_down/order_push_down.out b/regression-test/data/nereids_rules_p0/limit_push_down/order_push_down.out index f22c364e98..b5cecee674 100644 --- a/regression-test/data/nereids_rules_p0/limit_push_down/order_push_down.out +++ b/regression-test/data/nereids_rules_p0/limit_push_down/order_push_down.out @@ -2,99 +2,76 @@ -- !limit_offset_sort_project -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------PhysicalOlapScan[t1] +----PhysicalTopN[LOCAL_SORT] +------PhysicalOlapScan[t1] -- !limit_sort_join -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------PhysicalOlapScan[t1] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t2] +----PhysicalTopN[LOCAL_SORT] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t1] +--------PhysicalOlapScan[t2] -- !limit_sort_semi_join -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashJoin[LEFT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------PhysicalOlapScan[t1] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t2] +----PhysicalTopN[LOCAL_SORT] +------hashJoin[LEFT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t1] +--------PhysicalOlapScan[t2] -- !right_semi_join_order -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------PhysicalOlapScan[t1] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t2] +----PhysicalTopN[LOCAL_SORT] +------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t1] +--------PhysicalOlapScan[t2] -- !left_anti_join_order -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashJoin[LEFT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------PhysicalOlapScan[t1] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t2] +----PhysicalTopN[LOCAL_SORT] +------hashJoin[LEFT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t1] +--------PhysicalOlapScan[t2] -- !right_anti_join_order -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashJoin[RIGHT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t1] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t2] +----PhysicalTopN[LOCAL_SORT] +------hashJoin[RIGHT_ANTI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t1] +--------PhysicalOlapScan[t2] -- !full_outer_join_order -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t1] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t2] +----PhysicalTopN[LOCAL_SORT] +------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t1] +--------PhysicalOlapScan[t2] -- !left_outer_join_order -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalTopN[MERGE_SORT] ---------------PhysicalDistribute[DistributionSpecGather] -----------------PhysicalTopN[LOCAL_SORT] -------------------PhysicalOlapScan[t1] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t2] +----PhysicalTopN[LOCAL_SORT] +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalTopN[MERGE_SORT] +----------PhysicalTopN[LOCAL_SORT] +------------PhysicalOlapScan[t1] +--------PhysicalOlapScan[t2] -- !right_outer_join_order -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t1] apply RFs: RF0 -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalTopN[MERGE_SORT] ---------------PhysicalDistribute[DistributionSpecGather] -----------------PhysicalTopN[LOCAL_SORT] -------------------PhysicalOlapScan[t2] +----PhysicalTopN[LOCAL_SORT] +------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t1] +--------PhysicalTopN[MERGE_SORT] +----------PhysicalTopN[LOCAL_SORT] +------------PhysicalOlapScan[t2] -- !cross_join_order -- PhysicalResultSink @@ -102,97 +79,78 @@ PhysicalResultSink ----PhysicalTopN[LOCAL_SORT] ------NestedLoopJoin[CROSS_JOIN] --------PhysicalTopN[MERGE_SORT] -----------PhysicalDistribute[DistributionSpecGather] -------------PhysicalTopN[LOCAL_SORT] ---------------PhysicalOlapScan[t1] ---------PhysicalDistribute[DistributionSpecReplicated] -----------PhysicalOlapScan[t2] +----------PhysicalTopN[LOCAL_SORT] +------------PhysicalOlapScan[t1] +--------PhysicalOlapScan[t2] -- !limit_offset_sort_join -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------PhysicalOlapScan[t1] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t2] +----PhysicalTopN[LOCAL_SORT] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t1] +--------PhysicalOlapScan[t2] -- !limit_sort_agg_having -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[LOCAL] -----------PhysicalOlapScan[t1] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[LOCAL] +--------PhysicalOlapScan[t1] -- !limit_offset_agg_having -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[LOCAL] -----------PhysicalOlapScan[t1] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[LOCAL] +--------PhysicalOlapScan[t1] -- !limit_offset_sort_agg_having -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[LOCAL] +--------PhysicalOlapScan[t1] + +-- !limit_distinct -- +PhysicalResultSink +--PhysicalTopN[MERGE_SORT] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[GLOBAL] --------hashAgg[LOCAL] -----------PhysicalOlapScan[t1] +----------NestedLoopJoin[CROSS_JOIN] +------------PhysicalOlapScan[t1] +------------PhysicalOlapScan[t2] -- !limit_distinct -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------NestedLoopJoin[CROSS_JOIN] -----------------PhysicalOlapScan[t1] -----------------PhysicalDistribute[DistributionSpecReplicated] -------------------PhysicalOlapScan[t2] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------NestedLoopJoin[CROSS_JOIN] +------------PhysicalOlapScan[t1] +------------PhysicalOlapScan[t2] -- !limit_distinct -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------NestedLoopJoin[CROSS_JOIN] -----------------PhysicalOlapScan[t1] -----------------PhysicalDistribute[DistributionSpecReplicated] -------------------PhysicalOlapScan[t2] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------------PhysicalOlapScan[t1] +------------PhysicalOlapScan[t2] -- !limit_distinct -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------------PhysicalOlapScan[t1] -----------------PhysicalDistribute[DistributionSpecHash] -------------------PhysicalOlapScan[t2] - --- !limit_distinct -- -PhysicalResultSink ---PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------------PhysicalOlapScan[t1] -----------------PhysicalDistribute[DistributionSpecHash] -------------------PhysicalOlapScan[t2] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------------PhysicalOlapScan[t1] +------------PhysicalOlapScan[t2] -- !limit_window -- PhysicalResultSink @@ -200,10 +158,9 @@ PhysicalResultSink ----PhysicalLimit[LOCAL] ------PhysicalWindow --------PhysicalQuickSort[MERGE_SORT] -----------PhysicalDistribute[DistributionSpecGather] -------------PhysicalQuickSort[LOCAL_SORT] ---------------PhysicalPartitionTopN -----------------PhysicalOlapScan[t1] +----------PhysicalQuickSort[LOCAL_SORT] +------------PhysicalPartitionTopN +--------------PhysicalOlapScan[t1] -- !limit_sort_window -- PhysicalResultSink @@ -211,9 +168,8 @@ PhysicalResultSink ----PhysicalTopN[LOCAL_SORT] ------PhysicalWindow --------PhysicalQuickSort[MERGE_SORT] -----------PhysicalDistribute[DistributionSpecGather] -------------PhysicalQuickSort[LOCAL_SORT] ---------------PhysicalOlapScan[t1] +----------PhysicalQuickSort[LOCAL_SORT] +------------PhysicalOlapScan[t1] -- !limit_offset_window -- PhysicalResultSink @@ -221,10 +177,9 @@ PhysicalResultSink ----PhysicalLimit[LOCAL] ------PhysicalWindow --------PhysicalQuickSort[MERGE_SORT] -----------PhysicalDistribute[DistributionSpecGather] -------------PhysicalQuickSort[LOCAL_SORT] ---------------PhysicalPartitionTopN -----------------PhysicalOlapScan[t1] +----------PhysicalQuickSort[LOCAL_SORT] +------------PhysicalPartitionTopN +--------------PhysicalOlapScan[t1] -- !limit_offset_sort_window -- PhysicalResultSink @@ -232,97 +187,76 @@ PhysicalResultSink ----PhysicalTopN[LOCAL_SORT] ------PhysicalWindow --------PhysicalQuickSort[MERGE_SORT] -----------PhysicalDistribute[DistributionSpecGather] -------------PhysicalQuickSort[LOCAL_SORT] ---------------PhysicalOlapScan[t1] +----------PhysicalQuickSort[LOCAL_SORT] +------------PhysicalOlapScan[t1] -- !limit_sort_filter -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------filter((t1.id = 1)) -----------PhysicalOlapScan[t1] +----PhysicalTopN[LOCAL_SORT] +------filter((t1.id = 1)) +--------PhysicalOlapScan[t1] -- !limit_offset_sort_filter -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------filter((t1.id = 1)) -----------PhysicalOlapScan[t1] +----PhysicalTopN[LOCAL_SORT] +------filter((t1.id = 1)) +--------PhysicalOlapScan[t1] -- !limit_subquery_order_by_inside_limit_outside -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------PhysicalOlapScan[t1] +----PhysicalLimit[LOCAL] +------PhysicalOlapScan[t1] -- !limit_subquery_all_inside -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------PhysicalOlapScan[t1] +----PhysicalTopN[LOCAL_SORT] +------PhysicalOlapScan[t1] -- !limit_set_operation -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------PhysicalUnion -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalOlapScan[t1] -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalOlapScan[t2] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------PhysicalUnion +------------PhysicalOlapScan[t1] +------------PhysicalOlapScan[t2] -- !limit_outside_order_inside_set_operation -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------PhysicalUnion -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalLimit[LOCAL] ---------------------hashAgg[LOCAL] -----------------------PhysicalOlapScan[t1] -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalLimit[LOCAL] ---------------------hashAgg[LOCAL] -----------------------PhysicalOlapScan[t2] +----PhysicalLimit[LOCAL] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------PhysicalUnion +------------PhysicalLimit[LOCAL] +--------------hashAgg[LOCAL] +----------------PhysicalOlapScan[t1] +------------PhysicalLimit[LOCAL] +--------------hashAgg[LOCAL] +----------------PhysicalOlapScan[t2] -- !limit_inside_set_operation -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[GLOBAL] -------PhysicalDistribute[DistributionSpecHash] ---------hashAgg[LOCAL] -----------PhysicalUnion -------------PhysicalDistribute[DistributionSpecExecutionAny] ---------------PhysicalOlapScan[t1] -------------PhysicalDistribute[DistributionSpecExecutionAny] ---------------PhysicalTopN[MERGE_SORT] -----------------PhysicalDistribute[DistributionSpecGather] -------------------PhysicalTopN[LOCAL_SORT] ---------------------PhysicalOlapScan[t2] +--hashAgg[GLOBAL] +----hashAgg[LOCAL] +------PhysicalUnion +--------PhysicalOlapScan[t1] +--------PhysicalTopN[MERGE_SORT] +----------PhysicalTopN[LOCAL_SORT] +------------PhysicalOlapScan[t2] -- !limit_offset_set_operation -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------PhysicalIntersect -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t1] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t2] +----PhysicalTopN[LOCAL_SORT] +------PhysicalIntersect +--------PhysicalOlapScan[t1] +--------PhysicalOlapScan[t2] -- !limit_window -- PhysicalResultSink @@ -330,9 +264,8 @@ PhysicalResultSink ----PhysicalTopN[LOCAL_SORT] ------PhysicalWindow --------PhysicalQuickSort[MERGE_SORT] -----------PhysicalDistribute[DistributionSpecGather] -------------PhysicalQuickSort[LOCAL_SORT] ---------------PhysicalOlapScan[t1] +----------PhysicalQuickSort[LOCAL_SORT] +------------PhysicalOlapScan[t1] -- !limit_offset_window -- PhysicalResultSink @@ -340,70 +273,60 @@ PhysicalResultSink ----PhysicalTopN[LOCAL_SORT] ------PhysicalWindow --------PhysicalQuickSort[MERGE_SORT] -----------PhysicalDistribute[DistributionSpecGather] -------------PhysicalQuickSort[LOCAL_SORT] ---------------PhysicalOlapScan[t1] +----------PhysicalQuickSort[LOCAL_SORT] +------------PhysicalOlapScan[t1] -- !limit_filter -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------filter((t1.id = 1)) -----------PhysicalOlapScan[t1] +----PhysicalTopN[LOCAL_SORT] +------filter((t1.id = 1)) +--------PhysicalOlapScan[t1] -- !limit_offset_filter -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------filter((t1.id = 1)) -----------PhysicalOlapScan[t1] +----PhysicalTopN[LOCAL_SORT] +------filter((t1.id = 1)) +--------PhysicalOlapScan[t1] -- !limit_project_filter -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------filter((t1.id > 100)) -----------PhysicalOlapScan[t1] +----PhysicalTopN[LOCAL_SORT] +------filter((t1.id > 100)) +--------PhysicalOlapScan[t1] -- !limit_join_filter -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -----------filter((t1.id > 100)) -------------PhysicalOlapScan[t1] apply RFs: RF0 -----------PhysicalDistribute[DistributionSpecHash] -------------filter((t2.id > 100)) ---------------PhysicalOlapScan[t2] +----PhysicalTopN[LOCAL_SORT] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------filter((t1.id > 100)) +----------PhysicalOlapScan[t1] +--------filter((t2.id > 100)) +----------PhysicalOlapScan[t2] -- !limit_subquery -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------PhysicalOlapScan[t1] +----PhysicalTopN[LOCAL_SORT] +------PhysicalOlapScan[t1] -- !limit_subquery_filter -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------filter((t1.id > 100)) -----------PhysicalOlapScan[t1] +----PhysicalTopN[LOCAL_SORT] +------filter((t1.id > 100)) +--------PhysicalOlapScan[t1] -- !limit_subquery_join -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------PhysicalOlapScan[t1] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t2] +----PhysicalTopN[LOCAL_SORT] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t1] +--------PhysicalOlapScan[t2] -- !limit_subquery_window -- PhysicalResultSink @@ -411,182 +334,138 @@ PhysicalResultSink ----PhysicalTopN[LOCAL_SORT] ------PhysicalWindow --------PhysicalQuickSort[MERGE_SORT] -----------PhysicalDistribute[DistributionSpecGather] -------------PhysicalQuickSort[LOCAL_SORT] ---------------PhysicalOlapScan[t1] +----------PhysicalQuickSort[LOCAL_SORT] +------------PhysicalOlapScan[t1] -- !limit_nested_subquery -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------PhysicalOlapScan[t1] +----PhysicalTopN[LOCAL_SORT] +------PhysicalOlapScan[t1] -- !limit_union_filter -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------PhysicalUnion -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------filter((t1.id > 100)) ---------------------PhysicalOlapScan[t1] -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------filter((t2.id > 100)) ---------------------PhysicalOlapScan[t2] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------PhysicalUnion +------------filter((t1.id > 100)) +--------------PhysicalOlapScan[t1] +------------filter((t2.id > 100)) +--------------PhysicalOlapScan[t2] -- !limit_union_join -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------PhysicalUnion -----------------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------------PhysicalDistribute[DistributionSpecHash] ---------------------PhysicalOlapScan[t1] -------------------PhysicalDistribute[DistributionSpecHash] ---------------------PhysicalOlapScan[t2] -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t3.id = t4.id)) otherCondition=() ---------------------PhysicalOlapScan[t3] ---------------------PhysicalDistribute[DistributionSpecHash] -----------------------PhysicalOlapScan[t4] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------PhysicalUnion +------------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------------PhysicalOlapScan[t1] +--------------PhysicalOlapScan[t2] +------------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t3.id = t4.id)) otherCondition=() +--------------PhysicalOlapScan[t3] +--------------PhysicalOlapScan[t4] -- !limit_union_window -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------PhysicalUnion -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalWindow ---------------------PhysicalQuickSort[MERGE_SORT] -----------------------PhysicalDistribute[DistributionSpecGather] -------------------------PhysicalQuickSort[LOCAL_SORT] ---------------------------PhysicalOlapScan[t1] -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalWindow ---------------------PhysicalQuickSort[MERGE_SORT] -----------------------PhysicalDistribute[DistributionSpecGather] -------------------------PhysicalQuickSort[LOCAL_SORT] ---------------------------PhysicalOlapScan[t2] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------PhysicalUnion +------------PhysicalWindow +--------------PhysicalQuickSort[MERGE_SORT] +----------------PhysicalQuickSort[LOCAL_SORT] +------------------PhysicalOlapScan[t1] +------------PhysicalWindow +--------------PhysicalQuickSort[MERGE_SORT] +----------------PhysicalQuickSort[LOCAL_SORT] +------------------PhysicalOlapScan[t2] -- !limit_subquery_join_filter -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -----------filter((t1.id > 100)) -------------PhysicalOlapScan[t1] apply RFs: RF0 -----------PhysicalDistribute[DistributionSpecHash] -------------filter((t2.id > 100)) ---------------PhysicalOlapScan[t2] +----PhysicalTopN[LOCAL_SORT] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------filter((t1.id > 100)) +----------PhysicalOlapScan[t1] +--------filter((t2.id > 100)) +----------PhysicalOlapScan[t2] -- !limit_subqueryjoin_window -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------PhysicalWindow -----------PhysicalQuickSort[LOCAL_SORT] -------------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------------PhysicalOlapScan[t1] ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalOlapScan[t2] +----PhysicalTopN[LOCAL_SORT] +------PhysicalWindow +--------PhysicalQuickSort[LOCAL_SORT] +----------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------------PhysicalOlapScan[t1] +------------PhysicalOlapScan[t2] -- !limit_subquery_union_filter -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------PhysicalUnion -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------filter((t1.id > 100)) ---------------------PhysicalOlapScan[t1] -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------filter((t2.id > 100)) ---------------------PhysicalOlapScan[t2] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------PhysicalUnion +------------filter((t1.id > 100)) +--------------PhysicalOlapScan[t1] +------------filter((t2.id > 100)) +--------------PhysicalOlapScan[t2] -- !limit_subquery_union_join -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------PhysicalUnion -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------------------PhysicalOlapScan[t1] ---------------------PhysicalDistribute[DistributionSpecHash] -----------------------PhysicalOlapScan[t2] -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------hashJoin[INNER_JOIN] hashCondition=((t3.id = t4.id)) otherCondition=() build RFs:RF1 id->[id] ---------------------PhysicalOlapScan[t3] apply RFs: RF1 ---------------------PhysicalDistribute[DistributionSpecHash] -----------------------PhysicalOlapScan[t4] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------PhysicalUnion +------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------------PhysicalOlapScan[t1] +--------------PhysicalOlapScan[t2] +------------hashJoin[INNER_JOIN] hashCondition=((t3.id = t4.id)) otherCondition=() +--------------PhysicalOlapScan[t3] +--------------PhysicalOlapScan[t4] -- !limit_subquery_union_window -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------PhysicalWindow -----------PhysicalQuickSort[LOCAL_SORT] -------------PhysicalDistribute[DistributionSpecHash] ---------------hashAgg[GLOBAL] -----------------PhysicalDistribute[DistributionSpecHash] -------------------hashAgg[LOCAL] ---------------------PhysicalUnion -----------------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------------PhysicalOlapScan[t1] -----------------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------------PhysicalOlapScan[t2] +----PhysicalTopN[LOCAL_SORT] +------PhysicalWindow +--------PhysicalQuickSort[LOCAL_SORT] +----------hashAgg[GLOBAL] +------------hashAgg[LOCAL] +--------------PhysicalUnion +----------------PhysicalOlapScan[t1] +----------------PhysicalOlapScan[t2] -- !limit_correlated_subquery -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_SEMI_JOIN] hashCondition=((t2.id = t1.id)) otherCondition=() -------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecHash] ---------PhysicalOlapScan[t2] +--hashJoin[LEFT_SEMI_JOIN] hashCondition=((t2.id = t1.id)) otherCondition=() +----PhysicalOlapScan[t1] +----PhysicalOlapScan[t2] -- !limit_correlated_subquery_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_SEMI_JOIN] hashCondition=((t3.id = t1.id)) otherCondition=() -------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------PhysicalOlapScan[t1] ---------PhysicalDistribute[DistributionSpecHash] -----------PhysicalOlapScan[t2] -------PhysicalDistribute[DistributionSpecHash] ---------PhysicalOlapScan[t3] +--hashJoin[LEFT_SEMI_JOIN] hashCondition=((t3.id = t1.id)) otherCondition=() +----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------PhysicalOlapScan[t1] +------PhysicalOlapScan[t2] +----PhysicalOlapScan[t3] -- !limit_correlated_subquery_window -- PhysicalResultSink --PhysicalQuickSort[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalQuickSort[LOCAL_SORT] ---------PhysicalWindow -----------PhysicalQuickSort[LOCAL_SORT] -------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((t2.id = t1.id)) otherCondition=() ---------------PhysicalOlapScan[t1] ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalOlapScan[t2] +----PhysicalQuickSort[LOCAL_SORT] +------PhysicalWindow +--------PhysicalQuickSort[LOCAL_SORT] +----------hashJoin[LEFT_SEMI_JOIN] hashCondition=((t2.id = t1.id)) otherCondition=() +------------PhysicalOlapScan[t1] +------------PhysicalOlapScan[t2] -- !limit_cte_query -- PhysicalCteAnchor ( cteId=CTEId#0 ) @@ -595,10 +474,8 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------PhysicalOlapScan[t1] --PhysicalResultSink ----PhysicalTopN[MERGE_SORT] -------PhysicalDistribute[DistributionSpecGather] ---------PhysicalTopN[LOCAL_SORT] -----------PhysicalDistribute[DistributionSpecExecutionAny] -------------PhysicalCteConsumer ( cteId=CTEId#0 ) +------PhysicalTopN[LOCAL_SORT] +--------PhysicalCteConsumer ( cteId=CTEId#0 ) -- !limit_cte_outside_query -- PhysicalCteAnchor ( cteId=CTEId#0 ) @@ -607,22 +484,18 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------PhysicalOlapScan[t1] --PhysicalResultSink ----PhysicalLimit[GLOBAL] -------PhysicalDistribute[DistributionSpecGather] ---------PhysicalLimit[LOCAL] -----------PhysicalDistribute[DistributionSpecExecutionAny] -------------PhysicalCteConsumer ( cteId=CTEId#0 ) +------PhysicalLimit[LOCAL] +--------PhysicalCteConsumer ( cteId=CTEId#0 ) -- !limit_cte_outside_query -- PhysicalCteAnchor ( cteId=CTEId#0 ) --PhysicalCteProducer ( cteId=CTEId#0 ) ----PhysicalTopN[MERGE_SORT] -------PhysicalDistribute[DistributionSpecGather] ---------PhysicalTopN[LOCAL_SORT] -----------filter((t1.id < 10)) -------------PhysicalOlapScan[t1] +------PhysicalTopN[LOCAL_SORT] +--------filter((t1.id < 10)) +----------PhysicalOlapScan[t1] --PhysicalResultSink -----PhysicalDistribute[DistributionSpecGather] -------PhysicalCteConsumer ( cteId=CTEId#0 ) +----PhysicalCteConsumer ( cteId=CTEId#0 ) -- !limit_cte_query_join -- PhysicalCteAnchor ( cteId=CTEId#0 ) @@ -635,13 +508,10 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------PhysicalOlapScan[t2] ----PhysicalResultSink ------PhysicalTopN[MERGE_SORT] ---------PhysicalDistribute[DistributionSpecGather] -----------PhysicalTopN[LOCAL_SORT] -------------hashJoin[FULL_OUTER_JOIN] hashCondition=((cte1.id = cte2.id)) otherCondition=() ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalCteConsumer ( cteId=CTEId#0 ) ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalCteConsumer ( cteId=CTEId#1 ) +--------PhysicalTopN[LOCAL_SORT] +----------hashJoin[FULL_OUTER_JOIN] hashCondition=((cte1.id = cte2.id)) otherCondition=() +------------PhysicalCteConsumer ( cteId=CTEId#0 ) +------------PhysicalCteConsumer ( cteId=CTEId#1 ) -- !limit_cte_query_window -- PhysicalCteAnchor ( cteId=CTEId#0 ) @@ -653,39 +523,33 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------PhysicalTopN[LOCAL_SORT] --------PhysicalWindow ----------PhysicalQuickSort[MERGE_SORT] -------------PhysicalDistribute[DistributionSpecGather] ---------------PhysicalQuickSort[LOCAL_SORT] -----------------PhysicalCteConsumer ( cteId=CTEId#0 ) +------------PhysicalQuickSort[LOCAL_SORT] +--------------PhysicalCteConsumer ( cteId=CTEId#0 ) -- !limit_project_filter -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------filter((t1.id > 100)) -----------PhysicalOlapScan[t1] +----PhysicalTopN[LOCAL_SORT] +------filter((t1.id > 100)) +--------PhysicalOlapScan[t1] -- !limit_join_filter -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -----------filter((t1.id > 100)) -------------PhysicalOlapScan[t1] apply RFs: RF0 -----------PhysicalDistribute[DistributionSpecHash] -------------filter((t2.id > 100)) ---------------PhysicalOlapScan[t2] +----PhysicalTopN[LOCAL_SORT] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------filter((t1.id > 100)) +----------PhysicalOlapScan[t1] +--------filter((t2.id > 100)) +----------PhysicalOlapScan[t2] -- !limit_subquery_join -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------PhysicalOlapScan[t1] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t2] +----PhysicalTopN[LOCAL_SORT] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t1] +--------PhysicalOlapScan[t2] -- !limit_subquery_window -- PhysicalResultSink @@ -693,24 +557,21 @@ PhysicalResultSink ----PhysicalTopN[LOCAL_SORT] ------PhysicalWindow --------PhysicalQuickSort[MERGE_SORT] -----------PhysicalDistribute[DistributionSpecGather] -------------PhysicalQuickSort[LOCAL_SORT] ---------------PhysicalOlapScan[t1] +----------PhysicalQuickSort[LOCAL_SORT] +------------PhysicalOlapScan[t1] -- !limit_nested_subquery -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------PhysicalOlapScan[t1] +----PhysicalLimit[LOCAL] +------PhysicalOlapScan[t1] -- !limit_subquery_distinct -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[LOCAL] -----------PhysicalOlapScan[t1] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[LOCAL] +--------PhysicalOlapScan[t1] -- !limit_cross_join -- PhysicalResultSink @@ -718,62 +579,43 @@ PhysicalResultSink ----PhysicalTopN[LOCAL_SORT] ------NestedLoopJoin[CROSS_JOIN] --------PhysicalTopN[MERGE_SORT] -----------PhysicalDistribute[DistributionSpecGather] -------------PhysicalTopN[LOCAL_SORT] ---------------PhysicalOlapScan[t1] ---------PhysicalDistribute[DistributionSpecReplicated] -----------PhysicalOlapScan[t2] +----------PhysicalTopN[LOCAL_SORT] +------------PhysicalOlapScan[t1] +--------PhysicalOlapScan[t2] -- !limit_multiple_left_outer_join -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalTopN[MERGE_SORT] ---------------PhysicalDistribute[DistributionSpecGather] +----PhysicalTopN[LOCAL_SORT] +------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +--------PhysicalTopN[MERGE_SORT] +----------PhysicalTopN[LOCAL_SORT] +------------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------------PhysicalTopN[MERGE_SORT] ----------------PhysicalTopN[LOCAL_SORT] -------------------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------------------PhysicalDistribute[DistributionSpecHash] -----------------------PhysicalTopN[MERGE_SORT] -------------------------PhysicalDistribute[DistributionSpecGather] ---------------------------PhysicalTopN[LOCAL_SORT] -----------------------------PhysicalOlapScan[t1] ---------------------PhysicalDistribute[DistributionSpecHash] -----------------------PhysicalOlapScan[t2] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t3] +------------------PhysicalOlapScan[t1] +--------------PhysicalOlapScan[t2] +--------PhysicalOlapScan[t3] -- !limit_multiple_right_outer_join -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() -----------PhysicalDistribute[DistributionSpecHash] -------------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalOlapScan[t1] ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalOlapScan[t2] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t3] +----PhysicalTopN[LOCAL_SORT] +------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +--------hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----------PhysicalOlapScan[t1] +----------PhysicalOlapScan[t2] +--------PhysicalOlapScan[t3] -- !limit_multiple_full_outerjoin -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() -----------PhysicalDistribute[DistributionSpecHash] -------------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalOlapScan[t1] ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalOlapScan[t2] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t3] +----PhysicalTopN[LOCAL_SORT] +------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +--------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----------PhysicalOlapScan[t1] +----------PhysicalOlapScan[t2] +--------PhysicalOlapScan[t3] -- !limit_subquery_cross_join -- PhysicalResultSink @@ -781,66 +623,52 @@ PhysicalResultSink ----PhysicalTopN[LOCAL_SORT] ------NestedLoopJoin[CROSS_JOIN] --------PhysicalTopN[MERGE_SORT] -----------PhysicalDistribute[DistributionSpecGather] -------------PhysicalTopN[LOCAL_SORT] ---------------PhysicalOlapScan[t1] ---------PhysicalDistribute[DistributionSpecReplicated] -----------PhysicalOlapScan[t2] +----------PhysicalTopN[LOCAL_SORT] +------------PhysicalOlapScan[t1] +--------PhysicalOlapScan[t2] -- !limit_subquery_multiple_join -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashJoin[INNER_JOIN] hashCondition=((subq.id = t3.id)) otherCondition=() -----------hashJoin[INNER_JOIN] hashCondition=((subq.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[t1] -------------PhysicalDistribute[DistributionSpecHash] ---------------PhysicalOlapScan[t2] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t3] +----PhysicalTopN[LOCAL_SORT] +------hashJoin[INNER_JOIN] hashCondition=((subq.id = t3.id)) otherCondition=() +--------hashJoin[INNER_JOIN] hashCondition=((subq.id = t2.id)) otherCondition=() +----------PhysicalOlapScan[t1] +----------PhysicalOlapScan[t2] +--------PhysicalOlapScan[t3] -- !limit_subquery_multiple_join_nested_subquery -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashJoin[INNER_JOIN] hashCondition=((subq2.id = t3.id)) otherCondition=() -----------hashJoin[INNER_JOIN] hashCondition=((subq2.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[t1] -------------PhysicalDistribute[DistributionSpecHash] ---------------PhysicalOlapScan[t2] -----------PhysicalDistribute[DistributionSpecHash] -------------PhysicalOlapScan[t3] +----PhysicalTopN[LOCAL_SORT] +------hashJoin[INNER_JOIN] hashCondition=((subq2.id = t3.id)) otherCondition=() +--------hashJoin[INNER_JOIN] hashCondition=((subq2.id = t2.id)) otherCondition=() +----------PhysicalOlapScan[t1] +----------PhysicalOlapScan[t2] +--------PhysicalOlapScan[t3] -- !limit_subquery_multiple_join_nested_subquery_distinct -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((subq2.id = t3.id)) otherCondition=() -------------hashJoin[INNER_JOIN] hashCondition=((subq2.id = t2.id)) otherCondition=() ---------------PhysicalOlapScan[t1] ---------------PhysicalDistribute[DistributionSpecHash] -----------------PhysicalOlapScan[t2] -------------PhysicalDistribute[DistributionSpecHash] ---------------PhysicalOlapScan[t3] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[LOCAL] +--------hashJoin[INNER_JOIN] hashCondition=((subq2.id = t3.id)) otherCondition=() +----------hashJoin[INNER_JOIN] hashCondition=((subq2.id = t2.id)) otherCondition=() +------------PhysicalOlapScan[t1] +------------PhysicalOlapScan[t2] +----------PhysicalOlapScan[t3] -- !limit_subquery_multiple_join_nested_subquery_distinct_filter -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[LOCAL] -----------hashJoin[INNER_JOIN] hashCondition=((subq2.id = t3.id)) otherCondition=() build RFs:RF1 id->[id] -------------hashJoin[INNER_JOIN] hashCondition=((subq2.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] ---------------filter((t1.id > 100)) -----------------PhysicalOlapScan[t1] apply RFs: RF0 RF1 ---------------PhysicalDistribute[DistributionSpecHash] -----------------filter((t2.id > 100)) -------------------PhysicalOlapScan[t2] -------------PhysicalDistribute[DistributionSpecHash] ---------------filter((t3.id > 100)) -----------------PhysicalOlapScan[t3] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[LOCAL] +--------hashJoin[INNER_JOIN] hashCondition=((subq2.id = t3.id)) otherCondition=() +----------hashJoin[INNER_JOIN] hashCondition=((subq2.id = t2.id)) otherCondition=() +------------filter((t1.id > 100)) +--------------PhysicalOlapScan[t1] +------------filter((t2.id > 100)) +--------------PhysicalOlapScan[t2] +----------filter((t3.id > 100)) +------------PhysicalOlapScan[t3] diff --git a/regression-test/data/nereids_rules_p0/pkfk/eliminate_inner.out b/regression-test/data/nereids_rules_p0/pkfk/eliminate_inner.out index bc465978cc..bb2b48ac37 100644 --- a/regression-test/data/nereids_rules_p0/pkfk/eliminate_inner.out +++ b/regression-test/data/nereids_rules_p0/pkfk/eliminate_inner.out @@ -4,48 +4,10 @@ simple_case -- !shape -- PhysicalResultSink ---hashJoin[INNER_JOIN] hashCondition=((pkt.pk = fkt_not_null.fk)) otherCondition=() -----PhysicalOlapScan[pkt] -----PhysicalOlapScan[fkt_not_null] - --- !res -- - --- !name -- -with_pk_col - --- !shape -- -PhysicalResultSink ---hashJoin[INNER_JOIN] hashCondition=((pkt.pk = fkt_not_null.fk)) otherCondition=() -----PhysicalOlapScan[pkt] -----PhysicalOlapScan[fkt_not_null] - --- !res -- - --- !name -- -with_pk_col - --- !shape -- -PhysicalResultSink ---hashJoin[INNER_JOIN] hashCondition=((pkt.pk = fkt_not_null.fk)) otherCondition=() -----PhysicalOlapScan[pkt] -----hashJoin[INNER_JOIN] hashCondition=((fkt_not_null1.fk = fkt_not_null2.fk)) otherCondition=() -------PhysicalOlapScan[fkt_not_null] -------PhysicalOlapScan[fkt_not_null] - --- !res -- - --- !name -- -with_pk_col - --- !shape -- -PhysicalResultSink ---hashJoin[INNER_JOIN] hashCondition=((pkt.pk = fkt_not_null.fk)) otherCondition=() build RFs:RF1 fk->[pk] -----filter((pkt.pk > 1)) -------PhysicalOlapScan[pkt] apply RFs: RF1 -----hashJoin[INNER_JOIN] hashCondition=((fkt_not_null1.fk = fkt_not_null2.fk)) otherCondition=() build RFs:RF0 fk->[fk] -------filter((fkt_not_null1.fk > 1)) ---------PhysicalOlapScan[fkt_not_null] apply RFs: RF0 -------filter((fkt_not_null2.fk > 1)) +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[INNER_JOIN] hashCondition=((pkt.pk = fkt_not_null.fk)) otherCondition=() +------PhysicalOlapScan[pkt] +------PhysicalDistribute[DistributionSpecHash] --------PhysicalOlapScan[fkt_not_null] -- !res -- @@ -55,10 +17,11 @@ with_pk_col -- !shape -- PhysicalResultSink ---hashJoin[INNER_JOIN] hashCondition=((pkt.pk = fkt_not_null.fk)) otherCondition=() -----PhysicalOlapScan[pkt] -----hashAgg[LOCAL] -------PhysicalOlapScan[fkt_not_null] +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[INNER_JOIN] hashCondition=((pkt.pk = fkt_not_null.fk)) otherCondition=() +------PhysicalOlapScan[pkt] +------PhysicalDistribute[DistributionSpecHash] +--------PhysicalOlapScan[fkt_not_null] -- !res -- @@ -67,26 +30,80 @@ with_pk_col -- !shape -- PhysicalResultSink ---hashJoin[INNER_JOIN] hashCondition=((pkt.pk = fkt_not_null.fk)) otherCondition=() -----PhysicalOlapScan[pkt] -----hashAgg[GLOBAL] -------hashAgg[LOCAL] ---------PhysicalUnion +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[INNER_JOIN] hashCondition=((pkt.pk = fkt_not_null.fk)) otherCondition=() +------PhysicalOlapScan[pkt] +------PhysicalDistribute[DistributionSpecHash] +--------hashJoin[INNER_JOIN] hashCondition=((fkt_not_null1.fk = fkt_not_null2.fk)) otherCondition=() ----------PhysicalOlapScan[fkt_not_null] ----------PhysicalOlapScan[fkt_not_null] -- !res -- +-- !name -- +with_pk_col + +-- !shape -- +PhysicalResultSink +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[INNER_JOIN] hashCondition=((pkt.pk = fkt_not_null.fk)) otherCondition=() +------filter((pkt.pk > 1)) +--------PhysicalOlapScan[pkt] +------PhysicalDistribute[DistributionSpecHash] +--------hashJoin[INNER_JOIN] hashCondition=((fkt_not_null1.fk = fkt_not_null2.fk)) otherCondition=() +----------filter((fkt_not_null1.fk > 1)) +------------PhysicalOlapScan[fkt_not_null] +----------filter((fkt_not_null2.fk > 1)) +------------PhysicalOlapScan[fkt_not_null] + +-- !res -- + +-- !name -- +with_pk_col + +-- !shape -- +PhysicalResultSink +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[INNER_JOIN] hashCondition=((pkt.pk = fkt_not_null.fk)) otherCondition=() +------PhysicalOlapScan[pkt] +------PhysicalDistribute[DistributionSpecHash] +--------hashAgg[LOCAL] +----------PhysicalOlapScan[fkt_not_null] + +-- !res -- + +-- !name -- +with_pk_col + +-- !shape -- +PhysicalResultSink +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[INNER_JOIN] hashCondition=((pkt.pk = fkt_not_null.fk)) otherCondition=() +------PhysicalOlapScan[pkt] +------PhysicalDistribute[DistributionSpecHash] +--------hashAgg[GLOBAL] +----------PhysicalDistribute[DistributionSpecHash] +------------hashAgg[LOCAL] +--------------PhysicalUnion +----------------PhysicalDistribute[DistributionSpecExecutionAny] +------------------PhysicalOlapScan[fkt_not_null] +----------------PhysicalDistribute[DistributionSpecExecutionAny] +------------------PhysicalOlapScan[fkt_not_null] + +-- !res -- + -- !name -- fk with window -- !shape -- PhysicalResultSink ---hashJoin[INNER_JOIN] hashCondition=((pkt.pk = fkt_not_null.fk)) otherCondition=() -----PhysicalOlapScan[pkt] -----PhysicalWindow -------PhysicalQuickSort[LOCAL_SORT] ---------PhysicalOlapScan[fkt_not_null] +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[INNER_JOIN] hashCondition=((pkt.pk = fkt_not_null.fk)) otherCondition=() +------PhysicalOlapScan[pkt] +------PhysicalDistribute[DistributionSpecHash] +--------PhysicalWindow +----------PhysicalQuickSort[LOCAL_SORT] +------------PhysicalOlapScan[fkt_not_null] -- !res -- @@ -95,11 +112,14 @@ fk with limit -- !shape -- PhysicalResultSink ---hashJoin[INNER_JOIN] hashCondition=((pkt.pk = fkt_not_null.fk)) otherCondition=() build RFs:RF0 fk->[pk] -----PhysicalOlapScan[pkt] apply RFs: RF0 -----PhysicalLimit[GLOBAL] -------PhysicalLimit[LOCAL] ---------PhysicalOlapScan[fkt_not_null] +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[INNER_JOIN] hashCondition=((pkt.pk = fkt_not_null.fk)) otherCondition=() +------PhysicalOlapScan[pkt] +------PhysicalDistribute[DistributionSpecHash] +--------PhysicalLimit[GLOBAL] +----------PhysicalDistribute[DistributionSpecGather] +------------PhysicalLimit[LOCAL] +--------------PhysicalOlapScan[fkt_not_null] -- !res -- @@ -108,11 +128,13 @@ pk with filter that same as fk -- !shape -- PhysicalResultSink ---hashJoin[INNER_JOIN] hashCondition=((pkt.pk = fkt_not_null.fk)) otherCondition=() build RFs:RF0 fk->[pk] -----filter((pkt.pk = 1)) -------PhysicalOlapScan[pkt] apply RFs: RF0 -----filter((fkt_not_null.fk = 1)) -------PhysicalOlapScan[fkt_not_null] +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[INNER_JOIN] hashCondition=((pkt.pk = fkt_not_null.fk)) otherCondition=() +------filter((pkt.pk = 1)) +--------PhysicalOlapScan[pkt] +------PhysicalDistribute[DistributionSpecHash] +--------filter((fkt_not_null.fk = 1)) +----------PhysicalOlapScan[fkt_not_null] -- !res -- @@ -121,11 +143,13 @@ pk with filter that included same as fk -- !shape -- PhysicalResultSink ---hashJoin[INNER_JOIN] hashCondition=((pkt.pk = fkt_not_null.fk)) otherCondition=() build RFs:RF0 fk->[pk] -----filter((pkt.pk = 1)) -------PhysicalOlapScan[pkt] apply RFs: RF0 -----filter((cast(f as DOUBLE) = 1) and (fkt_not_null.fk = 1)) -------PhysicalOlapScan[fkt_not_null] +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[INNER_JOIN] hashCondition=((pkt.pk = fkt_not_null.fk)) otherCondition=() +------filter((pkt.pk = 1)) +--------PhysicalOlapScan[pkt] +------PhysicalDistribute[DistributionSpecHash] +--------filter((cast(f as DOUBLE) = 1.0) and (fkt_not_null.fk = 1)) +----------PhysicalOlapScan[fkt_not_null] -- !res -- @@ -134,11 +158,13 @@ pk with filter that not same as fk -- !shape -- PhysicalResultSink ---hashJoin[INNER_JOIN] hashCondition=((pkt.pk = fkt_not_null.fk)) otherCondition=() build RFs:RF0 fk->[pk] -----filter((cast(p as DOUBLE) = 1) and (pkt.pk = 1)) -------PhysicalOlapScan[pkt] apply RFs: RF0 -----filter((cast(f as DOUBLE) = 1) and (fkt_not_null.fk = 1)) -------PhysicalOlapScan[fkt_not_null] +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[INNER_JOIN] hashCondition=((pkt.pk = fkt_not_null.fk)) otherCondition=() +------filter((cast(p as DOUBLE) = 1.0) and (pkt.pk = 1)) +--------PhysicalOlapScan[pkt] +------PhysicalDistribute[DistributionSpecHash] +--------filter((cast(f as DOUBLE) = 1.0) and (fkt_not_null.fk = 1)) +----------PhysicalOlapScan[fkt_not_null] -- !res -- @@ -147,8 +173,9 @@ simple_case -- !shape -- PhysicalResultSink ---filter(( not fk IS NULL)) -----PhysicalOlapScan[fkt] +--PhysicalDistribute[DistributionSpecGather] +----filter(( not fk IS NULL)) +------PhysicalOlapScan[fkt] -- !res -- 1 John @@ -162,25 +189,27 @@ with_pk_col -- !shape -- PhysicalResultSink ---filter(( not fk IS NULL)) -----PhysicalOlapScan[fkt] - --- !res -- -1 John 1 -1 John 1 -2 Alice 2 -2 Alice 2 -3 Bob 3 - --- !name -- -with_pk_col - --- !shape -- -PhysicalResultSink ---hashJoin[INNER_JOIN] hashCondition=((pk = fkt2.fk)) otherCondition=() +--PhysicalDistribute[DistributionSpecGather] ----filter(( not fk IS NULL)) ------PhysicalOlapScan[fkt] -----PhysicalOlapScan[fkt] + +-- !res -- +1 John 1 +1 John 1 +2 Alice 2 +2 Alice 2 +3 Bob 3 + +-- !name -- +with_pk_col + +-- !shape -- +PhysicalResultSink +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[INNER_JOIN] hashCondition=((pk = fkt2.fk)) otherCondition=() +------filter(( not fk IS NULL)) +--------PhysicalOlapScan[fkt] +------PhysicalOlapScan[fkt] -- !res -- 1 John 1 @@ -198,11 +227,12 @@ with_pk_col -- !shape -- PhysicalResultSink ---hashJoin[INNER_JOIN] hashCondition=((pk = fkt2.fk)) otherCondition=() build RFs:RF0 fk->[fk] -----filter(( not fk IS NULL) and (fkt1.fk > 1)) -------PhysicalOlapScan[fkt] apply RFs: RF0 -----filter((fkt2.fk > 1)) -------PhysicalOlapScan[fkt] +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[INNER_JOIN] hashCondition=((pk = fkt2.fk)) otherCondition=() +------filter(( not fk IS NULL) and (fkt1.fk > 1)) +--------PhysicalOlapScan[fkt] +------filter((fkt2.fk > 1)) +--------PhysicalOlapScan[fkt] -- !res -- 2 Alice 2 @@ -216,9 +246,10 @@ with_pk_col -- !shape -- PhysicalResultSink ---hashAgg[LOCAL] -----filter(( not fk IS NULL)) -------PhysicalOlapScan[fkt] +--PhysicalDistribute[DistributionSpecGather] +----hashAgg[LOCAL] +------filter(( not fk IS NULL)) +--------PhysicalOlapScan[fkt] -- !res -- 1 1 @@ -230,13 +261,18 @@ with_pk_col -- !shape -- PhysicalResultSink ---hashJoin[INNER_JOIN] hashCondition=((pkt.pk = fkt.fk)) otherCondition=() -----PhysicalOlapScan[pkt] -----hashAgg[GLOBAL] -------hashAgg[LOCAL] ---------PhysicalUnion -----------PhysicalOlapScan[fkt] -----------PhysicalOlapScan[fkt] +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[INNER_JOIN] hashCondition=((pkt.pk = fkt.fk)) otherCondition=() +------PhysicalOlapScan[pkt] +------PhysicalDistribute[DistributionSpecHash] +--------hashAgg[GLOBAL] +----------PhysicalDistribute[DistributionSpecHash] +------------hashAgg[LOCAL] +--------------PhysicalUnion +----------------PhysicalDistribute[DistributionSpecExecutionAny] +------------------PhysicalOlapScan[fkt] +----------------PhysicalDistribute[DistributionSpecExecutionAny] +------------------PhysicalOlapScan[fkt] -- !res -- 1 John 1 @@ -248,10 +284,11 @@ fk with window -- !shape -- PhysicalResultSink ---PhysicalWindow -----PhysicalQuickSort[LOCAL_SORT] -------filter(( not fk IS NULL)) ---------PhysicalOlapScan[fkt] +--PhysicalDistribute[DistributionSpecGather] +----PhysicalWindow +------PhysicalQuickSort[LOCAL_SORT] +--------filter(( not fk IS NULL)) +----------PhysicalOlapScan[fkt] -- !res -- 1 1 1 @@ -267,18 +304,21 @@ fk with limit PhysicalResultSink --filter(( not fk IS NULL)) ----PhysicalLimit[GLOBAL] -------PhysicalLimit[LOCAL] ---------PhysicalOlapScan[fkt] +------PhysicalDistribute[DistributionSpecGather] +--------PhysicalLimit[LOCAL] +----------PhysicalOlapScan[fkt] -- !res -- +1 1 -- !name -- pk with filter that same as fk -- !shape -- PhysicalResultSink ---filter(( not fk IS NULL) and (fkt.fk = 1)) -----PhysicalOlapScan[fkt] +--PhysicalDistribute[DistributionSpecGather] +----filter(( not fk IS NULL) and (fkt.fk = 1)) +------PhysicalOlapScan[fkt] -- !res -- 1 John 1 @@ -289,8 +329,9 @@ pk with filter that included same as fk -- !shape -- PhysicalResultSink ---filter(( not fk IS NULL) and (cast(f as DOUBLE) = 1) and (fkt.fk = 1)) -----PhysicalOlapScan[fkt] +--PhysicalDistribute[DistributionSpecGather] +----filter(( not fk IS NULL) and (cast(f as DOUBLE) = 1.0) and (fkt.fk = 1)) +------PhysicalOlapScan[fkt] -- !res -- @@ -299,11 +340,13 @@ pk with filter that not same as fk -- !shape -- PhysicalResultSink ---hashJoin[INNER_JOIN] hashCondition=((pkt.pk = fkt.fk)) otherCondition=() build RFs:RF0 fk->[pk] -----filter((cast(p as DOUBLE) = 1) and (pkt.pk = 1)) -------PhysicalOlapScan[pkt] apply RFs: RF0 -----filter((cast(f as DOUBLE) = 1) and (fkt.fk = 1)) -------PhysicalOlapScan[fkt] +--PhysicalDistribute[DistributionSpecGather] +----hashJoin[INNER_JOIN] hashCondition=((pkt.pk = fkt.fk)) otherCondition=() +------filter((cast(p as DOUBLE) = 1.0) and (pkt.pk = 1)) +--------PhysicalOlapScan[pkt] +------PhysicalDistribute[DistributionSpecHash] +--------filter((cast(f as DOUBLE) = 1.0) and (fkt.fk = 1)) +----------PhysicalOlapScan[fkt] -- !res -- diff --git a/regression-test/data/nereids_rules_p0/predicate_infer/infer_predicate.out b/regression-test/data/nereids_rules_p0/predicate_infer/infer_predicate.out index daee36163a..15144b566b 100644 --- a/regression-test/data/nereids_rules_p0/predicate_infer/infer_predicate.out +++ b/regression-test/data/nereids_rules_p0/predicate_infer/infer_predicate.out @@ -1,474 +1,397 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !infer_predicate_basic_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------filter((t1.score > 10)) ---------PhysicalOlapScan[t] +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----filter((t1.score > 10)) ------PhysicalOlapScan[t] +----PhysicalOlapScan[t] -- !infer_predicate_join_with_filter -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------filter((t1.score > 10)) ---------PhysicalOlapScan[t] apply RFs: RF0 -------filter((t2.name = 'Alice')) ---------PhysicalOlapScan[t] +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----filter((t1.score > 10)) +------PhysicalOlapScan[t] +----filter((t2.name = 'Alice')) +------PhysicalOlapScan[t] -- !infer_predicate_left_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------filter((t1.score > 20)) ---------PhysicalOlapScan[t] +--hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----filter((t1.score > 20)) ------PhysicalOlapScan[t] +----PhysicalOlapScan[t] -- !infer_predicate_right_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------PhysicalOlapScan[t] apply RFs: RF0 -------filter((t2.score > 20)) ---------PhysicalOlapScan[t] +--hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----PhysicalOlapScan[t] +----filter((t2.score > 20)) +------PhysicalOlapScan[t] -- !infer_predicate_full_outer_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----filter(((t1.name = 'Test') OR (t2.name = 'Test'))) -------hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------PhysicalOlapScan[t] ---------PhysicalOlapScan[t] +--filter(((t1.name = 'Test') OR (t2.name = 'Test'))) +----hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------PhysicalOlapScan[t] +------PhysicalOlapScan[t] -- !infer_predicate_left_semi_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------filter((t1.score > 20)) ---------PhysicalOlapScan[t] +--hashJoin[LEFT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----filter((t1.score > 20)) ------PhysicalOlapScan[t] +----PhysicalOlapScan[t] -- !infer_predicate_left_anti_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------filter((t1.score > 20)) ---------PhysicalOlapScan[t] +--hashJoin[LEFT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----filter((t1.score > 20)) ------PhysicalOlapScan[t] +----PhysicalOlapScan[t] -- !infer_predicate_from_subquery -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------filter((t1.id = 1)) ---------PhysicalOlapScan[t] apply RFs: RF0 -------filter((t2.id = 1)) ---------PhysicalOlapScan[t] +--hashJoin[INNER_JOIN] hashCondition=((t.id = t2.id)) otherCondition=() +----filter((t1.id = 1)) +------PhysicalOlapScan[t] +----filter((t2.id = 1)) +------PhysicalOlapScan[t] -- !infer_predicate_multi_level_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t2.id = t3.id)) otherCondition=() build RFs:RF1 id->[id] -------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] ---------PhysicalOlapScan[t] apply RFs: RF0 ---------PhysicalOlapScan[t] apply RFs: RF1 -------filter((t3.name = 'Test')) ---------PhysicalOlapScan[t] +--hashJoin[INNER_JOIN] hashCondition=((t2.id = t3.id)) otherCondition=() +----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------PhysicalOlapScan[t] +------PhysicalOlapScan[t] +----filter((t3.name = 'Test')) +------PhysicalOlapScan[t] -- !infer_predicate_join_with_project_limit -- PhysicalResultSink ---hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ----PhysicalLimit[GLOBAL] -------PhysicalDistribute[DistributionSpecGather] ---------PhysicalLimit[LOCAL] -----------PhysicalOlapScan[t] apply RFs: RF0 -----PhysicalDistribute[DistributionSpecReplicated] -------filter((t2.score > 20)) +------PhysicalLimit[LOCAL] --------PhysicalOlapScan[t] +----filter((t2.score > 20)) +------PhysicalOlapScan[t] -- !infer_predicate_with_union -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t.id = t3.id)) otherCondition=() -------hashAgg[GLOBAL] ---------PhysicalDistribute[DistributionSpecHash] -----------hashAgg[LOCAL] -------------PhysicalUnion ---------------PhysicalDistribute[DistributionSpecExecutionAny] -----------------filter((t1.id = 1)) -------------------PhysicalOlapScan[t] ---------------PhysicalDistribute[DistributionSpecExecutionAny] -----------------PhysicalOlapScan[t] -------PhysicalDistribute[DistributionSpecReplicated] ---------PhysicalOlapScan[t] +--hashJoin[INNER_JOIN] hashCondition=((t.id = t3.id)) otherCondition=() +----hashAgg[GLOBAL] +------hashAgg[LOCAL] +--------PhysicalUnion +----------filter((t1.id = 1)) +------------PhysicalOlapScan[t] +----------PhysicalOlapScan[t] +----PhysicalOlapScan[t] -- !infer_predicate_with_except -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t.id = t3.id)) otherCondition=() -------PhysicalExcept ---------PhysicalDistribute[DistributionSpecHash] -----------PhysicalOlapScan[t] ---------PhysicalDistribute[DistributionSpecHash] -----------PhysicalOlapScan[t] -------PhysicalDistribute[DistributionSpecReplicated] ---------PhysicalOlapScan[t] +--hashJoin[INNER_JOIN] hashCondition=((t.id = t3.id)) otherCondition=() +----PhysicalExcept +------PhysicalOlapScan[t] +------PhysicalOlapScan[t] +----PhysicalOlapScan[t] -- !infer_predicate_with_subquery -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_SEMI_JOIN] hashCondition=((t1.id = t.id)) otherCondition=() build RFs:RF0 id->[id] -------PhysicalOlapScan[t] apply RFs: RF0 -------filter((t.score > 60)) ---------PhysicalOlapScan[t] +--hashJoin[LEFT_SEMI_JOIN] hashCondition=((t1.id = t.id)) otherCondition=() +----PhysicalOlapScan[t] +----filter((t.score > 60)) +------PhysicalOlapScan[t] -- !infer_predicate_complex_condition -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.score > t2.score)) -------filter((t1.name = 'Test')) ---------PhysicalOlapScan[t] +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.score > t2.score)) +----filter((t1.name = 'Test')) ------PhysicalOlapScan[t] +----PhysicalOlapScan[t] -- !infer_predicate_with_window_function -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----PhysicalWindow -------PhysicalQuickSort[LOCAL_SORT] ---------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -----------PhysicalOlapScan[t] apply RFs: RF0 -----------filter((t2.name = 'Charlie')) -------------PhysicalOlapScan[t] +--PhysicalWindow +----PhysicalQuickSort[LOCAL_SORT] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t] +--------filter((t2.name = 'Charlie')) +----------PhysicalOlapScan[t] -- !infer_predicate_with_aggregate -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[LOCAL] -------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] ---------filter((t1.id > 70)) -----------PhysicalOlapScan[t] apply RFs: RF0 ---------filter((t2.id > 70)) -----------PhysicalOlapScan[t] +--hashAgg[LOCAL] +----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------filter((t1.id > 70)) +--------PhysicalOlapScan[t] +------filter((t2.id > 70)) +--------PhysicalOlapScan[t] -- !infer_predicate_complex_and_or_logic -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=(((t1.score > 80) OR ((t2.name = 'Dave') AND (t1.id < 50)))) -------filter(((t1.score > 80) OR (t1.id < 50))) ---------PhysicalOlapScan[t] +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=(((t1.score > 80) OR ((t2.name = 'Dave') AND (t1.id < 50)))) +----filter(((t1.score > 80) OR (t1.id < 50))) ------PhysicalOlapScan[t] +----PhysicalOlapScan[t] -- !infer_predicate_multiple_join_filter -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() build RFs:RF0 id->[id];RF1 name->[name] -------filter((t1.score > 90)) ---------PhysicalOlapScan[t] apply RFs: RF0 RF1 -------filter((t2.score < 60)) ---------PhysicalOlapScan[t] +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=() +----filter((t1.score > 90)) +------PhysicalOlapScan[t] +----filter((t2.score < 60)) +------PhysicalOlapScan[t] -- !infer_predicate_join_with_not_exists -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_ANTI_JOIN] hashCondition=((t2.id = t1.id)) otherCondition=() +--hashJoin[LEFT_ANTI_JOIN] hashCondition=((t2.id = t1.id)) otherCondition=() +----PhysicalOlapScan[t] +----filter((t2.score > 100)) ------PhysicalOlapScan[t] -------filter((t2.score > 100)) ---------PhysicalOlapScan[t] -- !infer_predicate_complex_subquery -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------PhysicalOlapScan[t] apply RFs: RF0 -------filter((t2.name = 'Frank') and (t2.score > 110)) ---------PhysicalOlapScan[t] +--hashJoin[LEFT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----PhysicalOlapScan[t] +----filter((t2.name = 'Frank') and (t2.score > 110)) +------PhysicalOlapScan[t] -- !infer_predicate_join_with_function_processed -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((expr_length(name) = expr_length(name))) otherCondition=() -------filter((t1.score > 120)) ---------PhysicalOlapScan[t] -------PhysicalDistribute[DistributionSpecReplicated] ---------PhysicalOlapScan[t] +--hashJoin[INNER_JOIN] hashCondition=((expr_length(name) = expr_length(name))) otherCondition=() +----filter((t1.score > 120)) +------PhysicalOlapScan[t] +----PhysicalOlapScan[t] -- !infer_predicate_nested_subqueries -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----filter((t.score > 130) and (t1.id < 70) and (t2.name = 'George')) -------PhysicalOlapScan[t] +--filter((t.score > 130) and (t1.id < 70) and (t2.name = 'George')) +----PhysicalOlapScan[t] -- !infer_predicate_join_with_aggregate_having -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----filter((sum(score) > 140)) -------hashAgg[LOCAL] ---------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------PhysicalOlapScan[t] -----------PhysicalOlapScan[t] +--filter((sum(score) > 140)) +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------PhysicalOlapScan[t] +--------PhysicalOlapScan[t] -- !infer_predicate_mixed_join_types -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() build RFs:RF0 id->[id] -------hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------PhysicalOlapScan[t] apply RFs: RF0 ---------PhysicalOlapScan[t] -------filter((t3.score > 150)) ---------PhysicalOlapScan[t] +--hashJoin[RIGHT_OUTER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +----hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------PhysicalOlapScan[t] +------PhysicalOlapScan[t] +----filter((t3.score > 150)) +------PhysicalOlapScan[t] -- !infer_predicate_join_with_distinct -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[LOCAL] -------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------filter((t1.score > 160)) -----------PhysicalOlapScan[t] +--hashAgg[LOCAL] +----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------filter((t1.score > 160)) --------PhysicalOlapScan[t] +------PhysicalOlapScan[t] -- !infer_predicate_join_with_case_when -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------filter((if((score > 170), 'high', 'low') = 'high')) ---------PhysicalOlapScan[t] +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----filter((if((score > 170), 'high', 'low') = 'high')) ------PhysicalOlapScan[t] +----PhysicalOlapScan[t] -- !infer_predicate_self_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------filter((t1.score > 10)) ---------PhysicalOlapScan[t] +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----filter((t1.score > 10)) ------PhysicalOlapScan[t] +----PhysicalOlapScan[t] -- !infer_predicate_complex_multitable_join -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() build RFs:RF1 id->[id] -------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------filter((t1.score > 20)) -----------PhysicalOlapScan[t] apply RFs: RF1 ---------PhysicalOlapScan[t] -------filter((t3.name = 'Helen')) +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------filter((t1.score > 20)) --------PhysicalOlapScan[t] +------PhysicalOlapScan[t] +----filter((t3.name = 'Helen')) +------PhysicalOlapScan[t] -- !infer_predicate_aggregate_subquery -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----filter((t_agg.total > 30)) -------hashAgg[LOCAL] ---------PhysicalOlapScan[t] +--filter((t_agg.total > 30)) +----hashAgg[LOCAL] +------PhysicalOlapScan[t] -- !infer_predicate_join_with_function -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----NestedLoopJoin[INNER_JOIN](abs((score - score)) < 40) -------PhysicalOlapScan[t] -------PhysicalDistribute[DistributionSpecReplicated] ---------PhysicalOlapScan[t] +--NestedLoopJoin[INNER_JOIN](abs((score - score)) < 40) +----PhysicalOlapScan[t] +----PhysicalOlapScan[t] -- !infer_predicate_subquery_filter -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_SEMI_JOIN] hashCondition=((t1.id = t.id)) otherCondition=() build RFs:RF0 id->[id] -------PhysicalOlapScan[t] apply RFs: RF0 -------filter((t.score > 50)) ---------PhysicalOlapScan[t] +--hashJoin[LEFT_SEMI_JOIN] hashCondition=((t1.id = t.id)) otherCondition=() +----PhysicalOlapScan[t] +----filter((t.score > 50)) +------PhysicalOlapScan[t] -- !infer_predicate_with_not_operator -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----filter((t1.score <= 60)) -------PhysicalOlapScan[t] +--filter((t1.score <= 60)) +----PhysicalOlapScan[t] -- !infer_predicate_complex_nested_subquery -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_SEMI_JOIN] hashCondition=((t.score = t.score)) otherCondition=() build RFs:RF0 score->[score] -------filter((t.score > 80) and (t1.id > 10)) ---------PhysicalOlapScan[t] apply RFs: RF0 -------PhysicalDistribute[DistributionSpecReplicated] ---------filter((t.score > 80)) -----------PhysicalOlapScan[t] +--hashJoin[LEFT_SEMI_JOIN] hashCondition=((t.score = t.score)) otherCondition=() +----filter((t.score > 80) and (t1.id > 10)) +------PhysicalOlapScan[t] +----filter((t.score > 80)) +------PhysicalOlapScan[t] -- !infer_predicate_multi_join_subquery_aggregate -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[LOCAL] -------hashJoin[LEFT_SEMI_JOIN] hashCondition=((t2.id = t.id)) otherCondition=() build RFs:RF2 id->[id] ---------hashJoin[INNER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------------PhysicalOlapScan[t] apply RFs: RF0 -------------PhysicalOlapScan[t] apply RFs: RF2 +--hashAgg[LOCAL] +----hashJoin[LEFT_SEMI_JOIN] hashCondition=((t2.id = t.id)) otherCondition=() +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +--------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ----------PhysicalOlapScan[t] ---------filter((t.score > 100)) ----------PhysicalOlapScan[t] +--------PhysicalOlapScan[t] +------filter((t.score > 100)) +--------PhysicalOlapScan[t] -- !infer_predicate_multi_join_complex_condition_not_exists -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_ANTI_JOIN] hashCondition=((t4.id = t3.id)) otherCondition=() -------hashJoin[INNER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() ---------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -----------filter((t1.score > 110)) -------------PhysicalOlapScan[t] +--hashJoin[LEFT_ANTI_JOIN] hashCondition=((t4.id = t3.id)) otherCondition=() +----hashJoin[INNER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------filter((t1.score > 110)) ----------PhysicalOlapScan[t] --------PhysicalOlapScan[t] ------PhysicalOlapScan[t] +----PhysicalOlapScan[t] -- !infer_predicate_multi_join_complex_subquery -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() build RFs:RF1 id->[id] -------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------PhysicalOlapScan[t] apply RFs: RF1 ---------PhysicalOlapScan[t] -------filter((t.score > 130)) ---------PhysicalOlapScan[t] +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------PhysicalOlapScan[t] +------PhysicalOlapScan[t] +----filter((t.score > 130)) +------PhysicalOlapScan[t] -- !infer_predicate_multi_join_with_having_clause -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----filter((sum(score) > 150)) -------hashAgg[LOCAL] ---------hashJoin[INNER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() -----------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() -------------PhysicalOlapScan[t] -------------PhysicalOlapScan[t] +--filter((sum(score) > 150)) +----hashAgg[LOCAL] +------hashJoin[INNER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +--------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ----------PhysicalOlapScan[t] +----------PhysicalOlapScan[t] +--------PhysicalOlapScan[t] -- !infer0 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------filter((t1.id = 1)) ---------PhysicalOlapScan[t1] apply RFs: RF0 -------PhysicalDistribute[DistributionSpecHash] ---------filter((t2.id = 1)) -----------PhysicalOlapScan[t2] +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----filter((t1.id = 1)) +------PhysicalOlapScan[t1] +----filter((t2.id = 1)) +------PhysicalOlapScan[t2] -- !infer1 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() build RFs:RF1 id->[id] -------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] ---------filter((t1.id = 1)) -----------PhysicalOlapScan[t1] apply RFs: RF0 RF1 ---------PhysicalDistribute[DistributionSpecHash] -----------filter((t2.id = 1)) -------------PhysicalOlapScan[t2] -------PhysicalDistribute[DistributionSpecHash] ---------filter((t3.id = 1)) -----------PhysicalOlapScan[t] +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------filter((t1.id = 1)) +--------PhysicalOlapScan[t1] +------filter((t2.id = 1)) +--------PhysicalOlapScan[t2] +----filter((t3.id = 1)) +------PhysicalOlapScan[t] -- !infer2 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.id = 1)) -------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecHash] ---------filter((t2.id = 1)) -----------PhysicalOlapScan[t2] +--hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.id = 1)) +----PhysicalOlapScan[t1] +----filter((t2.id = 1)) +------PhysicalOlapScan[t2] -- !infer3 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.id = 1)) -------PhysicalDistribute[DistributionSpecHash] ---------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecHash] ---------PhysicalOlapScan[t2] +--hashJoin[FULL_OUTER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=((t1.id = 1)) +----PhysicalOlapScan[t1] +----PhysicalOlapScan[t2] -- !infer4 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------filter((t1.id = 1)) ---------PhysicalOlapScan[t1] apply RFs: RF0 -------PhysicalDistribute[DistributionSpecHash] ---------filter((t2.id = 1)) -----------PhysicalOlapScan[t2] +--hashJoin[LEFT_SEMI_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----filter((t1.id = 1)) +------PhysicalOlapScan[t1] +----filter((t2.id = 1)) +------PhysicalOlapScan[t2] -- !infer5 -- PhysicalResultSink ---hashJoin[INNER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() build RFs:RF1 id->[id] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t3.id)) otherCondition=() +----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ------filter((t1.id = 1)) --------PhysicalLimit[GLOBAL] -----------PhysicalDistribute[DistributionSpecGather] -------------PhysicalLimit[LOCAL] ---------------PhysicalOlapScan[t1] apply RFs: RF0 RF1 -------PhysicalDistribute[DistributionSpecReplicated] ---------filter((t2.id = 1)) -----------PhysicalOlapScan[t2] -----PhysicalDistribute[DistributionSpecReplicated] -------filter((t3.id = 1)) ---------PhysicalOlapScan[t] +----------PhysicalLimit[LOCAL] +------------PhysicalOlapScan[t1] +------filter((t2.id = 1)) +--------PhysicalOlapScan[t2] +----filter((t3.id = 1)) +------PhysicalOlapScan[t] -- !infer6 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=((t1.id = 1)) -------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecHash] ---------filter((t2.id = 1) and (t2.name = 'bob')) -----------PhysicalOlapScan[t2] +--hashJoin[LEFT_OUTER_JOIN] hashCondition=((t1.id = t2.id) and (t1.name = t2.name)) otherCondition=((t1.id = 1)) +----PhysicalOlapScan[t1] +----filter((t2.id = 1) and (t2.name = 'bob')) +------PhysicalOlapScan[t2] -- !infer7 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t12.id = t34.id)) otherCondition=() build RFs:RF2 id->[id] -------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF1 id->[id] ---------filter((t1.id < 9) and (t1.id > 1)) -----------PhysicalOlapScan[t1] apply RFs: RF1 RF2 ---------PhysicalDistribute[DistributionSpecHash] -----------filter((t2.id < 9) and (t2.id > 1)) -------------PhysicalOlapScan[t2] -------PhysicalDistribute[DistributionSpecHash] ---------hashJoin[INNER_JOIN] hashCondition=((t3.id = t4.id)) otherCondition=() build RFs:RF0 id->[id] -----------filter(( not (id = 3)) and (t34.id < 9) and (t34.id > 1)) -------------PhysicalOlapScan[t3] apply RFs: RF0 -----------PhysicalDistribute[DistributionSpecHash] -------------filter(( not (id = 4)) and (t4.id < 9) and (t4.id > 1)) ---------------PhysicalOlapScan[t4] +--hashJoin[INNER_JOIN] hashCondition=((t12.id = t34.id)) otherCondition=() +----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +------filter((t1.id < 9) and (t1.id > 1)) +--------PhysicalOlapScan[t1] +------filter((t2.id < 9) and (t2.id > 1)) +--------PhysicalOlapScan[t2] +----hashJoin[INNER_JOIN] hashCondition=((t3.id = t4.id)) otherCondition=() +------filter(( not (id = 3)) and (t34.id < 9) and (t34.id > 1)) +--------PhysicalOlapScan[t3] +------filter(( not (id = 4)) and (t4.id < 9) and (t4.id > 1)) +--------PhysicalOlapScan[t4] -- !infer8 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----NestedLoopJoin[INNER_JOIN]( not (id = id)) -------filter((t1.id = 1)) ---------PhysicalOlapScan[t1] -------PhysicalDistribute[DistributionSpecReplicated] ---------PhysicalOlapScan[t2] +--NestedLoopJoin[INNER_JOIN]( not (id = id)) +----filter((t1.id = 1)) +------PhysicalOlapScan[t1] +----PhysicalOlapScan[t2] -- !infer9 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() build RFs:RF0 id->[id] -------filter((cast(id as BIGINT) = 2147483648)) ---------PhysicalOlapScan[t1] apply RFs: RF0 -------PhysicalDistribute[DistributionSpecHash] ---------filter((cast(id as BIGINT) = 2147483648)) -----------PhysicalOlapScan[t2] +--hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +----filter((cast(id as BIGINT) = 2147483648)) +------PhysicalOlapScan[t1] +----filter((cast(id as BIGINT) = 2147483648)) +------PhysicalOlapScan[t2] -- !infer10 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((expr_cast(id as SMALLINT) = expr_cast(id as SMALLINT))) otherCondition=() build RFs:RF0 expr_cast(id as SMALLINT)->[id] -------filter((cast(id as BIGINT) = 2147483648)) ---------PhysicalOlapScan[t1] apply RFs: RF0 -------PhysicalDistribute[DistributionSpecReplicated] ---------filter((cast(id as BIGINT) = 2147483648)) -----------PhysicalOlapScan[t2] +--hashJoin[INNER_JOIN] hashCondition=((expr_cast(id as SMALLINT) = expr_cast(id as SMALLINT))) otherCondition=() +----filter((cast(id as BIGINT) = 2147483648)) +------PhysicalOlapScan[t1] +----filter((cast(id as BIGINT) = 2147483648)) +------PhysicalOlapScan[t2] -- !infer11 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[INNER_JOIN] hashCondition=((expr_cast(id as LARGEINT) = expr_cast(id as LARGEINT))) otherCondition=() build RFs:RF0 expr_cast(id as LARGEINT)->[id] -------filter((cast(id as BIGINT) = 2147483648)) ---------PhysicalOlapScan[t1] apply RFs: RF0 -------PhysicalDistribute[DistributionSpecReplicated] ---------filter((cast(id as BIGINT) = 2147483648)) -----------PhysicalOlapScan[t2] +--hashJoin[INNER_JOIN] hashCondition=((expr_cast(id as LARGEINT) = expr_cast(id as LARGEINT))) otherCondition=() +----filter((cast(id as BIGINT) = 2147483648)) +------PhysicalOlapScan[t1] +----filter((cast(id as BIGINT) = 2147483648)) +------PhysicalOlapScan[t2] diff --git a/regression-test/data/nereids_rules_p0/push_down_limit_distinct/push_down_limit_distinct.out b/regression-test/data/nereids_rules_p0/push_down_limit_distinct/push_down_limit_distinct.out index e58bfeeb94..9ffe952038 100644 --- a/regression-test/data/nereids_rules_p0/push_down_limit_distinct/push_down_limit_distinct.out +++ b/regression-test/data/nereids_rules_p0/push_down_limit_distinct/push_down_limit_distinct.out @@ -2,18 +2,14 @@ -- !basic -- PhysicalResultSink --PhysicalLimit[GLOBAL] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalLimit[LOCAL] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------PhysicalUnion -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalLimit[LOCAL] ---------------------hashAgg[LOCAL] -----------------------PhysicalOlapScan[t] -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalLimit[LOCAL] ---------------------hashAgg[LOCAL] -----------------------PhysicalOlapScan[t] +----PhysicalLimit[LOCAL] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------PhysicalUnion +------------PhysicalLimit[LOCAL] +--------------hashAgg[LOCAL] +----------------PhysicalOlapScan[t] +------------PhysicalLimit[LOCAL] +--------------hashAgg[LOCAL] +----------------PhysicalOlapScan[t] diff --git a/regression-test/data/nereids_rules_p0/push_down_top_n/push_down_top_n_distinct_through_union.out b/regression-test/data/nereids_rules_p0/push_down_top_n/push_down_top_n_distinct_through_union.out index d15bd9ed52..58dfe43639 100644 --- a/regression-test/data/nereids_rules_p0/push_down_top_n/push_down_top_n_distinct_through_union.out +++ b/regression-test/data/nereids_rules_p0/push_down_top_n/push_down_top_n_distinct_through_union.out @@ -2,148 +2,106 @@ -- !push_down_topn_through_union -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------PhysicalUnion -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalOlapScan[table2] -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalOlapScan[table2] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------PhysicalUnion +------------PhysicalOlapScan[table2] +------------PhysicalOlapScan[table2] -- !push_down_topn_union_with_conditions -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------PhysicalUnion -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------filter((t1.score > 10)) ---------------------PhysicalOlapScan[table2] -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------filter((t2.name = 'Test')) ---------------------PhysicalOlapScan[table2] -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------filter((t3.id < 5)) ---------------------PhysicalOlapScan[table2] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------PhysicalUnion +------------filter((t1.score > 10)) +--------------PhysicalOlapScan[table2] +------------filter((t2.name = 'Test')) +--------------PhysicalOlapScan[table2] +------------filter((t3.id < 5)) +--------------PhysicalOlapScan[table2] -- !push_down_topn_union_with_order_by -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------PhysicalUnion -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalOlapScan[table2] -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalOlapScan[table2] -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalOlapScan[table2] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------PhysicalUnion +------------PhysicalOlapScan[table2] +------------PhysicalOlapScan[table2] +------------PhysicalOlapScan[table2] -- !push_down_topn_nested_union -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------PhysicalUnion -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalOlapScan[table2] -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalOlapScan[table2] -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalOlapScan[table2] -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalOlapScan[table2] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------PhysicalUnion +------------PhysicalOlapScan[table2] +------------PhysicalOlapScan[table2] +------------PhysicalOlapScan[table2] +------------PhysicalOlapScan[table2] -- !push_down_topn_union_after_join -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------PhysicalUnion -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------------------PhysicalOlapScan[table2] ---------------------PhysicalOlapScan[table2] -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalOlapScan[table2] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------PhysicalUnion +------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------------PhysicalOlapScan[table2] +--------------PhysicalOlapScan[table2] +------------PhysicalOlapScan[table2] -- !push_down_topn_union_different_projections -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------PhysicalUnion -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalOlapScan[table2] -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalOlapScan[table2] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------PhysicalUnion +------------PhysicalOlapScan[table2] +------------PhysicalOlapScan[table2] -- !push_down_topn_union_with_subquery -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------PhysicalUnion -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------filter((table2.score > 20)) ---------------------PhysicalOlapScan[table2] -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalOlapScan[table2] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------PhysicalUnion +------------filter((table2.score > 20)) +--------------PhysicalOlapScan[table2] +------------PhysicalOlapScan[table2] -- !push_down_topn_union_with_limit -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------PhysicalUnion -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalLimit[GLOBAL] ---------------------PhysicalDistribute[DistributionSpecGather] -----------------------PhysicalLimit[LOCAL] -------------------------PhysicalOlapScan[table2] -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------PhysicalLimit[GLOBAL] ---------------------PhysicalDistribute[DistributionSpecGather] -----------------------PhysicalLimit[LOCAL] -------------------------PhysicalOlapScan[table2] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------PhysicalUnion +------------PhysicalLimit[GLOBAL] +--------------PhysicalLimit[LOCAL] +----------------PhysicalOlapScan[table2] +------------PhysicalLimit[GLOBAL] +--------------PhysicalLimit[LOCAL] +----------------PhysicalOlapScan[table2] -- !push_down_topn_union_complex_conditions -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------hashAgg[GLOBAL] -----------PhysicalDistribute[DistributionSpecHash] -------------hashAgg[LOCAL] ---------------PhysicalUnion -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------filter((t1.name = 'Test') and (t1.score > 10)) ---------------------PhysicalOlapScan[table2] -----------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------filter((t2.id < 5) and (t2.score < 20)) ---------------------PhysicalOlapScan[table2] +----PhysicalTopN[LOCAL_SORT] +------hashAgg[GLOBAL] +--------hashAgg[LOCAL] +----------PhysicalUnion +------------filter((t1.name = 'Test') and (t1.score > 10)) +--------------PhysicalOlapScan[table2] +------------filter((t2.id < 5) and (t2.score < 20)) +--------------PhysicalOlapScan[table2] diff --git a/regression-test/data/nereids_rules_p0/push_down_top_n/push_down_top_n_through_union.out b/regression-test/data/nereids_rules_p0/push_down_top_n/push_down_top_n_through_union.out index 1135cd5270..285156732d 100644 --- a/regression-test/data/nereids_rules_p0/push_down_top_n/push_down_top_n_through_union.out +++ b/regression-test/data/nereids_rules_p0/push_down_top_n/push_down_top_n_through_union.out @@ -2,185 +2,132 @@ -- !push_down_topn_through_union -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------PhysicalUnion -----------PhysicalDistribute[DistributionSpecExecutionAny] -------------PhysicalTopN[MERGE_SORT] ---------------PhysicalDistribute[DistributionSpecGather] -----------------PhysicalTopN[LOCAL_SORT] -------------------PhysicalOlapScan[table1] -----------PhysicalDistribute[DistributionSpecExecutionAny] -------------PhysicalTopN[MERGE_SORT] ---------------PhysicalDistribute[DistributionSpecGather] -----------------PhysicalTopN[LOCAL_SORT] -------------------PhysicalOlapScan[table1] +----PhysicalTopN[LOCAL_SORT] +------PhysicalUnion +--------PhysicalTopN[MERGE_SORT] +----------PhysicalTopN[LOCAL_SORT] +------------PhysicalOlapScan[table1] +--------PhysicalTopN[MERGE_SORT] +----------PhysicalTopN[LOCAL_SORT] +------------PhysicalOlapScan[table1] -- !push_down_topn_union_with_conditions -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------PhysicalUnion -----------PhysicalDistribute[DistributionSpecExecutionAny] -------------PhysicalTopN[MERGE_SORT] ---------------PhysicalDistribute[DistributionSpecGather] -----------------PhysicalTopN[LOCAL_SORT] -------------------filter((t1.score > 10)) ---------------------PhysicalOlapScan[table1] -----------PhysicalDistribute[DistributionSpecExecutionAny] -------------PhysicalTopN[MERGE_SORT] ---------------PhysicalDistribute[DistributionSpecGather] -----------------PhysicalTopN[LOCAL_SORT] -------------------filter((t2.name = 'Test')) ---------------------PhysicalOlapScan[table1] -----------PhysicalDistribute[DistributionSpecExecutionAny] -------------PhysicalTopN[MERGE_SORT] ---------------PhysicalDistribute[DistributionSpecGather] -----------------PhysicalTopN[LOCAL_SORT] -------------------filter((t3.id < 5)) ---------------------PhysicalOlapScan[table1] +----PhysicalTopN[LOCAL_SORT] +------PhysicalUnion +--------PhysicalTopN[MERGE_SORT] +----------PhysicalTopN[LOCAL_SORT] +------------filter((t1.score > 10)) +--------------PhysicalOlapScan[table1] +--------PhysicalTopN[MERGE_SORT] +----------PhysicalTopN[LOCAL_SORT] +------------filter((t2.name = 'Test')) +--------------PhysicalOlapScan[table1] +--------PhysicalTopN[MERGE_SORT] +----------PhysicalTopN[LOCAL_SORT] +------------filter((t3.id < 5)) +--------------PhysicalOlapScan[table1] -- !push_down_topn_union_with_order_by -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------PhysicalUnion -----------PhysicalDistribute[DistributionSpecExecutionAny] -------------PhysicalTopN[MERGE_SORT] ---------------PhysicalDistribute[DistributionSpecGather] -----------------PhysicalTopN[LOCAL_SORT] -------------------PhysicalOlapScan[table1] -----------PhysicalDistribute[DistributionSpecExecutionAny] -------------PhysicalTopN[MERGE_SORT] ---------------PhysicalDistribute[DistributionSpecGather] -----------------PhysicalTopN[LOCAL_SORT] -------------------PhysicalOlapScan[table1] -----------PhysicalDistribute[DistributionSpecExecutionAny] -------------PhysicalTopN[MERGE_SORT] ---------------PhysicalDistribute[DistributionSpecGather] -----------------PhysicalTopN[LOCAL_SORT] -------------------PhysicalOlapScan[table1] +----PhysicalTopN[LOCAL_SORT] +------PhysicalUnion +--------PhysicalTopN[MERGE_SORT] +----------PhysicalTopN[LOCAL_SORT] +------------PhysicalOlapScan[table1] +--------PhysicalTopN[MERGE_SORT] +----------PhysicalTopN[LOCAL_SORT] +------------PhysicalOlapScan[table1] +--------PhysicalTopN[MERGE_SORT] +----------PhysicalTopN[LOCAL_SORT] +------------PhysicalOlapScan[table1] -- !push_down_topn_nested_union -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------PhysicalUnion -----------PhysicalDistribute[DistributionSpecExecutionAny] -------------PhysicalTopN[MERGE_SORT] ---------------PhysicalDistribute[DistributionSpecGather] -----------------PhysicalTopN[LOCAL_SORT] -------------------PhysicalOlapScan[table1] -----------PhysicalDistribute[DistributionSpecExecutionAny] -------------PhysicalTopN[MERGE_SORT] ---------------PhysicalDistribute[DistributionSpecGather] -----------------PhysicalTopN[LOCAL_SORT] -------------------PhysicalOlapScan[table1] -----------PhysicalDistribute[DistributionSpecExecutionAny] -------------PhysicalTopN[MERGE_SORT] ---------------PhysicalDistribute[DistributionSpecGather] -----------------PhysicalTopN[LOCAL_SORT] -------------------PhysicalOlapScan[table1] -----------PhysicalDistribute[DistributionSpecExecutionAny] -------------PhysicalTopN[MERGE_SORT] ---------------PhysicalDistribute[DistributionSpecGather] -----------------PhysicalTopN[LOCAL_SORT] -------------------PhysicalOlapScan[table1] +----PhysicalTopN[LOCAL_SORT] +------PhysicalUnion +--------PhysicalTopN[MERGE_SORT] +----------PhysicalTopN[LOCAL_SORT] +------------PhysicalOlapScan[table1] +--------PhysicalTopN[MERGE_SORT] +----------PhysicalTopN[LOCAL_SORT] +------------PhysicalOlapScan[table1] +--------PhysicalTopN[MERGE_SORT] +----------PhysicalTopN[LOCAL_SORT] +------------PhysicalOlapScan[table1] +--------PhysicalTopN[MERGE_SORT] +----------PhysicalTopN[LOCAL_SORT] +------------PhysicalOlapScan[table1] -- !push_down_topn_union_after_join -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------PhysicalUnion -----------PhysicalDistribute[DistributionSpecExecutionAny] -------------PhysicalTopN[MERGE_SORT] ---------------PhysicalDistribute[DistributionSpecGather] -----------------PhysicalTopN[LOCAL_SORT] -------------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() ---------------------PhysicalOlapScan[table1] ---------------------PhysicalOlapScan[table1] -----------PhysicalDistribute[DistributionSpecExecutionAny] -------------PhysicalTopN[MERGE_SORT] ---------------PhysicalDistribute[DistributionSpecGather] -----------------PhysicalTopN[LOCAL_SORT] -------------------PhysicalOlapScan[table1] +----PhysicalTopN[LOCAL_SORT] +------PhysicalUnion +--------PhysicalTopN[MERGE_SORT] +----------PhysicalTopN[LOCAL_SORT] +------------hashJoin[INNER_JOIN] hashCondition=((t1.id = t2.id)) otherCondition=() +--------------PhysicalOlapScan[table1] +--------------PhysicalOlapScan[table1] +--------PhysicalTopN[MERGE_SORT] +----------PhysicalTopN[LOCAL_SORT] +------------PhysicalOlapScan[table1] -- !push_down_topn_union_different_projections -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------PhysicalUnion -----------PhysicalDistribute[DistributionSpecExecutionAny] -------------PhysicalTopN[MERGE_SORT] ---------------PhysicalDistribute[DistributionSpecGather] -----------------PhysicalTopN[LOCAL_SORT] -------------------PhysicalOlapScan[table1] -----------PhysicalDistribute[DistributionSpecExecutionAny] -------------PhysicalTopN[MERGE_SORT] ---------------PhysicalDistribute[DistributionSpecGather] -----------------PhysicalTopN[LOCAL_SORT] -------------------PhysicalOlapScan[table1] +----PhysicalTopN[LOCAL_SORT] +------PhysicalUnion +--------PhysicalTopN[MERGE_SORT] +----------PhysicalTopN[LOCAL_SORT] +------------PhysicalOlapScan[table1] +--------PhysicalTopN[MERGE_SORT] +----------PhysicalTopN[LOCAL_SORT] +------------PhysicalOlapScan[table1] -- !push_down_topn_union_with_subquery -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------PhysicalUnion -----------PhysicalDistribute[DistributionSpecExecutionAny] -------------PhysicalTopN[MERGE_SORT] ---------------PhysicalDistribute[DistributionSpecGather] -----------------PhysicalTopN[LOCAL_SORT] -------------------filter((table1.score > 20)) ---------------------PhysicalOlapScan[table1] -----------PhysicalDistribute[DistributionSpecExecutionAny] -------------PhysicalTopN[MERGE_SORT] ---------------PhysicalDistribute[DistributionSpecGather] -----------------PhysicalTopN[LOCAL_SORT] -------------------PhysicalOlapScan[table1] +----PhysicalTopN[LOCAL_SORT] +------PhysicalUnion +--------PhysicalTopN[MERGE_SORT] +----------PhysicalTopN[LOCAL_SORT] +------------filter((table1.score > 20)) +--------------PhysicalOlapScan[table1] +--------PhysicalTopN[MERGE_SORT] +----------PhysicalTopN[LOCAL_SORT] +------------PhysicalOlapScan[table1] -- !push_down_topn_union_with_limit -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------PhysicalUnion -----------PhysicalDistribute[DistributionSpecExecutionAny] -------------PhysicalTopN[MERGE_SORT] ---------------PhysicalTopN[LOCAL_SORT] -----------------PhysicalLimit[GLOBAL] -------------------PhysicalDistribute[DistributionSpecGather] ---------------------PhysicalLimit[LOCAL] -----------------------PhysicalOlapScan[table1] -----------PhysicalDistribute[DistributionSpecExecutionAny] -------------PhysicalTopN[MERGE_SORT] ---------------PhysicalTopN[LOCAL_SORT] -----------------PhysicalLimit[GLOBAL] -------------------PhysicalDistribute[DistributionSpecGather] ---------------------PhysicalLimit[LOCAL] -----------------------PhysicalOlapScan[table1] +----PhysicalTopN[LOCAL_SORT] +------PhysicalUnion +--------PhysicalTopN[MERGE_SORT] +----------PhysicalTopN[LOCAL_SORT] +------------PhysicalLimit[GLOBAL] +--------------PhysicalLimit[LOCAL] +----------------PhysicalOlapScan[table1] +--------PhysicalTopN[MERGE_SORT] +----------PhysicalTopN[LOCAL_SORT] +------------PhysicalLimit[GLOBAL] +--------------PhysicalLimit[LOCAL] +----------------PhysicalOlapScan[table1] -- !push_down_topn_union_complex_conditions -- PhysicalResultSink --PhysicalTopN[MERGE_SORT] -----PhysicalDistribute[DistributionSpecGather] -------PhysicalTopN[LOCAL_SORT] ---------PhysicalUnion -----------PhysicalDistribute[DistributionSpecExecutionAny] -------------PhysicalTopN[MERGE_SORT] ---------------PhysicalDistribute[DistributionSpecGather] -----------------PhysicalTopN[LOCAL_SORT] -------------------filter((t1.name = 'Test') and (t1.score > 10)) ---------------------PhysicalOlapScan[table1] -----------PhysicalDistribute[DistributionSpecExecutionAny] -------------PhysicalTopN[MERGE_SORT] ---------------PhysicalDistribute[DistributionSpecGather] -----------------PhysicalTopN[LOCAL_SORT] -------------------filter((t2.id < 5) and (t2.score < 20)) ---------------------PhysicalOlapScan[table1] +----PhysicalTopN[LOCAL_SORT] +------PhysicalUnion +--------PhysicalTopN[MERGE_SORT] +----------PhysicalTopN[LOCAL_SORT] +------------filter((t1.name = 'Test') and (t1.score > 10)) +--------------PhysicalOlapScan[table1] +--------PhysicalTopN[MERGE_SORT] +----------PhysicalTopN[LOCAL_SORT] +------------filter((t2.id < 5) and (t2.score < 20)) +--------------PhysicalOlapScan[table1] diff --git a/regression-test/data/nereids_rules_p0/transposeJoin/transposeSemiJoinAgg.out b/regression-test/data/nereids_rules_p0/transposeJoin/transposeSemiJoinAgg.out index 1836054f25..d71c15d216 100644 --- a/regression-test/data/nereids_rules_p0/transposeJoin/transposeSemiJoinAgg.out +++ b/regression-test/data/nereids_rules_p0/transposeJoin/transposeSemiJoinAgg.out @@ -1,101 +1,81 @@ -- This file is automatically generated. You should know what you did if you want to edit this -- !groupby_positive_case -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[LOCAL] -------hashJoin[LEFT_SEMI_JOIN] hashCondition=((T3.a = T2.a)) otherCondition=() build RFs:RF0 a->[a] ---------filter((T1.__DORIS_DELETE_SIGN__ = 0)) -----------PhysicalOlapScan[T1] apply RFs: RF0 ---------PhysicalDistribute[DistributionSpecHash] -----------filter((T2.__DORIS_DELETE_SIGN__ = 0)) -------------PhysicalOlapScan[T2] +--hashAgg[LOCAL] +----hashJoin[LEFT_SEMI_JOIN] hashCondition=((T3.a = T2.a)) otherCondition=() +------filter((T1.__DORIS_DELETE_SIGN__ = 0)) +--------PhysicalOlapScan[T1] +------filter((T2.__DORIS_DELETE_SIGN__ = 0)) +--------PhysicalOlapScan[T2] -- !groupby_negative_case -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_SEMI_JOIN] hashCondition=((T3.D = expr_cast(a as BIGINT))) otherCondition=() -------hashAgg[LOCAL] ---------filter((T1.__DORIS_DELETE_SIGN__ = 0)) -----------PhysicalOlapScan[T1] -------PhysicalDistribute[DistributionSpecReplicated] ---------filter((T2.__DORIS_DELETE_SIGN__ = 0)) -----------PhysicalOlapScan[T2] +--hashJoin[LEFT_SEMI_JOIN] hashCondition=((T3.D = expr_cast(a as BIGINT))) otherCondition=() +----hashAgg[LOCAL] +------filter((T1.__DORIS_DELETE_SIGN__ = 0)) +--------PhysicalOlapScan[T1] +----filter((T2.__DORIS_DELETE_SIGN__ = 0)) +------PhysicalOlapScan[T2] -- !grouping_positive_case -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_SEMI_JOIN] hashCondition=((T3.a = T2.a)) otherCondition=() build RFs:RF0 a->[a] -------hashAgg[GLOBAL] ---------PhysicalDistribute[DistributionSpecHash] -----------hashAgg[LOCAL] -------------PhysicalRepeat ---------------filter((T1.__DORIS_DELETE_SIGN__ = 0)) -----------------PhysicalOlapScan[T1] apply RFs: RF0 -------PhysicalDistribute[DistributionSpecReplicated] ---------filter((T2.__DORIS_DELETE_SIGN__ = 0)) -----------PhysicalOlapScan[T2] +--hashJoin[LEFT_SEMI_JOIN] hashCondition=((T3.a = T2.a)) otherCondition=() +----hashAgg[GLOBAL] +------hashAgg[LOCAL] +--------PhysicalRepeat +----------filter((T1.__DORIS_DELETE_SIGN__ = 0)) +------------PhysicalOlapScan[T1] +----filter((T2.__DORIS_DELETE_SIGN__ = 0)) +------PhysicalOlapScan[T2] -- !grouping_negative_case -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_SEMI_JOIN] hashCondition=((T3.D = expr_cast(a as BIGINT))) otherCondition=() -------hashAgg[GLOBAL] ---------PhysicalDistribute[DistributionSpecHash] -----------hashAgg[LOCAL] -------------PhysicalRepeat ---------------filter((T1.__DORIS_DELETE_SIGN__ = 0)) -----------------PhysicalOlapScan[T1] -------PhysicalDistribute[DistributionSpecReplicated] ---------filter((T2.__DORIS_DELETE_SIGN__ = 0)) -----------PhysicalOlapScan[T2] +--hashJoin[LEFT_SEMI_JOIN] hashCondition=((T3.D = expr_cast(a as BIGINT))) otherCondition=() +----hashAgg[GLOBAL] +------hashAgg[LOCAL] +--------PhysicalRepeat +----------filter((T1.__DORIS_DELETE_SIGN__ = 0)) +------------PhysicalOlapScan[T1] +----filter((T2.__DORIS_DELETE_SIGN__ = 0)) +------PhysicalOlapScan[T2] -- !groupby_positive_case2 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashAgg[LOCAL] -------hashJoin[LEFT_SEMI_JOIN] hashCondition=((T3.a = T2.a)) otherCondition=() build RFs:RF0 a->[a] ---------filter((T1.__DORIS_DELETE_SIGN__ = 0)) -----------PhysicalOlapScan[T1] apply RFs: RF0 ---------PhysicalDistribute[DistributionSpecHash] -----------filter((T2.__DORIS_DELETE_SIGN__ = 0)) -------------PhysicalOlapScan[T2] +--hashAgg[LOCAL] +----hashJoin[LEFT_SEMI_JOIN] hashCondition=((T3.a = T2.a)) otherCondition=() +------filter((T1.__DORIS_DELETE_SIGN__ = 0)) +--------PhysicalOlapScan[T1] +------filter((T2.__DORIS_DELETE_SIGN__ = 0)) +--------PhysicalOlapScan[T2] -- !groupby_negative_case2 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_SEMI_JOIN] hashCondition=((T3.D = expr_cast(a as BIGINT))) otherCondition=() -------hashAgg[LOCAL] ---------filter((T1.__DORIS_DELETE_SIGN__ = 0)) -----------PhysicalOlapScan[T1] -------PhysicalDistribute[DistributionSpecReplicated] ---------filter((T2.__DORIS_DELETE_SIGN__ = 0)) -----------PhysicalOlapScan[T2] +--hashJoin[LEFT_SEMI_JOIN] hashCondition=((T3.D = expr_cast(a as BIGINT))) otherCondition=() +----hashAgg[LOCAL] +------filter((T1.__DORIS_DELETE_SIGN__ = 0)) +--------PhysicalOlapScan[T1] +----filter((T2.__DORIS_DELETE_SIGN__ = 0)) +------PhysicalOlapScan[T2] -- !grouping_positive_case2 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_SEMI_JOIN] hashCondition=((T3.a = T2.a)) otherCondition=() build RFs:RF0 a->[a] -------hashAgg[GLOBAL] ---------PhysicalDistribute[DistributionSpecHash] -----------hashAgg[LOCAL] -------------PhysicalRepeat ---------------filter((T1.__DORIS_DELETE_SIGN__ = 0)) -----------------PhysicalOlapScan[T1] apply RFs: RF0 -------PhysicalDistribute[DistributionSpecReplicated] ---------filter((T2.__DORIS_DELETE_SIGN__ = 0)) -----------PhysicalOlapScan[T2] +--hashJoin[LEFT_SEMI_JOIN] hashCondition=((T3.a = T2.a)) otherCondition=() +----hashAgg[GLOBAL] +------hashAgg[LOCAL] +--------PhysicalRepeat +----------filter((T1.__DORIS_DELETE_SIGN__ = 0)) +------------PhysicalOlapScan[T1] +----filter((T2.__DORIS_DELETE_SIGN__ = 0)) +------PhysicalOlapScan[T2] -- !grouping_negative_case2 -- PhysicalResultSink ---PhysicalDistribute[DistributionSpecGather] -----hashJoin[LEFT_SEMI_JOIN] hashCondition=((T3.D = expr_cast(a as BIGINT))) otherCondition=() -------hashAgg[GLOBAL] ---------PhysicalDistribute[DistributionSpecHash] -----------hashAgg[LOCAL] -------------PhysicalRepeat ---------------filter((T1.__DORIS_DELETE_SIGN__ = 0)) -----------------PhysicalOlapScan[T1] -------PhysicalDistribute[DistributionSpecReplicated] ---------filter((T2.__DORIS_DELETE_SIGN__ = 0)) -----------PhysicalOlapScan[T2] +--hashJoin[LEFT_SEMI_JOIN] hashCondition=((T3.D = expr_cast(a as BIGINT))) otherCondition=() +----hashAgg[GLOBAL] +------hashAgg[LOCAL] +--------PhysicalRepeat +----------filter((T1.__DORIS_DELETE_SIGN__ = 0)) +------------PhysicalOlapScan[T1] +----filter((T2.__DORIS_DELETE_SIGN__ = 0)) +------PhysicalOlapScan[T2] 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 fcccba6021..38b1118083 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 @@ -22,7 +22,7 @@ PhysicalResultSink --------------------PhysicalProject ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------hashJoin[INNER_JOIN] hashCondition=((store.s_store_sk = store_sales.ss_store_sk)) otherCondition=() build RFs:RF6 s_store_sk->[ss_store_sk] ---------------------------hashJoin[INNER_JOIN] hashCondition=((item.i_item_sk = store_sales.ss_item_sk)) otherCondition=() build RFs:RF5 i_item_sk->[ss_item_sk] +--------------------------hashJoin[INNER_JOIN] hashCondition=((item.i_item_sk = store_sales.ss_item_sk)) otherCondition=() build RFs:RF5 i_item_sk->[ss_item_sk,sr_item_sk] ----------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------PhysicalProject --------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_customer_sk = store_returns.sr_customer_sk) and (store_sales.ss_item_sk = store_returns.sr_item_sk) and (store_sales.ss_ticket_number = store_returns.sr_ticket_number)) otherCondition=() build RFs:RF2 sr_customer_sk->[ss_customer_sk];RF3 sr_item_sk->[ss_item_sk];RF4 sr_ticket_number->[ss_ticket_number] @@ -35,7 +35,7 @@ PhysicalResultSink ------------------------------------------PhysicalOlapScan[date_dim] ----------------------------------hashJoin[INNER_JOIN] hashCondition=((store_returns.sr_returned_date_sk = d2.d_date_sk)) otherCondition=() build RFs:RF0 d_date_sk->[sr_returned_date_sk] ------------------------------------PhysicalProject ---------------------------------------PhysicalOlapScan[store_returns] apply RFs: RF0 +--------------------------------------PhysicalOlapScan[store_returns] apply RFs: RF0 RF5 ------------------------------------PhysicalDistribute[DistributionSpecReplicated] --------------------------------------PhysicalProject ----------------------------------------filter(d_quarter_name IN ('2001Q1', '2001Q2', '2001Q3')) 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 069b4262ea..009769ead1 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 @@ -7,7 +7,7 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------PhysicalDistribute[DistributionSpecHash] ----------hashAgg[LOCAL] ------------PhysicalProject ---------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = store_returns.sr_item_sk) and (store_sales.ss_ticket_number = store_returns.sr_ticket_number)) otherCondition=() build RFs:RF5 sr_item_sk->[ss_item_sk];RF6 sr_ticket_number->[ss_ticket_number] +--------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = store_returns.sr_item_sk) and (store_sales.ss_ticket_number = store_returns.sr_ticket_number)) otherCondition=() build RFs:RF5 sr_item_sk->[i_item_sk,ss_item_sk];RF6 sr_ticket_number->[ss_ticket_number] ----------------PhysicalProject ------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF4 i_item_sk->[ss_item_sk] --------------------PhysicalDistribute[DistributionSpecHash] @@ -31,7 +31,7 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------------------------PhysicalOlapScan[customer_address] --------------------PhysicalDistribute[DistributionSpecHash] ----------------------PhysicalProject -------------------------PhysicalOlapScan[item] +------------------------PhysicalOlapScan[item] apply RFs: RF5 ----------------PhysicalDistribute[DistributionSpecHash] ------------------PhysicalProject --------------------PhysicalOlapScan[store_returns] 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 c81ff44fa8..7e49210d70 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 @@ -21,7 +21,7 @@ PhysicalResultSink ------------------PhysicalProject --------------------PhysicalDistribute[DistributionSpecHash] ----------------------hashJoin[INNER_JOIN] hashCondition=((store.s_store_sk = store_sales.ss_store_sk)) otherCondition=() build RFs:RF6 s_store_sk->[ss_store_sk] -------------------------hashJoin[INNER_JOIN] hashCondition=((item.i_item_sk = store_sales.ss_item_sk)) otherCondition=() build RFs:RF5 i_item_sk->[ss_item_sk] +------------------------hashJoin[INNER_JOIN] hashCondition=((item.i_item_sk = store_sales.ss_item_sk)) otherCondition=() build RFs:RF5 i_item_sk->[ss_item_sk,sr_item_sk] --------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------PhysicalProject ------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_customer_sk = store_returns.sr_customer_sk) and (store_sales.ss_item_sk = store_returns.sr_item_sk) and (store_sales.ss_ticket_number = store_returns.sr_ticket_number)) otherCondition=() build RFs:RF2 sr_customer_sk->[ss_customer_sk];RF3 sr_item_sk->[ss_item_sk];RF4 sr_ticket_number->[ss_ticket_number] @@ -34,7 +34,7 @@ PhysicalResultSink ----------------------------------------PhysicalOlapScan[date_dim] --------------------------------hashJoin[INNER_JOIN] hashCondition=((store_returns.sr_returned_date_sk = d2.d_date_sk)) otherCondition=() build RFs:RF0 d_date_sk->[sr_returned_date_sk] ----------------------------------PhysicalProject -------------------------------------PhysicalOlapScan[store_returns] apply RFs: RF0 +------------------------------------PhysicalOlapScan[store_returns] apply RFs: RF0 RF5 ----------------------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------------------PhysicalProject --------------------------------------filter((d2.d_moy <= 10) and (d2.d_moy >= 4) and (d2.d_year = 1999)) 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 512cddbf32..51e3aaec48 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 @@ -15,7 +15,7 @@ PhysicalResultSink ------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF7 RF8 RF9 ----------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------hashJoin[INNER_JOIN] hashCondition=((store.s_store_sk = store_sales.ss_store_sk)) otherCondition=() build RFs:RF6 s_store_sk->[ss_store_sk] ---------------------------hashJoin[INNER_JOIN] hashCondition=((item.i_item_sk = store_sales.ss_item_sk)) otherCondition=() build RFs:RF5 i_item_sk->[ss_item_sk] +--------------------------hashJoin[INNER_JOIN] hashCondition=((item.i_item_sk = store_sales.ss_item_sk)) otherCondition=() build RFs:RF5 i_item_sk->[ss_item_sk,sr_item_sk] ----------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------PhysicalProject --------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_customer_sk = store_returns.sr_customer_sk) and (store_sales.ss_item_sk = store_returns.sr_item_sk) and (store_sales.ss_ticket_number = store_returns.sr_ticket_number)) otherCondition=() build RFs:RF2 sr_customer_sk->[ss_customer_sk];RF3 sr_item_sk->[ss_item_sk];RF4 sr_ticket_number->[ss_ticket_number] @@ -28,7 +28,7 @@ PhysicalResultSink ------------------------------------------PhysicalOlapScan[date_dim] ----------------------------------hashJoin[INNER_JOIN] hashCondition=((store_returns.sr_returned_date_sk = d2.d_date_sk)) otherCondition=() build RFs:RF0 d_date_sk->[sr_returned_date_sk] ------------------------------------PhysicalProject ---------------------------------------PhysicalOlapScan[store_returns] apply RFs: RF0 +--------------------------------------PhysicalOlapScan[store_returns] apply RFs: RF0 RF5 ------------------------------------PhysicalDistribute[DistributionSpecReplicated] --------------------------------------PhysicalProject ----------------------------------------filter((d2.d_moy <= 7) and (d2.d_moy >= 4) and (d2.d_year = 1998)) 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 9a6915fe83..fed32dc285 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 @@ -47,7 +47,7 @@ PhysicalCteAnchor ( cteId=CTEId#1 ) ----------------------------PhysicalOlapScan[store_returns] apply RFs: RF11 RF12 --------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------PhysicalProject -------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = cs_ui.cs_item_sk)) otherCondition=() build RFs:RF10 cs_item_sk->[ss_item_sk] +------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = cs_ui.cs_item_sk)) otherCondition=() build RFs:RF10 cs_item_sk->[ss_item_sk,i_item_sk] --------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------PhysicalProject ------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_promo_sk = promotion.p_promo_sk)) otherCondition=() build RFs:RF9 p_promo_sk->[ss_promo_sk] @@ -84,7 +84,7 @@ PhysicalCteAnchor ( cteId=CTEId#1 ) ----------------------------------------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------------------------------------PhysicalProject --------------------------------------------------------filter((item.i_current_price <= 58.00) and (item.i_current_price >= 49.00) and i_color IN ('blush', 'lace', 'lawn', 'misty', 'orange', 'pink')) -----------------------------------------------------------PhysicalOlapScan[item] +----------------------------------------------------------PhysicalOlapScan[item] apply RFs: RF10 ------------------------------------------------PhysicalDistribute[DistributionSpecHash] --------------------------------------------------PhysicalProject ----------------------------------------------------PhysicalOlapScan[customer_address] 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 f989ea968c..93e4e4b864 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 @@ -8,7 +8,7 @@ PhysicalResultSink ----------hashJoin[INNER_JOIN] hashCondition=((item.i_item_sk = sc.ss_item_sk)) otherCondition=() build RFs:RF4 i_item_sk->[ss_item_sk] ------------PhysicalDistribute[DistributionSpecHash] --------------PhysicalProject -----------------hashJoin[INNER_JOIN] hashCondition=((store.s_store_sk = sc.ss_store_sk)) otherCondition=() build RFs:RF3 s_store_sk->[ss_store_sk] +----------------hashJoin[INNER_JOIN] hashCondition=((store.s_store_sk = sc.ss_store_sk)) otherCondition=() build RFs:RF3 s_store_sk->[ss_store_sk,ss_store_sk] ------------------hashJoin[INNER_JOIN] hashCondition=((sb.ss_store_sk = sc.ss_store_sk)) otherCondition=((cast(revenue as DOUBLE) <= cast((0.1 * ave) as DOUBLE))) build RFs:RF2 ss_store_sk->[ss_store_sk] --------------------hashAgg[GLOBAL] ----------------------PhysicalDistribute[DistributionSpecHash] @@ -32,7 +32,7 @@ PhysicalResultSink ------------------------------------PhysicalProject --------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF0 d_date_sk->[ss_sold_date_sk] ----------------------------------------PhysicalProject -------------------------------------------PhysicalOlapScan[store_sales] apply RFs: RF0 +------------------------------------------PhysicalOlapScan[store_sales] apply RFs: RF0 RF3 ----------------------------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------------------------PhysicalProject --------------------------------------------filter((date_dim.d_month_seq <= 1187) and (date_dim.d_month_seq >= 1176)) diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query17.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query17.out index f128eebed4..bdd8ac1f16 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query17.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query17.out @@ -18,12 +18,12 @@ PhysicalResultSink ------------------------------PhysicalProject --------------------------------hashJoin[INNER_JOIN] hashCondition=((d1.d_date_sk = store_sales.ss_sold_date_sk)) otherCondition=() build RFs:RF5 d_date_sk->[ss_sold_date_sk] ----------------------------------PhysicalProject -------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_returns.sr_customer_sk = catalog_sales.cs_bill_customer_sk) and (store_returns.sr_item_sk = catalog_sales.cs_item_sk)) otherCondition=() build RFs:RF3 cs_bill_customer_sk->[sr_customer_sk];RF4 cs_item_sk->[sr_item_sk] +------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_returns.sr_customer_sk = catalog_sales.cs_bill_customer_sk) and (store_returns.sr_item_sk = catalog_sales.cs_item_sk)) otherCondition=() build RFs:RF3 cs_bill_customer_sk->[ss_customer_sk,sr_customer_sk];RF4 cs_item_sk->[ss_item_sk,sr_item_sk] --------------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------------PhysicalProject ------------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_customer_sk = store_returns.sr_customer_sk) and (store_sales.ss_item_sk = store_returns.sr_item_sk) and (store_sales.ss_ticket_number = store_returns.sr_ticket_number)) otherCondition=() build RFs:RF0 sr_customer_sk->[ss_customer_sk];RF1 sr_item_sk->[ss_item_sk];RF2 sr_ticket_number->[ss_ticket_number] --------------------------------------------PhysicalProject -----------------------------------------------PhysicalOlapScan[store_sales] apply RFs: RF0 RF1 RF2 RF5 +----------------------------------------------PhysicalOlapScan[store_sales] apply RFs: RF0 RF1 RF2 RF3 RF4 RF5 --------------------------------------------PhysicalProject ----------------------------------------------PhysicalOlapScan[store_returns] apply RFs: RF3 RF4 RF6 --------------------------------------PhysicalDistribute[DistributionSpecHash] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query25.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query25.out index 812e7dfedd..3b9cc675c0 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query25.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query25.out @@ -17,12 +17,12 @@ PhysicalResultSink ----------------------------PhysicalProject ------------------------------hashJoin[INNER_JOIN] hashCondition=((d1.d_date_sk = store_sales.ss_sold_date_sk)) otherCondition=() build RFs:RF5 d_date_sk->[ss_sold_date_sk] --------------------------------PhysicalProject -----------------------------------hashJoin[INNER_JOIN] hashCondition=((store_returns.sr_customer_sk = catalog_sales.cs_bill_customer_sk) and (store_returns.sr_item_sk = catalog_sales.cs_item_sk)) otherCondition=() build RFs:RF3 cs_bill_customer_sk->[sr_customer_sk];RF4 cs_item_sk->[sr_item_sk] +----------------------------------hashJoin[INNER_JOIN] hashCondition=((store_returns.sr_customer_sk = catalog_sales.cs_bill_customer_sk) and (store_returns.sr_item_sk = catalog_sales.cs_item_sk)) otherCondition=() build RFs:RF3 cs_bill_customer_sk->[ss_customer_sk,sr_customer_sk];RF4 cs_item_sk->[ss_item_sk,sr_item_sk] ------------------------------------PhysicalDistribute[DistributionSpecHash] --------------------------------------PhysicalProject ----------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_customer_sk = store_returns.sr_customer_sk) and (store_sales.ss_item_sk = store_returns.sr_item_sk) and (store_sales.ss_ticket_number = store_returns.sr_ticket_number)) otherCondition=() build RFs:RF0 sr_customer_sk->[ss_customer_sk];RF1 sr_item_sk->[ss_item_sk];RF2 sr_ticket_number->[ss_ticket_number] ------------------------------------------PhysicalProject ---------------------------------------------PhysicalOlapScan[store_sales] apply RFs: RF0 RF1 RF2 RF5 +--------------------------------------------PhysicalOlapScan[store_sales] apply RFs: RF0 RF1 RF2 RF3 RF4 RF5 ------------------------------------------PhysicalProject --------------------------------------------PhysicalOlapScan[store_returns] apply RFs: RF3 RF4 RF6 ------------------------------------PhysicalDistribute[DistributionSpecHash] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query29.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query29.out index 27eccad761..63f23267f0 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query29.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query29.out @@ -16,12 +16,12 @@ PhysicalResultSink --------------------------PhysicalProject ----------------------------hashJoin[INNER_JOIN] hashCondition=((d1.d_date_sk = store_sales.ss_sold_date_sk)) otherCondition=() build RFs:RF5 d_date_sk->[ss_sold_date_sk] ------------------------------PhysicalProject ---------------------------------hashJoin[INNER_JOIN] hashCondition=((store_returns.sr_customer_sk = catalog_sales.cs_bill_customer_sk) and (store_returns.sr_item_sk = catalog_sales.cs_item_sk)) otherCondition=() build RFs:RF3 cs_bill_customer_sk->[sr_customer_sk];RF4 cs_item_sk->[sr_item_sk] +--------------------------------hashJoin[INNER_JOIN] hashCondition=((store_returns.sr_customer_sk = catalog_sales.cs_bill_customer_sk) and (store_returns.sr_item_sk = catalog_sales.cs_item_sk)) otherCondition=() build RFs:RF3 cs_bill_customer_sk->[ss_customer_sk,sr_customer_sk];RF4 cs_item_sk->[ss_item_sk,sr_item_sk] ----------------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------------PhysicalProject --------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_customer_sk = store_returns.sr_customer_sk) and (store_sales.ss_item_sk = store_returns.sr_item_sk) and (store_sales.ss_ticket_number = store_returns.sr_ticket_number)) otherCondition=() build RFs:RF0 sr_customer_sk->[ss_customer_sk];RF1 sr_item_sk->[ss_item_sk];RF2 sr_ticket_number->[ss_ticket_number] ----------------------------------------PhysicalProject -------------------------------------------PhysicalOlapScan[store_sales] apply RFs: RF0 RF1 RF2 RF5 +------------------------------------------PhysicalOlapScan[store_sales] apply RFs: RF0 RF1 RF2 RF3 RF4 RF5 ----------------------------------------PhysicalProject ------------------------------------------PhysicalOlapScan[store_returns] apply RFs: RF3 RF4 RF7 ----------------------------------PhysicalDistribute[DistributionSpecHash] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query58.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query58.out index 3859969de5..c59907df29 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query58.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query58.out @@ -6,7 +6,7 @@ PhysicalResultSink ------PhysicalDistribute[DistributionSpecGather] --------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))) build RFs:RF13 item_id->[i_item_id] +------------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))) build RFs:RF13 item_id->[i_item_id,i_item_id] --------------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((0.9 * ss_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))) build RFs:RF12 item_id->[i_item_id] ------------------PhysicalProject @@ -47,12 +47,12 @@ PhysicalResultSink --------------------------PhysicalProject ----------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF7 d_date_sk->[cs_sold_date_sk] ------------------------------PhysicalProject ---------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_item_sk = item.i_item_sk)) otherCondition=() +--------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF6 i_item_sk->[cs_item_sk] ----------------------------------PhysicalProject -------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF7 +------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF6 RF7 ----------------------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------------------PhysicalProject ---------------------------------------PhysicalOlapScan[item] +--------------------------------------PhysicalOlapScan[item] apply RFs: RF13 ------------------------------PhysicalDistribute[DistributionSpecReplicated] --------------------------------PhysicalProject ----------------------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((date_dim.d_date = date_dim.d_date)) otherCondition=() diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query64.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query64.out index bb2fd53c1d..2703f5aba8 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query64.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query64.out @@ -5,7 +5,7 @@ PhysicalCteAnchor ( cteId=CTEId#1 ) ----PhysicalProject ------hashAgg[LOCAL] --------PhysicalProject -----------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = cs_ui.cs_item_sk)) otherCondition=() build RFs:RF19 cs_item_sk->[ss_item_sk] +----------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = cs_ui.cs_item_sk)) otherCondition=() build RFs:RF19 cs_item_sk->[ss_item_sk,i_item_sk,sr_item_sk] ------------PhysicalProject --------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_promo_sk = promotion.p_promo_sk)) otherCondition=() ----------------PhysicalProject @@ -23,7 +23,7 @@ PhysicalCteAnchor ( cteId=CTEId#1 ) ----------------------------------------PhysicalProject ------------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_store_sk = store.s_store_sk)) otherCondition=() --------------------------------------------PhysicalProject -----------------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = store_returns.sr_item_sk) and (store_sales.ss_ticket_number = store_returns.sr_ticket_number)) otherCondition=() +----------------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = store_returns.sr_item_sk) and (store_sales.ss_ticket_number = store_returns.sr_ticket_number)) otherCondition=() build RFs:RF9 sr_item_sk->[ss_item_sk,i_item_sk];RF10 sr_ticket_number->[ss_ticket_number] ------------------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF8 i_item_sk->[ss_item_sk] --------------------------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------------------------PhysicalProject @@ -39,7 +39,7 @@ PhysicalCteAnchor ( cteId=CTEId#1 ) ------------------------------------------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_customer_sk = customer.c_customer_sk)) otherCondition=() --------------------------------------------------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------------------------------------------------PhysicalProject -------------------------------------------------------------------------------PhysicalOlapScan[store_sales] apply RFs: RF8 RF17 RF19 +------------------------------------------------------------------------------PhysicalOlapScan[store_sales] apply RFs: RF8 RF9 RF10 RF17 RF19 --------------------------------------------------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------------------------------------------------PhysicalProject ------------------------------------------------------------------------------hashJoin[INNER_JOIN] hashCondition=((customer.c_current_cdemo_sk = cd2.cd_demo_sk)) otherCondition=() @@ -64,10 +64,10 @@ PhysicalCteAnchor ( cteId=CTEId#1 ) --------------------------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------------------------PhysicalProject ------------------------------------------------------filter((item.i_current_price <= 33.00) and (item.i_current_price >= 24.00) and i_color IN ('blanched', 'brown', 'burlywood', 'chocolate', 'drab', 'medium')) ---------------------------------------------------------PhysicalOlapScan[item] +--------------------------------------------------------PhysicalOlapScan[item] apply RFs: RF9 RF19 ------------------------------------------------PhysicalDistribute[DistributionSpecHash] --------------------------------------------------PhysicalProject -----------------------------------------------------PhysicalOlapScan[store_returns] +----------------------------------------------------PhysicalOlapScan[store_returns] apply RFs: RF19 --------------------------------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------------------------------PhysicalProject ------------------------------------------------PhysicalOlapScan[store] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query65.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query65.out index 016dd4798a..0efb98d242 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query65.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query65.out @@ -5,9 +5,9 @@ PhysicalResultSink ----PhysicalDistribute[DistributionSpecGather] ------PhysicalTopN[LOCAL_SORT] --------PhysicalProject -----------hashJoin[INNER_JOIN] hashCondition=((sb.ss_store_sk = sc.ss_store_sk)) otherCondition=((cast(revenue as DOUBLE) <= cast((0.1 * ave) as DOUBLE))) build RFs:RF4 ss_store_sk->[ss_store_sk] +----------hashJoin[INNER_JOIN] hashCondition=((sb.ss_store_sk = sc.ss_store_sk)) otherCondition=((cast(revenue as DOUBLE) <= cast((0.1 * ave) as DOUBLE))) build RFs:RF4 ss_store_sk->[s_store_sk,ss_store_sk] ------------PhysicalProject ---------------hashJoin[INNER_JOIN] hashCondition=((store.s_store_sk = sc.ss_store_sk)) otherCondition=() +--------------hashJoin[INNER_JOIN] hashCondition=((store.s_store_sk = sc.ss_store_sk)) otherCondition=() build RFs:RF3 s_store_sk->[ss_store_sk] ----------------PhysicalDistribute[DistributionSpecHash] ------------------hashJoin[INNER_JOIN] hashCondition=((item.i_item_sk = sc.ss_item_sk)) otherCondition=() --------------------hashAgg[GLOBAL] @@ -16,7 +16,7 @@ PhysicalResultSink --------------------------PhysicalProject ----------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF1 d_date_sk->[ss_sold_date_sk] ------------------------------PhysicalProject ---------------------------------PhysicalOlapScan[store_sales] apply RFs: RF1 RF4 +--------------------------------PhysicalOlapScan[store_sales] apply RFs: RF1 RF3 RF4 ------------------------------PhysicalDistribute[DistributionSpecReplicated] --------------------------------PhysicalProject ----------------------------------filter((date_dim.d_month_seq <= 1232) and (date_dim.d_month_seq >= 1221)) @@ -26,7 +26,7 @@ PhysicalResultSink ------------------------PhysicalOlapScan[item] ----------------PhysicalDistribute[DistributionSpecHash] ------------------PhysicalProject ---------------------PhysicalOlapScan[store] +--------------------PhysicalOlapScan[store] apply RFs: RF4 ------------hashAgg[GLOBAL] --------------PhysicalDistribute[DistributionSpecHash] ----------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query83.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query83.out index 9e9ac913a3..7471697b9f 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query83.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query83.out @@ -6,7 +6,7 @@ PhysicalResultSink ------PhysicalDistribute[DistributionSpecGather] --------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject -------------hashJoin[INNER_JOIN] hashCondition=((sr_items.item_id = wr_items.item_id)) otherCondition=() build RFs:RF13 item_id->[i_item_id] +------------hashJoin[INNER_JOIN] hashCondition=((sr_items.item_id = wr_items.item_id)) otherCondition=() build RFs:RF13 item_id->[i_item_id,i_item_id] --------------PhysicalProject ----------------hashJoin[INNER_JOIN] hashCondition=((sr_items.item_id = cr_items.item_id)) otherCondition=() build RFs:RF12 item_id->[i_item_id] ------------------PhysicalProject @@ -44,12 +44,12 @@ PhysicalResultSink --------------------------PhysicalProject ----------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_returns.cr_returned_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF7 d_date_sk->[cr_returned_date_sk] ------------------------------PhysicalProject ---------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_returns.cr_item_sk = item.i_item_sk)) otherCondition=() +--------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_returns.cr_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF6 i_item_sk->[cr_item_sk] ----------------------------------PhysicalProject -------------------------------------PhysicalOlapScan[catalog_returns] apply RFs: RF7 +------------------------------------PhysicalOlapScan[catalog_returns] apply RFs: RF6 RF7 ----------------------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------------------PhysicalProject ---------------------------------------PhysicalOlapScan[item] +--------------------------------------PhysicalOlapScan[item] apply RFs: RF13 ------------------------------PhysicalDistribute[DistributionSpecReplicated] --------------------------------PhysicalProject ----------------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((date_dim.d_date = date_dim.d_date)) otherCondition=() build RFs:RF5 d_date->[d_date] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query95.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query95.out index 4c4fbb34f6..ef8fa368e6 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query95.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query95.out @@ -26,7 +26,7 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ----------------------hashJoin[INNER_JOIN] hashCondition=((ws1.ws_web_site_sk = web_site.web_site_sk)) otherCondition=() build RFs:RF5 web_site_sk->[ws_web_site_sk] ------------------------hashJoin[INNER_JOIN] hashCondition=((ws1.ws_ship_addr_sk = customer_address.ca_address_sk)) otherCondition=() build RFs:RF4 ca_address_sk->[ws_ship_addr_sk] --------------------------hashJoin[INNER_JOIN] hashCondition=((ws1.ws_ship_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF3 d_date_sk->[ws_ship_date_sk] -----------------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((ws1.ws_order_number = web_returns.wr_order_number)) otherCondition=() build RFs:RF2 ws_order_number->[wr_order_number] +----------------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((ws1.ws_order_number = web_returns.wr_order_number)) otherCondition=() build RFs:RF2 ws_order_number->[ws_order_number,wr_order_number] ------------------------------PhysicalProject --------------------------------hashJoin[INNER_JOIN] hashCondition=((web_returns.wr_order_number = ws_wh.ws_order_number)) otherCondition=() build RFs:RF1 wr_order_number->[ws_order_number] ----------------------------------PhysicalDistribute[DistributionSpecHash] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query17.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query17.out index 77b3974006..d604dd0a7b 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query17.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query17.out @@ -10,7 +10,7 @@ PhysicalResultSink --------------hashAgg[LOCAL] ----------------PhysicalProject ------------------hashJoin[INNER_JOIN] hashCondition=((store.s_store_sk = store_sales.ss_store_sk)) otherCondition=() build RFs:RF9 s_store_sk->[ss_store_sk] ---------------------hashJoin[INNER_JOIN] hashCondition=((item.i_item_sk = store_sales.ss_item_sk)) otherCondition=() build RFs:RF8 i_item_sk->[ss_item_sk] +--------------------hashJoin[INNER_JOIN] hashCondition=((item.i_item_sk = store_sales.ss_item_sk)) otherCondition=() build RFs:RF8 i_item_sk->[ss_item_sk,sr_item_sk] ----------------------PhysicalProject ------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = d3.d_date_sk)) otherCondition=() build RFs:RF7 d_date_sk->[cs_sold_date_sk] --------------------------PhysicalProject @@ -18,14 +18,14 @@ PhysicalResultSink ------------------------------PhysicalProject --------------------------------hashJoin[INNER_JOIN] hashCondition=((d1.d_date_sk = store_sales.ss_sold_date_sk)) otherCondition=() build RFs:RF5 d_date_sk->[ss_sold_date_sk] ----------------------------------PhysicalProject -------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_returns.sr_customer_sk = catalog_sales.cs_bill_customer_sk) and (store_returns.sr_item_sk = catalog_sales.cs_item_sk)) otherCondition=() build RFs:RF3 cs_bill_customer_sk->[sr_customer_sk];RF4 cs_item_sk->[sr_item_sk] +------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_returns.sr_customer_sk = catalog_sales.cs_bill_customer_sk) and (store_returns.sr_item_sk = catalog_sales.cs_item_sk)) otherCondition=() build RFs:RF3 cs_bill_customer_sk->[ss_customer_sk,sr_customer_sk];RF4 cs_item_sk->[ss_item_sk,sr_item_sk] --------------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------------PhysicalProject ------------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_customer_sk = store_returns.sr_customer_sk) and (store_sales.ss_item_sk = store_returns.sr_item_sk) and (store_sales.ss_ticket_number = store_returns.sr_ticket_number)) otherCondition=() build RFs:RF0 sr_customer_sk->[ss_customer_sk];RF1 sr_item_sk->[ss_item_sk];RF2 sr_ticket_number->[ss_ticket_number] --------------------------------------------PhysicalProject -----------------------------------------------PhysicalOlapScan[store_sales] apply RFs: RF0 RF1 RF2 RF5 RF8 RF9 +----------------------------------------------PhysicalOlapScan[store_sales] apply RFs: RF0 RF1 RF2 RF3 RF4 RF5 RF8 RF9 --------------------------------------------PhysicalProject -----------------------------------------------PhysicalOlapScan[store_returns] apply RFs: RF3 RF4 RF6 +----------------------------------------------PhysicalOlapScan[store_returns] apply RFs: RF3 RF4 RF6 RF8 --------------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------------PhysicalProject ------------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF7 diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query24.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query24.out index 7912023ea7..5f2ab88b0b 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query24.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query24.out @@ -9,7 +9,7 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------PhysicalProject --------------hashJoin[INNER_JOIN] hashCondition=((store.s_zip = customer_address.ca_zip) and (store_sales.ss_store_sk = store.s_store_sk)) otherCondition=() build RFs:RF5 s_zip->[ca_zip];RF6 s_store_sk->[ss_store_sk] ----------------PhysicalProject -------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF4 i_item_sk->[ss_item_sk] +------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF4 i_item_sk->[ss_item_sk,sr_item_sk] --------------------hashJoin[INNER_JOIN] hashCondition=((customer.c_current_addr_sk = customer_address.ca_address_sk)) otherCondition=(( not (c_birth_country = upper(ca_country)))) build RFs:RF3 ca_address_sk->[c_current_addr_sk] ----------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_customer_sk = customer.c_customer_sk)) otherCondition=() build RFs:RF2 c_customer_sk->[ss_customer_sk] ------------------------PhysicalDistribute[DistributionSpecHash] @@ -18,7 +18,7 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------------------PhysicalProject --------------------------------PhysicalOlapScan[store_sales] apply RFs: RF0 RF1 RF2 RF4 RF6 ------------------------------PhysicalProject ---------------------------------PhysicalOlapScan[store_returns] +--------------------------------PhysicalOlapScan[store_returns] apply RFs: RF4 ------------------------PhysicalDistribute[DistributionSpecHash] --------------------------PhysicalProject ----------------------------PhysicalOlapScan[customer] apply RFs: RF3 diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query25.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query25.out index 8a2f034a72..ecfc4cf3f1 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query25.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query25.out @@ -9,7 +9,7 @@ PhysicalResultSink ------------hashAgg[LOCAL] --------------PhysicalProject ----------------hashJoin[INNER_JOIN] hashCondition=((store.s_store_sk = store_sales.ss_store_sk)) otherCondition=() build RFs:RF9 s_store_sk->[ss_store_sk] -------------------hashJoin[INNER_JOIN] hashCondition=((item.i_item_sk = store_sales.ss_item_sk)) otherCondition=() build RFs:RF8 i_item_sk->[ss_item_sk] +------------------hashJoin[INNER_JOIN] hashCondition=((item.i_item_sk = store_sales.ss_item_sk)) otherCondition=() build RFs:RF8 i_item_sk->[ss_item_sk,sr_item_sk] --------------------PhysicalProject ----------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = d3.d_date_sk)) otherCondition=() build RFs:RF7 d_date_sk->[cs_sold_date_sk] ------------------------PhysicalProject @@ -17,14 +17,14 @@ PhysicalResultSink ----------------------------PhysicalProject ------------------------------hashJoin[INNER_JOIN] hashCondition=((d1.d_date_sk = store_sales.ss_sold_date_sk)) otherCondition=() build RFs:RF5 d_date_sk->[ss_sold_date_sk] --------------------------------PhysicalProject -----------------------------------hashJoin[INNER_JOIN] hashCondition=((store_returns.sr_customer_sk = catalog_sales.cs_bill_customer_sk) and (store_returns.sr_item_sk = catalog_sales.cs_item_sk)) otherCondition=() build RFs:RF3 cs_bill_customer_sk->[sr_customer_sk];RF4 cs_item_sk->[sr_item_sk] +----------------------------------hashJoin[INNER_JOIN] hashCondition=((store_returns.sr_customer_sk = catalog_sales.cs_bill_customer_sk) and (store_returns.sr_item_sk = catalog_sales.cs_item_sk)) otherCondition=() build RFs:RF3 cs_bill_customer_sk->[ss_customer_sk,sr_customer_sk];RF4 cs_item_sk->[ss_item_sk,sr_item_sk] ------------------------------------PhysicalDistribute[DistributionSpecHash] --------------------------------------PhysicalProject ----------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_customer_sk = store_returns.sr_customer_sk) and (store_sales.ss_item_sk = store_returns.sr_item_sk) and (store_sales.ss_ticket_number = store_returns.sr_ticket_number)) otherCondition=() build RFs:RF0 sr_customer_sk->[ss_customer_sk];RF1 sr_item_sk->[ss_item_sk];RF2 sr_ticket_number->[ss_ticket_number] ------------------------------------------PhysicalProject ---------------------------------------------PhysicalOlapScan[store_sales] apply RFs: RF0 RF1 RF2 RF5 RF8 RF9 +--------------------------------------------PhysicalOlapScan[store_sales] apply RFs: RF0 RF1 RF2 RF3 RF4 RF5 RF8 RF9 ------------------------------------------PhysicalProject ---------------------------------------------PhysicalOlapScan[store_returns] apply RFs: RF3 RF4 RF6 +--------------------------------------------PhysicalOlapScan[store_returns] apply RFs: RF3 RF4 RF6 RF8 ------------------------------------PhysicalDistribute[DistributionSpecHash] --------------------------------------PhysicalProject ----------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF7 diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query29.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query29.out index 194fb43a5b..f792e648e8 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query29.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query29.out @@ -9,21 +9,21 @@ PhysicalResultSink ------------hashAgg[LOCAL] --------------PhysicalProject ----------------hashJoin[INNER_JOIN] hashCondition=((store.s_store_sk = store_sales.ss_store_sk)) otherCondition=() build RFs:RF9 s_store_sk->[ss_store_sk] -------------------hashJoin[INNER_JOIN] hashCondition=((item.i_item_sk = store_sales.ss_item_sk)) otherCondition=() build RFs:RF8 i_item_sk->[ss_item_sk] +------------------hashJoin[INNER_JOIN] hashCondition=((item.i_item_sk = store_sales.ss_item_sk)) otherCondition=() build RFs:RF8 i_item_sk->[ss_item_sk,sr_item_sk] --------------------PhysicalProject ----------------------hashJoin[INNER_JOIN] hashCondition=((store_returns.sr_returned_date_sk = d2.d_date_sk)) otherCondition=() build RFs:RF7 d_date_sk->[sr_returned_date_sk] ------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = d3.d_date_sk)) otherCondition=() build RFs:RF6 d_date_sk->[cs_sold_date_sk] --------------------------PhysicalProject ----------------------------hashJoin[INNER_JOIN] hashCondition=((d1.d_date_sk = store_sales.ss_sold_date_sk)) otherCondition=() build RFs:RF5 d_date_sk->[ss_sold_date_sk] ------------------------------PhysicalProject ---------------------------------hashJoin[INNER_JOIN] hashCondition=((store_returns.sr_customer_sk = catalog_sales.cs_bill_customer_sk) and (store_returns.sr_item_sk = catalog_sales.cs_item_sk)) otherCondition=() build RFs:RF3 cs_bill_customer_sk->[sr_customer_sk];RF4 cs_item_sk->[sr_item_sk] +--------------------------------hashJoin[INNER_JOIN] hashCondition=((store_returns.sr_customer_sk = catalog_sales.cs_bill_customer_sk) and (store_returns.sr_item_sk = catalog_sales.cs_item_sk)) otherCondition=() build RFs:RF3 cs_bill_customer_sk->[ss_customer_sk,sr_customer_sk];RF4 cs_item_sk->[ss_item_sk,sr_item_sk] ----------------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------------PhysicalProject --------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_customer_sk = store_returns.sr_customer_sk) and (store_sales.ss_item_sk = store_returns.sr_item_sk) and (store_sales.ss_ticket_number = store_returns.sr_ticket_number)) otherCondition=() build RFs:RF0 sr_customer_sk->[ss_customer_sk];RF1 sr_item_sk->[ss_item_sk];RF2 sr_ticket_number->[ss_ticket_number] ----------------------------------------PhysicalProject -------------------------------------------PhysicalOlapScan[store_sales] apply RFs: RF0 RF1 RF2 RF5 RF8 RF9 +------------------------------------------PhysicalOlapScan[store_sales] apply RFs: RF0 RF1 RF2 RF3 RF4 RF5 RF8 RF9 ----------------------------------------PhysicalProject -------------------------------------------PhysicalOlapScan[store_returns] apply RFs: RF3 RF4 RF7 +------------------------------------------PhysicalOlapScan[store_returns] apply RFs: RF3 RF4 RF7 RF8 ----------------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------------PhysicalProject --------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF6 diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query58.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query58.out index f6e88adcc4..a449bf2add 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query58.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query58.out @@ -6,7 +6,7 @@ PhysicalResultSink ------PhysicalDistribute[DistributionSpecGather] --------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))) build RFs:RF13 item_id->[i_item_id] +------------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))) build RFs:RF13 item_id->[i_item_id,i_item_id] --------------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((0.9 * ss_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))) build RFs:RF12 item_id->[i_item_id] ------------------PhysicalProject @@ -52,7 +52,7 @@ PhysicalResultSink ------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF6 RF7 ----------------------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------------------PhysicalProject ---------------------------------------PhysicalOlapScan[item] +--------------------------------------PhysicalOlapScan[item] apply RFs: RF13 ------------------------------PhysicalDistribute[DistributionSpecReplicated] --------------------------------PhysicalProject ----------------------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((date_dim.d_date = date_dim.d_date)) otherCondition=() build RFs:RF5 d_date->[d_date] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query64.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query64.out index 62538dde90..2caec5e3f9 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query64.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query64.out @@ -5,7 +5,7 @@ PhysicalCteAnchor ( cteId=CTEId#1 ) ----PhysicalProject ------hashAgg[LOCAL] --------PhysicalProject -----------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = cs_ui.cs_item_sk)) otherCondition=() build RFs:RF19 cs_item_sk->[ss_item_sk] +----------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = cs_ui.cs_item_sk)) otherCondition=() build RFs:RF19 cs_item_sk->[ss_item_sk,i_item_sk,sr_item_sk] ------------PhysicalProject --------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_promo_sk = promotion.p_promo_sk)) otherCondition=() build RFs:RF18 p_promo_sk->[ss_promo_sk] ----------------PhysicalProject @@ -23,7 +23,7 @@ PhysicalCteAnchor ( cteId=CTEId#1 ) ----------------------------------------PhysicalProject ------------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_store_sk = store.s_store_sk)) otherCondition=() build RFs:RF11 s_store_sk->[ss_store_sk] --------------------------------------------PhysicalProject -----------------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = store_returns.sr_item_sk) and (store_sales.ss_ticket_number = store_returns.sr_ticket_number)) otherCondition=() build RFs:RF9 sr_item_sk->[ss_item_sk];RF10 sr_ticket_number->[ss_ticket_number] +----------------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = store_returns.sr_item_sk) and (store_sales.ss_ticket_number = store_returns.sr_ticket_number)) otherCondition=() build RFs:RF9 sr_item_sk->[ss_item_sk,i_item_sk];RF10 sr_ticket_number->[ss_ticket_number] ------------------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF8 i_item_sk->[ss_item_sk] --------------------------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------------------------PhysicalProject @@ -64,10 +64,10 @@ PhysicalCteAnchor ( cteId=CTEId#1 ) --------------------------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------------------------PhysicalProject ------------------------------------------------------filter((item.i_current_price <= 33.00) and (item.i_current_price >= 24.00) and i_color IN ('blanched', 'brown', 'burlywood', 'chocolate', 'drab', 'medium')) ---------------------------------------------------------PhysicalOlapScan[item] +--------------------------------------------------------PhysicalOlapScan[item] apply RFs: RF9 RF19 ------------------------------------------------PhysicalDistribute[DistributionSpecHash] --------------------------------------------------PhysicalProject -----------------------------------------------------PhysicalOlapScan[store_returns] +----------------------------------------------------PhysicalOlapScan[store_returns] apply RFs: RF19 --------------------------------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------------------------------PhysicalProject ------------------------------------------------PhysicalOlapScan[store] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query65.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query65.out index b2ccb8ef10..76324a3ac4 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query65.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query65.out @@ -5,7 +5,7 @@ PhysicalResultSink ----PhysicalDistribute[DistributionSpecGather] ------PhysicalTopN[LOCAL_SORT] --------PhysicalProject -----------hashJoin[INNER_JOIN] hashCondition=((sb.ss_store_sk = sc.ss_store_sk)) otherCondition=((cast(revenue as DOUBLE) <= cast((0.1 * ave) as DOUBLE))) build RFs:RF4 ss_store_sk->[ss_store_sk] +----------hashJoin[INNER_JOIN] hashCondition=((sb.ss_store_sk = sc.ss_store_sk)) otherCondition=((cast(revenue as DOUBLE) <= cast((0.1 * ave) as DOUBLE))) build RFs:RF4 ss_store_sk->[s_store_sk,ss_store_sk] ------------PhysicalProject --------------hashJoin[INNER_JOIN] hashCondition=((store.s_store_sk = sc.ss_store_sk)) otherCondition=() build RFs:RF3 s_store_sk->[ss_store_sk] ----------------PhysicalDistribute[DistributionSpecHash] @@ -26,7 +26,7 @@ PhysicalResultSink ------------------------PhysicalOlapScan[item] ----------------PhysicalDistribute[DistributionSpecHash] ------------------PhysicalProject ---------------------PhysicalOlapScan[store] +--------------------PhysicalOlapScan[store] apply RFs: RF4 ------------hashAgg[GLOBAL] --------------PhysicalDistribute[DistributionSpecHash] ----------------hashAgg[LOCAL] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query72.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query72.out index 982d6d30c8..c57ed5119f 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query72.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query72.out @@ -17,13 +17,13 @@ PhysicalResultSink ----------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = d1.d_date_sk) and (d1.d_week_seq = d2.d_week_seq)) otherCondition=() build RFs:RF4 d_week_seq->[d_week_seq];RF5 d_date_sk->[cs_sold_date_sk] ------------------------------hashJoin[INNER_JOIN] hashCondition=((inventory.inv_date_sk = d2.d_date_sk)) otherCondition=() build RFs:RF3 d_date_sk->[inv_date_sk] --------------------------------PhysicalProject -----------------------------------hashJoin[INNER_JOIN] hashCondition=((item.i_item_sk = catalog_sales.cs_item_sk)) otherCondition=() build RFs:RF2 i_item_sk->[cs_item_sk] +----------------------------------hashJoin[INNER_JOIN] hashCondition=((item.i_item_sk = catalog_sales.cs_item_sk)) otherCondition=() build RFs:RF2 i_item_sk->[cs_item_sk,inv_item_sk] ------------------------------------PhysicalProject --------------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_bill_cdemo_sk = customer_demographics.cd_demo_sk)) otherCondition=() build RFs:RF1 cd_demo_sk->[cs_bill_cdemo_sk] ----------------------------------------PhysicalProject ------------------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_item_sk = inventory.inv_item_sk)) otherCondition=((inventory.inv_quantity_on_hand < catalog_sales.cs_quantity)) build RFs:RF0 cs_item_sk->[inv_item_sk] --------------------------------------------PhysicalDistribute[DistributionSpecHash] -----------------------------------------------PhysicalOlapScan[inventory] apply RFs: RF0 RF3 RF8 +----------------------------------------------PhysicalOlapScan[inventory] apply RFs: RF0 RF2 RF3 RF8 --------------------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------------------hashJoin[LEFT_OUTER_JOIN] hashCondition=((catalog_returns.cr_item_sk = catalog_sales.cs_item_sk) and (catalog_returns.cr_order_number = catalog_sales.cs_order_number)) otherCondition=() ------------------------------------------------hashJoin[LEFT_OUTER_JOIN] hashCondition=((catalog_sales.cs_promo_sk = promotion.p_promo_sk)) otherCondition=() diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query83.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query83.out index 500b145c00..67079c2635 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query83.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query83.out @@ -6,7 +6,7 @@ PhysicalResultSink ------PhysicalDistribute[DistributionSpecGather] --------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject -------------hashJoin[INNER_JOIN] hashCondition=((sr_items.item_id = wr_items.item_id)) otherCondition=() build RFs:RF13 item_id->[i_item_id] +------------hashJoin[INNER_JOIN] hashCondition=((sr_items.item_id = wr_items.item_id)) otherCondition=() build RFs:RF13 item_id->[i_item_id,i_item_id] --------------PhysicalProject ----------------hashJoin[INNER_JOIN] hashCondition=((sr_items.item_id = cr_items.item_id)) otherCondition=() build RFs:RF12 item_id->[i_item_id] ------------------PhysicalProject @@ -49,7 +49,7 @@ PhysicalResultSink ------------------------------------PhysicalOlapScan[catalog_returns] apply RFs: RF6 RF7 ----------------------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------------------PhysicalProject ---------------------------------------PhysicalOlapScan[item] +--------------------------------------PhysicalOlapScan[item] apply RFs: RF13 ------------------------------PhysicalDistribute[DistributionSpecReplicated] --------------------------------PhysicalProject ----------------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((date_dim.d_date = date_dim.d_date)) otherCondition=() build RFs:RF5 d_date->[d_date] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query95.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query95.out index 1ce11a6c98..c977812d0a 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query95.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query95.out @@ -26,7 +26,7 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ----------------------hashJoin[INNER_JOIN] hashCondition=((ws1.ws_web_site_sk = web_site.web_site_sk)) otherCondition=() build RFs:RF5 web_site_sk->[ws_web_site_sk] ------------------------hashJoin[INNER_JOIN] hashCondition=((ws1.ws_ship_addr_sk = customer_address.ca_address_sk)) otherCondition=() build RFs:RF4 ca_address_sk->[ws_ship_addr_sk] --------------------------hashJoin[INNER_JOIN] hashCondition=((ws1.ws_ship_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF3 d_date_sk->[ws_ship_date_sk] -----------------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((ws1.ws_order_number = web_returns.wr_order_number)) otherCondition=() build RFs:RF2 ws_order_number->[wr_order_number] +----------------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((ws1.ws_order_number = web_returns.wr_order_number)) otherCondition=() build RFs:RF2 ws_order_number->[ws_order_number,wr_order_number] ------------------------------PhysicalProject --------------------------------hashJoin[INNER_JOIN] hashCondition=((web_returns.wr_order_number = ws_wh.ws_order_number)) otherCondition=() build RFs:RF1 wr_order_number->[ws_order_number] ----------------------------------PhysicalDistribute[DistributionSpecHash] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query64.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query64.out index f7fa3929c9..5443c04d5c 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query64.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query64.out @@ -11,7 +11,7 @@ PhysicalCteAnchor ( cteId=CTEId#1 ) ----------------PhysicalProject ------------------hashJoin[INNER_JOIN] hashCondition=((customer.c_first_sales_date_sk = d2.d_date_sk)) otherCondition=() --------------------PhysicalProject -----------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_customer_sk = customer.c_customer_sk)) otherCondition=(( not (cd_marital_status = cd_marital_status))) build RFs:RF17 ss_customer_sk->[c_customer_sk] +----------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_customer_sk = customer.c_customer_sk)) otherCondition=(( not (cd_marital_status = cd_marital_status))) build RFs:RF18 ss_customer_sk->[c_customer_sk] ------------------------PhysicalDistribute[DistributionSpecHash] --------------------------PhysicalProject ----------------------------hashJoin[INNER_JOIN] hashCondition=((customer.c_current_addr_sk = ad2.ca_address_sk)) otherCondition=() @@ -22,7 +22,7 @@ PhysicalCteAnchor ( cteId=CTEId#1 ) --------------------------------------PhysicalProject ----------------------------------------hashJoin[INNER_JOIN] hashCondition=((customer.c_current_hdemo_sk = hd2.hd_demo_sk)) otherCondition=() ------------------------------------------PhysicalProject ---------------------------------------------PhysicalOlapScan[customer] apply RFs: RF17 +--------------------------------------------PhysicalOlapScan[customer] apply RFs: RF18 ------------------------------------------PhysicalDistribute[DistributionSpecReplicated] --------------------------------------------PhysicalProject ----------------------------------------------hashJoin[INNER_JOIN] hashCondition=((hd2.hd_income_band_sk = ib2.ib_income_band_sk)) otherCondition=() @@ -39,24 +39,24 @@ PhysicalCteAnchor ( cteId=CTEId#1 ) ----------------------------------PhysicalOlapScan[customer_address] ------------------------PhysicalDistribute[DistributionSpecHash] --------------------------PhysicalProject -----------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = store_returns.sr_item_sk) and (store_sales.ss_ticket_number = store_returns.sr_ticket_number)) otherCondition=() build RFs:RF11 ss_item_sk->[sr_item_sk];RF12 ss_ticket_number->[sr_ticket_number] +----------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = store_returns.sr_item_sk) and (store_sales.ss_ticket_number = store_returns.sr_ticket_number)) otherCondition=() build RFs:RF12 ss_item_sk->[sr_item_sk];RF13 ss_ticket_number->[sr_ticket_number] ------------------------------PhysicalProject ---------------------------------PhysicalOlapScan[store_returns] apply RFs: RF11 RF12 +--------------------------------PhysicalOlapScan[store_returns] apply RFs: RF12 RF13 ------------------------------PhysicalDistribute[DistributionSpecHash] --------------------------------PhysicalProject ----------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_promo_sk = promotion.p_promo_sk)) otherCondition=() ------------------------------------PhysicalProject ---------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_cdemo_sk = cd1.cd_demo_sk)) otherCondition=() build RFs:RF9 ss_cdemo_sk->[cd_demo_sk] +--------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_cdemo_sk = cd1.cd_demo_sk)) otherCondition=() build RFs:RF10 ss_cdemo_sk->[cd_demo_sk] ----------------------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------------------PhysicalProject ---------------------------------------------PhysicalOlapScan[customer_demographics] apply RFs: RF9 +--------------------------------------------PhysicalOlapScan[customer_demographics] apply RFs: RF10 ----------------------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------------------PhysicalProject ---------------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_addr_sk = ad1.ca_address_sk)) otherCondition=() build RFs:RF8 ss_addr_sk->[ca_address_sk] +--------------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_addr_sk = ad1.ca_address_sk)) otherCondition=() build RFs:RF9 ss_addr_sk->[ca_address_sk] ----------------------------------------------PhysicalProject -------------------------------------------------PhysicalOlapScan[customer_address] apply RFs: RF8 +------------------------------------------------PhysicalOlapScan[customer_address] apply RFs: RF9 ----------------------------------------------PhysicalDistribute[DistributionSpecHash] -------------------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF7 i_item_sk->[ss_item_sk] +------------------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF7 i_item_sk->[ss_item_sk];RF8 i_item_sk->[cs_item_sk] --------------------------------------------------PhysicalProject ----------------------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_store_sk = store.s_store_sk)) otherCondition=() ------------------------------------------------------PhysicalProject @@ -78,7 +78,7 @@ PhysicalCteAnchor ( cteId=CTEId#1 ) ----------------------------------------------------------------------------------PhysicalProject ------------------------------------------------------------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_item_sk = catalog_returns.cr_item_sk) and (catalog_sales.cs_order_number = catalog_returns.cr_order_number)) otherCondition=() build RFs:RF0 cr_order_number->[cs_order_number];RF1 cr_item_sk->[cs_item_sk] --------------------------------------------------------------------------------------PhysicalProject -----------------------------------------------------------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF0 RF1 +----------------------------------------------------------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF0 RF1 RF8 --------------------------------------------------------------------------------------PhysicalProject ----------------------------------------------------------------------------------------PhysicalOlapScan[catalog_returns] ------------------------------------------------------------------PhysicalDistribute[DistributionSpecReplicated] 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 fcccba6021..38b1118083 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 @@ -22,7 +22,7 @@ PhysicalResultSink --------------------PhysicalProject ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------hashJoin[INNER_JOIN] hashCondition=((store.s_store_sk = store_sales.ss_store_sk)) otherCondition=() build RFs:RF6 s_store_sk->[ss_store_sk] ---------------------------hashJoin[INNER_JOIN] hashCondition=((item.i_item_sk = store_sales.ss_item_sk)) otherCondition=() build RFs:RF5 i_item_sk->[ss_item_sk] +--------------------------hashJoin[INNER_JOIN] hashCondition=((item.i_item_sk = store_sales.ss_item_sk)) otherCondition=() build RFs:RF5 i_item_sk->[ss_item_sk,sr_item_sk] ----------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------PhysicalProject --------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_customer_sk = store_returns.sr_customer_sk) and (store_sales.ss_item_sk = store_returns.sr_item_sk) and (store_sales.ss_ticket_number = store_returns.sr_ticket_number)) otherCondition=() build RFs:RF2 sr_customer_sk->[ss_customer_sk];RF3 sr_item_sk->[ss_item_sk];RF4 sr_ticket_number->[ss_ticket_number] @@ -35,7 +35,7 @@ PhysicalResultSink ------------------------------------------PhysicalOlapScan[date_dim] ----------------------------------hashJoin[INNER_JOIN] hashCondition=((store_returns.sr_returned_date_sk = d2.d_date_sk)) otherCondition=() build RFs:RF0 d_date_sk->[sr_returned_date_sk] ------------------------------------PhysicalProject ---------------------------------------PhysicalOlapScan[store_returns] apply RFs: RF0 +--------------------------------------PhysicalOlapScan[store_returns] apply RFs: RF0 RF5 ------------------------------------PhysicalDistribute[DistributionSpecReplicated] --------------------------------------PhysicalProject ----------------------------------------filter(d_quarter_name IN ('2001Q1', '2001Q2', '2001Q3')) 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 ff1ea2cb66..479424affd 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 @@ -7,7 +7,7 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------PhysicalDistribute[DistributionSpecHash] ----------hashAgg[LOCAL] ------------PhysicalProject ---------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = store_returns.sr_item_sk) and (store_sales.ss_ticket_number = store_returns.sr_ticket_number)) otherCondition=() build RFs:RF5 sr_item_sk->[ss_item_sk];RF6 sr_ticket_number->[ss_ticket_number] +--------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = store_returns.sr_item_sk) and (store_sales.ss_ticket_number = store_returns.sr_ticket_number)) otherCondition=() build RFs:RF5 sr_item_sk->[i_item_sk,ss_item_sk];RF6 sr_ticket_number->[ss_ticket_number] ----------------PhysicalProject ------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF4 i_item_sk->[ss_item_sk] --------------------PhysicalDistribute[DistributionSpecHash] @@ -31,7 +31,7 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------------------------PhysicalOlapScan[customer_address] --------------------PhysicalDistribute[DistributionSpecHash] ----------------------PhysicalProject -------------------------PhysicalOlapScan[item] +------------------------PhysicalOlapScan[item] apply RFs: RF5 ----------------PhysicalDistribute[DistributionSpecHash] ------------------PhysicalProject --------------------PhysicalOlapScan[store_returns] 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 f03e994d14..62c752c60c 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 @@ -21,7 +21,7 @@ PhysicalResultSink ------------------PhysicalProject --------------------PhysicalDistribute[DistributionSpecHash] ----------------------hashJoin[INNER_JOIN] hashCondition=((store.s_store_sk = store_sales.ss_store_sk)) otherCondition=() build RFs:RF6 s_store_sk->[ss_store_sk] -------------------------hashJoin[INNER_JOIN] hashCondition=((item.i_item_sk = store_sales.ss_item_sk)) otherCondition=() build RFs:RF5 i_item_sk->[ss_item_sk] +------------------------hashJoin[INNER_JOIN] hashCondition=((item.i_item_sk = store_sales.ss_item_sk)) otherCondition=() build RFs:RF5 i_item_sk->[ss_item_sk,sr_item_sk] --------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------PhysicalProject ------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_customer_sk = store_returns.sr_customer_sk) and (store_sales.ss_item_sk = store_returns.sr_item_sk) and (store_sales.ss_ticket_number = store_returns.sr_ticket_number)) otherCondition=() build RFs:RF2 sr_customer_sk->[ss_customer_sk];RF3 sr_item_sk->[ss_item_sk];RF4 sr_ticket_number->[ss_ticket_number] @@ -34,7 +34,7 @@ PhysicalResultSink ----------------------------------------PhysicalOlapScan[date_dim] --------------------------------hashJoin[INNER_JOIN] hashCondition=((store_returns.sr_returned_date_sk = d2.d_date_sk)) otherCondition=() build RFs:RF0 d_date_sk->[sr_returned_date_sk] ----------------------------------PhysicalProject -------------------------------------PhysicalOlapScan[store_returns] apply RFs: RF0 +------------------------------------PhysicalOlapScan[store_returns] apply RFs: RF0 RF5 ----------------------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------------------PhysicalProject --------------------------------------filter((d2.d_moy <= 10) and (d2.d_moy >= 4) and (d2.d_year = 2000)) 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 c7a67607b9..8599680688 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 @@ -15,7 +15,7 @@ PhysicalResultSink ------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF7 RF8 RF9 ----------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------hashJoin[INNER_JOIN] hashCondition=((store.s_store_sk = store_sales.ss_store_sk)) otherCondition=() build RFs:RF6 s_store_sk->[ss_store_sk] ---------------------------hashJoin[INNER_JOIN] hashCondition=((item.i_item_sk = store_sales.ss_item_sk)) otherCondition=() build RFs:RF5 i_item_sk->[ss_item_sk] +--------------------------hashJoin[INNER_JOIN] hashCondition=((item.i_item_sk = store_sales.ss_item_sk)) otherCondition=() build RFs:RF5 i_item_sk->[ss_item_sk,sr_item_sk] ----------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------PhysicalProject --------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_customer_sk = store_returns.sr_customer_sk) and (store_sales.ss_item_sk = store_returns.sr_item_sk) and (store_sales.ss_ticket_number = store_returns.sr_ticket_number)) otherCondition=() build RFs:RF2 sr_customer_sk->[ss_customer_sk];RF3 sr_item_sk->[ss_item_sk];RF4 sr_ticket_number->[ss_ticket_number] @@ -28,7 +28,7 @@ PhysicalResultSink ------------------------------------------PhysicalOlapScan[date_dim] ----------------------------------hashJoin[INNER_JOIN] hashCondition=((store_returns.sr_returned_date_sk = d2.d_date_sk)) otherCondition=() build RFs:RF0 d_date_sk->[sr_returned_date_sk] ------------------------------------PhysicalProject ---------------------------------------PhysicalOlapScan[store_returns] apply RFs: RF0 +--------------------------------------PhysicalOlapScan[store_returns] apply RFs: RF0 RF5 ------------------------------------PhysicalDistribute[DistributionSpecReplicated] --------------------------------------PhysicalProject ----------------------------------------filter((d2.d_moy <= 7) and (d2.d_moy >= 4) and (d2.d_year = 1999)) 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 e43185203b..55860e7b0b 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 @@ -7,27 +7,27 @@ PhysicalCteAnchor ( cteId=CTEId#1 ) --------PhysicalDistribute[DistributionSpecHash] ----------hashAgg[LOCAL] ------------PhysicalProject ---------------hashJoin[INNER_JOIN] hashCondition=((customer.c_first_shipto_date_sk = d3.d_date_sk)) otherCondition=() build RFs:RF19 d_date_sk->[c_first_shipto_date_sk] +--------------hashJoin[INNER_JOIN] hashCondition=((customer.c_first_shipto_date_sk = d3.d_date_sk)) otherCondition=() build RFs:RF20 d_date_sk->[c_first_shipto_date_sk] ----------------PhysicalProject -------------------hashJoin[INNER_JOIN] hashCondition=((customer.c_first_sales_date_sk = d2.d_date_sk)) otherCondition=() build RFs:RF18 d_date_sk->[c_first_sales_date_sk] +------------------hashJoin[INNER_JOIN] hashCondition=((customer.c_first_sales_date_sk = d2.d_date_sk)) otherCondition=() build RFs:RF19 d_date_sk->[c_first_sales_date_sk] --------------------PhysicalProject -----------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_customer_sk = customer.c_customer_sk)) otherCondition=(( not (cd_marital_status = cd_marital_status))) build RFs:RF17 ss_customer_sk->[c_customer_sk] +----------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_customer_sk = customer.c_customer_sk)) otherCondition=(( not (cd_marital_status = cd_marital_status))) build RFs:RF18 ss_customer_sk->[c_customer_sk] ------------------------PhysicalDistribute[DistributionSpecHash] --------------------------PhysicalProject -----------------------------hashJoin[INNER_JOIN] hashCondition=((customer.c_current_addr_sk = ad2.ca_address_sk)) otherCondition=() build RFs:RF16 ca_address_sk->[c_current_addr_sk] +----------------------------hashJoin[INNER_JOIN] hashCondition=((customer.c_current_addr_sk = ad2.ca_address_sk)) otherCondition=() build RFs:RF17 ca_address_sk->[c_current_addr_sk] ------------------------------PhysicalDistribute[DistributionSpecHash] --------------------------------PhysicalProject -----------------------------------hashJoin[INNER_JOIN] hashCondition=((customer.c_current_cdemo_sk = cd2.cd_demo_sk)) otherCondition=() build RFs:RF15 cd_demo_sk->[c_current_cdemo_sk] +----------------------------------hashJoin[INNER_JOIN] hashCondition=((customer.c_current_cdemo_sk = cd2.cd_demo_sk)) otherCondition=() build RFs:RF16 cd_demo_sk->[c_current_cdemo_sk] ------------------------------------PhysicalDistribute[DistributionSpecHash] --------------------------------------PhysicalProject -----------------------------------------hashJoin[INNER_JOIN] hashCondition=((customer.c_current_hdemo_sk = hd2.hd_demo_sk)) otherCondition=() build RFs:RF14 hd_demo_sk->[c_current_hdemo_sk] +----------------------------------------hashJoin[INNER_JOIN] hashCondition=((customer.c_current_hdemo_sk = hd2.hd_demo_sk)) otherCondition=() build RFs:RF15 hd_demo_sk->[c_current_hdemo_sk] ------------------------------------------PhysicalProject ---------------------------------------------PhysicalOlapScan[customer] apply RFs: RF14 RF15 RF16 RF17 RF18 RF19 +--------------------------------------------PhysicalOlapScan[customer] apply RFs: RF15 RF16 RF17 RF18 RF19 RF20 ------------------------------------------PhysicalDistribute[DistributionSpecReplicated] --------------------------------------------PhysicalProject -----------------------------------------------hashJoin[INNER_JOIN] hashCondition=((hd2.hd_income_band_sk = ib2.ib_income_band_sk)) otherCondition=() build RFs:RF13 ib_income_band_sk->[hd_income_band_sk] +----------------------------------------------hashJoin[INNER_JOIN] hashCondition=((hd2.hd_income_band_sk = ib2.ib_income_band_sk)) otherCondition=() build RFs:RF14 ib_income_band_sk->[hd_income_band_sk] ------------------------------------------------PhysicalProject ---------------------------------------------------PhysicalOlapScan[household_demographics] apply RFs: RF13 +--------------------------------------------------PhysicalOlapScan[household_demographics] apply RFs: RF14 ------------------------------------------------PhysicalDistribute[DistributionSpecReplicated] --------------------------------------------------PhysicalProject ----------------------------------------------------PhysicalOlapScan[income_band] @@ -39,24 +39,24 @@ PhysicalCteAnchor ( cteId=CTEId#1 ) ----------------------------------PhysicalOlapScan[customer_address] ------------------------PhysicalDistribute[DistributionSpecHash] --------------------------PhysicalProject -----------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = store_returns.sr_item_sk) and (store_sales.ss_ticket_number = store_returns.sr_ticket_number)) otherCondition=() build RFs:RF11 ss_item_sk->[sr_item_sk];RF12 ss_ticket_number->[sr_ticket_number] +----------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = store_returns.sr_item_sk) and (store_sales.ss_ticket_number = store_returns.sr_ticket_number)) otherCondition=() build RFs:RF12 ss_item_sk->[sr_item_sk];RF13 ss_ticket_number->[sr_ticket_number] ------------------------------PhysicalProject ---------------------------------PhysicalOlapScan[store_returns] apply RFs: RF11 RF12 +--------------------------------PhysicalOlapScan[store_returns] apply RFs: RF12 RF13 ------------------------------PhysicalDistribute[DistributionSpecHash] --------------------------------PhysicalProject -----------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_promo_sk = promotion.p_promo_sk)) otherCondition=() build RFs:RF10 p_promo_sk->[ss_promo_sk] +----------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_promo_sk = promotion.p_promo_sk)) otherCondition=() build RFs:RF11 p_promo_sk->[ss_promo_sk] ------------------------------------PhysicalProject ---------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_cdemo_sk = cd1.cd_demo_sk)) otherCondition=() build RFs:RF9 ss_cdemo_sk->[cd_demo_sk] +--------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_cdemo_sk = cd1.cd_demo_sk)) otherCondition=() build RFs:RF10 ss_cdemo_sk->[cd_demo_sk] ----------------------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------------------PhysicalProject ---------------------------------------------PhysicalOlapScan[customer_demographics] apply RFs: RF9 +--------------------------------------------PhysicalOlapScan[customer_demographics] apply RFs: RF10 ----------------------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------------------PhysicalProject ---------------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_addr_sk = ad1.ca_address_sk)) otherCondition=() build RFs:RF8 ss_addr_sk->[ca_address_sk] +--------------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_addr_sk = ad1.ca_address_sk)) otherCondition=() build RFs:RF9 ss_addr_sk->[ca_address_sk] ----------------------------------------------PhysicalProject -------------------------------------------------PhysicalOlapScan[customer_address] apply RFs: RF8 +------------------------------------------------PhysicalOlapScan[customer_address] apply RFs: RF9 ----------------------------------------------PhysicalDistribute[DistributionSpecHash] -------------------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF7 i_item_sk->[ss_item_sk] +------------------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF7 i_item_sk->[ss_item_sk];RF8 i_item_sk->[cs_item_sk] --------------------------------------------------PhysicalProject ----------------------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_store_sk = store.s_store_sk)) otherCondition=() build RFs:RF6 s_store_sk->[ss_store_sk] ------------------------------------------------------PhysicalProject @@ -68,7 +68,7 @@ PhysicalCteAnchor ( cteId=CTEId#1 ) ------------------------------------------------------------------PhysicalProject --------------------------------------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = cs_ui.cs_item_sk)) otherCondition=() build RFs:RF2 cs_item_sk->[ss_item_sk] ----------------------------------------------------------------------PhysicalProject -------------------------------------------------------------------------PhysicalOlapScan[store_sales] apply RFs: RF2 RF3 RF4 RF6 RF7 RF10 +------------------------------------------------------------------------PhysicalOlapScan[store_sales] apply RFs: RF2 RF3 RF4 RF6 RF7 RF11 ----------------------------------------------------------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------------------------------------------------------PhysicalProject --------------------------------------------------------------------------filter((sale > (2 * refund))) @@ -78,7 +78,7 @@ PhysicalCteAnchor ( cteId=CTEId#1 ) ----------------------------------------------------------------------------------PhysicalProject ------------------------------------------------------------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_item_sk = catalog_returns.cr_item_sk) and (catalog_sales.cs_order_number = catalog_returns.cr_order_number)) otherCondition=() build RFs:RF0 cr_order_number->[cs_order_number];RF1 cr_item_sk->[cs_item_sk] --------------------------------------------------------------------------------------PhysicalProject -----------------------------------------------------------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF0 RF1 +----------------------------------------------------------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF0 RF1 RF8 --------------------------------------------------------------------------------------PhysicalProject ----------------------------------------------------------------------------------------PhysicalOlapScan[catalog_returns] ------------------------------------------------------------------PhysicalDistribute[DistributionSpecReplicated] 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 224a3efc91..b08b5de695 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 @@ -5,7 +5,7 @@ PhysicalResultSink ----PhysicalDistribute[DistributionSpecGather] ------PhysicalTopN[LOCAL_SORT] --------PhysicalProject -----------hashJoin[INNER_JOIN] hashCondition=((store.s_store_sk = sc.ss_store_sk)) otherCondition=() build RFs:RF4 s_store_sk->[ss_store_sk] +----------hashJoin[INNER_JOIN] hashCondition=((store.s_store_sk = sc.ss_store_sk)) otherCondition=() build RFs:RF4 s_store_sk->[ss_store_sk,ss_store_sk] ------------PhysicalProject --------------hashJoin[INNER_JOIN] hashCondition=((item.i_item_sk = sc.ss_item_sk)) otherCondition=() build RFs:RF3 i_item_sk->[ss_item_sk] ----------------PhysicalDistribute[DistributionSpecHash] @@ -32,7 +32,7 @@ PhysicalResultSink ------------------------------------PhysicalProject --------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF0 d_date_sk->[ss_sold_date_sk] ----------------------------------------PhysicalProject -------------------------------------------PhysicalOlapScan[store_sales] apply RFs: RF0 +------------------------------------------PhysicalOlapScan[store_sales] apply RFs: RF0 RF4 ----------------------------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------------------------PhysicalProject --------------------------------------------filter((date_dim.d_month_seq <= 1232) and (date_dim.d_month_seq >= 1221)) diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q20-rewrite.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q20-rewrite.out index 12ae602cc2..69ad0ace65 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q20-rewrite.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q20-rewrite.out @@ -7,7 +7,7 @@ PhysicalResultSink --------PhysicalProject ----------hashJoin[INNER_JOIN] hashCondition=((supplier.s_nationkey = nation.n_nationkey)) otherCondition=() build RFs:RF4 n_nationkey->[s_nationkey] ------------PhysicalProject ---------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((supplier.s_suppkey = t3.ps_suppkey)) otherCondition=() build RFs:RF3 s_suppkey->[ps_suppkey] +--------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((supplier.s_suppkey = t3.ps_suppkey)) otherCondition=() build RFs:RF3 s_suppkey->[ps_suppkey,l_suppkey] ----------------PhysicalDistribute[DistributionSpecHash] ------------------PhysicalProject --------------------hashJoin[INNER_JOIN] hashCondition=((t2.l_partkey = t1.ps_partkey) and (t2.l_suppkey = t1.ps_suppkey)) otherCondition=((cast(ps_availqty as DECIMALV3(38, 3)) > t2.l_q)) build RFs:RF1 ps_partkey->[l_partkey];RF2 ps_suppkey->[l_suppkey] @@ -17,7 +17,7 @@ PhysicalResultSink ----------------------------hashAgg[LOCAL] ------------------------------PhysicalProject --------------------------------filter((lineitem.l_shipdate < '1995-01-01') and (lineitem.l_shipdate >= '1994-01-01')) -----------------------------------PhysicalOlapScan[lineitem] apply RFs: RF1 RF2 +----------------------------------PhysicalOlapScan[lineitem] apply RFs: RF1 RF2 RF3 ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((partsupp.ps_partkey = part.p_partkey)) otherCondition=() build RFs:RF0 p_partkey->[ps_partkey] --------------------------PhysicalProject diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q20.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q20.out index 0be3690736..a8a7aba201 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q20.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q20.out @@ -7,7 +7,7 @@ PhysicalResultSink --------PhysicalProject ----------hashJoin[INNER_JOIN] hashCondition=((supplier.s_nationkey = nation.n_nationkey)) otherCondition=() build RFs:RF4 n_nationkey->[s_nationkey] ------------PhysicalProject ---------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((supplier.s_suppkey = partsupp.ps_suppkey)) otherCondition=() build RFs:RF3 s_suppkey->[ps_suppkey] +--------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((supplier.s_suppkey = partsupp.ps_suppkey)) otherCondition=() build RFs:RF3 s_suppkey->[ps_suppkey,l_suppkey] ----------------PhysicalDistribute[DistributionSpecHash] ------------------PhysicalProject --------------------hashJoin[INNER_JOIN] hashCondition=((lineitem.l_partkey = partsupp.ps_partkey) and (lineitem.l_suppkey = partsupp.ps_suppkey)) otherCondition=((cast(ps_availqty as DECIMALV3(38, 3)) > (0.5 * sum(l_quantity)))) build RFs:RF1 ps_partkey->[l_partkey];RF2 ps_suppkey->[l_suppkey] @@ -16,7 +16,7 @@ PhysicalResultSink --------------------------hashAgg[LOCAL] ----------------------------PhysicalProject ------------------------------filter((lineitem.l_shipdate < '1995-01-01') and (lineitem.l_shipdate >= '1994-01-01')) ---------------------------------PhysicalOlapScan[lineitem] apply RFs: RF1 RF2 +--------------------------------PhysicalOlapScan[lineitem] apply RFs: RF1 RF2 RF3 ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((partsupp.ps_partkey = part.p_partkey)) otherCondition=() build RFs:RF0 p_partkey->[ps_partkey] --------------------------PhysicalProject diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q5.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q5.out index 7a89beaeb2..f3053b41c7 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q5.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q5.out @@ -10,7 +10,7 @@ PhysicalResultSink --------------PhysicalProject ----------------hashJoin[INNER_JOIN] hashCondition=((nation.n_regionkey = region.r_regionkey)) otherCondition=() build RFs:RF5 r_regionkey->[n_regionkey] ------------------PhysicalProject ---------------------hashJoin[INNER_JOIN] hashCondition=((supplier.s_nationkey = nation.n_nationkey)) otherCondition=() build RFs:RF4 n_nationkey->[s_nationkey] +--------------------hashJoin[INNER_JOIN] hashCondition=((supplier.s_nationkey = nation.n_nationkey)) otherCondition=() build RFs:RF4 n_nationkey->[s_nationkey,c_nationkey] ----------------------PhysicalProject ------------------------hashJoin[INNER_JOIN] hashCondition=((customer.c_nationkey = supplier.s_nationkey) and (lineitem.l_suppkey = supplier.s_suppkey)) otherCondition=() build RFs:RF2 s_suppkey->[l_suppkey];RF3 s_nationkey->[c_nationkey] --------------------------PhysicalProject @@ -26,7 +26,7 @@ PhysicalResultSink ------------------------------------------PhysicalOlapScan[orders] apply RFs: RF0 ------------------------------------PhysicalDistribute[DistributionSpecHash] --------------------------------------PhysicalProject -----------------------------------------PhysicalOlapScan[customer] apply RFs: RF3 +----------------------------------------PhysicalOlapScan[customer] apply RFs: RF3 RF4 --------------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------------PhysicalProject ------------------------------PhysicalOlapScan[supplier] apply RFs: RF4 diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/rf_prune/q20-rewrite.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/rf_prune/q20-rewrite.out index 9f5eda0201..4856ba9c87 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/rf_prune/q20-rewrite.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/rf_prune/q20-rewrite.out @@ -5,7 +5,7 @@ PhysicalResultSink ----PhysicalDistribute[DistributionSpecGather] ------PhysicalQuickSort[LOCAL_SORT] --------PhysicalProject -----------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((supplier.s_suppkey = t3.ps_suppkey)) otherCondition=() build RFs:RF4 s_suppkey->[ps_suppkey] +----------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((supplier.s_suppkey = t3.ps_suppkey)) otherCondition=() build RFs:RF4 s_suppkey->[ps_suppkey,l_suppkey] ------------PhysicalDistribute[DistributionSpecHash] --------------PhysicalProject ----------------hashJoin[INNER_JOIN] hashCondition=((t2.l_partkey = t1.ps_partkey) and (t2.l_suppkey = t1.ps_suppkey)) otherCondition=((cast(ps_availqty as DECIMALV3(38, 3)) > t2.l_q)) build RFs:RF2 ps_partkey->[l_partkey];RF3 ps_suppkey->[l_suppkey] @@ -15,7 +15,7 @@ PhysicalResultSink ------------------------hashAgg[LOCAL] --------------------------PhysicalProject ----------------------------filter((lineitem.l_shipdate < '1995-01-01') and (lineitem.l_shipdate >= '1994-01-01')) -------------------------------PhysicalOlapScan[lineitem] apply RFs: RF2 RF3 +------------------------------PhysicalOlapScan[lineitem] apply RFs: RF2 RF3 RF4 ------------------PhysicalDistribute[DistributionSpecHash] --------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((partsupp.ps_partkey = part.p_partkey)) otherCondition=() build RFs:RF1 p_partkey->[ps_partkey] ----------------------PhysicalProject diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/rf_prune/q20.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/rf_prune/q20.out index 9069a99c3a..bbfe15d910 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/rf_prune/q20.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/rf_prune/q20.out @@ -5,7 +5,7 @@ PhysicalResultSink ----PhysicalDistribute[DistributionSpecGather] ------PhysicalQuickSort[LOCAL_SORT] --------PhysicalProject -----------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((supplier.s_suppkey = partsupp.ps_suppkey)) otherCondition=() build RFs:RF4 s_suppkey->[ps_suppkey] +----------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((supplier.s_suppkey = partsupp.ps_suppkey)) otherCondition=() build RFs:RF4 s_suppkey->[ps_suppkey,l_suppkey] ------------PhysicalDistribute[DistributionSpecHash] --------------PhysicalProject ----------------hashJoin[INNER_JOIN] hashCondition=((lineitem.l_partkey = partsupp.ps_partkey) and (lineitem.l_suppkey = partsupp.ps_suppkey)) otherCondition=((cast(ps_availqty as DECIMALV3(38, 3)) > (0.5 * sum(l_quantity)))) build RFs:RF2 ps_partkey->[l_partkey];RF3 ps_suppkey->[l_suppkey] @@ -14,7 +14,7 @@ PhysicalResultSink ----------------------hashAgg[LOCAL] ------------------------PhysicalProject --------------------------filter((lineitem.l_shipdate < '1995-01-01') and (lineitem.l_shipdate >= '1994-01-01')) -----------------------------PhysicalOlapScan[lineitem] apply RFs: RF2 RF3 +----------------------------PhysicalOlapScan[lineitem] apply RFs: RF2 RF3 RF4 ------------------PhysicalDistribute[DistributionSpecHash] --------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((partsupp.ps_partkey = part.p_partkey)) otherCondition=() build RFs:RF1 p_partkey->[ps_partkey] ----------------------PhysicalProject 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 9f5eda0201..4856ba9c87 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 @@ -5,7 +5,7 @@ PhysicalResultSink ----PhysicalDistribute[DistributionSpecGather] ------PhysicalQuickSort[LOCAL_SORT] --------PhysicalProject -----------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((supplier.s_suppkey = t3.ps_suppkey)) otherCondition=() build RFs:RF4 s_suppkey->[ps_suppkey] +----------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((supplier.s_suppkey = t3.ps_suppkey)) otherCondition=() build RFs:RF4 s_suppkey->[ps_suppkey,l_suppkey] ------------PhysicalDistribute[DistributionSpecHash] --------------PhysicalProject ----------------hashJoin[INNER_JOIN] hashCondition=((t2.l_partkey = t1.ps_partkey) and (t2.l_suppkey = t1.ps_suppkey)) otherCondition=((cast(ps_availqty as DECIMALV3(38, 3)) > t2.l_q)) build RFs:RF2 ps_partkey->[l_partkey];RF3 ps_suppkey->[l_suppkey] @@ -15,7 +15,7 @@ PhysicalResultSink ------------------------hashAgg[LOCAL] --------------------------PhysicalProject ----------------------------filter((lineitem.l_shipdate < '1995-01-01') and (lineitem.l_shipdate >= '1994-01-01')) -------------------------------PhysicalOlapScan[lineitem] apply RFs: RF2 RF3 +------------------------------PhysicalOlapScan[lineitem] apply RFs: RF2 RF3 RF4 ------------------PhysicalDistribute[DistributionSpecHash] --------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((partsupp.ps_partkey = part.p_partkey)) otherCondition=() build RFs:RF1 p_partkey->[ps_partkey] ----------------------PhysicalProject 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 9069a99c3a..bbfe15d910 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 @@ -5,7 +5,7 @@ PhysicalResultSink ----PhysicalDistribute[DistributionSpecGather] ------PhysicalQuickSort[LOCAL_SORT] --------PhysicalProject -----------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((supplier.s_suppkey = partsupp.ps_suppkey)) otherCondition=() build RFs:RF4 s_suppkey->[ps_suppkey] +----------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((supplier.s_suppkey = partsupp.ps_suppkey)) otherCondition=() build RFs:RF4 s_suppkey->[ps_suppkey,l_suppkey] ------------PhysicalDistribute[DistributionSpecHash] --------------PhysicalProject ----------------hashJoin[INNER_JOIN] hashCondition=((lineitem.l_partkey = partsupp.ps_partkey) and (lineitem.l_suppkey = partsupp.ps_suppkey)) otherCondition=((cast(ps_availqty as DECIMALV3(38, 3)) > (0.5 * sum(l_quantity)))) build RFs:RF2 ps_partkey->[l_partkey];RF3 ps_suppkey->[l_suppkey] @@ -14,7 +14,7 @@ PhysicalResultSink ----------------------hashAgg[LOCAL] ------------------------PhysicalProject --------------------------filter((lineitem.l_shipdate < '1995-01-01') and (lineitem.l_shipdate >= '1994-01-01')) -----------------------------PhysicalOlapScan[lineitem] apply RFs: RF2 RF3 +----------------------------PhysicalOlapScan[lineitem] apply RFs: RF2 RF3 RF4 ------------------PhysicalDistribute[DistributionSpecHash] --------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((partsupp.ps_partkey = part.p_partkey)) otherCondition=() build RFs:RF1 p_partkey->[ps_partkey] ----------------------PhysicalProject 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 7145ebda40..0963b0a556 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 @@ -8,7 +8,7 @@ PhysicalResultSink ----------PhysicalDistribute[DistributionSpecHash] ------------hashAgg[LOCAL] --------------PhysicalProject -----------------hashJoin[INNER_JOIN] hashCondition=((customer.c_custkey = orders.o_custkey) and (customer.c_nationkey = supplier.s_nationkey)) otherCondition=() build RFs:RF4 c_nationkey->[s_nationkey];RF5 c_custkey->[o_custkey] +----------------hashJoin[INNER_JOIN] hashCondition=((customer.c_custkey = orders.o_custkey) and (customer.c_nationkey = supplier.s_nationkey)) otherCondition=() build RFs:RF4 c_nationkey->[s_nationkey,n_nationkey];RF5 c_custkey->[o_custkey] ------------------PhysicalDistribute[DistributionSpecHash] --------------------PhysicalProject ----------------------hashJoin[INNER_JOIN] hashCondition=((lineitem.l_suppkey = supplier.s_suppkey)) otherCondition=() build RFs:RF3 s_suppkey->[l_suppkey] @@ -26,7 +26,7 @@ PhysicalResultSink ----------------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------------hashJoin[INNER_JOIN] hashCondition=((nation.n_regionkey = region.r_regionkey)) otherCondition=() build RFs:RF0 r_regionkey->[n_regionkey] --------------------------------PhysicalProject -----------------------------------PhysicalOlapScan[nation] apply RFs: RF0 +----------------------------------PhysicalOlapScan[nation] apply RFs: RF0 RF4 --------------------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------------------PhysicalProject ------------------------------------filter((region.r_name = 'ASIA')) 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 3ff1375bf2..af4927d5f0 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 @@ -8,7 +8,7 @@ PhysicalResultSink ----------PhysicalDistribute[DistributionSpecHash] ------------hashAgg[LOCAL] --------------PhysicalProject -----------------hashJoin[INNER_JOIN] hashCondition=((partsupp.ps_partkey = lineitem.l_partkey) and (partsupp.ps_suppkey = lineitem.l_suppkey)) otherCondition=() build RFs:RF4 ps_suppkey->[l_suppkey];RF5 ps_partkey->[l_partkey] +----------------hashJoin[INNER_JOIN] hashCondition=((partsupp.ps_partkey = lineitem.l_partkey) and (partsupp.ps_suppkey = lineitem.l_suppkey)) otherCondition=() build RFs:RF4 ps_suppkey->[l_suppkey,s_suppkey];RF5 ps_partkey->[p_partkey,l_partkey] ------------------PhysicalProject --------------------hashJoin[INNER_JOIN] hashCondition=((supplier.s_suppkey = lineitem.l_suppkey)) otherCondition=() build RFs:RF3 s_suppkey->[l_suppkey] ----------------------PhysicalDistribute[DistributionSpecHash] @@ -24,11 +24,11 @@ PhysicalResultSink --------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------PhysicalProject ------------------------------------filter((p_name like '%green%')) ---------------------------------------PhysicalOlapScan[part] +--------------------------------------PhysicalOlapScan[part] apply RFs: RF5 ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------hashJoin[INNER_JOIN] hashCondition=((supplier.s_nationkey = nation.n_nationkey)) otherCondition=() build RFs:RF0 n_nationkey->[s_nationkey] --------------------------PhysicalProject -----------------------------PhysicalOlapScan[supplier] apply RFs: RF0 +----------------------------PhysicalOlapScan[supplier] apply RFs: RF0 RF4 --------------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------------PhysicalProject ------------------------------PhysicalOlapScan[nation] diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape_no_stats/q20-rewrite.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape_no_stats/q20-rewrite.out index 12ae602cc2..69ad0ace65 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape_no_stats/q20-rewrite.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape_no_stats/q20-rewrite.out @@ -7,7 +7,7 @@ PhysicalResultSink --------PhysicalProject ----------hashJoin[INNER_JOIN] hashCondition=((supplier.s_nationkey = nation.n_nationkey)) otherCondition=() build RFs:RF4 n_nationkey->[s_nationkey] ------------PhysicalProject ---------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((supplier.s_suppkey = t3.ps_suppkey)) otherCondition=() build RFs:RF3 s_suppkey->[ps_suppkey] +--------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((supplier.s_suppkey = t3.ps_suppkey)) otherCondition=() build RFs:RF3 s_suppkey->[ps_suppkey,l_suppkey] ----------------PhysicalDistribute[DistributionSpecHash] ------------------PhysicalProject --------------------hashJoin[INNER_JOIN] hashCondition=((t2.l_partkey = t1.ps_partkey) and (t2.l_suppkey = t1.ps_suppkey)) otherCondition=((cast(ps_availqty as DECIMALV3(38, 3)) > t2.l_q)) build RFs:RF1 ps_partkey->[l_partkey];RF2 ps_suppkey->[l_suppkey] @@ -17,7 +17,7 @@ PhysicalResultSink ----------------------------hashAgg[LOCAL] ------------------------------PhysicalProject --------------------------------filter((lineitem.l_shipdate < '1995-01-01') and (lineitem.l_shipdate >= '1994-01-01')) -----------------------------------PhysicalOlapScan[lineitem] apply RFs: RF1 RF2 +----------------------------------PhysicalOlapScan[lineitem] apply RFs: RF1 RF2 RF3 ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((partsupp.ps_partkey = part.p_partkey)) otherCondition=() build RFs:RF0 p_partkey->[ps_partkey] --------------------------PhysicalProject diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape_no_stats/q20.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape_no_stats/q20.out index 0be3690736..a8a7aba201 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape_no_stats/q20.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape_no_stats/q20.out @@ -7,7 +7,7 @@ PhysicalResultSink --------PhysicalProject ----------hashJoin[INNER_JOIN] hashCondition=((supplier.s_nationkey = nation.n_nationkey)) otherCondition=() build RFs:RF4 n_nationkey->[s_nationkey] ------------PhysicalProject ---------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((supplier.s_suppkey = partsupp.ps_suppkey)) otherCondition=() build RFs:RF3 s_suppkey->[ps_suppkey] +--------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((supplier.s_suppkey = partsupp.ps_suppkey)) otherCondition=() build RFs:RF3 s_suppkey->[ps_suppkey,l_suppkey] ----------------PhysicalDistribute[DistributionSpecHash] ------------------PhysicalProject --------------------hashJoin[INNER_JOIN] hashCondition=((lineitem.l_partkey = partsupp.ps_partkey) and (lineitem.l_suppkey = partsupp.ps_suppkey)) otherCondition=((cast(ps_availqty as DECIMALV3(38, 3)) > (0.5 * sum(l_quantity)))) build RFs:RF1 ps_partkey->[l_partkey];RF2 ps_suppkey->[l_suppkey] @@ -16,7 +16,7 @@ PhysicalResultSink --------------------------hashAgg[LOCAL] ----------------------------PhysicalProject ------------------------------filter((lineitem.l_shipdate < '1995-01-01') and (lineitem.l_shipdate >= '1994-01-01')) ---------------------------------PhysicalOlapScan[lineitem] apply RFs: RF1 RF2 +--------------------------------PhysicalOlapScan[lineitem] apply RFs: RF1 RF2 RF3 ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((partsupp.ps_partkey = part.p_partkey)) otherCondition=() build RFs:RF0 p_partkey->[ps_partkey] --------------------------PhysicalProject diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape_no_stats/q5.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape_no_stats/q5.out index 7a89beaeb2..f3053b41c7 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape_no_stats/q5.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape_no_stats/q5.out @@ -10,7 +10,7 @@ PhysicalResultSink --------------PhysicalProject ----------------hashJoin[INNER_JOIN] hashCondition=((nation.n_regionkey = region.r_regionkey)) otherCondition=() build RFs:RF5 r_regionkey->[n_regionkey] ------------------PhysicalProject ---------------------hashJoin[INNER_JOIN] hashCondition=((supplier.s_nationkey = nation.n_nationkey)) otherCondition=() build RFs:RF4 n_nationkey->[s_nationkey] +--------------------hashJoin[INNER_JOIN] hashCondition=((supplier.s_nationkey = nation.n_nationkey)) otherCondition=() build RFs:RF4 n_nationkey->[s_nationkey,c_nationkey] ----------------------PhysicalProject ------------------------hashJoin[INNER_JOIN] hashCondition=((customer.c_nationkey = supplier.s_nationkey) and (lineitem.l_suppkey = supplier.s_suppkey)) otherCondition=() build RFs:RF2 s_suppkey->[l_suppkey];RF3 s_nationkey->[c_nationkey] --------------------------PhysicalProject @@ -26,7 +26,7 @@ PhysicalResultSink ------------------------------------------PhysicalOlapScan[orders] apply RFs: RF0 ------------------------------------PhysicalDistribute[DistributionSpecHash] --------------------------------------PhysicalProject -----------------------------------------PhysicalOlapScan[customer] apply RFs: RF3 +----------------------------------------PhysicalOlapScan[customer] apply RFs: RF3 RF4 --------------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------------PhysicalProject ------------------------------PhysicalOlapScan[supplier] apply RFs: RF4 diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape_no_stats/q9.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape_no_stats/q9.out index a8dab44bff..0710be21e1 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape_no_stats/q9.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape_no_stats/q9.out @@ -10,9 +10,9 @@ PhysicalResultSink --------------PhysicalProject ----------------hashJoin[INNER_JOIN] hashCondition=((supplier.s_nationkey = nation.n_nationkey)) otherCondition=() build RFs:RF5 n_nationkey->[s_nationkey] ------------------PhysicalProject ---------------------hashJoin[INNER_JOIN] hashCondition=((supplier.s_suppkey = lineitem.l_suppkey)) otherCondition=() build RFs:RF4 s_suppkey->[l_suppkey] +--------------------hashJoin[INNER_JOIN] hashCondition=((supplier.s_suppkey = lineitem.l_suppkey)) otherCondition=() build RFs:RF4 s_suppkey->[l_suppkey,ps_suppkey] ----------------------PhysicalProject -------------------------hashJoin[INNER_JOIN] hashCondition=((partsupp.ps_partkey = lineitem.l_partkey) and (partsupp.ps_suppkey = lineitem.l_suppkey)) otherCondition=() build RFs:RF2 ps_suppkey->[l_suppkey];RF3 ps_partkey->[l_partkey] +------------------------hashJoin[INNER_JOIN] hashCondition=((partsupp.ps_partkey = lineitem.l_partkey) and (partsupp.ps_suppkey = lineitem.l_suppkey)) otherCondition=() build RFs:RF2 ps_suppkey->[l_suppkey];RF3 ps_partkey->[p_partkey,l_partkey] --------------------------PhysicalProject ----------------------------hashJoin[INNER_JOIN] hashCondition=((part.p_partkey = lineitem.l_partkey)) otherCondition=() build RFs:RF1 p_partkey->[l_partkey] ------------------------------PhysicalDistribute[DistributionSpecHash] @@ -24,10 +24,10 @@ PhysicalResultSink ------------------------------PhysicalDistribute[DistributionSpecHash] --------------------------------PhysicalProject ----------------------------------filter((p_name like '%green%')) -------------------------------------PhysicalOlapScan[part] +------------------------------------PhysicalOlapScan[part] apply RFs: RF3 --------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------PhysicalProject -------------------------------PhysicalOlapScan[partsupp] +------------------------------PhysicalOlapScan[partsupp] apply RFs: RF4 ----------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------PhysicalProject --------------------------PhysicalOlapScan[supplier] apply RFs: RF5 diff --git a/regression-test/suites/nereids_p0/eliminate_outer_join/eliminate_outer_join.groovy b/regression-test/suites/nereids_p0/eliminate_outer_join/eliminate_outer_join.groovy index b66f462fac..f637150938 100644 --- a/regression-test/suites/nereids_p0/eliminate_outer_join/eliminate_outer_join.groovy +++ b/regression-test/suites/nereids_p0/eliminate_outer_join/eliminate_outer_join.groovy @@ -22,10 +22,8 @@ suite("eliminate_outer_join") { sql "set disable_join_reorder=true" sql "set forbid_unknown_col_stats=false" sql "set enable_bucket_shuffle_join=false" - sql "set enable_runtime_filter_prune=false" - sql """ - set ignore_shape_nodes='PhysicalDistribute, PhysicalProject' - """ + sql "set runtime_filter_mode=OFF" + sql "set ignore_shape_nodes='PhysicalDistribute, PhysicalProject'" String database = context.config.getDbNameByFile(context.file) sql "drop database if exists ${database}" sql "create database ${database}" diff --git a/regression-test/suites/nereids_rules_p0/bind_relation/bind_view.groovy b/regression-test/suites/nereids_rules_p0/bind_relation/bind_view.groovy index f3f7641b73..b69fddad1d 100644 --- a/regression-test/suites/nereids_rules_p0/bind_relation/bind_view.groovy +++ b/regression-test/suites/nereids_rules_p0/bind_relation/bind_view.groovy @@ -17,6 +17,7 @@ suite("test_bind_view") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" def table_name = "base_table" diff --git a/regression-test/suites/nereids_rules_p0/eager_aggregate/basic.groovy b/regression-test/suites/nereids_rules_p0/eager_aggregate/basic.groovy index 4380e7f0d5..afa64135d3 100644 --- a/regression-test/suites/nereids_rules_p0/eager_aggregate/basic.groovy +++ b/regression-test/suites/nereids_rules_p0/eager_aggregate/basic.groovy @@ -17,6 +17,7 @@ suite("eager_aggregate_basic") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql "SET ignore_shape_nodes='PhysicalDistribute,PhysicalProject'" diff --git a/regression-test/suites/nereids_rules_p0/eager_aggregate/basic_one_side.groovy b/regression-test/suites/nereids_rules_p0/eager_aggregate/basic_one_side.groovy index 653919e322..cb84e0cc1e 100644 --- a/regression-test/suites/nereids_rules_p0/eager_aggregate/basic_one_side.groovy +++ b/regression-test/suites/nereids_rules_p0/eager_aggregate/basic_one_side.groovy @@ -17,6 +17,7 @@ suite("eager_aggregate_basic_one_side") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql "SET ignore_shape_nodes='PhysicalDistribute,PhysicalProject'" diff --git a/regression-test/suites/nereids_rules_p0/eager_aggregate/push_down_count_through_join.groovy b/regression-test/suites/nereids_rules_p0/eager_aggregate/push_down_count_through_join.groovy index 1414110374..f5f4bf53b4 100644 --- a/regression-test/suites/nereids_rules_p0/eager_aggregate/push_down_count_through_join.groovy +++ b/regression-test/suites/nereids_rules_p0/eager_aggregate/push_down_count_through_join.groovy @@ -17,6 +17,7 @@ suite("push_down_count_through_join") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql "SET ignore_shape_nodes='PhysicalDistribute,PhysicalProject'" diff --git a/regression-test/suites/nereids_rules_p0/eager_aggregate/push_down_count_through_join_one_side.groovy b/regression-test/suites/nereids_rules_p0/eager_aggregate/push_down_count_through_join_one_side.groovy index 3bf9febfe9..037368f051 100644 --- a/regression-test/suites/nereids_rules_p0/eager_aggregate/push_down_count_through_join_one_side.groovy +++ b/regression-test/suites/nereids_rules_p0/eager_aggregate/push_down_count_through_join_one_side.groovy @@ -17,6 +17,7 @@ suite("push_down_count_through_join_one_side") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql "SET ignore_shape_nodes='PhysicalDistribute,PhysicalProject'" diff --git a/regression-test/suites/nereids_rules_p0/eager_aggregate/push_down_max_through_join.groovy b/regression-test/suites/nereids_rules_p0/eager_aggregate/push_down_max_through_join.groovy index 40cdca48aa..68d1946b35 100644 --- a/regression-test/suites/nereids_rules_p0/eager_aggregate/push_down_max_through_join.groovy +++ b/regression-test/suites/nereids_rules_p0/eager_aggregate/push_down_max_through_join.groovy @@ -17,6 +17,7 @@ suite("push_down_max_through_join") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql "SET ignore_shape_nodes='PhysicalDistribute,PhysicalProject'" diff --git a/regression-test/suites/nereids_rules_p0/eager_aggregate/push_down_min_through_join.groovy b/regression-test/suites/nereids_rules_p0/eager_aggregate/push_down_min_through_join.groovy index 906c35e19a..560bf1c0d7 100644 --- a/regression-test/suites/nereids_rules_p0/eager_aggregate/push_down_min_through_join.groovy +++ b/regression-test/suites/nereids_rules_p0/eager_aggregate/push_down_min_through_join.groovy @@ -17,6 +17,7 @@ suite("push_down_min_through_join") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql "SET ignore_shape_nodes='PhysicalDistribute,PhysicalProject'" diff --git a/regression-test/suites/nereids_rules_p0/eager_aggregate/push_down_sum_through_join.groovy b/regression-test/suites/nereids_rules_p0/eager_aggregate/push_down_sum_through_join.groovy index 4e2a13d644..e51899dcc3 100644 --- a/regression-test/suites/nereids_rules_p0/eager_aggregate/push_down_sum_through_join.groovy +++ b/regression-test/suites/nereids_rules_p0/eager_aggregate/push_down_sum_through_join.groovy @@ -17,6 +17,7 @@ suite("push_down_sum_through_join") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql "SET ignore_shape_nodes='PhysicalDistribute,PhysicalProject'" diff --git a/regression-test/suites/nereids_rules_p0/eager_aggregate/push_down_sum_through_join_one_side.groovy b/regression-test/suites/nereids_rules_p0/eager_aggregate/push_down_sum_through_join_one_side.groovy index 866c755d5b..1ecc6aa48a 100644 --- a/regression-test/suites/nereids_rules_p0/eager_aggregate/push_down_sum_through_join_one_side.groovy +++ b/regression-test/suites/nereids_rules_p0/eager_aggregate/push_down_sum_through_join_one_side.groovy @@ -17,6 +17,7 @@ suite("push_down_sum_through_join_one_side") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql "SET ignore_shape_nodes='PhysicalDistribute,PhysicalProject'" diff --git a/regression-test/suites/nereids_rules_p0/eliminate_join_condition/eliminate_join_condition.groovy b/regression-test/suites/nereids_rules_p0/eliminate_join_condition/eliminate_join_condition.groovy index f6833de6bd..c3f420a754 100644 --- a/regression-test/suites/nereids_rules_p0/eliminate_join_condition/eliminate_join_condition.groovy +++ b/regression-test/suites/nereids_rules_p0/eliminate_join_condition/eliminate_join_condition.groovy @@ -17,6 +17,7 @@ suite("eliminate_join_condition") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql "SET ignore_shape_nodes='PhysicalDistribute,PhysicalProject'" sql "SET disable_join_reorder=true" diff --git a/regression-test/suites/nereids_rules_p0/eliminate_not_null/eliminate_not_null.groovy b/regression-test/suites/nereids_rules_p0/eliminate_not_null/eliminate_not_null.groovy index cc318a3e85..3a72a6b88b 100644 --- a/regression-test/suites/nereids_rules_p0/eliminate_not_null/eliminate_not_null.groovy +++ b/regression-test/suites/nereids_rules_p0/eliminate_not_null/eliminate_not_null.groovy @@ -17,6 +17,7 @@ suite("eliminate_not_null") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql "SET ignore_shape_nodes='PhysicalDistribute,PhysicalProject'" sql "SET disable_join_reorder=true" diff --git a/regression-test/suites/nereids_rules_p0/eliminate_outer_join/eliminate_outer_join.groovy b/regression-test/suites/nereids_rules_p0/eliminate_outer_join/eliminate_outer_join.groovy index b2f5856880..40e596ae5a 100644 --- a/regression-test/suites/nereids_rules_p0/eliminate_outer_join/eliminate_outer_join.groovy +++ b/regression-test/suites/nereids_rules_p0/eliminate_outer_join/eliminate_outer_join.groovy @@ -17,6 +17,7 @@ suite("eliminate_outer_join") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql """ diff --git a/regression-test/suites/nereids_rules_p0/filter_push_down/filter_push_through_aggregate.groovy b/regression-test/suites/nereids_rules_p0/filter_push_down/filter_push_through_aggregate.groovy index 735aaa939e..0c36def8b9 100644 --- a/regression-test/suites/nereids_rules_p0/filter_push_down/filter_push_through_aggregate.groovy +++ b/regression-test/suites/nereids_rules_p0/filter_push_down/filter_push_through_aggregate.groovy @@ -17,6 +17,7 @@ suite("filter_push_through_aggregate") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql "SET ignore_shape_nodes='PhysicalDistribute,PhysicalProject'" sql "SET disable_join_reorder=true" diff --git a/regression-test/suites/nereids_rules_p0/filter_push_down/push_down_alias_through_join.groovy b/regression-test/suites/nereids_rules_p0/filter_push_down/push_down_alias_through_join.groovy index af10e6461e..ae005da467 100644 --- a/regression-test/suites/nereids_rules_p0/filter_push_down/push_down_alias_through_join.groovy +++ b/regression-test/suites/nereids_rules_p0/filter_push_down/push_down_alias_through_join.groovy @@ -17,6 +17,7 @@ suite("push_down_alias_through_join") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql "use regression_test_nereids_rules_p0" sql "set disable_join_reorder=true" diff --git a/regression-test/suites/nereids_rules_p0/filter_push_down/push_down_expression_in_hash_join.groovy b/regression-test/suites/nereids_rules_p0/filter_push_down/push_down_expression_in_hash_join.groovy index 1dcccd13e1..b448276e55 100644 --- a/regression-test/suites/nereids_rules_p0/filter_push_down/push_down_expression_in_hash_join.groovy +++ b/regression-test/suites/nereids_rules_p0/filter_push_down/push_down_expression_in_hash_join.groovy @@ -17,6 +17,7 @@ suite("push_down_expression_in_hash_join") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql "use regression_test_nereids_rules_p0" sql "set disable_join_reorder=true" diff --git a/regression-test/suites/nereids_rules_p0/filter_push_down/push_down_filter_other_condition.groovy b/regression-test/suites/nereids_rules_p0/filter_push_down/push_down_filter_other_condition.groovy index 42c0003ffe..b08bdac49a 100644 --- a/regression-test/suites/nereids_rules_p0/filter_push_down/push_down_filter_other_condition.groovy +++ b/regression-test/suites/nereids_rules_p0/filter_push_down/push_down_filter_other_condition.groovy @@ -17,6 +17,7 @@ suite("push_down_filter_other_condition") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql "SET ignore_shape_nodes='PhysicalDistribute,PhysicalProject'" sql "use regression_test_nereids_rules_p0" diff --git a/regression-test/suites/nereids_rules_p0/filter_push_down/push_filter_inside_join.groovy b/regression-test/suites/nereids_rules_p0/filter_push_down/push_filter_inside_join.groovy index 9dfadb9630..97fdc1c0b4 100644 --- a/regression-test/suites/nereids_rules_p0/filter_push_down/push_filter_inside_join.groovy +++ b/regression-test/suites/nereids_rules_p0/filter_push_down/push_filter_inside_join.groovy @@ -17,6 +17,7 @@ suite("push_filter_inside_join") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql "use regression_test_nereids_rules_p0" sql "SET ignore_shape_nodes='PhysicalDistribute,PhysicalProject'" diff --git a/regression-test/suites/nereids_rules_p0/filter_push_down/push_filter_through.groovy b/regression-test/suites/nereids_rules_p0/filter_push_down/push_filter_through.groovy index 4e716dde38..0c9229249b 100644 --- a/regression-test/suites/nereids_rules_p0/filter_push_down/push_filter_through.groovy +++ b/regression-test/suites/nereids_rules_p0/filter_push_down/push_filter_through.groovy @@ -17,6 +17,7 @@ suite("push_filter_through") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql "use regression_test_nereids_rules_p0" sql "set disable_join_reorder=true" diff --git a/regression-test/suites/nereids_rules_p0/infer_set_operator_distinct/infer_set_operator_distinct.groovy b/regression-test/suites/nereids_rules_p0/infer_set_operator_distinct/infer_set_operator_distinct.groovy index 7e27fc9c6d..eb2be5e16d 100644 --- a/regression-test/suites/nereids_rules_p0/infer_set_operator_distinct/infer_set_operator_distinct.groovy +++ b/regression-test/suites/nereids_rules_p0/infer_set_operator_distinct/infer_set_operator_distinct.groovy @@ -17,6 +17,7 @@ suite("test_infer_set_operator_distinct") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql """ diff --git a/regression-test/suites/nereids_rules_p0/limit_push_down/limit_push_down.groovy b/regression-test/suites/nereids_rules_p0/limit_push_down/limit_push_down.groovy index 39aa020ee6..2f1ff4b4ee 100644 --- a/regression-test/suites/nereids_rules_p0/limit_push_down/limit_push_down.groovy +++ b/regression-test/suites/nereids_rules_p0/limit_push_down/limit_push_down.groovy @@ -17,6 +17,7 @@ suite("limit_push_down") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql "use regression_test_nereids_rules_p0" sql """ SET inline_cte_referenced_threshold=0 """ diff --git a/regression-test/suites/nereids_rules_p0/limit_push_down/order_push_down.groovy b/regression-test/suites/nereids_rules_p0/limit_push_down/order_push_down.groovy index f6caf529a3..dae89145d7 100644 --- a/regression-test/suites/nereids_rules_p0/limit_push_down/order_push_down.groovy +++ b/regression-test/suites/nereids_rules_p0/limit_push_down/order_push_down.groovy @@ -17,6 +17,7 @@ suite("order_push_down") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql "use regression_test_nereids_rules_p0" sql """ SET inline_cte_referenced_threshold=0 """ diff --git a/regression-test/suites/nereids_rules_p0/load.groovy b/regression-test/suites/nereids_rules_p0/load.groovy index 0468e3e1e4..662c5d7e78 100644 --- a/regression-test/suites/nereids_rules_p0/load.groovy +++ b/regression-test/suites/nereids_rules_p0/load.groovy @@ -17,6 +17,7 @@ suite("load") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql """ DROP TABLE IF EXISTS t1 diff --git a/regression-test/suites/nereids_rules_p0/mv/agg_with_roll_up/aggregate_with_roll_up.groovy b/regression-test/suites/nereids_rules_p0/mv/agg_with_roll_up/aggregate_with_roll_up.groovy index 02f628b4f6..9cdca736fe 100644 --- a/regression-test/suites/nereids_rules_p0/mv/agg_with_roll_up/aggregate_with_roll_up.groovy +++ b/regression-test/suites/nereids_rules_p0/mv/agg_with_roll_up/aggregate_with_roll_up.groovy @@ -19,6 +19,8 @@ suite("aggregate_with_roll_up") { String db = context.config.getDbNameByFile(context.file) sql "use ${db}" sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF"; + sql "SET ignore_shape_nodes='PhysicalDistribute,PhysicalProject'" sql "SET enable_fallback_to_original_planner=false" sql "SET enable_materialized_view_rewrite=true" sql "SET enable_nereids_timeout = false" diff --git a/regression-test/suites/nereids_rules_p0/mv/agg_without_roll_up/aggregate_without_roll_up.groovy b/regression-test/suites/nereids_rules_p0/mv/agg_without_roll_up/aggregate_without_roll_up.groovy index d1d01ebee8..be56ebe05f 100644 --- a/regression-test/suites/nereids_rules_p0/mv/agg_without_roll_up/aggregate_without_roll_up.groovy +++ b/regression-test/suites/nereids_rules_p0/mv/agg_without_roll_up/aggregate_without_roll_up.groovy @@ -19,6 +19,8 @@ suite("aggregate_without_roll_up") { String db = context.config.getDbNameByFile(context.file) sql "use ${db}" sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF"; + sql "SET ignore_shape_nodes='PhysicalDistribute,PhysicalProject'" sql "SET enable_fallback_to_original_planner=false" sql "SET enable_materialized_view_rewrite=true" sql "SET enable_nereids_timeout = false" diff --git a/regression-test/suites/nereids_rules_p0/mv/join/inner/inner_join.groovy b/regression-test/suites/nereids_rules_p0/mv/join/inner/inner_join.groovy index 5fd4124f4d..401dbd279a 100644 --- a/regression-test/suites/nereids_rules_p0/mv/join/inner/inner_join.groovy +++ b/regression-test/suites/nereids_rules_p0/mv/join/inner/inner_join.groovy @@ -19,6 +19,7 @@ suite("inner_join") { String db = context.config.getDbNameByFile(context.file) sql "use ${db}" sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql "SET enable_materialized_view_rewrite=true" sql "SET enable_nereids_timeout = false" diff --git a/regression-test/suites/nereids_rules_p0/mv/join/left_outer/outer_join.groovy b/regression-test/suites/nereids_rules_p0/mv/join/left_outer/outer_join.groovy index a9e21f63cf..a407b4cd47 100644 --- a/regression-test/suites/nereids_rules_p0/mv/join/left_outer/outer_join.groovy +++ b/regression-test/suites/nereids_rules_p0/mv/join/left_outer/outer_join.groovy @@ -19,6 +19,8 @@ suite("outer_join") { String db = context.config.getDbNameByFile(context.file) sql "use ${db}" sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF"; + sql "SET ignore_shape_nodes='PhysicalDistribute,PhysicalProject'" sql "SET enable_fallback_to_original_planner=false" sql "SET enable_materialized_view_rewrite=true" sql "SET enable_nereids_timeout = false" diff --git a/regression-test/suites/nereids_rules_p0/mv/partition_mv_rewrite.groovy b/regression-test/suites/nereids_rules_p0/mv/partition_mv_rewrite.groovy index 428e6a9e13..e799c01fff 100644 --- a/regression-test/suites/nereids_rules_p0/mv/partition_mv_rewrite.groovy +++ b/regression-test/suites/nereids_rules_p0/mv/partition_mv_rewrite.groovy @@ -19,6 +19,7 @@ suite("partition_mv_rewrite") { String db = context.config.getDbNameByFile(context.file) sql "use ${db}" sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql "SET enable_materialized_view_rewrite=true" sql "SET enable_nereids_timeout = false" diff --git a/regression-test/suites/nereids_rules_p0/partition_prune/test_date_function_prune.groovy b/regression-test/suites/nereids_rules_p0/partition_prune/test_date_function_prune.groovy index 965983596a..6f57067231 100644 --- a/regression-test/suites/nereids_rules_p0/partition_prune/test_date_function_prune.groovy +++ b/regression-test/suites/nereids_rules_p0/partition_prune/test_date_function_prune.groovy @@ -19,6 +19,8 @@ suite("test_date_function_prune") { String db = context.config.getDbNameByFile(context.file) sql "use ${db}" sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF"; + sql "SET ignore_shape_nodes='PhysicalDistribute,PhysicalProject'" sql "SET enable_fallback_to_original_planner=false" sql "set partition_pruning_expand_threshold=10;" sql "drop table if exists dp" diff --git a/regression-test/suites/nereids_rules_p0/partition_prune/test_multi_range_partition.groovy b/regression-test/suites/nereids_rules_p0/partition_prune/test_multi_range_partition.groovy index 0ee78332a1..23fad332f4 100644 --- a/regression-test/suites/nereids_rules_p0/partition_prune/test_multi_range_partition.groovy +++ b/regression-test/suites/nereids_rules_p0/partition_prune/test_multi_range_partition.groovy @@ -19,6 +19,7 @@ suite("test_multi_range_partition") { String db = context.config.getDbNameByFile(context.file) sql "use ${db}" sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql "set partition_pruning_expand_threshold=10;" sql "drop table if exists pt" @@ -296,6 +297,7 @@ suite("test_multi_range_partition") { ); """ sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql "insert into tt values (0, 0), (6, 6), (8, 8)" explain { diff --git a/regression-test/suites/nereids_rules_p0/partition_prune/test_partition_unique_model.groovy b/regression-test/suites/nereids_rules_p0/partition_prune/test_partition_unique_model.groovy index cfd4f28e60..c95d34ffb3 100644 --- a/regression-test/suites/nereids_rules_p0/partition_prune/test_partition_unique_model.groovy +++ b/regression-test/suites/nereids_rules_p0/partition_prune/test_partition_unique_model.groovy @@ -20,6 +20,7 @@ suite("test_partition_unique_model") { String db = context.config.getDbNameByFile(context.file) sql "use ${db}" sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql "set partition_pruning_expand_threshold=10;" sql "drop table if exists xinan;" diff --git a/regression-test/suites/nereids_rules_p0/pkfk/eliminate_inner.groovy b/regression-test/suites/nereids_rules_p0/pkfk/eliminate_inner.groovy index 64a530cc22..5280847a53 100644 --- a/regression-test/suites/nereids_rules_p0/pkfk/eliminate_inner.groovy +++ b/regression-test/suites/nereids_rules_p0/pkfk/eliminate_inner.groovy @@ -17,6 +17,8 @@ suite("eliminate_inner") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF"; + sql "SET ignore_shape_nodes='PhysicalDistribute,PhysicalProject'" sql "SET enable_fallback_to_original_planner=false" sql "SET ignore_shape_nodes='PhysicalDistribute[DistributionSpecGather], PhysicalDistribute[DistributionSpecHash],PhysicalDistribute[DistributionSpecExecutionAny],PhysicalProject'" sql "SET disable_join_reorder=true" diff --git a/regression-test/suites/nereids_rules_p0/predicate_infer/infer_predicate.groovy b/regression-test/suites/nereids_rules_p0/predicate_infer/infer_predicate.groovy index e2550d73b9..b9bdbdf3e7 100644 --- a/regression-test/suites/nereids_rules_p0/predicate_infer/infer_predicate.groovy +++ b/regression-test/suites/nereids_rules_p0/predicate_infer/infer_predicate.groovy @@ -17,6 +17,7 @@ suite("infer_predicate") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql "SET disable_join_reorder=true" sql "SET ignore_shape_nodes='PhysicalDistribute,PhysicalProject'" diff --git a/regression-test/suites/nereids_rules_p0/push_down_limit_distinct/push_down_limit_distinct.groovy b/regression-test/suites/nereids_rules_p0/push_down_limit_distinct/push_down_limit_distinct.groovy index d63fed5087..f333cbee89 100644 --- a/regression-test/suites/nereids_rules_p0/push_down_limit_distinct/push_down_limit_distinct.groovy +++ b/regression-test/suites/nereids_rules_p0/push_down_limit_distinct/push_down_limit_distinct.groovy @@ -17,6 +17,7 @@ suite("push_down_limit_distinct_through_join") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql "SET ignore_shape_nodes='PhysicalDistribute,PhysicalProject'" sql "SET disable_join_reorder=true" diff --git a/regression-test/suites/nereids_rules_p0/push_down_top_n/push_down_top_n_distinct_through_union.groovy b/regression-test/suites/nereids_rules_p0/push_down_top_n/push_down_top_n_distinct_through_union.groovy index c7a56da147..359846b2f8 100644 --- a/regression-test/suites/nereids_rules_p0/push_down_top_n/push_down_top_n_distinct_through_union.groovy +++ b/regression-test/suites/nereids_rules_p0/push_down_top_n/push_down_top_n_distinct_through_union.groovy @@ -17,6 +17,7 @@ suite("push_down_top_n_distinct_through_union") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql "SET ignore_shape_nodes='PhysicalDistribute,PhysicalProject'" sql "SET disable_join_reorder=true" diff --git a/regression-test/suites/nereids_rules_p0/push_down_top_n/push_down_top_n_through_union.groovy b/regression-test/suites/nereids_rules_p0/push_down_top_n/push_down_top_n_through_union.groovy index 974c9ab3ba..acf96e3263 100644 --- a/regression-test/suites/nereids_rules_p0/push_down_top_n/push_down_top_n_through_union.groovy +++ b/regression-test/suites/nereids_rules_p0/push_down_top_n/push_down_top_n_through_union.groovy @@ -17,6 +17,7 @@ suite("push_down_top_n_through_union") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql "SET ignore_shape_nodes='PhysicalDistribute,PhysicalProject'" sql "SET disable_join_reorder=true" diff --git a/regression-test/suites/nereids_rules_p0/subquery/basic/subquery_basic_pullup_and_subquery.groovy b/regression-test/suites/nereids_rules_p0/subquery/basic/subquery_basic_pullup_and_subquery.groovy index b78c6e21f7..4cd48f1656 100644 --- a/regression-test/suites/nereids_rules_p0/subquery/basic/subquery_basic_pullup_and_subquery.groovy +++ b/regression-test/suites/nereids_rules_p0/subquery/basic/subquery_basic_pullup_and_subquery.groovy @@ -17,6 +17,7 @@ suite("subquery_basic_pullup_and_subquery") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql """DROP TABLE IF EXISTS t1;""" diff --git a/regression-test/suites/nereids_rules_p0/subquery/basic/subquery_basic_pullup_basic.groovy b/regression-test/suites/nereids_rules_p0/subquery/basic/subquery_basic_pullup_basic.groovy index 8621440a52..024e257316 100644 --- a/regression-test/suites/nereids_rules_p0/subquery/basic/subquery_basic_pullup_basic.groovy +++ b/regression-test/suites/nereids_rules_p0/subquery/basic/subquery_basic_pullup_basic.groovy @@ -17,6 +17,7 @@ suite("subquery_basic_pullup_basic") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql """DROP TABLE IF EXISTS t1;""" diff --git a/regression-test/suites/nereids_rules_p0/subquery/basic/subquery_basic_pullup_or.groovy b/regression-test/suites/nereids_rules_p0/subquery/basic/subquery_basic_pullup_or.groovy index 6b3cf46e48..92f10ef7a7 100644 --- a/regression-test/suites/nereids_rules_p0/subquery/basic/subquery_basic_pullup_or.groovy +++ b/regression-test/suites/nereids_rules_p0/subquery/basic/subquery_basic_pullup_or.groovy @@ -17,6 +17,7 @@ suite("subquery_basic_pullup_or") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql """DROP TABLE IF EXISTS t1;""" diff --git a/regression-test/suites/nereids_rules_p0/subquery/basic/subquery_basic_pullup_or_subquery.groovy b/regression-test/suites/nereids_rules_p0/subquery/basic/subquery_basic_pullup_or_subquery.groovy index 76f2b7ce7a..2eff98be9d 100644 --- a/regression-test/suites/nereids_rules_p0/subquery/basic/subquery_basic_pullup_or_subquery.groovy +++ b/regression-test/suites/nereids_rules_p0/subquery/basic/subquery_basic_pullup_or_subquery.groovy @@ -17,6 +17,7 @@ suite("subquery_basic_pullup_or_subquery") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql """DROP TABLE IF EXISTS t1;""" diff --git a/regression-test/suites/nereids_rules_p0/subquery/basic/subquery_basic_pullup_uk.groovy b/regression-test/suites/nereids_rules_p0/subquery/basic/subquery_basic_pullup_uk.groovy index c3eeb0f090..8cedc143bc 100644 --- a/regression-test/suites/nereids_rules_p0/subquery/basic/subquery_basic_pullup_uk.groovy +++ b/regression-test/suites/nereids_rules_p0/subquery/basic/subquery_basic_pullup_uk.groovy @@ -17,6 +17,7 @@ suite("subquery_basic_pullup_uk") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql """DROP TABLE IF EXISTS t1;""" diff --git a/regression-test/suites/nereids_rules_p0/subquery/basic/subquery_basic_ullup_and.groovy b/regression-test/suites/nereids_rules_p0/subquery/basic/subquery_basic_ullup_and.groovy index f054e58fa6..80bbac5a74 100644 --- a/regression-test/suites/nereids_rules_p0/subquery/basic/subquery_basic_ullup_and.groovy +++ b/regression-test/suites/nereids_rules_p0/subquery/basic/subquery_basic_ullup_and.groovy @@ -17,6 +17,7 @@ suite("subquery_basic_pullup_and") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql """DROP TABLE IF EXISTS t1;""" diff --git a/regression-test/suites/nereids_rules_p0/subquery/misc/subquery_misc_pullup_dml.groovy b/regression-test/suites/nereids_rules_p0/subquery/misc/subquery_misc_pullup_dml.groovy index faf8ca9102..f96386b6d7 100644 --- a/regression-test/suites/nereids_rules_p0/subquery/misc/subquery_misc_pullup_dml.groovy +++ b/regression-test/suites/nereids_rules_p0/subquery/misc/subquery_misc_pullup_dml.groovy @@ -17,6 +17,7 @@ suite("subquery_basic_pullup_dml") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql """DROP TABLE IF EXISTS t1;""" diff --git a/regression-test/suites/nereids_rules_p0/subquery/misc/subquery_misc_pullup_misc.groovy b/regression-test/suites/nereids_rules_p0/subquery/misc/subquery_misc_pullup_misc.groovy index 0602210f39..2c3bf456e6 100644 --- a/regression-test/suites/nereids_rules_p0/subquery/misc/subquery_misc_pullup_misc.groovy +++ b/regression-test/suites/nereids_rules_p0/subquery/misc/subquery_misc_pullup_misc.groovy @@ -17,6 +17,7 @@ suite("subquery_misc_pullup_misc") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql """DROP TABLE IF EXISTS t1;""" diff --git a/regression-test/suites/nereids_rules_p0/subquery/multitable/subquery_multitable_pullup_and.groovy b/regression-test/suites/nereids_rules_p0/subquery/multitable/subquery_multitable_pullup_and.groovy index 51dfa50223..d4d6395927 100644 --- a/regression-test/suites/nereids_rules_p0/subquery/multitable/subquery_multitable_pullup_and.groovy +++ b/regression-test/suites/nereids_rules_p0/subquery/multitable/subquery_multitable_pullup_and.groovy @@ -17,6 +17,7 @@ suite("subquery_multitable_pullup_and") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql """DROP TABLE IF EXISTS t1;""" diff --git a/regression-test/suites/nereids_rules_p0/subquery/multitable/subquery_multitable_pullup_and_subquery.groovy b/regression-test/suites/nereids_rules_p0/subquery/multitable/subquery_multitable_pullup_and_subquery.groovy index 5c1318f8c9..a73f23926f 100644 --- a/regression-test/suites/nereids_rules_p0/subquery/multitable/subquery_multitable_pullup_and_subquery.groovy +++ b/regression-test/suites/nereids_rules_p0/subquery/multitable/subquery_multitable_pullup_and_subquery.groovy @@ -17,6 +17,7 @@ suite("subquery_multitable_pullup_and_subquery") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql """DROP TABLE IF EXISTS t1;""" diff --git a/regression-test/suites/nereids_rules_p0/subquery/multitable/subquery_multitable_pullup_basic.groovy b/regression-test/suites/nereids_rules_p0/subquery/multitable/subquery_multitable_pullup_basic.groovy index 5e9df4ffc7..f07298ebf8 100644 --- a/regression-test/suites/nereids_rules_p0/subquery/multitable/subquery_multitable_pullup_basic.groovy +++ b/regression-test/suites/nereids_rules_p0/subquery/multitable/subquery_multitable_pullup_basic.groovy @@ -17,6 +17,7 @@ suite("subquery_multitable_pullup_basic") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql """DROP TABLE IF EXISTS t1;""" diff --git a/regression-test/suites/nereids_rules_p0/subquery/multitable/subquery_multitable_pullup_or.groovy b/regression-test/suites/nereids_rules_p0/subquery/multitable/subquery_multitable_pullup_or.groovy index 67168365f0..7d9f591ac1 100644 --- a/regression-test/suites/nereids_rules_p0/subquery/multitable/subquery_multitable_pullup_or.groovy +++ b/regression-test/suites/nereids_rules_p0/subquery/multitable/subquery_multitable_pullup_or.groovy @@ -17,6 +17,7 @@ suite("subquery_multitable_pullup_or") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql """DROP TABLE IF EXISTS t1;""" diff --git a/regression-test/suites/nereids_rules_p0/subquery/multitable/subquery_multitable_pullup_or_subquery.groovy b/regression-test/suites/nereids_rules_p0/subquery/multitable/subquery_multitable_pullup_or_subquery.groovy index 8a41ecd251..16fd8e0578 100644 --- a/regression-test/suites/nereids_rules_p0/subquery/multitable/subquery_multitable_pullup_or_subquery.groovy +++ b/regression-test/suites/nereids_rules_p0/subquery/multitable/subquery_multitable_pullup_or_subquery.groovy @@ -17,6 +17,7 @@ suite("subquery_multitable_pullup_or_subquery") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql """DROP TABLE IF EXISTS t1;""" diff --git a/regression-test/suites/nereids_rules_p0/subquery/topop/subquery_topop_pullup_groupby.groovy b/regression-test/suites/nereids_rules_p0/subquery/topop/subquery_topop_pullup_groupby.groovy index 3323caa364..715b4ada3c 100644 --- a/regression-test/suites/nereids_rules_p0/subquery/topop/subquery_topop_pullup_groupby.groovy +++ b/regression-test/suites/nereids_rules_p0/subquery/topop/subquery_topop_pullup_groupby.groovy @@ -17,6 +17,7 @@ suite("subquery_basic_pullup_orderby") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql """DROP TABLE IF EXISTS t1;""" diff --git a/regression-test/suites/nereids_rules_p0/subquery/topop/subquery_topop_pullup_having.groovy b/regression-test/suites/nereids_rules_p0/subquery/topop/subquery_topop_pullup_having.groovy index 63d58b1ccb..95afad3a66 100644 --- a/regression-test/suites/nereids_rules_p0/subquery/topop/subquery_topop_pullup_having.groovy +++ b/regression-test/suites/nereids_rules_p0/subquery/topop/subquery_topop_pullup_having.groovy @@ -17,6 +17,7 @@ suite("subquery_basic_pullup_having") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql """DROP TABLE IF EXISTS t1;""" diff --git a/regression-test/suites/nereids_rules_p0/subquery/topop/subquery_topop_pullup_orderby.groovy b/regression-test/suites/nereids_rules_p0/subquery/topop/subquery_topop_pullup_orderby.groovy index 97a8227dd8..1c18975c0d 100644 --- a/regression-test/suites/nereids_rules_p0/subquery/topop/subquery_topop_pullup_orderby.groovy +++ b/regression-test/suites/nereids_rules_p0/subquery/topop/subquery_topop_pullup_orderby.groovy @@ -17,6 +17,7 @@ suite("subquery_basic_pullup_orderby") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql """DROP TABLE IF EXISTS t1;""" diff --git a/regression-test/suites/nereids_rules_p0/subquery/topop/subquery_topop_pullup_selectlist.groovy b/regression-test/suites/nereids_rules_p0/subquery/topop/subquery_topop_pullup_selectlist.groovy index 9ab5974721..e43b406560 100644 --- a/regression-test/suites/nereids_rules_p0/subquery/topop/subquery_topop_pullup_selectlist.groovy +++ b/regression-test/suites/nereids_rules_p0/subquery/topop/subquery_topop_pullup_selectlist.groovy @@ -17,6 +17,7 @@ suite("subquery_basic_pullup_selectlist") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql """DROP TABLE IF EXISTS t1;""" diff --git a/regression-test/suites/nereids_rules_p0/subquery/topop/subquery_topop_pullup_winfunc.groovy b/regression-test/suites/nereids_rules_p0/subquery/topop/subquery_topop_pullup_winfunc.groovy index d8e7e65ac8..a2a3466d18 100644 --- a/regression-test/suites/nereids_rules_p0/subquery/topop/subquery_topop_pullup_winfunc.groovy +++ b/regression-test/suites/nereids_rules_p0/subquery/topop/subquery_topop_pullup_winfunc.groovy @@ -17,6 +17,7 @@ suite("subquery_basic_pullup_winfunc") { sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF" sql "SET enable_fallback_to_original_planner=false" sql """DROP TABLE IF EXISTS t1;""" diff --git a/regression-test/suites/nereids_rules_p0/transposeJoin/transposeSemiJoinAgg.groovy b/regression-test/suites/nereids_rules_p0/transposeJoin/transposeSemiJoinAgg.groovy index 5a212727f7..c3784219f7 100644 --- a/regression-test/suites/nereids_rules_p0/transposeJoin/transposeSemiJoinAgg.groovy +++ b/regression-test/suites/nereids_rules_p0/transposeJoin/transposeSemiJoinAgg.groovy @@ -20,6 +20,8 @@ suite("transposeSemiJoinAgg") { String db = context.config.getDbNameByFile(context.file) sql "use ${db}" sql "SET enable_nereids_planner=true" + sql "set runtime_filter_mode=OFF"; + sql "SET ignore_shape_nodes='PhysicalDistribute,PhysicalProject'" sql "SET enable_fallback_to_original_planner=false" sql "set partition_pruning_expand_threshold=10;" sql "set ignore_shape_nodes='PhysicalDistribute,PhysicalProject'" diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/ddl/shape.tmpl b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/ddl/shape.tmpl index a4bd931311..24519d50e4 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/ddl/shape.tmpl +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/ddl/shape.tmpl @@ -29,6 +29,7 @@ suite("query{--}") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """{query}""" qt_ds_shape_{--} ''' diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query1.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query1.groovy index f9e6a330af..26e4934778 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query1.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query1.groovy @@ -29,6 +29,7 @@ suite("query1") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """with customer_total_return as (select sr_customer_sk as ctr_customer_sk diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query10.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query10.groovy index accc3fe027..03b1d2bca9 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query10.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query10.groovy @@ -29,6 +29,7 @@ suite("query10") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select cd_gender, diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query11.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query11.groovy index 1696ab1f54..f7bcf22622 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query11.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query11.groovy @@ -29,6 +29,7 @@ suite("query11") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """with year_total as ( select c_customer_id customer_id diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query12.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query12.groovy index 3e38e7b31e..4e512d43c2 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query12.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query12.groovy @@ -29,6 +29,7 @@ suite("query12") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select i_item_id ,i_item_desc diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query13.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query13.groovy index f4cd48bd0b..2f3d00c324 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query13.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query13.groovy @@ -29,6 +29,7 @@ suite("query13") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select avg(ss_quantity) ,avg(ss_ext_sales_price) diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query14.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query14.groovy index ea76870e68..47a7ee463a 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query14.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query14.groovy @@ -29,6 +29,7 @@ suite("query14") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """with cross_items as (select i_item_sk ss_item_sk diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query15.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query15.groovy index d0cf611893..91b7e5a036 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query15.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query15.groovy @@ -29,6 +29,7 @@ suite("query15") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select ca_zip ,sum(cs_sales_price) diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query16.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query16.groovy index a4af3ebcf3..0ae40d15fc 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query16.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query16.groovy @@ -29,6 +29,7 @@ suite("query16") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select count(distinct cs_order_number) as "order count" diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query17.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query17.groovy index a3457b5020..3f82efd83d 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query17.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query17.groovy @@ -29,6 +29,7 @@ suite("query17") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select i_item_id ,i_item_desc diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query18.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query18.groovy index 860c3ff3a5..4279a94780 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query18.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query18.groovy @@ -29,6 +29,7 @@ suite("query18") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select i_item_id, ca_country, diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query19.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query19.groovy index a74d0593de..dc5714b7b3 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query19.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query19.groovy @@ -29,6 +29,7 @@ suite("query19") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select i_brand_id brand_id, i_brand brand, i_manufact_id, i_manufact, sum(ss_ext_sales_price) ext_price diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query2.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query2.groovy index c55063a80e..f9897201e8 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query2.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query2.groovy @@ -29,6 +29,7 @@ suite("query2") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """with wscs as (select sold_date_sk diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query20.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query20.groovy index 96846c9204..6db88b75dd 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query20.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query20.groovy @@ -29,6 +29,7 @@ suite("query20") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select i_item_id ,i_item_desc diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query21.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query21.groovy index 6641a42d9c..bf872a39e4 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query21.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query21.groovy @@ -29,6 +29,7 @@ suite("query21") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select * from(select w_warehouse_name diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query22.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query22.groovy index 8d965c3cf7..a5acdc2d78 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query22.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query22.groovy @@ -29,6 +29,7 @@ suite("query22") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select i_product_name ,i_brand diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query23.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query23.groovy index d023e6e96b..3d3b936bfa 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query23.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query23.groovy @@ -29,6 +29,7 @@ suite("query23") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """with frequent_ss_items as (select substr(i_item_desc,1,30) itemdesc,i_item_sk item_sk,d_date solddate,count(*) cnt diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query24.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query24.groovy index a981616bf0..42f2f0d839 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query24.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query24.groovy @@ -29,6 +29,7 @@ suite("query24") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """with ssales as (select c_last_name diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query25.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query25.groovy index 04894128fc..49eaec7555 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query25.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query25.groovy @@ -29,6 +29,7 @@ suite("query25") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select i_item_id diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query26.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query26.groovy index 455d18fdd5..ef1f6fb222 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query26.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query26.groovy @@ -29,6 +29,7 @@ suite("query26") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select i_item_id, avg(cs_quantity) agg1, diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query27.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query27.groovy index 0ef65b3449..b67c90cdd9 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query27.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query27.groovy @@ -29,6 +29,7 @@ suite("query27") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select i_item_id, s_state, grouping(s_state) g_state, diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query28.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query28.groovy index 037f372448..38c60856ea 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query28.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query28.groovy @@ -29,6 +29,7 @@ suite("query28") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select * from (select avg(ss_list_price) B1_LP diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query29.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query29.groovy index 32dcc775f0..3277754177 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query29.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query29.groovy @@ -29,6 +29,7 @@ suite("query29") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select i_item_id diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query3.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query3.groovy index f537961471..4ccdbce73b 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query3.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query3.groovy @@ -29,6 +29,7 @@ suite("query3") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select dt.d_year ,item.i_brand_id brand_id diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query30.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query30.groovy index 287051b03c..a1277ccb82 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query30.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query30.groovy @@ -29,6 +29,7 @@ suite("query30") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """with customer_total_return as (select wr_returning_customer_sk as ctr_customer_sk diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query31.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query31.groovy index 05a4f30746..9114e7c747 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query31.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query31.groovy @@ -29,6 +29,7 @@ suite("query31") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """with ss as (select ca_county,d_qoy, d_year,sum(ss_ext_sales_price) as store_sales diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query32.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query32.groovy index 2b7bb4c396..3a1c6518af 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query32.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query32.groovy @@ -29,6 +29,7 @@ suite("query32") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select sum(cs_ext_discount_amt) as "excess discount amount" from diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query33.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query33.groovy index 9b802bed91..a7ab465ac5 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query33.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query33.groovy @@ -29,6 +29,7 @@ suite("query33") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """with ss as ( select diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query34.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query34.groovy index e3791dce0b..26de532c56 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query34.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query34.groovy @@ -29,6 +29,7 @@ suite("query34") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select c_last_name ,c_first_name diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query35.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query35.groovy index 89aee2bebc..afae0a31fb 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query35.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query35.groovy @@ -29,6 +29,7 @@ suite("query35") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select ca_state, diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query36.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query36.groovy index 2019b80115..2cc21b564d 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query36.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query36.groovy @@ -29,6 +29,7 @@ suite("query36") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select sum(ss_net_profit)/sum(ss_ext_sales_price) as gross_margin diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query37.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query37.groovy index 923d22ee91..6e93b1ae1a 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query37.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query37.groovy @@ -29,6 +29,7 @@ suite("query37") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select i_item_id ,i_item_desc diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query38.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query38.groovy index c2f269bffa..63951c5110 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query38.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query38.groovy @@ -29,6 +29,7 @@ suite("query38") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select count(*) from ( select distinct c_last_name, c_first_name, d_date diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query39.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query39.groovy index 4991d68aa4..cc3130829b 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query39.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query39.groovy @@ -29,6 +29,7 @@ suite("query39") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """with inv as (select w_warehouse_name,w_warehouse_sk,i_item_sk,d_moy diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query4.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query4.groovy index 3aeb28dcaa..363b6019b7 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query4.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query4.groovy @@ -29,6 +29,7 @@ suite("query4") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """with year_total as ( select c_customer_id customer_id diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query40.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query40.groovy index e89ddadcfb..bf3c8bcba5 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query40.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query40.groovy @@ -29,6 +29,7 @@ suite("query40") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select w_state diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query41.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query41.groovy index 6d7b53732f..2da38b937e 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query41.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query41.groovy @@ -29,6 +29,7 @@ suite("query41") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select distinct(i_product_name) from item i1 diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query42.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query42.groovy index b24f4c4f50..2e742a6d5d 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query42.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query42.groovy @@ -29,6 +29,7 @@ suite("query42") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select dt.d_year ,item.i_category_id diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query43.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query43.groovy index 843549d2e3..895117ba23 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query43.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query43.groovy @@ -29,6 +29,7 @@ suite("query43") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select s_store_name, s_store_id, sum(case when (d_day_name='Sunday') then ss_sales_price else null end) sun_sales, diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query44.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query44.groovy index e7a8543504..ee63467db2 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query44.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query44.groovy @@ -29,6 +29,7 @@ suite("query44") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select asceding.rnk, i1.i_product_name best_performing, i2.i_product_name worst_performing from(select * diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query45.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query45.groovy index 0830949b53..2dc555b0e7 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query45.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query45.groovy @@ -29,6 +29,7 @@ suite("query45") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select ca_zip, ca_city, sum(ws_sales_price) from web_sales, customer, customer_address, date_dim, item diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query46.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query46.groovy index 9b71e7de8c..6352c0cd44 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query46.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query46.groovy @@ -29,6 +29,7 @@ suite("query46") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select c_last_name ,c_first_name diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query47.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query47.groovy index f95d5fcda7..65bdaa77b4 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query47.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query47.groovy @@ -29,6 +29,7 @@ suite("query47") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """with v1 as( select i_category, i_brand, diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query48.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query48.groovy index 25fc045529..29aa2dd0dd 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query48.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query48.groovy @@ -29,6 +29,7 @@ suite("query48") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select sum (ss_quantity) from store_sales, store, customer_demographics, customer_address, date_dim diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query49.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query49.groovy index 140ef3fbbe..48a8ce0740 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query49.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query49.groovy @@ -29,6 +29,7 @@ suite("query49") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select channel, item, return_ratio, return_rank, currency_rank from (select diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query5.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query5.groovy index a06402e87b..230a1f766b 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query5.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query5.groovy @@ -29,6 +29,7 @@ suite("query5") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """with ssr as (select s_store_id, diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query50.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query50.groovy index a29671586b..8518305731 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query50.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query50.groovy @@ -29,6 +29,7 @@ suite("query50") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select s_store_name diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query51.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query51.groovy index f940eef655..e5c49b81df 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query51.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query51.groovy @@ -29,6 +29,7 @@ suite("query51") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """WITH web_v1 as ( select diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query52.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query52.groovy index 8e7ce9d528..747015b139 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query52.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query52.groovy @@ -29,6 +29,7 @@ suite("query52") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select dt.d_year ,item.i_brand_id brand_id diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query53.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query53.groovy index c0e0355b2f..44f6b9298c 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query53.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query53.groovy @@ -29,6 +29,7 @@ suite("query53") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select * from (select i_manufact_id, diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query54.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query54.groovy index f5899a0f10..3d5cb32046 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query54.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query54.groovy @@ -29,6 +29,7 @@ suite("query54") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """with my_customers as ( select distinct c_customer_sk diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query55.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query55.groovy index 683180f5fc..17969c92cb 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query55.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query55.groovy @@ -29,6 +29,7 @@ suite("query55") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select i_brand_id brand_id, i_brand brand, sum(ss_ext_sales_price) ext_price diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query56.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query56.groovy index f3451694db..383cafa5e0 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query56.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query56.groovy @@ -29,6 +29,7 @@ suite("query56") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """with ss as ( select i_item_id,sum(ss_ext_sales_price) total_sales diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query57.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query57.groovy index 0bc931de71..e3e19c808f 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query57.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query57.groovy @@ -29,6 +29,7 @@ suite("query57") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """with v1 as( select i_category, i_brand, diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query58.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query58.groovy index b227b5d1f4..3539d9544b 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query58.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query58.groovy @@ -29,6 +29,7 @@ suite("query58") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """with ss_items as (select i_item_id item_id diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query59.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query59.groovy index 1281bf8cdf..47bff37015 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query59.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query59.groovy @@ -29,6 +29,7 @@ suite("query59") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """with wss as (select d_week_seq, diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query6.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query6.groovy index dd2dcab7ec..4fb62187bc 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query6.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query6.groovy @@ -29,6 +29,7 @@ suite("query6") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select a.ca_state state, count(*) cnt from customer_address a diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query60.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query60.groovy index 5f0b8468ef..461e65ed72 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query60.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query60.groovy @@ -29,6 +29,7 @@ suite("query60") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """with ss as ( select diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query61.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query61.groovy index b722823808..7ed7c6a525 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query61.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query61.groovy @@ -29,6 +29,7 @@ suite("query61") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select promotions,total,cast(promotions as decimal(15,4))/cast(total as decimal(15,4))*100 from diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query62.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query62.groovy index 1d56afef5d..49aa286865 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query62.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query62.groovy @@ -29,6 +29,7 @@ suite("query62") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select substr(w_warehouse_name,1,20) diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query63.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query63.groovy index 1e81e214b3..621d5f8908 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query63.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query63.groovy @@ -29,6 +29,7 @@ suite("query63") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select * from (select i_manager_id diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query64.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query64.groovy index beef03a1ff..55190653ec 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query64.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query64.groovy @@ -29,6 +29,7 @@ suite("query64") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """with cs_ui as (select cs_item_sk diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query65.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query65.groovy index ebb95d12bf..ebbeea8abd 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query65.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query65.groovy @@ -29,6 +29,7 @@ suite("query65") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select s_store_name, diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query66.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query66.groovy index 3c64236ca4..5fe60e2cab 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query66.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query66.groovy @@ -29,6 +29,7 @@ suite("query66") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select w_warehouse_name diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query67.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query67.groovy index 623de6fdec..b770846d3e 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query67.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query67.groovy @@ -29,6 +29,7 @@ suite("query67") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select * from (select i_category diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query68.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query68.groovy index 4cd22e62b2..0d6f6e95e2 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query68.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query68.groovy @@ -29,6 +29,7 @@ suite("query68") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select c_last_name ,c_first_name diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query69.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query69.groovy index 83c72feeac..e5566c3a9b 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query69.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query69.groovy @@ -29,6 +29,7 @@ suite("query69") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select cd_gender, diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query7.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query7.groovy index 746679343f..8b7fd9175f 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query7.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query7.groovy @@ -29,6 +29,7 @@ suite("query7") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select i_item_id, avg(ss_quantity) agg1, diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query70.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query70.groovy index 149fa5aa64..1cf13e956b 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query70.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query70.groovy @@ -29,6 +29,7 @@ suite("query70") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select sum(ss_net_profit) as total_sum diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query71.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query71.groovy index 667a9a5a5f..10f7a8be9c 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query71.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query71.groovy @@ -29,6 +29,7 @@ suite("query71") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select i_brand_id brand_id, i_brand brand,t_hour,t_minute, sum(ext_price) ext_price diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query72.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query72.groovy index a01c328adb..4f9a018e2e 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query72.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query72.groovy @@ -29,6 +29,7 @@ suite("query72") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select i_item_desc ,w_warehouse_name diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query73.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query73.groovy index 525a259de0..5544873083 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query73.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query73.groovy @@ -29,6 +29,7 @@ suite("query73") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select c_last_name ,c_first_name diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query74.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query74.groovy index e6db1db223..f42dc7c6a4 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query74.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query74.groovy @@ -29,6 +29,7 @@ suite("query74") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """with year_total as ( select c_customer_id customer_id diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query75.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query75.groovy index d38b46371f..9eeb254104 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query75.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query75.groovy @@ -29,6 +29,7 @@ suite("query75") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """WITH all_sales AS ( SELECT d_year diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query76.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query76.groovy index c4ad3be839..bf5f4c8d97 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query76.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query76.groovy @@ -29,6 +29,7 @@ suite("query76") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select channel, col_name, d_year, d_qoy, i_category, COUNT(*) sales_cnt, SUM(ext_sales_price) sales_amt FROM ( SELECT 'store' as channel, 'ss_customer_sk' col_name, d_year, d_qoy, i_category, ss_ext_sales_price ext_sales_price diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query77.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query77.groovy index d45e6bb154..45693e6f1b 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query77.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query77.groovy @@ -29,6 +29,7 @@ suite("query77") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """with ss as (select s_store_sk, diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query78.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query78.groovy index adc3ae2027..7a8b57e767 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query78.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query78.groovy @@ -29,6 +29,7 @@ suite("query78") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """with ws as (select d_year AS ws_sold_year, ws_item_sk, diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query79.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query79.groovy index 0b36790607..fde72e0859 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query79.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query79.groovy @@ -29,6 +29,7 @@ suite("query79") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select c_last_name,c_first_name,substr(s_city,1,30),ss_ticket_number,amt,profit diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query8.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query8.groovy index 301736c4df..e8f8e6f4b0 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query8.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query8.groovy @@ -29,6 +29,7 @@ suite("query8") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select s_store_name ,sum(ss_net_profit) diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query80.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query80.groovy index 4a78451d5e..64e7f913ed 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query80.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query80.groovy @@ -29,6 +29,7 @@ suite("query80") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """with ssr as (select s_store_id as store_id, diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query81.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query81.groovy index 7f24cbe89b..f058cff75e 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query81.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query81.groovy @@ -29,6 +29,7 @@ suite("query81") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """with customer_total_return as (select cr_returning_customer_sk as ctr_customer_sk diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query82.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query82.groovy index b662f98059..49ca2c51e3 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query82.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query82.groovy @@ -29,6 +29,7 @@ suite("query82") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select i_item_id ,i_item_desc diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query83.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query83.groovy index 570a2a7693..2f0de7342b 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query83.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query83.groovy @@ -29,6 +29,7 @@ suite("query83") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """with sr_items as (select i_item_id item_id, diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query84.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query84.groovy index 91ededbadd..a69dd44fb3 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query84.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query84.groovy @@ -29,6 +29,7 @@ suite("query84") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select c_customer_id as customer_id , concat(concat(coalesce(c_last_name,''), ','), coalesce(c_first_name,'')) as customername diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query85.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query85.groovy index 7ecc82369a..3ef45ade8b 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query85.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query85.groovy @@ -29,6 +29,7 @@ suite("query85") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select substr(r_reason_desc,1,20) ,avg(ws_quantity) diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query86.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query86.groovy index 57557c327d..6803b4b594 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query86.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query86.groovy @@ -29,6 +29,7 @@ suite("query86") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select sum(ws_net_paid) as total_sum diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query87.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query87.groovy index a4abcae1a7..6a7e665ea4 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query87.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query87.groovy @@ -29,6 +29,7 @@ suite("query87") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select count(*) from ((select distinct c_last_name, c_first_name, d_date diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query88.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query88.groovy index 14a8ae12c3..401af85bd6 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query88.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query88.groovy @@ -29,6 +29,7 @@ suite("query88") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select * from diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query89.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query89.groovy index 65a2b80a3d..8e654061dc 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query89.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query89.groovy @@ -29,6 +29,7 @@ suite("query89") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select * from( diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query9.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query9.groovy index 6e0edf4376..8110bc942b 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query9.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query9.groovy @@ -29,6 +29,7 @@ suite("query9") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select case when (select count(*) from store_sales diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query90.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query90.groovy index 36f7a90428..1a6743a7d6 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query90.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query90.groovy @@ -29,6 +29,7 @@ suite("query90") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select cast(amc as decimal(15,4))/cast(pmc as decimal(15,4)) am_pm_ratio from ( select count(*) amc diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query91.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query91.groovy index 2e56a09692..fe2e497bc2 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query91.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query91.groovy @@ -29,6 +29,7 @@ suite("query91") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select cc_call_center_id Call_Center, diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query92.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query92.groovy index febc29b375..181cdfb32a 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query92.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query92.groovy @@ -29,6 +29,7 @@ suite("query92") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select sum(ws_ext_discount_amt) as "Excess Discount Amount" diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query93.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query93.groovy index 6254c7a976..c03b904607 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query93.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query93.groovy @@ -29,6 +29,7 @@ suite("query93") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select ss_customer_sk ,sum(act_sales) sumsales diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query94.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query94.groovy index a8b90773d9..bbbdca8c7e 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query94.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query94.groovy @@ -29,6 +29,7 @@ suite("query94") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select count(distinct ws_order_number) as "order count" diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query95.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query95.groovy index 144c9444db..eda70ba6ed 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query95.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query95.groovy @@ -29,6 +29,7 @@ suite("query95") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """with ws_wh as (select ws1.ws_order_number,ws1.ws_warehouse_sk wh1,ws2.ws_warehouse_sk wh2 diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query96.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query96.groovy index 1093559e5f..b296603c79 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query96.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query96.groovy @@ -29,6 +29,7 @@ suite("query96") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select count(*) from store_sales diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query97.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query97.groovy index dec8ba4fd8..93b3e29d90 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query97.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query97.groovy @@ -29,6 +29,7 @@ suite("query97") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """with ssci as ( select ss_customer_sk customer_sk diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query98.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query98.groovy index 9a9ef4e9af..118b1fd6cc 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query98.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query98.groovy @@ -29,6 +29,7 @@ suite("query98") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select i_item_id ,i_item_desc diff --git a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query99.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query99.groovy index d1e5adf774..e560299d8a 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query99.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query99.groovy @@ -29,6 +29,7 @@ suite("query99") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' sql 'set dump_nereids_memo=true' def ds = """select substr(w_warehouse_name,1,20) diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/ddl/rf_prune.tmpl b/regression-test/suites/nereids_tpcds_shape_sf100_p0/ddl/rf_prune.tmpl index ef0261d4f7..01feb595aa 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/ddl/rf_prune.tmpl +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/ddl/rf_prune.tmpl @@ -28,6 +28,7 @@ suite("query{--}") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """{query}""" diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/ddl/shape.tmpl b/regression-test/suites/nereids_tpcds_shape_sf100_p0/ddl/shape.tmpl index dee3972b8b..438826daf1 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/ddl/shape.tmpl +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/ddl/shape.tmpl @@ -29,6 +29,7 @@ suite("query{--}") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """{query}""" qt_ds_shape_{--} """ explain shape plan diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query1.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query1.groovy index 0e1e2bd942..d989f204ea 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query1.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query1.groovy @@ -27,7 +27,8 @@ suite("query1") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query10.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query10.groovy index 65620ac556..05087fc854 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query10.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query10.groovy @@ -27,7 +27,8 @@ suite("query10") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query11.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query11.groovy index 0250982737..b3b183f53e 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query11.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query11.groovy @@ -27,7 +27,8 @@ suite("query11") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query12.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query12.groovy index c34f2376c4..f49923b289 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query12.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query12.groovy @@ -27,7 +27,8 @@ suite("query12") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query13.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query13.groovy index e14fd18898..3492976381 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query13.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query13.groovy @@ -27,7 +27,8 @@ suite("query13") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query14.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query14.groovy index 8719f4f324..125bd6ce9b 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query14.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query14.groovy @@ -27,7 +27,8 @@ suite("query14") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query15.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query15.groovy index 4ff03f461d..33ac6f6da1 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query15.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query15.groovy @@ -27,7 +27,8 @@ suite("query15") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query16.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query16.groovy index 1daee4c033..50797aa4a9 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query16.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query16.groovy @@ -27,7 +27,8 @@ suite("query16") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query17.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query17.groovy index 0d5f654130..ddc15d7fb3 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query17.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query17.groovy @@ -27,7 +27,8 @@ suite("query17") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query18.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query18.groovy index 6c8e4410d7..26f3240dc4 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query18.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query18.groovy @@ -27,7 +27,8 @@ suite("query18") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query19.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query19.groovy index 9b2262f5b9..6535cac97c 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query19.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query19.groovy @@ -27,7 +27,8 @@ suite("query19") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query2.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query2.groovy index 531f68d94e..d44fec3d54 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query2.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query2.groovy @@ -27,7 +27,8 @@ suite("query2") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query20.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query20.groovy index 989c07db0f..e2e001df12 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query20.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query20.groovy @@ -27,7 +27,8 @@ suite("query20") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query21.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query21.groovy index a7d7efc1d5..a65a00bd68 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query21.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query21.groovy @@ -27,7 +27,8 @@ suite("query21") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query22.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query22.groovy index 81bdc718fa..fdfbfc5d6c 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query22.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query22.groovy @@ -27,7 +27,8 @@ suite("query22") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query23.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query23.groovy index b3af9ffc77..a682d91fb7 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query23.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query23.groovy @@ -27,7 +27,8 @@ suite("query23") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query24.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query24.groovy index eb2119f8f4..2c5be13a65 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query24.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query24.groovy @@ -27,7 +27,8 @@ suite("query24") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query25.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query25.groovy index 350226d896..d86d4b7701 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query25.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query25.groovy @@ -27,7 +27,8 @@ suite("query25") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query26.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query26.groovy index bb5a94bc83..e2df053da4 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query26.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query26.groovy @@ -27,7 +27,8 @@ suite("query26") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query27.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query27.groovy index c95e645ac6..9d24d419cc 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query27.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query27.groovy @@ -27,7 +27,8 @@ suite("query27") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query28.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query28.groovy index ecede28c79..747d17c610 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query28.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query28.groovy @@ -27,7 +27,8 @@ suite("query28") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query29.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query29.groovy index 32f92522ae..7337427803 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query29.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query29.groovy @@ -27,7 +27,8 @@ suite("query29") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query3.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query3.groovy index 606ae457a4..82e4cea197 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query3.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query3.groovy @@ -27,7 +27,8 @@ suite("query3") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query30.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query30.groovy index 3d1c5bc00a..fe2f590679 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query30.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query30.groovy @@ -27,7 +27,8 @@ suite("query30") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query31.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query31.groovy index 64d646f725..848f18e066 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query31.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query31.groovy @@ -27,7 +27,8 @@ suite("query31") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query32.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query32.groovy index 4e59ee5672..1d3d4b511c 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query32.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query32.groovy @@ -27,7 +27,8 @@ suite("query32") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query33.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query33.groovy index 205e03b446..61713e91c7 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query33.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query33.groovy @@ -27,7 +27,8 @@ suite("query33") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query34.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query34.groovy index 900e8838ec..a829351b0a 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query34.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query34.groovy @@ -27,7 +27,8 @@ suite("query34") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query35.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query35.groovy index 45fe68795b..075c9e1b1a 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query35.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query35.groovy @@ -27,7 +27,8 @@ suite("query35") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query36.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query36.groovy index a8811ca322..c03319d075 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query36.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query36.groovy @@ -27,7 +27,8 @@ suite("query36") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query37.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query37.groovy index dea9c6611a..4e482dbb80 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query37.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query37.groovy @@ -27,7 +27,8 @@ suite("query37") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query38.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query38.groovy index f6eee2e0dd..30c07dc016 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query38.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query38.groovy @@ -27,7 +27,8 @@ suite("query38") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query39.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query39.groovy index 21ffd76819..aac30780bb 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query39.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query39.groovy @@ -27,7 +27,8 @@ suite("query39") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query4.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query4.groovy index 0e37c7479c..bcf1f1531a 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query4.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query4.groovy @@ -27,7 +27,8 @@ suite("query4") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query40.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query40.groovy index acab07c422..823ba39be0 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query40.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query40.groovy @@ -27,7 +27,8 @@ suite("query40") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query41.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query41.groovy index 888c67135f..7b386b79b2 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query41.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query41.groovy @@ -27,7 +27,8 @@ suite("query41") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query42.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query42.groovy index 991f697d71..4eacedbf4f 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query42.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query42.groovy @@ -27,7 +27,8 @@ suite("query42") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query43.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query43.groovy index f5c58e3e37..ac9730a433 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query43.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query43.groovy @@ -27,7 +27,8 @@ suite("query43") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query44.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query44.groovy index f814fa09fe..a319e90b17 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query44.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query44.groovy @@ -27,7 +27,8 @@ suite("query44") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query45.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query45.groovy index d6130d3924..7c3de6ddaa 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query45.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query45.groovy @@ -27,7 +27,8 @@ suite("query45") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query46.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query46.groovy index 31e080e488..c8d27e3424 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query46.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query46.groovy @@ -27,7 +27,8 @@ suite("query46") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query47.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query47.groovy index 8b0b8d68cb..0524a9146f 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query47.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query47.groovy @@ -27,7 +27,8 @@ suite("query47") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query48.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query48.groovy index f5537fe681..261ff96c27 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query48.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query48.groovy @@ -27,7 +27,8 @@ suite("query48") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query49.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query49.groovy index c0042cb8d8..cb42805f0c 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query49.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query49.groovy @@ -27,7 +27,8 @@ suite("query49") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query5.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query5.groovy index 85b533ae51..20975924c7 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query5.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query5.groovy @@ -27,7 +27,8 @@ suite("query5") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query50.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query50.groovy index f2e6b2b43c..328acb85bf 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query50.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query50.groovy @@ -27,7 +27,8 @@ suite("query50") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query51.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query51.groovy index 89de95ce8f..c5ea4dabde 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query51.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query51.groovy @@ -27,7 +27,8 @@ suite("query51") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query52.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query52.groovy index 7663fa50ee..032415d937 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query52.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query52.groovy @@ -27,7 +27,8 @@ suite("query52") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query53.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query53.groovy index ec8b6b6463..c39591fb9b 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query53.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query53.groovy @@ -27,7 +27,8 @@ suite("query53") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query54.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query54.groovy index 7e1bc91904..548c5c9c1b 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query54.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query54.groovy @@ -27,7 +27,8 @@ suite("query54") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query55.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query55.groovy index a5f2996615..eb31ff50f2 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query55.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query55.groovy @@ -27,7 +27,8 @@ suite("query55") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query56.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query56.groovy index c1f13f6b57..8a17401ff6 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query56.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query56.groovy @@ -27,7 +27,8 @@ suite("query56") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query57.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query57.groovy index 93b8a90653..ae115e9271 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query57.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query57.groovy @@ -27,7 +27,8 @@ suite("query57") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query58.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query58.groovy index accdbad595..ca816a730a 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query58.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query58.groovy @@ -27,7 +27,8 @@ suite("query58") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query59.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query59.groovy index 979969e5d4..9287498003 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query59.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query59.groovy @@ -27,7 +27,8 @@ suite("query59") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query6.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query6.groovy index f1509e5258..acd5c79fcc 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query6.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query6.groovy @@ -27,7 +27,8 @@ suite("query6") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query60.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query60.groovy index b151f057ba..8a8ea8177b 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query60.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query60.groovy @@ -27,7 +27,8 @@ suite("query60") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query61.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query61.groovy index 6cd464656d..8931f91e3e 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query61.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query61.groovy @@ -27,7 +27,8 @@ suite("query61") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query62.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query62.groovy index 1344bc7997..90ba4ad960 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query62.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query62.groovy @@ -27,7 +27,8 @@ suite("query62") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query63.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query63.groovy index f0e32f0ae8..c975b53d7d 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query63.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query63.groovy @@ -27,7 +27,8 @@ suite("query63") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query64.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query64.groovy index 89bcd5d85a..ff08e383f4 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query64.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query64.groovy @@ -27,7 +27,8 @@ suite("query64") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query65.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query65.groovy index 40a604f7f3..5f4d544248 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query65.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query65.groovy @@ -27,7 +27,8 @@ suite("query65") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query66.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query66.groovy index 450cb99401..3c21e3e234 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query66.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query66.groovy @@ -27,7 +27,8 @@ suite("query66") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query67.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query67.groovy index dd0df5a21a..14d78d5910 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query67.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query67.groovy @@ -27,7 +27,8 @@ suite("query67") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query68.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query68.groovy index 510a146a49..cec709be27 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query68.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query68.groovy @@ -27,7 +27,8 @@ suite("query68") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query69.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query69.groovy index df16047027..35d4b56ed3 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query69.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query69.groovy @@ -27,7 +27,8 @@ suite("query69") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query7.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query7.groovy index d6b3b3337b..a8f7d32c4e 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query7.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query7.groovy @@ -27,7 +27,8 @@ suite("query7") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query70.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query70.groovy index c6ae958f56..49d0ea1a7f 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query70.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query70.groovy @@ -27,7 +27,8 @@ suite("query70") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query71.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query71.groovy index edab120d09..dfcda48912 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query71.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query71.groovy @@ -27,7 +27,8 @@ suite("query71") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query72.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query72.groovy index 82956805de..197e97719b 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query72.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query72.groovy @@ -27,7 +27,8 @@ suite("query72") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query73.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query73.groovy index 4ac9bdb8af..3823c66076 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query73.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query73.groovy @@ -27,7 +27,8 @@ suite("query73") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query74.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query74.groovy index b5e0388a97..e88ef8b21b 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query74.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query74.groovy @@ -27,7 +27,8 @@ suite("query74") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query75.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query75.groovy index e53f90b8e7..3e7648179e 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query75.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query75.groovy @@ -27,7 +27,8 @@ suite("query75") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query76.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query76.groovy index 6d17c8b8f3..62293b649d 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query76.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query76.groovy @@ -27,7 +27,8 @@ suite("query76") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query77.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query77.groovy index edca02ef57..4fe8740e38 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query77.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query77.groovy @@ -27,7 +27,8 @@ suite("query77") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query78.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query78.groovy index a3b3ec0cee..e680c19c56 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query78.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query78.groovy @@ -27,7 +27,8 @@ suite("query78") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query79.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query79.groovy index 0dcbff1382..6f775f4f55 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query79.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query79.groovy @@ -27,7 +27,8 @@ suite("query79") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query8.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query8.groovy index 0c61c8c5ba..0012c07677 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query8.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query8.groovy @@ -27,7 +27,8 @@ suite("query8") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query80.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query80.groovy index fe0aef24d7..caa2a2a1b2 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query80.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query80.groovy @@ -27,7 +27,8 @@ suite("query80") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query81.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query81.groovy index 9a062a3caf..5c4656e521 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query81.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query81.groovy @@ -27,7 +27,8 @@ suite("query81") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query82.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query82.groovy index 77d8d5da9b..398de49bac 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query82.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query82.groovy @@ -27,7 +27,8 @@ suite("query82") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query83.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query83.groovy index 9a378a0edd..5bda799a77 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query83.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query83.groovy @@ -27,7 +27,8 @@ suite("query83") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query84.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query84.groovy index 0b1fc72336..22339b0162 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query84.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query84.groovy @@ -27,7 +27,8 @@ suite("query84") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query85.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query85.groovy index c39e14fbc5..ad6d27dade 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query85.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query85.groovy @@ -27,7 +27,8 @@ suite("query85") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query86.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query86.groovy index 6eebbf705e..6b79ce082b 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query86.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query86.groovy @@ -27,7 +27,8 @@ suite("query86") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query87.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query87.groovy index af24851e69..a84d7c5ce2 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query87.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query87.groovy @@ -27,7 +27,8 @@ suite("query87") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query88.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query88.groovy index f06be94103..b78cfb405e 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query88.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query88.groovy @@ -27,7 +27,8 @@ suite("query88") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query89.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query89.groovy index 44765b6292..9a6a500f43 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query89.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query89.groovy @@ -27,7 +27,8 @@ suite("query89") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query9.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query9.groovy index edaf47049a..96597fd9e2 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query9.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query9.groovy @@ -27,7 +27,8 @@ suite("query9") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query90.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query90.groovy index 17422019b6..802d8e910a 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query90.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query90.groovy @@ -27,7 +27,8 @@ suite("query90") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query91.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query91.groovy index 7113a199e3..29986fb88f 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query91.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query91.groovy @@ -27,7 +27,8 @@ suite("query91") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query92.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query92.groovy index aabe7ee893..f313dc3b56 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query92.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query92.groovy @@ -27,7 +27,8 @@ suite("query92") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query93.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query93.groovy index 62206835f3..6e40745697 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query93.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query93.groovy @@ -27,7 +27,8 @@ suite("query93") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query94.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query94.groovy index 6232b096df..668173c099 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query94.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query94.groovy @@ -27,7 +27,8 @@ suite("query94") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query95.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query95.groovy index f3178bf078..1c21c8264e 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query95.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query95.groovy @@ -27,7 +27,8 @@ suite("query95") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query96.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query96.groovy index 47fc1f899c..dd0fb0a2a0 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query96.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query96.groovy @@ -27,7 +27,8 @@ suite("query96") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query97.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query97.groovy index 1da5b88685..68488e1384 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query97.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query97.groovy @@ -27,7 +27,8 @@ suite("query97") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query98.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query98.groovy index 888386ddf0..a4491c0bbe 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query98.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query98.groovy @@ -27,7 +27,8 @@ suite("query98") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query99.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query99.groovy index 7d6452656b..4f86245024 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query99.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query99.groovy @@ -27,7 +27,8 @@ suite("query99") { sql 'set enable_runtime_filter_prune=true' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query1.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query1.groovy index 26554a39f8..e681e8970b 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query1.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query1.groovy @@ -27,7 +27,8 @@ suite("query1") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query10.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query10.groovy index 53d0148b50..9b54b0000f 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query10.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query10.groovy @@ -27,7 +27,8 @@ suite("query10") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query11.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query11.groovy index 846c94982d..8fece7871d 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query11.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query11.groovy @@ -27,7 +27,8 @@ suite("query11") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query12.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query12.groovy index a93431498f..58e1869dce 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query12.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query12.groovy @@ -27,7 +27,8 @@ suite("query12") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query13.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query13.groovy index 509b40264e..f3b0e3b705 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query13.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query13.groovy @@ -27,7 +27,8 @@ suite("query13") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query14.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query14.groovy index 97a628d2d1..f67be346e7 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query14.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query14.groovy @@ -27,7 +27,8 @@ suite("query14") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query15.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query15.groovy index 6298af6624..c7e5bece88 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query15.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query15.groovy @@ -27,7 +27,8 @@ suite("query15") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query16.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query16.groovy index bafff2194d..d7a0d509f2 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query16.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query16.groovy @@ -27,7 +27,8 @@ suite("query16") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query17.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query17.groovy index dce42b8bfe..fddb5222d8 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query17.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query17.groovy @@ -27,7 +27,8 @@ suite("query17") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query18.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query18.groovy index 7de1ba01a1..9f76dc6227 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query18.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query18.groovy @@ -27,7 +27,8 @@ suite("query18") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query19.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query19.groovy index 266206bdd7..1c48e3a0af 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query19.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query19.groovy @@ -27,7 +27,8 @@ suite("query19") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query2.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query2.groovy index 85f4d45552..85bbd425de 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query2.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query2.groovy @@ -27,7 +27,8 @@ suite("query2") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query20.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query20.groovy index 639ced355d..653a8f4b93 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query20.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query20.groovy @@ -27,7 +27,8 @@ suite("query20") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query21.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query21.groovy index 2cec3502f8..f970316dc6 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query21.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query21.groovy @@ -27,7 +27,8 @@ suite("query21") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query22.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query22.groovy index f741e48935..f2ff38732d 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query22.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query22.groovy @@ -27,7 +27,8 @@ suite("query22") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query23.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query23.groovy index 1c65c846ff..ba36794af0 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query23.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query23.groovy @@ -27,7 +27,8 @@ suite("query23") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query24.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query24.groovy index adab9c674c..118a3abd21 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query24.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query24.groovy @@ -27,7 +27,8 @@ suite("query24") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query25.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query25.groovy index bbc28a7d80..22b59eab59 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query25.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query25.groovy @@ -27,7 +27,8 @@ suite("query25") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query26.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query26.groovy index 4bb5d14694..666f666745 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query26.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query26.groovy @@ -27,7 +27,8 @@ suite("query26") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query27.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query27.groovy index 05c6e51538..49bbd943cd 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query27.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query27.groovy @@ -27,7 +27,8 @@ suite("query27") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query28.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query28.groovy index 8719c1ddb2..5e4e692230 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query28.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query28.groovy @@ -27,7 +27,8 @@ suite("query28") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query29.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query29.groovy index 1971fbd33a..110146adc7 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query29.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query29.groovy @@ -27,7 +27,8 @@ suite("query29") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query3.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query3.groovy index ac128a2e82..844214fc1f 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query3.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query3.groovy @@ -27,7 +27,8 @@ suite("query3") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query30.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query30.groovy index 3b890af7cd..3ab6eab341 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query30.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query30.groovy @@ -27,7 +27,8 @@ suite("query30") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query31.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query31.groovy index c69d01e9c7..d5c38c6580 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query31.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query31.groovy @@ -27,7 +27,8 @@ suite("query31") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query32.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query32.groovy index 3227e2ccb9..7ad1d1850f 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query32.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query32.groovy @@ -27,7 +27,8 @@ suite("query32") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query33.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query33.groovy index 6bf2033571..81646fbb2b 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query33.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query33.groovy @@ -27,7 +27,8 @@ suite("query33") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query34.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query34.groovy index 65eaa27b7e..18921e29ed 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query34.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query34.groovy @@ -27,7 +27,8 @@ suite("query34") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query35.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query35.groovy index 7b68391541..715d79fb0f 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query35.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query35.groovy @@ -27,7 +27,8 @@ suite("query35") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query36.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query36.groovy index 9f0ea88631..fb1016f7ab 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query36.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query36.groovy @@ -27,7 +27,8 @@ suite("query36") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query37.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query37.groovy index cd8a9207dd..ba5b7571ee 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query37.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query37.groovy @@ -27,7 +27,8 @@ suite("query37") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query38.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query38.groovy index 2abfd09519..2af0ad48c6 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query38.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query38.groovy @@ -27,7 +27,8 @@ suite("query38") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query39.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query39.groovy index 024651a30c..192f492468 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query39.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query39.groovy @@ -27,7 +27,8 @@ suite("query39") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query4.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query4.groovy index ab34d48243..b3969232aa 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query4.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query4.groovy @@ -27,7 +27,8 @@ suite("query4") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query40.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query40.groovy index 5efdc2f4f5..c50aa4bc32 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query40.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query40.groovy @@ -27,7 +27,8 @@ suite("query40") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query41.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query41.groovy index 552219d573..74587534ef 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query41.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query41.groovy @@ -27,7 +27,8 @@ suite("query41") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query42.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query42.groovy index 81a317b15e..4e89f85bad 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query42.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query42.groovy @@ -27,7 +27,8 @@ suite("query42") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query43.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query43.groovy index 79909c1619..907769e323 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query43.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query43.groovy @@ -27,7 +27,8 @@ suite("query43") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query44.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query44.groovy index 4b0f61a501..43f24de882 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query44.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query44.groovy @@ -27,7 +27,8 @@ suite("query44") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query45.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query45.groovy index 5b79a3c120..19647b4f2d 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query45.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query45.groovy @@ -27,7 +27,8 @@ suite("query45") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query46.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query46.groovy index 6b99ca9440..935fdd6f01 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query46.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query46.groovy @@ -27,7 +27,8 @@ suite("query46") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query47.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query47.groovy index 553728ba5a..33778042da 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query47.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query47.groovy @@ -27,7 +27,8 @@ suite("query47") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query48.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query48.groovy index c93541ec6f..2db035e029 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query48.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query48.groovy @@ -27,7 +27,8 @@ suite("query48") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query49.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query49.groovy index cf95e2be47..b101e0cbbe 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query49.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query49.groovy @@ -27,7 +27,8 @@ suite("query49") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query5.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query5.groovy index 6e4cf14c72..2060a9bb54 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query5.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query5.groovy @@ -27,7 +27,8 @@ suite("query5") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query50.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query50.groovy index 638fca1716..7eaf37c57d 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query50.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query50.groovy @@ -27,7 +27,8 @@ suite("query50") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query51.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query51.groovy index c769f23aab..8da459061c 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query51.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query51.groovy @@ -27,7 +27,8 @@ suite("query51") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query52.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query52.groovy index e5d0953ed8..5a93ff4826 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query52.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query52.groovy @@ -27,7 +27,8 @@ suite("query52") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query53.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query53.groovy index e686e69b21..fe8a670bb5 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query53.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query53.groovy @@ -27,7 +27,8 @@ suite("query53") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query54.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query54.groovy index 572e701439..919d77122e 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query54.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query54.groovy @@ -27,7 +27,8 @@ suite("query54") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query55.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query55.groovy index c6a8a854ab..324e71cdf8 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query55.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query55.groovy @@ -27,7 +27,8 @@ suite("query55") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query56.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query56.groovy index 3eaae3415e..fc8c2e042a 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query56.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query56.groovy @@ -27,7 +27,8 @@ suite("query56") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query57.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query57.groovy index ad49909882..356fdbcdf0 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query57.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query57.groovy @@ -27,7 +27,8 @@ suite("query57") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query58.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query58.groovy index a6b104862c..4b27b2005c 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query58.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query58.groovy @@ -27,7 +27,8 @@ suite("query58") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query59.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query59.groovy index 50c41ed925..646ce58330 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query59.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query59.groovy @@ -27,7 +27,8 @@ suite("query59") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query6.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query6.groovy index 088d3fb2ec..e46f5570e0 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query6.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query6.groovy @@ -27,7 +27,8 @@ suite("query6") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query60.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query60.groovy index 18d95002cd..45f1a4e3cb 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query60.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query60.groovy @@ -27,7 +27,8 @@ suite("query60") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query61.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query61.groovy index 70c917d449..233c64c9a5 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query61.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query61.groovy @@ -27,7 +27,8 @@ suite("query61") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query62.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query62.groovy index 0d9f5b6a4b..3c39001f40 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query62.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query62.groovy @@ -27,7 +27,8 @@ suite("query62") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query63.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query63.groovy index 9d6d3d7a7b..da2017a12d 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query63.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query63.groovy @@ -27,7 +27,8 @@ suite("query63") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query64.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query64.groovy index 342b1a1ed2..dce51ae421 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query64.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query64.groovy @@ -27,7 +27,8 @@ suite("query64") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query65.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query65.groovy index 524325a739..cace677a28 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query65.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query65.groovy @@ -27,7 +27,8 @@ suite("query65") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query66.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query66.groovy index 7659b2ec1b..0ff32e34d3 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query66.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query66.groovy @@ -27,7 +27,8 @@ suite("query66") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query67.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query67.groovy index 7d55220c9d..2369c97254 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query67.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query67.groovy @@ -27,7 +27,8 @@ suite("query67") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query68.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query68.groovy index 24c974ebb8..a00dab4d3f 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query68.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query68.groovy @@ -27,7 +27,8 @@ suite("query68") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query69.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query69.groovy index 698aae70a0..2c4f3412d5 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query69.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query69.groovy @@ -27,7 +27,8 @@ suite("query69") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query7.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query7.groovy index ef8733e8da..32c4200525 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query7.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query7.groovy @@ -27,7 +27,8 @@ suite("query7") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query70.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query70.groovy index 62c69a3586..acf2122d61 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query70.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query70.groovy @@ -27,7 +27,8 @@ suite("query70") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query71.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query71.groovy index a732004237..82446c56be 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query71.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query71.groovy @@ -27,7 +27,8 @@ suite("query71") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query72.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query72.groovy index 0be1a56791..90f3e0df19 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query72.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query72.groovy @@ -27,7 +27,8 @@ suite("query72") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query73.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query73.groovy index 9dabb2aefa..41685a27e8 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query73.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query73.groovy @@ -27,7 +27,8 @@ suite("query73") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query74.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query74.groovy index ca97c586ee..921ccabbee 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query74.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query74.groovy @@ -27,7 +27,8 @@ suite("query74") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query75.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query75.groovy index d01415b6d0..2dec925800 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query75.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query75.groovy @@ -27,7 +27,8 @@ suite("query75") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query76.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query76.groovy index 421ffcef1f..223e5ef0a0 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query76.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query76.groovy @@ -27,7 +27,8 @@ suite("query76") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query77.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query77.groovy index 72a5f87468..424ead90e7 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query77.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query77.groovy @@ -27,7 +27,8 @@ suite("query77") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query78.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query78.groovy index 23ec3579a8..7603fd5f19 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query78.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query78.groovy @@ -27,7 +27,8 @@ suite("query78") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query79.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query79.groovy index 2cdd1a0084..3bebd7510c 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query79.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query79.groovy @@ -27,7 +27,8 @@ suite("query79") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query8.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query8.groovy index 0370cac4fd..f348de0c34 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query8.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query8.groovy @@ -27,7 +27,8 @@ suite("query8") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query80.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query80.groovy index 8364c27392..eab3314110 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query80.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query80.groovy @@ -27,7 +27,8 @@ suite("query80") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query81.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query81.groovy index 6852b31a6b..3704d3fc04 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query81.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query81.groovy @@ -27,7 +27,8 @@ suite("query81") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query82.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query82.groovy index 9ead5359b8..8ad252a81c 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query82.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query82.groovy @@ -27,7 +27,8 @@ suite("query82") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query83.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query83.groovy index 9ccbacafe1..3db555de00 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query83.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query83.groovy @@ -27,7 +27,8 @@ suite("query83") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query84.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query84.groovy index 10fa88d8c6..4fce1377b2 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query84.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query84.groovy @@ -27,7 +27,8 @@ suite("query84") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query85.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query85.groovy index d65815456c..75d69b73fd 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query85.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query85.groovy @@ -27,7 +27,8 @@ suite("query85") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query86.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query86.groovy index eab2c3635f..3df80607f9 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query86.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query86.groovy @@ -27,7 +27,8 @@ suite("query86") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query87.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query87.groovy index 4331712f3a..e602706d17 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query87.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query87.groovy @@ -27,7 +27,8 @@ suite("query87") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query88.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query88.groovy index a560ed77f1..b8492f74fb 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query88.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query88.groovy @@ -27,7 +27,8 @@ suite("query88") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query89.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query89.groovy index d07b1ecdb2..e672fa56aa 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query89.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query89.groovy @@ -27,7 +27,8 @@ suite("query89") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query9.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query9.groovy index 1a6213df0e..2e22ba1fd0 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query9.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query9.groovy @@ -27,7 +27,8 @@ suite("query9") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query90.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query90.groovy index eaec05f3b0..21805cf06e 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query90.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query90.groovy @@ -27,7 +27,8 @@ suite("query90") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query91.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query91.groovy index 7808aecb4b..273551a063 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query91.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query91.groovy @@ -27,7 +27,8 @@ suite("query91") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query92.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query92.groovy index 5d8a4eccb1..c15c9038ad 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query92.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query92.groovy @@ -27,7 +27,8 @@ suite("query92") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query93.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query93.groovy index 1f102c46bd..f36af29ff8 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query93.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query93.groovy @@ -27,7 +27,8 @@ suite("query93") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query94.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query94.groovy index 927d225cb9..1a57894dd8 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query94.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query94.groovy @@ -27,7 +27,8 @@ suite("query94") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query95.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query95.groovy index 00cb9d60e4..dca29abc66 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query95.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query95.groovy @@ -27,7 +27,8 @@ suite("query95") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query96.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query96.groovy index 23df0cd352..d4d96281cb 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query96.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query96.groovy @@ -27,7 +27,8 @@ suite("query96") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query97.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query97.groovy index 0aca247d0d..6bd42fcb6a 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query97.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query97.groovy @@ -27,7 +27,8 @@ suite("query97") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query98.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query98.groovy index b80e74bc1d..81b70e0571 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query98.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query98.groovy @@ -27,7 +27,8 @@ suite("query98") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query99.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query99.groovy index 5e745966f7..82eb43352f 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query99.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/no_stats_shape/query99.groovy @@ -27,7 +27,8 @@ suite("query99") { sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' sql 'set forbid_unknown_col_stats=false' -sql 'set enable_stats=false' + sql 'set enable_stats=false' + sql "set runtime_filter_type=8" sql 'set broadcast_row_count_limit = 30000000' sql 'set enable_nereids_timeout = false' sql 'SET enable_pipeline_engine = true' diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query1.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query1.groovy index 3fbe8f0141..f40fe89879 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query1.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query1.groovy @@ -28,6 +28,7 @@ suite("query1") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """with customer_total_return as diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query10.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query10.groovy index e06d86f9a0..13f61d4435 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query10.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query10.groovy @@ -28,6 +28,7 @@ suite("query10") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query11.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query11.groovy index 5911091adb..d1a157a901 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query11.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query11.groovy @@ -28,6 +28,7 @@ suite("query11") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """with year_total as ( diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query12.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query12.groovy index d923f38c6e..1e581474ba 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query12.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query12.groovy @@ -28,6 +28,7 @@ suite("query12") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select i_item_id diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query13.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query13.groovy index 335e78f913..1614a78963 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query13.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query13.groovy @@ -28,6 +28,7 @@ suite("query13") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select avg(ss_quantity) diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query14.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query14.groovy index cc86d73025..0c37eaf967 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query14.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query14.groovy @@ -28,6 +28,7 @@ suite("query14") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """with cross_items as diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query15.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query15.groovy index a5c877ffa7..1d7dee8d55 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query15.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query15.groovy @@ -28,6 +28,7 @@ suite("query15") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select ca_zip diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query16.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query16.groovy index 5193583507..4a585246ca 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query16.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query16.groovy @@ -28,6 +28,7 @@ suite("query16") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query17.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query17.groovy index 9677ea7f2e..2a81db0eb6 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query17.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query17.groovy @@ -28,6 +28,7 @@ suite("query17") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select i_item_id diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query18.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query18.groovy index 03bde04c2b..ca46be0d3b 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query18.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query18.groovy @@ -28,6 +28,7 @@ suite("query18") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select i_item_id, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query19.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query19.groovy index a96af3a85b..b54f85fbef 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query19.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query19.groovy @@ -28,6 +28,7 @@ suite("query19") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select i_brand_id brand_id, i_brand brand, i_manufact_id, i_manufact, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query2.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query2.groovy index 11d726ef82..a85edc048c 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query2.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query2.groovy @@ -28,6 +28,7 @@ suite("query2") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """with wscs as diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query20.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query20.groovy index fe25128298..234f636f29 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query20.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query20.groovy @@ -28,6 +28,7 @@ suite("query20") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select i_item_id diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query21.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query21.groovy index 7efe0f921e..fa7b40fa90 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query21.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query21.groovy @@ -28,6 +28,7 @@ suite("query21") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select * diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query22.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query22.groovy index 8604b47f85..f67fc47b50 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query22.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query22.groovy @@ -28,6 +28,7 @@ suite("query22") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select i_product_name diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query23.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query23.groovy index d9a2f937f0..51b70cbc1f 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query23.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query23.groovy @@ -28,6 +28,7 @@ suite("query23") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """with frequent_ss_items as diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query24.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query24.groovy index 52c235516c..c53be825cf 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query24.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query24.groovy @@ -28,6 +28,7 @@ suite("query24") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """with ssales as diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query25.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query25.groovy index 0f16e5496d..8b8763fd97 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query25.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query25.groovy @@ -28,6 +28,7 @@ suite("query25") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query26.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query26.groovy index 9a443e3c7c..009076d0c8 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query26.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query26.groovy @@ -28,6 +28,7 @@ suite("query26") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select i_item_id, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query27.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query27.groovy index 1550166d9c..871aed7177 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query27.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query27.groovy @@ -28,6 +28,7 @@ suite("query27") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select i_item_id, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query28.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query28.groovy index af80817fd1..aa9595822d 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query28.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query28.groovy @@ -28,6 +28,7 @@ suite("query28") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select * diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query29.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query29.groovy index 3645532b51..fa80660427 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query29.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query29.groovy @@ -28,6 +28,7 @@ suite("query29") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query3.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query3.groovy index e306ec1f4c..89898a4b20 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query3.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query3.groovy @@ -28,6 +28,7 @@ suite("query3") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select dt.d_year diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query30.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query30.groovy index b6274e129e..3dfe9dbae4 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query30.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query30.groovy @@ -28,6 +28,7 @@ suite("query30") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """with customer_total_return as diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query31.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query31.groovy index d3649cb066..41c86b5c81 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query31.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query31.groovy @@ -28,6 +28,7 @@ suite("query31") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """with ss as diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query32.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query32.groovy index 8081abdd26..81d4bd95ee 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query32.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query32.groovy @@ -28,6 +28,7 @@ suite("query32") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select sum(cs_ext_discount_amt) as "excess discount amount" diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query33.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query33.groovy index 24111a9512..de283ae98f 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query33.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query33.groovy @@ -28,6 +28,7 @@ suite("query33") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """with ss as ( diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query34.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query34.groovy index 6715b6f6bd..1fb12b3764 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query34.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query34.groovy @@ -28,6 +28,7 @@ suite("query34") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select c_last_name diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query35.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query35.groovy index 421b119cb8..8b2aa85463 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query35.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query35.groovy @@ -28,6 +28,7 @@ suite("query35") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query36.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query36.groovy index 85c512663a..16252b4f28 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query36.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query36.groovy @@ -28,6 +28,7 @@ suite("query36") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query37.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query37.groovy index 14cf074643..f104830b58 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query37.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query37.groovy @@ -28,6 +28,7 @@ suite("query37") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select i_item_id diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query38.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query38.groovy index d24b6c0a5c..1dd2ff269e 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query38.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query38.groovy @@ -28,6 +28,7 @@ suite("query38") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select count(*) from ( diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query39.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query39.groovy index 02c9981631..9b228efe27 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query39.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query39.groovy @@ -28,6 +28,7 @@ suite("query39") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """with inv as diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query4.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query4.groovy index 52cec28b1c..2ed5d8b43f 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query4.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query4.groovy @@ -28,6 +28,7 @@ suite("query4") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """with year_total as ( diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query40.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query40.groovy index cb59410dbb..020d0d5022 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query40.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query40.groovy @@ -28,6 +28,7 @@ suite("query40") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query41.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query41.groovy index 6e60b949f3..470bb1cc51 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query41.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query41.groovy @@ -28,6 +28,7 @@ suite("query41") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select distinct(i_product_name) diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query42.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query42.groovy index 973746780e..4f977efb33 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query42.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query42.groovy @@ -28,6 +28,7 @@ suite("query42") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select dt.d_year diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query43.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query43.groovy index 17df78e135..07ee4b67ba 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query43.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query43.groovy @@ -28,6 +28,7 @@ suite("query43") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select s_store_name, s_store_id, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query44.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query44.groovy index 1354a72cce..ade2151769 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query44.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query44.groovy @@ -28,6 +28,7 @@ suite("query44") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select asceding.rnk, i1.i_product_name best_performing, i2.i_product_name worst_performing diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query45.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query45.groovy index 09c0628f59..9211ef194c 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query45.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query45.groovy @@ -28,6 +28,7 @@ suite("query45") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select ca_zip, ca_city, sum(ws_sales_price) diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query46.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query46.groovy index 730f6aa850..fac119c0f5 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query46.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query46.groovy @@ -28,6 +28,7 @@ suite("query46") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select c_last_name diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query47.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query47.groovy index bf57817220..f58c6efab5 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query47.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query47.groovy @@ -28,6 +28,7 @@ suite("query47") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """with v1 as( diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query48.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query48.groovy index 4232fa98c8..fc57c87bf8 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query48.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query48.groovy @@ -28,6 +28,7 @@ suite("query48") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select sum (ss_quantity) diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query49.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query49.groovy index 88c0bee485..3288f1a013 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query49.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query49.groovy @@ -28,6 +28,7 @@ suite("query49") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select channel, item, return_ratio, return_rank, currency_rank from diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query5.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query5.groovy index 2f080da648..d8c81ce86f 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query5.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query5.groovy @@ -28,6 +28,7 @@ suite("query5") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """with ssr as diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query50.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query50.groovy index c84f8d11f2..61ae80f7ae 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query50.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query50.groovy @@ -28,6 +28,7 @@ suite("query50") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query51.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query51.groovy index 5952e5f1a7..054104d829 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query51.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query51.groovy @@ -28,6 +28,7 @@ suite("query51") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """WITH web_v1 as ( diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query52.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query52.groovy index cf69c790fa..9111032b40 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query52.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query52.groovy @@ -28,6 +28,7 @@ suite("query52") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select dt.d_year diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query53.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query53.groovy index 795a00ddbe..01ee14f606 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query53.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query53.groovy @@ -28,6 +28,7 @@ suite("query53") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select * from diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query54.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query54.groovy index a180a9a257..ee3783080b 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query54.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query54.groovy @@ -28,6 +28,7 @@ suite("query54") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """with my_customers as ( diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query55.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query55.groovy index b38174e118..53e3e958c7 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query55.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query55.groovy @@ -28,6 +28,7 @@ suite("query55") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select i_brand_id brand_id, i_brand brand, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query56.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query56.groovy index dc56d6510f..59791b1b0e 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query56.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query56.groovy @@ -28,6 +28,7 @@ suite("query56") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """with ss as ( diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query57.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query57.groovy index 5f24ea904a..84a9668e9b 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query57.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query57.groovy @@ -28,6 +28,7 @@ suite("query57") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """with v1 as( diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query58.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query58.groovy index 9ca8abe165..64a960f31a 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query58.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query58.groovy @@ -28,6 +28,7 @@ suite("query58") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """with ss_items as diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query59.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query59.groovy index 82cc9e20f5..8b2503de35 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query59.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query59.groovy @@ -28,6 +28,7 @@ suite("query59") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """with wss as diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query6.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query6.groovy index 5705e44e38..823a1f87a6 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query6.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query6.groovy @@ -28,6 +28,7 @@ suite("query6") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select a.ca_state state, count(*) cnt diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query60.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query60.groovy index 93cdee48ee..32ed3b0778 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query60.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query60.groovy @@ -28,6 +28,7 @@ suite("query60") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """with ss as ( diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query61.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query61.groovy index 6b42a2e479..545158c91a 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query61.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query61.groovy @@ -28,6 +28,7 @@ suite("query61") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select promotions,total,cast(promotions as decimal(15,4))/cast(total as decimal(15,4))*100 diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query62.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query62.groovy index c2165a1191..44175ccab1 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query62.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query62.groovy @@ -28,6 +28,7 @@ suite("query62") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query63.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query63.groovy index 2939a42b8c..7e226b7c7a 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query63.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query63.groovy @@ -28,6 +28,7 @@ suite("query63") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select * diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query64.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query64.groovy index fa2aad18ea..415a363cf6 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query64.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query64.groovy @@ -28,6 +28,7 @@ suite("query64") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """with cs_ui as diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query65.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query65.groovy index 24771fa55e..eb5d2d937b 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query65.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query65.groovy @@ -28,6 +28,7 @@ suite("query65") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query66.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query66.groovy index 57fd99eb3b..346884dcc7 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query66.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query66.groovy @@ -28,6 +28,7 @@ suite("query66") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query67.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query67.groovy index 6c5074fe06..1722dc983f 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query67.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query67.groovy @@ -28,6 +28,7 @@ suite("query67") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select * diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query68.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query68.groovy index e8741096ec..94fbc1079f 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query68.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query68.groovy @@ -28,6 +28,7 @@ suite("query68") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select c_last_name diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query69.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query69.groovy index 924233aaef..0b0ac47cdc 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query69.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query69.groovy @@ -28,6 +28,7 @@ suite("query69") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query7.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query7.groovy index 72ae3d4737..334468aecc 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query7.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query7.groovy @@ -28,6 +28,7 @@ suite("query7") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select i_item_id, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query70.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query70.groovy index f6859362c8..31071814ae 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query70.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query70.groovy @@ -28,6 +28,7 @@ suite("query70") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query71.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query71.groovy index dddc1784ce..3dc8d1edf0 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query71.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query71.groovy @@ -28,6 +28,7 @@ suite("query71") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select i_brand_id brand_id, i_brand brand,t_hour,t_minute, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query72.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query72.groovy index 9449ed4c45..5e81401cb9 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query72.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query72.groovy @@ -28,6 +28,7 @@ suite("query72") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select /*+ SET_VAR(max_join_number_bushy_tree=10, memo_max_group_expression_size=15000)*/ i_item_desc diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query73.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query73.groovy index 08257b735f..3dde9af13a 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query73.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query73.groovy @@ -28,6 +28,7 @@ suite("query73") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select c_last_name diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query74.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query74.groovy index 898009a5ea..7c4d11d2dc 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query74.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query74.groovy @@ -28,6 +28,7 @@ suite("query74") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """with year_total as ( diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query75.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query75.groovy index bf920a1f94..7dbefe6754 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query75.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query75.groovy @@ -28,6 +28,7 @@ suite("query75") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """WITH all_sales AS ( diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query76.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query76.groovy index 90171df4d5..cd8db97bfd 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query76.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query76.groovy @@ -28,6 +28,7 @@ suite("query76") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select channel, col_name, d_year, d_qoy, i_category, COUNT(*) sales_cnt, SUM(ext_sales_price) sales_amt FROM ( diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query77.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query77.groovy index c0761a405b..8b19b0fc93 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query77.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query77.groovy @@ -28,6 +28,7 @@ suite("query77") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """with ss as diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query78.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query78.groovy index dfef0ac34d..8afd7fbc9d 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query78.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query78.groovy @@ -28,6 +28,7 @@ suite("query78") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """with ws as diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query79.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query79.groovy index 9a0789f06e..a19d9084e8 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query79.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query79.groovy @@ -28,6 +28,7 @@ suite("query79") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query8.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query8.groovy index c73caec01c..612b19616b 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query8.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query8.groovy @@ -28,6 +28,7 @@ suite("query8") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select s_store_name diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query80.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query80.groovy index 519199d4cc..9149363080 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query80.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query80.groovy @@ -28,6 +28,7 @@ suite("query80") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """with ssr as diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query81.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query81.groovy index 9e10f6b87c..97b340510d 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query81.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query81.groovy @@ -28,6 +28,7 @@ suite("query81") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """with customer_total_return as diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query82.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query82.groovy index 9590784160..1b1fb0b92f 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query82.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query82.groovy @@ -28,6 +28,7 @@ suite("query82") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select i_item_id diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query83.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query83.groovy index 9b380969dd..61f778f345 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query83.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query83.groovy @@ -28,6 +28,7 @@ suite("query83") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """with sr_items as diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query84.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query84.groovy index 9bf823da70..ff740dd463 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query84.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query84.groovy @@ -28,6 +28,7 @@ suite("query84") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select c_customer_id as customer_id diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query85.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query85.groovy index 5099c00480..ae1d13286d 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query85.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query85.groovy @@ -28,6 +28,7 @@ suite("query85") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select substr(r_reason_desc,1,20) diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query86.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query86.groovy index 89399913b5..d05f077957 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query86.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query86.groovy @@ -28,6 +28,7 @@ suite("query86") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query87.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query87.groovy index d0c1756f24..ad9ce108fd 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query87.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query87.groovy @@ -28,6 +28,7 @@ suite("query87") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select count(*) diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query88.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query88.groovy index 5d8e00cecb..bb9ce8eeda 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query88.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query88.groovy @@ -28,6 +28,7 @@ suite("query88") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select * diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query89.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query89.groovy index f916fb7c0f..affeb2a913 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query89.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query89.groovy @@ -28,6 +28,7 @@ suite("query89") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select * diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query9.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query9.groovy index eac7285b78..95bd87ede2 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query9.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query9.groovy @@ -28,6 +28,7 @@ suite("query9") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select case when (select count(*) diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query90.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query90.groovy index 2a02253b20..3c1b6b6417 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query90.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query90.groovy @@ -28,6 +28,7 @@ suite("query90") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select cast(amc as decimal(15,4))/cast(pmc as decimal(15,4)) am_pm_ratio diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query91.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query91.groovy index 9c2f49e4c3..b82a582d45 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query91.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query91.groovy @@ -28,6 +28,7 @@ suite("query91") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query92.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query92.groovy index 95a616da7b..4755802dc9 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query92.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query92.groovy @@ -28,6 +28,7 @@ suite("query92") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query93.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query93.groovy index 93e041d3d4..714b9e6a57 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query93.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query93.groovy @@ -28,6 +28,7 @@ suite("query93") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select ss_customer_sk diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query94.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query94.groovy index 5a402b39d2..ef3b086df9 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query94.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query94.groovy @@ -28,6 +28,7 @@ suite("query94") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query95.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query95.groovy index 39ec3e4e27..9a856a77ea 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query95.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query95.groovy @@ -28,6 +28,7 @@ suite("query95") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """with ws_wh as diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query96.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query96.groovy index 5443f9e532..3be405b11e 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query96.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query96.groovy @@ -28,6 +28,7 @@ suite("query96") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select count(*) diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query97.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query97.groovy index d100e29d6c..2dd9da9c06 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query97.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query97.groovy @@ -28,6 +28,7 @@ suite("query97") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """with ssci as ( diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query98.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query98.groovy index 5dadeaad68..f479e3c95e 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query98.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query98.groovy @@ -28,6 +28,7 @@ suite("query98") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select i_item_id diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query99.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query99.groovy index 2bb72474c5..0658ad333c 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query99.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/rf_prune/query99.groovy @@ -28,6 +28,7 @@ suite("query99") { sql 'set parallel_pipeline_task_num=8; ' sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' + sql 'set runtime_filter_type=8' sql 'set enable_runtime_filter_prune=true' def ds = """select diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query1.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query1.groovy index fc02bd535d..70bb576396 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query1.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query1.groovy @@ -29,6 +29,7 @@ suite("query1") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """with customer_total_return as (select sr_customer_sk as ctr_customer_sk ,sr_store_sk as ctr_store_sk diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query10.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query10.groovy index d3bd5b2020..49c69c2545 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query10.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query10.groovy @@ -29,6 +29,7 @@ suite("query10") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select cd_gender, cd_marital_status, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query11.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query11.groovy index 975fff70ff..e0eb0b0d73 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query11.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query11.groovy @@ -29,6 +29,7 @@ suite("query11") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """with year_total as ( select c_customer_id customer_id ,c_first_name customer_first_name diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query12.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query12.groovy index aaa01a0a11..37ebb0b4b2 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query12.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query12.groovy @@ -29,6 +29,7 @@ suite("query12") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select i_item_id ,i_item_desc ,i_category diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query13.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query13.groovy index af382c410c..4b93fdd483 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query13.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query13.groovy @@ -29,6 +29,7 @@ suite("query13") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select avg(ss_quantity) ,avg(ss_ext_sales_price) ,avg(ss_ext_wholesale_cost) diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query14.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query14.groovy index 2e8654d0d8..f4659431d1 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query14.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query14.groovy @@ -29,6 +29,7 @@ suite("query14") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """with cross_items as (select i_item_sk ss_item_sk from item, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query15.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query15.groovy index 0a4311b3df..7bebb77d62 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query15.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query15.groovy @@ -29,6 +29,7 @@ suite("query15") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select ca_zip ,sum(cs_sales_price) from catalog_sales diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query16.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query16.groovy index f60cc48a30..6b75010173 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query16.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query16.groovy @@ -29,6 +29,7 @@ suite("query16") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select count(distinct cs_order_number) as "order count" ,sum(cs_ext_ship_cost) as "total shipping cost" diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query17.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query17.groovy index e465b16d6e..78c1ed42c1 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query17.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query17.groovy @@ -29,6 +29,7 @@ suite("query17") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select i_item_id ,i_item_desc ,s_state diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query18.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query18.groovy index 75db6127b0..d6c553f748 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query18.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query18.groovy @@ -29,6 +29,7 @@ suite("query18") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select i_item_id, ca_country, ca_state, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query19.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query19.groovy index 0a0cb1fa7d..964511e299 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query19.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query19.groovy @@ -29,6 +29,7 @@ suite("query19") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select i_brand_id brand_id, i_brand brand, i_manufact_id, i_manufact, sum(ss_ext_sales_price) ext_price from date_dim, store_sales, item,customer,customer_address,store diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query2.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query2.groovy index 06517d39cb..3e3f2fb77a 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query2.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query2.groovy @@ -29,6 +29,7 @@ suite("query2") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """with wscs as (select sold_date_sk ,sales_price diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query20.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query20.groovy index 4ab1306349..66aa37e974 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query20.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query20.groovy @@ -29,6 +29,7 @@ suite("query20") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select i_item_id ,i_item_desc ,i_category diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query21.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query21.groovy index f3aae7a91b..f4ce2bc117 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query21.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query21.groovy @@ -29,6 +29,7 @@ suite("query21") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select * from(select w_warehouse_name ,i_item_id diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query22.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query22.groovy index 01d5f0bc3c..ff78abee8f 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query22.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query22.groovy @@ -29,6 +29,7 @@ suite("query22") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select i_product_name ,i_brand ,i_class diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query23.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query23.groovy index 8b50af22e7..714dddf20e 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query23.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query23.groovy @@ -29,6 +29,7 @@ suite("query23") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """with frequent_ss_items as (select substr(i_item_desc,1,30) itemdesc,i_item_sk item_sk,d_date solddate,count(*) cnt from store_sales diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query24.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query24.groovy index 727d9797aa..4b7c34bbc3 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query24.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query24.groovy @@ -29,6 +29,7 @@ suite("query24") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """with ssales as (select c_last_name ,c_first_name diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query25.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query25.groovy index fe4eeeccc5..b1dd9f38ec 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query25.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query25.groovy @@ -29,6 +29,7 @@ suite("query25") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select i_item_id ,i_item_desc diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query26.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query26.groovy index 036578f245..55bc8e059e 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query26.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query26.groovy @@ -29,6 +29,7 @@ suite("query26") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select i_item_id, avg(cs_quantity) agg1, avg(cs_list_price) agg2, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query27.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query27.groovy index 10bed124f6..99ad16343c 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query27.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query27.groovy @@ -29,6 +29,7 @@ suite("query27") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select i_item_id, s_state, grouping(s_state) g_state, avg(ss_quantity) agg1, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query28.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query28.groovy index 7ac71bad78..6b2dce00c3 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query28.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query28.groovy @@ -29,6 +29,7 @@ suite("query28") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select * from (select avg(ss_list_price) B1_LP ,count(ss_list_price) B1_CNT diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query29.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query29.groovy index 0bd4c740a7..bc2d82494a 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query29.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query29.groovy @@ -29,6 +29,7 @@ suite("query29") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select i_item_id ,i_item_desc diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query3.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query3.groovy index 1542b49a52..af1db41b45 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query3.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query3.groovy @@ -29,6 +29,7 @@ suite("query3") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select dt.d_year ,item.i_brand_id brand_id ,item.i_brand brand diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query30.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query30.groovy index f4c63d01ba..b1979697c3 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query30.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query30.groovy @@ -29,6 +29,7 @@ suite("query30") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """with customer_total_return as (select wr_returning_customer_sk as ctr_customer_sk ,ca_state as ctr_state, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query31.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query31.groovy index e9eca0c98d..21239e6858 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query31.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query31.groovy @@ -29,6 +29,7 @@ suite("query31") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """with ss as (select ca_county,d_qoy, d_year,sum(ss_ext_sales_price) as store_sales from store_sales,date_dim,customer_address diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query32.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query32.groovy index aff6ba2abb..321719abbc 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query32.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query32.groovy @@ -29,6 +29,7 @@ suite("query32") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select sum(cs_ext_discount_amt) as "excess discount amount" from catalog_sales diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query33.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query33.groovy index 46fb7dd0b2..fc7eeab657 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query33.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query33.groovy @@ -29,6 +29,7 @@ suite("query33") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """with ss as ( select i_manufact_id,sum(ss_ext_sales_price) total_sales diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query34.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query34.groovy index c74f7305c4..c49379f789 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query34.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query34.groovy @@ -29,6 +29,7 @@ suite("query34") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select c_last_name ,c_first_name ,c_salutation diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query35.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query35.groovy index b0ed3d5ece..1b46490f3e 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query35.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query35.groovy @@ -29,6 +29,7 @@ suite("query35") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select ca_state, cd_gender, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query36.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query36.groovy index 55daeae129..e70fd4be76 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query36.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query36.groovy @@ -29,6 +29,7 @@ suite("query36") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select sum(ss_net_profit)/sum(ss_ext_sales_price) as gross_margin ,i_category diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query37.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query37.groovy index 07babb9cee..877ed1899b 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query37.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query37.groovy @@ -29,6 +29,7 @@ suite("query37") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select i_item_id ,i_item_desc ,i_current_price diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query38.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query38.groovy index 0827da6727..750edf5e40 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query38.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query38.groovy @@ -29,6 +29,7 @@ suite("query38") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select count(*) from ( select distinct c_last_name, c_first_name, d_date from store_sales, date_dim, customer diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query39.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query39.groovy index f6c57cba9c..22460290ce 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query39.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query39.groovy @@ -29,6 +29,7 @@ suite("query39") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """with inv as (select w_warehouse_name,w_warehouse_sk,i_item_sk,d_moy ,stdev,mean, case mean when 0 then null else stdev/mean end cov diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query4.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query4.groovy index 5bbb6a982c..4bee9d7d41 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query4.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query4.groovy @@ -29,6 +29,7 @@ suite("query4") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """with year_total as ( select c_customer_id customer_id ,c_first_name customer_first_name diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query40.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query40.groovy index 7cc861a9a5..f78340477a 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query40.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query40.groovy @@ -29,6 +29,7 @@ suite("query40") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select w_state ,i_item_id diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query41.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query41.groovy index f919719680..3849d90c42 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query41.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query41.groovy @@ -29,6 +29,7 @@ suite("query41") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select distinct(i_product_name) from item i1 where i_manufact_id between 748 and 748+40 diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query42.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query42.groovy index 1480eaf850..3afebaef30 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query42.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query42.groovy @@ -29,6 +29,7 @@ suite("query42") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select dt.d_year ,item.i_category_id ,item.i_category diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query43.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query43.groovy index 7f596e7a47..11f824d2c5 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query43.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query43.groovy @@ -29,6 +29,7 @@ suite("query43") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select s_store_name, s_store_id, sum(case when (d_day_name='Sunday') then ss_sales_price else null end) sun_sales, sum(case when (d_day_name='Monday') then ss_sales_price else null end) mon_sales, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query44.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query44.groovy index ca7b19e4d0..fb524fdab6 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query44.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query44.groovy @@ -29,6 +29,7 @@ suite("query44") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select asceding.rnk, i1.i_product_name best_performing, i2.i_product_name worst_performing from(select * from (select item_sk,rank() over (order by rank_col asc) rnk diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query45.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query45.groovy index e2c985d366..b7a7601a21 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query45.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query45.groovy @@ -29,6 +29,7 @@ suite("query45") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select ca_zip, ca_city, sum(ws_sales_price) from web_sales, customer, customer_address, date_dim, item where ws_bill_customer_sk = c_customer_sk diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query46.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query46.groovy index a4c6cd1bbc..5bda29e318 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query46.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query46.groovy @@ -29,6 +29,7 @@ suite("query46") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select c_last_name ,c_first_name ,ca_city diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query47.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query47.groovy index 3e984c7a30..394c9b7bc4 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query47.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query47.groovy @@ -29,6 +29,7 @@ suite("query47") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """with v1 as( select i_category, i_brand, s_store_name, s_company_name, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query48.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query48.groovy index b710a3f46c..8c4a7f9ba2 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query48.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query48.groovy @@ -29,6 +29,7 @@ suite("query48") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select sum (ss_quantity) from store_sales, store, customer_demographics, customer_address, date_dim where s_store_sk = ss_store_sk diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query49.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query49.groovy index 2a0e9e029e..fed82ce6b6 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query49.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query49.groovy @@ -29,6 +29,7 @@ suite("query49") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select channel, item, return_ratio, return_rank, currency_rank from (select 'web' as channel diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query5.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query5.groovy index 64e0d81353..650b5dd404 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query5.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query5.groovy @@ -29,6 +29,7 @@ suite("query5") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """with ssr as (select s_store_id, sum(sales_price) as sales, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query50.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query50.groovy index 4f332641a6..2fd1c92a36 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query50.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query50.groovy @@ -29,6 +29,7 @@ suite("query50") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select s_store_name ,s_company_id diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query51.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query51.groovy index 4bc2c956ff..2474727282 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query51.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query51.groovy @@ -29,6 +29,7 @@ suite("query51") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """WITH web_v1 as ( select ws_item_sk item_sk, d_date, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query52.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query52.groovy index e730303177..89918248b2 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query52.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query52.groovy @@ -29,6 +29,7 @@ suite("query52") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select dt.d_year ,item.i_brand_id brand_id ,item.i_brand brand diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query53.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query53.groovy index aa7f55a6f3..fd816572e1 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query53.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query53.groovy @@ -29,6 +29,7 @@ suite("query53") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select * from (select i_manufact_id, sum(ss_sales_price) sum_sales, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query54.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query54.groovy index 6cb457ef82..09c6edf68d 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query54.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query54.groovy @@ -29,6 +29,7 @@ suite("query54") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """with my_customers as ( select distinct c_customer_sk , c_current_addr_sk diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query55.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query55.groovy index 071a3b65fc..692b94a737 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query55.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query55.groovy @@ -29,6 +29,7 @@ suite("query55") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select i_brand_id brand_id, i_brand brand, sum(ss_ext_sales_price) ext_price from date_dim, store_sales, item diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query56.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query56.groovy index 8570ca50f4..820c947b39 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query56.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query56.groovy @@ -29,6 +29,7 @@ suite("query56") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """with ss as ( select i_item_id,sum(ss_ext_sales_price) total_sales from diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query57.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query57.groovy index 04218ef12b..c5557f9801 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query57.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query57.groovy @@ -29,6 +29,7 @@ suite("query57") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """with v1 as( select i_category, i_brand, cc_name, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query58.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query58.groovy index c64496db9d..caf4875d72 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query58.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query58.groovy @@ -29,6 +29,7 @@ suite("query58") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """with ss_items as (select i_item_id item_id ,sum(ss_ext_sales_price) ss_item_rev diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query59.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query59.groovy index 1ffbc372d7..12a190b16c 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query59.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query59.groovy @@ -29,6 +29,7 @@ suite("query59") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """with wss as (select d_week_seq, ss_store_sk, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query6.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query6.groovy index 6de72a7d72..f76d38a960 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query6.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query6.groovy @@ -29,6 +29,7 @@ suite("query6") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select a.ca_state state, count(*) cnt from customer_address a ,customer c diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query60.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query60.groovy index d110e1cc87..936666cd78 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query60.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query60.groovy @@ -29,6 +29,7 @@ suite("query60") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """with ss as ( select i_item_id,sum(ss_ext_sales_price) total_sales diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query61.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query61.groovy index 2cc9169210..266135c468 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query61.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query61.groovy @@ -29,6 +29,7 @@ suite("query61") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select promotions,total,cast(promotions as decimal(15,4))/cast(total as decimal(15,4))*100 from (select sum(ss_ext_sales_price) promotions diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query62.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query62.groovy index bb7b81612f..55d0385c1d 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query62.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query62.groovy @@ -29,6 +29,7 @@ suite("query62") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select substr(w_warehouse_name,1,20) ,sm_type diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query63.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query63.groovy index c34d27a1c3..ef36046556 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query63.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query63.groovy @@ -29,6 +29,7 @@ suite("query63") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select * from (select i_manager_id ,sum(ss_sales_price) sum_sales diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query64.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query64.groovy index 1cca3ba965..8b09aec143 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query64.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query64.groovy @@ -29,6 +29,7 @@ suite("query64") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """with cs_ui as (select cs_item_sk ,sum(cs_ext_list_price) as sale,sum(cr_refunded_cash+cr_reversed_charge+cr_store_credit) as refund diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query65.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query65.groovy index c7ec361c66..077b87c378 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query65.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query65.groovy @@ -29,6 +29,7 @@ suite("query65") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select s_store_name, i_item_desc, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query66.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query66.groovy index e8dc4eb3c6..e15e2797d3 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query66.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query66.groovy @@ -29,6 +29,7 @@ suite("query66") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select w_warehouse_name ,w_warehouse_sq_ft diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query67.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query67.groovy index 57ab62b0f6..3dd94b358c 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query67.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query67.groovy @@ -29,6 +29,7 @@ suite("query67") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select * from (select i_category ,i_class diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query68.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query68.groovy index 8b05364c02..691044ad1a 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query68.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query68.groovy @@ -29,6 +29,7 @@ suite("query68") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select c_last_name ,c_first_name ,ca_city diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query69.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query69.groovy index b41570abb0..b90ccf8e73 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query69.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query69.groovy @@ -29,6 +29,7 @@ suite("query69") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select cd_gender, cd_marital_status, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query7.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query7.groovy index 71e20e7ac6..d5dc6625fa 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query7.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query7.groovy @@ -29,6 +29,7 @@ suite("query7") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select i_item_id, avg(ss_quantity) agg1, avg(ss_list_price) agg2, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query70.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query70.groovy index 66f2074a02..ff1cd0307d 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query70.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query70.groovy @@ -29,6 +29,7 @@ suite("query70") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select sum(ss_net_profit) as total_sum ,s_state diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query71.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query71.groovy index 89c808984a..e70e3eb1e0 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query71.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query71.groovy @@ -29,6 +29,7 @@ suite("query71") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select i_brand_id brand_id, i_brand brand,t_hour,t_minute, sum(ext_price) ext_price from item, (select ws_ext_sales_price as ext_price, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query72.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query72.groovy index 32a06bb7a1..b2824bfd9f 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query72.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query72.groovy @@ -29,6 +29,7 @@ suite("query72") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select /*+ SET_VAR(max_join_number_bushy_tree=10, memo_max_group_expression_size=15000)*/ i_item_desc ,w_warehouse_name ,d1.d_week_seq diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query73.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query73.groovy index bb9e971322..c933dc5325 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query73.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query73.groovy @@ -29,6 +29,7 @@ suite("query73") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select c_last_name ,c_first_name ,c_salutation diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query74.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query74.groovy index f50ce2c490..e46a962dae 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query74.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query74.groovy @@ -29,6 +29,7 @@ suite("query74") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """with year_total as ( select c_customer_id customer_id ,c_first_name customer_first_name diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query75.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query75.groovy index d5888b884f..5cbf506aee 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query75.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query75.groovy @@ -29,6 +29,7 @@ suite("query75") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """WITH all_sales AS ( SELECT d_year ,i_brand_id diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query76.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query76.groovy index 159a8f4b66..4ae7284050 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query76.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query76.groovy @@ -29,6 +29,7 @@ suite("query76") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select channel, col_name, d_year, d_qoy, i_category, COUNT(*) sales_cnt, SUM(ext_sales_price) sales_amt FROM ( SELECT 'store' as channel, 'ss_hdemo_sk' col_name, d_year, d_qoy, i_category, ss_ext_sales_price ext_sales_price FROM store_sales, item, date_dim diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query77.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query77.groovy index a20c592be3..fc7ea6724a 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query77.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query77.groovy @@ -29,6 +29,7 @@ suite("query77") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """with ss as (select s_store_sk, sum(ss_ext_sales_price) as sales, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query78.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query78.groovy index 9b22171226..c64573e4d9 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query78.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query78.groovy @@ -29,6 +29,7 @@ suite("query78") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """with ws as (select d_year AS ws_sold_year, ws_item_sk, ws_bill_customer_sk ws_customer_sk, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query79.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query79.groovy index abe3635808..259d6e385a 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query79.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query79.groovy @@ -29,6 +29,7 @@ suite("query79") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select c_last_name,c_first_name,substr(s_city,1,30),ss_ticket_number,amt,profit from diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query8.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query8.groovy index 0f407b2543..4547c410b5 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query8.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query8.groovy @@ -29,6 +29,7 @@ suite("query8") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select s_store_name ,sum(ss_net_profit) from store_sales diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query80.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query80.groovy index 5a71cc054e..db3e02df9d 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query80.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query80.groovy @@ -29,6 +29,7 @@ suite("query80") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """with ssr as (select s_store_id as store_id, sum(ss_ext_sales_price) as sales, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query81.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query81.groovy index ef90759087..058a5f5a17 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query81.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query81.groovy @@ -29,6 +29,7 @@ suite("query81") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """with customer_total_return as (select cr_returning_customer_sk as ctr_customer_sk ,ca_state as ctr_state, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query82.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query82.groovy index b4d625bf2f..63d4df48b0 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query82.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query82.groovy @@ -29,6 +29,7 @@ suite("query82") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select i_item_id ,i_item_desc ,i_current_price diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query83.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query83.groovy index 3fb6dfe546..0cdc9cf3b5 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query83.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query83.groovy @@ -29,6 +29,7 @@ suite("query83") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """with sr_items as (select i_item_id item_id, sum(sr_return_quantity) sr_item_qty diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query84.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query84.groovy index e590f54cdb..baac6a0798 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query84.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query84.groovy @@ -29,6 +29,7 @@ suite("query84") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select c_customer_id as customer_id , concat(concat(coalesce(c_last_name,''), ','), coalesce(c_first_name,'')) as customername from customer diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query85.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query85.groovy index 8702e29057..9894e427ab 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query85.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query85.groovy @@ -29,6 +29,7 @@ suite("query85") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select substr(r_reason_desc,1,20) ,avg(ws_quantity) ,avg(wr_refunded_cash) diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query86.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query86.groovy index b017562447..5e379bbb24 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query86.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query86.groovy @@ -29,6 +29,7 @@ suite("query86") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select sum(ws_net_paid) as total_sum ,i_category diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query87.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query87.groovy index 8c545dbdfe..93a1f57cbd 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query87.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query87.groovy @@ -29,6 +29,7 @@ suite("query87") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select count(*) from ((select distinct c_last_name, c_first_name, d_date from store_sales, date_dim, customer diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query88.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query88.groovy index 88993dc094..b8eac02e18 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query88.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query88.groovy @@ -29,6 +29,7 @@ suite("query88") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select * from (select count(*) h8_30_to_9 diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query89.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query89.groovy index 28371cd390..77556d6513 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query89.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query89.groovy @@ -29,6 +29,7 @@ suite("query89") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select * from( select i_category, i_class, i_brand, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query9.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query9.groovy index 68e1348fad..c18cc65d20 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query9.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query9.groovy @@ -29,6 +29,7 @@ suite("query9") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select case when (select count(*) from store_sales where ss_quantity between 1 and 20) > 2972190 diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query90.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query90.groovy index 3af81c2374..222c25305c 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query90.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query90.groovy @@ -29,6 +29,7 @@ suite("query90") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select cast(amc as decimal(15,4))/cast(pmc as decimal(15,4)) am_pm_ratio from ( select count(*) amc from web_sales, household_demographics , time_dim, web_page diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query91.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query91.groovy index 44961f051f..af6d4f76e4 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query91.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query91.groovy @@ -29,6 +29,7 @@ suite("query91") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select cc_call_center_id Call_Center, cc_name Call_Center_Name, diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query92.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query92.groovy index a66ff2a668..3db3bdafdd 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query92.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query92.groovy @@ -29,6 +29,7 @@ suite("query92") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select sum(ws_ext_discount_amt) as "Excess Discount Amount" from diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query93.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query93.groovy index 620ef7c987..db971ecbfb 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query93.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query93.groovy @@ -29,6 +29,7 @@ suite("query93") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select ss_customer_sk ,sum(act_sales) sumsales from (select ss_item_sk diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query94.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query94.groovy index be1536e816..f8df10a781 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query94.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query94.groovy @@ -29,6 +29,7 @@ suite("query94") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select count(distinct ws_order_number) as "order count" ,sum(ws_ext_ship_cost) as "total shipping cost" diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query95.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query95.groovy index 2c2274e602..b43bb33b48 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query95.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query95.groovy @@ -29,6 +29,7 @@ suite("query95") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """with ws_wh as (select ws1.ws_order_number,ws1.ws_warehouse_sk wh1,ws2.ws_warehouse_sk wh2 from web_sales ws1,web_sales ws2 diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query96.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query96.groovy index bd12c22b9a..d9b3719574 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query96.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query96.groovy @@ -29,6 +29,7 @@ suite("query96") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select count(*) from store_sales ,household_demographics diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query97.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query97.groovy index 287fff8979..57317cd1da 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query97.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query97.groovy @@ -29,6 +29,7 @@ suite("query97") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """with ssci as ( select ss_customer_sk customer_sk ,ss_item_sk item_sk diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query98.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query98.groovy index c5f52bdef3..8bbcb4948e 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query98.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query98.groovy @@ -29,6 +29,7 @@ suite("query98") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select i_item_id ,i_item_desc ,i_category diff --git a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query99.groovy b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query99.groovy index 19f1f570d8..64069f7578 100644 --- a/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query99.groovy +++ b/regression-test/suites/nereids_tpcds_shape_sf100_p0/shape/query99.groovy @@ -29,6 +29,7 @@ suite("query99") { sql 'set forbid_unknown_col_stats=true' sql 'set enable_nereids_timeout = false' sql 'set enable_runtime_filter_prune=false' + sql 'set runtime_filter_type=8' def ds = """select substr(w_warehouse_name,1,20) ,sm_type diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q1.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q1.groovy index eecb9009b2..7da68f9463 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q1.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q1.groovy @@ -25,7 +25,8 @@ suite("q1") { sql 'set exec_mem_limit=21G' sql 'SET enable_pipeline_engine = true' sql 'set parallel_pipeline_task_num=8' -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q10.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q10.groovy index 45481787f0..4e73f443e5 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q10.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q10.groovy @@ -27,7 +27,8 @@ suite("q10") { sql 'set exec_mem_limit=21G' sql 'SET enable_pipeline_engine = true' sql 'set parallel_pipeline_task_num=8' -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q11.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q11.groovy index d3e58acace..e87f059055 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q11.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q11.groovy @@ -26,7 +26,8 @@ suite("q11") { sql 'set parallel_pipeline_task_num=8' sql 'set exec_mem_limit=21G' sql 'SET enable_pipeline_engine = true' -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q12.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q12.groovy index 7c83ed5b00..f3b688dd85 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q12.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q12.groovy @@ -26,7 +26,8 @@ suite("q12") { sql 'set parallel_pipeline_task_num=8' sql 'set exec_mem_limit=21G' sql 'SET enable_pipeline_engine = true' -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q13.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q13.groovy index 305a891b6a..d95fd7021d 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q13.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q13.groovy @@ -30,7 +30,8 @@ suite("q13") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q14.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q14.groovy index c5a856bec7..390fc7133a 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q14.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q14.groovy @@ -27,7 +27,8 @@ suite("q14") { sql 'set exec_mem_limit=21G' sql 'SET enable_pipeline_engine = true' sql 'set parallel_pipeline_task_num=8' -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q15.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q15.groovy index 5d8046e175..19fa9e0040 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q15.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q15.groovy @@ -30,7 +30,8 @@ suite("q15") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q16.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q16.groovy index c51c44f5c8..db46a0df73 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q16.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q16.groovy @@ -30,7 +30,8 @@ suite("q16") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q17.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q17.groovy index ecd5e1aea6..c091d6ed0e 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q17.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q17.groovy @@ -30,7 +30,8 @@ suite("q17") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q18.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q18.groovy index 298bd134bd..d603cf0957 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q18.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q18.groovy @@ -30,7 +30,8 @@ suite("q18") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q19.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q19.groovy index fdf6029fbc..0dac2c8412 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q19.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q19.groovy @@ -31,7 +31,8 @@ suite("q19") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q2.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q2.groovy index 7faffd04f5..8c096549d6 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q2.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q2.groovy @@ -30,7 +30,8 @@ suite("q2") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q20-rewrite.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q20-rewrite.groovy index eb2f5b3852..38d6bf649f 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q20-rewrite.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q20-rewrite.groovy @@ -31,7 +31,8 @@ suite("q20-rewrite") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q20.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q20.groovy index 1b01916442..1a73c9ae8c 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q20.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q20.groovy @@ -31,7 +31,8 @@ suite("q20") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q21.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q21.groovy index 349a0bba8e..2261450c90 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q21.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q21.groovy @@ -30,7 +30,8 @@ suite("q21") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q22.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q22.groovy index 4a680a13fa..aca4b8485c 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q22.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q22.groovy @@ -30,7 +30,8 @@ suite("q22") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q3.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q3.groovy index 68ffe43441..890259f9d4 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q3.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q3.groovy @@ -31,7 +31,8 @@ suite("q3") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q4.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q4.groovy index a5820c6a58..8107d37cc6 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q4.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q4.groovy @@ -25,7 +25,8 @@ suite("q4") { sql "set runtime_filter_mode='GLOBAL'" sql 'set exec_mem_limit=21G' sql 'SET enable_pipeline_engine = true' - sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q5.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q5.groovy index 63266cc181..433e7ee09e 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q5.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q5.groovy @@ -30,7 +30,8 @@ suite("q5") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q6.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q6.groovy index 1c10ea4e92..e39b008b5a 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q6.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q6.groovy @@ -30,7 +30,8 @@ suite("q6") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q7.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q7.groovy index 2179fbebbb..064cb5a617 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q7.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q7.groovy @@ -30,7 +30,8 @@ suite("q7") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q8.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q8.groovy index 99f7e245f3..afd09f2aae 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q8.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q8.groovy @@ -30,7 +30,8 @@ suite("q8") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q9.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q9.groovy index eca2b0a314..2cd007d654 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q9.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q9.groovy @@ -30,7 +30,8 @@ suite("q9") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q1.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q1.groovy index be8b858ebc..241e27267e 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q1.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q1.groovy @@ -25,7 +25,8 @@ suite("q1") { sql 'set exec_mem_limit=21G' sql 'SET enable_pipeline_engine = true' sql 'set parallel_pipeline_task_num=8' -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=true' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=true' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q10.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q10.groovy index 5e004aec39..ebd3bdede2 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q10.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q10.groovy @@ -27,7 +27,8 @@ suite("q10") { sql 'set exec_mem_limit=21G' sql 'SET enable_pipeline_engine = true' sql 'set parallel_pipeline_task_num=8' -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=true' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=true' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q11.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q11.groovy index 54a4b8fccd..e9db767a8b 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q11.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q11.groovy @@ -26,7 +26,8 @@ suite("q11") { sql 'set parallel_pipeline_task_num=8' sql 'set exec_mem_limit=21G' sql 'SET enable_pipeline_engine = true' -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=true' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=true' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q12.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q12.groovy index 796a880917..9a049f7aea 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q12.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q12.groovy @@ -26,7 +26,8 @@ suite("q12") { sql 'set parallel_pipeline_task_num=8' sql 'set exec_mem_limit=21G' sql 'SET enable_pipeline_engine = true' -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=true' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=true' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q13.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q13.groovy index abbf891428..69b98061e7 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q13.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q13.groovy @@ -30,7 +30,8 @@ suite("q13") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=true' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=true' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q14.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q14.groovy index c9ae56fad1..33b4e97d4b 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q14.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q14.groovy @@ -27,7 +27,8 @@ suite("q14") { sql 'set exec_mem_limit=21G' sql 'SET enable_pipeline_engine = true' sql 'set parallel_pipeline_task_num=8' -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=true' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=true' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q15.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q15.groovy index 8d348ecdc0..2d06612ef2 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q15.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q15.groovy @@ -30,7 +30,8 @@ suite("q15") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=true' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=true' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q16.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q16.groovy index 670dfda000..2ed44283f9 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q16.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q16.groovy @@ -30,7 +30,8 @@ suite("q16") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=true' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=true' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q17.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q17.groovy index 177fa6b86d..df9ece5c96 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q17.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q17.groovy @@ -30,7 +30,8 @@ suite("q17") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=true' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=true' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q18.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q18.groovy index f18c6851a6..91305cc50e 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q18.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q18.groovy @@ -30,7 +30,8 @@ suite("q18") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=true' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=true' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q19.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q19.groovy index e653613ccf..61452ddf6d 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q19.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q19.groovy @@ -31,7 +31,8 @@ suite("q19") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=true' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=true' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q2.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q2.groovy index d6f07a9492..799af02cf4 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q2.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q2.groovy @@ -30,7 +30,8 @@ suite("q2") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=true' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=true' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q20-rewrite.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q20-rewrite.groovy index 100cabcf45..10396bfbe7 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q20-rewrite.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q20-rewrite.groovy @@ -31,7 +31,8 @@ suite("q20-rewrite") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=true' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=true' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q20.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q20.groovy index 6de71424e5..222084adb3 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q20.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q20.groovy @@ -31,7 +31,8 @@ suite("q20") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=true' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=true' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q21.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q21.groovy index b78ce0df69..4792d10893 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q21.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q21.groovy @@ -30,7 +30,8 @@ suite("q21") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=true' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=true' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q22.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q22.groovy index 1320b4709d..080387f73d 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q22.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q22.groovy @@ -30,7 +30,8 @@ suite("q22") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=true' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=true' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q3.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q3.groovy index 876654f6c4..caaf486219 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q3.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q3.groovy @@ -31,7 +31,8 @@ suite("q3") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=true' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=true' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q4.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q4.groovy index 365e650434..546534c4f7 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q4.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q4.groovy @@ -25,7 +25,8 @@ suite("q4") { sql "set runtime_filter_mode='GLOBAL'" sql 'set exec_mem_limit=21G' sql 'SET enable_pipeline_engine = true' - sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=true' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=true' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q5.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q5.groovy index 748814e52a..ea5d6b920a 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q5.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q5.groovy @@ -30,7 +30,8 @@ suite("q5") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=true' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=true' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q6.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q6.groovy index d8bc89b8ef..748ec651ca 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q6.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q6.groovy @@ -30,7 +30,8 @@ suite("q6") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=true' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=true' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q7.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q7.groovy index 697be7ff4c..938840abbe 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q7.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q7.groovy @@ -30,7 +30,8 @@ suite("q7") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=true' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=true' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q8.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q8.groovy index ef4618273c..0867d4174f 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q8.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q8.groovy @@ -30,7 +30,8 @@ suite("q8") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=true' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=true' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q9.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q9.groovy index bdf212430e..f536ae3274 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q9.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/rf_prune/q9.groovy @@ -30,7 +30,8 @@ suite("q9") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set forbid_unknown_col_stats=true' sql 'set enable_runtime_filter_prune=true' sql 'set enable_stats=true' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q1.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q1.groovy index bb7fc3fac9..e52bf3df78 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q1.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q1.groovy @@ -25,7 +25,8 @@ suite("q1") { sql 'set exec_mem_limit=21G' sql 'SET enable_pipeline_engine = true' sql 'set parallel_pipeline_task_num=8' -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q10.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q10.groovy index 26724582f2..78d292de04 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q10.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q10.groovy @@ -27,7 +27,8 @@ suite("q10") { sql 'set exec_mem_limit=21G' sql 'SET enable_pipeline_engine = true' sql 'set parallel_pipeline_task_num=8' -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' qt_select """ explain shape plan diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q11.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q11.groovy index 0eb87114d2..e9e9242211 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q11.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q11.groovy @@ -26,7 +26,8 @@ suite("q11") { sql 'set parallel_pipeline_task_num=8' sql 'set exec_mem_limit=21G' sql 'SET enable_pipeline_engine = true' -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q12.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q12.groovy index 7a16d159a3..8375e16350 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q12.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q12.groovy @@ -26,7 +26,8 @@ suite("q12") { sql 'set parallel_pipeline_task_num=8' sql 'set exec_mem_limit=21G' sql 'SET enable_pipeline_engine = true' -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' qt_select """ explain shape plan diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q13.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q13.groovy index b3de091a6d..48909dabbd 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q13.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q13.groovy @@ -30,7 +30,8 @@ suite("q13") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' qt_select """ explain shape plan diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q14.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q14.groovy index de0af20ee9..7838db82e6 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q14.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q14.groovy @@ -27,7 +27,8 @@ suite("q14") { sql 'set exec_mem_limit=21G' sql 'SET enable_pipeline_engine = true' sql 'set parallel_pipeline_task_num=8' -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' qt_select """ explain shape plan diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q15.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q15.groovy index 8f763346b7..ccb5ce5ae3 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q15.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q15.groovy @@ -30,7 +30,8 @@ suite("q15") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' qt_select """ diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q16.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q16.groovy index 6121fbac27..5e3f8545b5 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q16.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q16.groovy @@ -30,7 +30,8 @@ suite("q16") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' qt_select """ diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q17.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q17.groovy index ed8e34dce0..f007b11e17 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q17.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q17.groovy @@ -30,7 +30,8 @@ suite("q17") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' qt_select """ diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q18.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q18.groovy index 2a6df6c6e2..7e4ecc150c 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q18.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q18.groovy @@ -30,7 +30,8 @@ suite("q18") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' qt_select """ diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q19.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q19.groovy index eeded0e8c9..a25736e7b3 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q19.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q19.groovy @@ -31,7 +31,8 @@ suite("q19") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' qt_select """ diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q2.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q2.groovy index d51483b48c..f367540d15 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q2.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q2.groovy @@ -30,7 +30,8 @@ suite("q2") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' qt_select """ diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q20-rewrite.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q20-rewrite.groovy index aa90e6adcd..825d2bab52 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q20-rewrite.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q20-rewrite.groovy @@ -31,7 +31,8 @@ suite("q20-rewrite") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' qt_select """ diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q20.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q20.groovy index 42d49a0947..d0b1f3a81c 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q20.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q20.groovy @@ -31,7 +31,8 @@ suite("q20") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' qt_select """ diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q21.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q21.groovy index 3020205394..4968986c55 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q21.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q21.groovy @@ -30,7 +30,8 @@ suite("q21") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' qt_select """ diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q22.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q22.groovy index 0dee215499..cccd2f29fa 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q22.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q22.groovy @@ -30,7 +30,8 @@ suite("q22") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' qt_select """ diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q3.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q3.groovy index c95ea0f994..3181cd40db 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q3.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q3.groovy @@ -31,7 +31,8 @@ suite("q3") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' qt_select """ diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q4.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q4.groovy index 0885ba53ac..4f60a57e13 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q4.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q4.groovy @@ -25,7 +25,8 @@ suite("q4") { sql "set runtime_filter_mode='GLOBAL'" sql 'set exec_mem_limit=21G' sql 'SET enable_pipeline_engine = true' - sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' sql 'set parallel_pipeline_task_num=8' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q5.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q5.groovy index ddd13e35c9..8ed3facf7e 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q5.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q5.groovy @@ -30,7 +30,8 @@ suite("q5") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' qt_select """ diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q6.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q6.groovy index b417d9f023..36ad4c1559 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q6.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q6.groovy @@ -30,7 +30,8 @@ suite("q6") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' qt_select """ diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q7.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q7.groovy index bf6c7b8f0d..a612ebb5a6 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q7.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q7.groovy @@ -30,7 +30,8 @@ suite("q7") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' qt_select """ diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q8.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q8.groovy index eb4fe4a120..597b3b1016 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q8.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q8.groovy @@ -30,7 +30,8 @@ suite("q8") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' qt_select """ diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q9.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q9.groovy index 812e066a64..d640f7cb97 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q9.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape/q9.groovy @@ -30,7 +30,8 @@ suite("q9") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' qt_select """ diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q1.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q1.groovy index 6c2d3417bd..59f149db8e 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q1.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q1.groovy @@ -25,7 +25,8 @@ suite("q1") { sql 'set exec_mem_limit=21G' sql 'SET enable_pipeline_engine = true' sql 'set parallel_pipeline_task_num=8' -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q10.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q10.groovy index 6193917096..9f696db659 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q10.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q10.groovy @@ -27,7 +27,8 @@ suite("q10") { sql 'set exec_mem_limit=21G' sql 'SET enable_pipeline_engine = true' sql 'set parallel_pipeline_task_num=8' -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q11.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q11.groovy index cb75fe5373..b72e0b392f 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q11.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q11.groovy @@ -26,7 +26,8 @@ suite("q11") { sql 'set parallel_pipeline_task_num=8' sql 'set exec_mem_limit=21G' sql 'SET enable_pipeline_engine = true' -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q12.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q12.groovy index 764ff877ea..e4c0f670d5 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q12.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q12.groovy @@ -26,7 +26,8 @@ suite("q12") { sql 'set parallel_pipeline_task_num=8' sql 'set exec_mem_limit=21G' sql 'SET enable_pipeline_engine = true' -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q13.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q13.groovy index 631a2dbf50..991a00d739 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q13.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q13.groovy @@ -30,7 +30,8 @@ suite("q13") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q14.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q14.groovy index c918e68eef..2b109a4996 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q14.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q14.groovy @@ -27,7 +27,8 @@ suite("q14") { sql 'set exec_mem_limit=21G' sql 'SET enable_pipeline_engine = true' sql 'set parallel_pipeline_task_num=8' -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q15.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q15.groovy index 50d814689d..eb627a0a06 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q15.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q15.groovy @@ -30,7 +30,8 @@ suite("q15") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q16.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q16.groovy index f99471730a..5e7a35611c 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q16.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q16.groovy @@ -30,7 +30,8 @@ suite("q16") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q17.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q17.groovy index bb6bd60176..f365a230ac 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q17.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q17.groovy @@ -30,7 +30,8 @@ suite("q17") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q18.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q18.groovy index 26d0ad009f..ffdf616326 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q18.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q18.groovy @@ -30,7 +30,8 @@ suite("q18") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q19.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q19.groovy index abd5c84872..ec91b1f745 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q19.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q19.groovy @@ -31,7 +31,8 @@ suite("q19") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q2.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q2.groovy index 9abd6f7f41..8f0d99c464 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q2.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q2.groovy @@ -30,7 +30,8 @@ suite("q2") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q20-rewrite.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q20-rewrite.groovy index afb4adbf09..77cc836882 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q20-rewrite.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q20-rewrite.groovy @@ -31,7 +31,8 @@ suite("q20-rewrite") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q20.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q20.groovy index 0a8f3bfb5a..e59a0a70b0 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q20.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q20.groovy @@ -31,7 +31,8 @@ suite("q20") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q21.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q21.groovy index 24600e6c6b..74fd3aa486 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q21.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q21.groovy @@ -30,7 +30,8 @@ suite("q21") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q22.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q22.groovy index 3c4e9b6c30..1ec5264ef3 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q22.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q22.groovy @@ -30,7 +30,8 @@ suite("q22") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q3.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q3.groovy index 099f74a331..7d56316238 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q3.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q3.groovy @@ -31,7 +31,8 @@ suite("q3") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q4.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q4.groovy index 8de4e509e4..25da27e3b5 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q4.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q4.groovy @@ -25,7 +25,8 @@ suite("q4") { sql "set runtime_filter_mode='GLOBAL'" sql 'set exec_mem_limit=21G' sql 'SET enable_pipeline_engine = true' - sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q5.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q5.groovy index 0599eb7e97..d10c624ff5 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q5.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q5.groovy @@ -30,7 +30,8 @@ suite("q5") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q6.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q6.groovy index 9262cd566b..12abff48e6 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q6.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q6.groovy @@ -30,7 +30,8 @@ suite("q6") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q7.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q7.groovy index 807d459884..544f09cbdf 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q7.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q7.groovy @@ -30,7 +30,8 @@ suite("q7") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q8.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q8.groovy index 6c19378b67..178ac21e78 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q8.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q8.groovy @@ -30,7 +30,8 @@ suite("q8") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=false' diff --git a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q9.groovy b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q9.groovy index 7c58ea2609..a724369a9c 100644 --- a/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q9.groovy +++ b/regression-test/suites/nereids_tpch_shape_sf1000_p0/shape_no_stats/q9.groovy @@ -30,7 +30,8 @@ suite("q9") { -sql 'set be_number_for_test=3' + sql 'set be_number_for_test=3' + sql "set runtime_filter_type=8" sql 'set enable_runtime_filter_prune=false' sql 'set forbid_unknown_col_stats=false;' sql 'set enable_runtime_filter_prune=false'