diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/PlanPostProcessors.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/PlanPostProcessors.java index 6d85bebb2d..d89ef1acd2 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/PlanPostProcessors.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/PlanPostProcessors.java @@ -67,6 +67,7 @@ public class PlanPostProcessors { builder.add(new FragmentProcessor()); if (!cascadesContext.getConnectContext().getSessionVariable().getRuntimeFilterMode() .toUpperCase().equals(TRuntimeFilterMode.OFF.name())) { + builder.add(new RegisterParent()); builder.add(new RuntimeFilterGenerator()); if (ConnectContext.get().getSessionVariable().enableRuntimeFilterPrune) { builder.add(new RuntimeFilterPruner()); diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/RegisterParent.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/RegisterParent.java new file mode 100644 index 0000000000..dbb1942410 --- /dev/null +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/RegisterParent.java @@ -0,0 +1,36 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package org.apache.doris.nereids.processor.post; + +import org.apache.doris.nereids.CascadesContext; +import org.apache.doris.nereids.trees.plans.Plan; +import org.apache.doris.nereids.util.MutableState; + +/** + * set parent for the tree nodes + */ +public class RegisterParent extends PlanPostProcessor { + @Override + public Plan visit(Plan plan, CascadesContext context) { + for (Plan child : plan.children()) { + child.setMutableState(MutableState.KEY_PARENT, plan); + child.accept(this, context); + } + return plan; + } +} diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/RuntimeFilterContext.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/RuntimeFilterContext.java index 2e8055ca78..eb5767fc1f 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/RuntimeFilterContext.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/RuntimeFilterContext.java @@ -18,11 +18,9 @@ package org.apache.doris.nereids.processor.post; import org.apache.doris.analysis.SlotRef; -import org.apache.doris.common.IdGenerator; import org.apache.doris.common.Pair; import org.apache.doris.nereids.trees.expressions.CTEId; import org.apache.doris.nereids.trees.expressions.EqualPredicate; -import org.apache.doris.nereids.trees.expressions.EqualTo; import org.apache.doris.nereids.trees.expressions.ExprId; import org.apache.doris.nereids.trees.expressions.Expression; import org.apache.doris.nereids.trees.expressions.NamedExpression; @@ -37,7 +35,6 @@ import org.apache.doris.nereids.trees.plans.physical.RuntimeFilter; import org.apache.doris.planner.DataStreamSink; import org.apache.doris.planner.PlanNodeId; import org.apache.doris.planner.RuntimeFilterGenerator.FilterSizeLimits; -import org.apache.doris.planner.RuntimeFilterId; import org.apache.doris.planner.ScanNode; import org.apache.doris.qe.SessionVariable; import org.apache.doris.thrift.TRuntimeFilterType; @@ -97,10 +94,6 @@ public class RuntimeFilterContext { public List prunedRF = Lists.newArrayList(); - public final List needRfPlans = Lists.newArrayList(); - - private final IdGenerator generator = RuntimeFilterId.createGenerator(); - // exprId of target to runtime filter. private final Map> targetExprIdToFilter = Maps.newHashMap(); @@ -128,20 +121,11 @@ public class RuntimeFilterContext { private final Map effectiveSrcNodes = Maps.newHashMap(); - // cte to related joins map which can extract common runtime filter to cte inside - private final Map> cteToJoinsMap = Maps.newLinkedHashMap(); - - // cte candidates which can be pushed into common runtime filter into from outside - private final Map> cteRFPushDownMap = Maps.newLinkedHashMap(); - private final Map cteProducerMap = Maps.newLinkedHashMap(); // cte whose runtime filter has been extracted private final Set processedCTE = Sets.newHashSet(); - // cte whose outer runtime filter has been pushed down into - private final Set pushedDownCTE = Sets.newHashSet(); - private final SessionVariable sessionVariable; private final FilterSizeLimits limits; @@ -189,22 +173,10 @@ public class RuntimeFilterContext { return cteProducerMap; } - public Map> getCteRFPushDownMap() { - return cteRFPushDownMap; - } - - public Map> getCteToJoinsMap() { - return cteToJoinsMap; - } - public Set getProcessedCTE() { return processedCTE; } - public Set getPushedDownCTE() { - return pushedDownCTE; - } - public void setTargetExprIdToFilter(ExprId id, RuntimeFilter filter) { Preconditions.checkArgument(filter.getTargetSlots().stream().anyMatch(expr -> expr.getExprId() == id)); this.targetExprIdToFilter.computeIfAbsent(id, k -> Lists.newArrayList()).add(filter); @@ -230,14 +202,6 @@ public class RuntimeFilterContext { rf.getTargetScans().get(i).removeAppliedRuntimeFilter(rf); } } - // for (Slot target : rf.getTargetSlots()) { - // if (target.getExprId().equals(targetId)) { - // Pair pair = aliasTransferMap.get(target); - // if (pair != null) { - // pair.first.removeAppliedRuntimeFilter(rf); - // } - // } - // } iter.remove(); prunedRF.add(rf); } diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/RuntimeFilterGenerator.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/RuntimeFilterGenerator.java index 2a5d37e090..d4c5a96d3c 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/RuntimeFilterGenerator.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/RuntimeFilterGenerator.java @@ -39,7 +39,6 @@ import org.apache.doris.nereids.trees.expressions.functions.scalar.BitmapContain import org.apache.doris.nereids.trees.plans.AbstractPlan; import org.apache.doris.nereids.trees.plans.JoinType; import org.apache.doris.nereids.trees.plans.Plan; -import org.apache.doris.nereids.trees.plans.logical.LogicalCTEConsumer; import org.apache.doris.nereids.trees.plans.physical.AbstractPhysicalJoin; import org.apache.doris.nereids.trees.plans.physical.PhysicalCTEConsumer; import org.apache.doris.nereids.trees.plans.physical.PhysicalCTEProducer; @@ -65,13 +64,13 @@ import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; +import com.google.common.collect.Maps; +import com.google.common.collect.Sets; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; import java.util.List; import java.util.Map; import java.util.Set; @@ -99,6 +98,137 @@ public class RuntimeFilterGenerator extends PlanPostProcessor { private final IdGenerator generator = RuntimeFilterId.createGenerator(); + @Override + public Plan processRoot(Plan plan, CascadesContext ctx) { + Plan result = plan.accept(this, ctx); + // cte rf + RuntimeFilterContext rfCtx = ctx.getRuntimeFilterContext(); + int cteCount = rfCtx.getProcessedCTE().size(); + if (cteCount != 0) { + Map> cteIdToConsumersWithRF = Maps.newHashMap(); + Map> cteToRFsMap = Maps.newHashMap(); + Map> consumerToRFs = Maps.newHashMap(); + Map> consumerToSrcExpression = Maps.newHashMap(); + List allRFs = rfCtx.getNereidsRuntimeFilter(); + for (RuntimeFilter rf : allRFs) { + for (PhysicalRelation rel : rf.getTargetScans()) { + if (rel instanceof PhysicalCTEConsumer) { + PhysicalCTEConsumer consumer = (PhysicalCTEConsumer) rel; + CTEId cteId = consumer.getCteId(); + cteToRFsMap.computeIfAbsent(cteId, key -> Lists.newArrayList()).add(rf); + cteIdToConsumersWithRF.computeIfAbsent(cteId, key -> Sets.newHashSet()).add(consumer); + consumerToRFs.computeIfAbsent(consumer, key -> Sets.newHashSet()).add(rf); + consumerToSrcExpression.computeIfAbsent(consumer, key -> Sets.newHashSet()) + .add(rf.getSrcExpr()); + } + } + } + for (CTEId cteId : rfCtx.getCteProduceMap().keySet()) { + // if any consumer does not have RF, RF cannot be pushed down. + // cteIdToConsumersWithRF.get(cteId).size() can not be 1, o.w. this cte will be inlined. + if (cteIdToConsumersWithRF.get(cteId) != null + && ctx.getCteIdToConsumers().get(cteId).size() == cteIdToConsumersWithRF.get(cteId).size() + && cteIdToConsumersWithRF.get(cteId).size() >= 2) { + // check if there is a common srcExpr among all the consumers + Set consumers = cteIdToConsumersWithRF.get(cteId); + PhysicalCTEConsumer consumer0 = consumers.iterator().next(); + Set candidateSrcExpressions = consumerToSrcExpression.get(consumer0); + for (PhysicalCTEConsumer currentConsumer : consumers) { + Set srcExpressionsOnCurrentConsumer = consumerToSrcExpression.get(currentConsumer); + candidateSrcExpressions.retainAll(srcExpressionsOnCurrentConsumer); + if (candidateSrcExpressions.isEmpty()) { + break; + } + } + if (!candidateSrcExpressions.isEmpty()) { + // find RFs to push down + for (Expression srcExpr : candidateSrcExpressions) { + List rfsToPushDown = Lists.newArrayList(); + for (PhysicalCTEConsumer consumer : cteIdToConsumersWithRF.get(cteId)) { + for (RuntimeFilter rf : consumerToRFs.get(consumer)) { + if (rf.getSrcExpr().equals(srcExpr)) { + rfsToPushDown.add(rf); + } + } + } + if (rfsToPushDown.isEmpty()) { + break; + } + + // the most right deep buildNode from rfsToPushDown is used as buildNode for pushDown rf + // since the srcExpr are the same, all buildNodes of rfToPushDown are in the same tree path + // the longest ancestors means its corresponding rf build node is the most right deep one. + RuntimeFilter rightDeep = rfsToPushDown.get(0); + List rightDeepAncestors = rfsToPushDown.get(0).getBuilderNode().getAncestors(); + int rightDeepAncestorsSize = rightDeepAncestors.size(); + RuntimeFilter leftTop = rfsToPushDown.get(0); + int leftTopAncestorsSize = rightDeepAncestorsSize; + for (RuntimeFilter rf : rfsToPushDown) { + List ancestors = rf.getBuilderNode().getAncestors(); + int currentAncestorsSize = ancestors.size(); + if (currentAncestorsSize > rightDeepAncestorsSize) { + rightDeep = rf; + rightDeepAncestorsSize = currentAncestorsSize; + rightDeepAncestors = ancestors; + } + if (currentAncestorsSize < leftTopAncestorsSize) { + leftTopAncestorsSize = currentAncestorsSize; + leftTop = rf; + } + } + Preconditions.checkArgument(rightDeepAncestors.contains(leftTop.getBuilderNode())); + // check nodes between right deep and left top are SPJ and not denied join and not mark join + boolean valid = true; + for (Plan cursor : rightDeepAncestors) { + if (cursor.equals(leftTop.getBuilderNode())) { + break; + } + // valid = valid && SPJ_PLAN.contains(cursor.getClass()); + if (cursor instanceof AbstractPhysicalJoin) { + AbstractPhysicalJoin cursorJoin = (AbstractPhysicalJoin) cursor; + valid = (!RuntimeFilterGenerator.DENIED_JOIN_TYPES + .contains(cursorJoin.getJoinType()) + || cursorJoin.isMarkJoin()) && valid; + } + if (!valid) { + break; + } + } + + if (!valid) { + break; + } + + Expression rightDeepTargetExpressionOnCTE = null; + int targetCount = rightDeep.getTargetExpressions().size(); + for (int i = 0; i < targetCount; i++) { + PhysicalRelation rel = rightDeep.getTargetScans().get(i); + if (rel instanceof PhysicalCTEConsumer + && ((PhysicalCTEConsumer) rel).getCteId().equals(cteId)) { + rightDeepTargetExpressionOnCTE = rightDeep.getTargetExpressions().get(i); + break; + } + } + + boolean pushedDown = doPushDownIntoCTEProducerInternal( + rightDeep, + rightDeepTargetExpressionOnCTE, + rfCtx, + rfCtx.getCteProduceMap().get(cteId) + ); + if (pushedDown) { + rfCtx.removeFilter( + rightDeepTargetExpressionOnCTE.getInputSlotExprIds().iterator().next(), + (PhysicalHashJoin) rightDeep.getBuilderNode()); + } + } + } + } + } + } + return result; + } + /** * the runtime filter generator run at the phase of post process and plan translation of nereids planner. * post process: @@ -117,18 +247,40 @@ public class RuntimeFilterGenerator extends PlanPostProcessor { @Override public PhysicalPlan visitPhysicalHashJoin(PhysicalHashJoin join, CascadesContext context) { - RuntimeFilterContext ctx = context.getRuntimeFilterContext(); join.right().accept(this, context); join.left().accept(this, context); if (RuntimeFilterGenerator.DENIED_JOIN_TYPES.contains(join.getJoinType()) || join.isMarkJoin()) { join.right().getOutput().forEach(slot -> context.getRuntimeFilterContext().aliasTransferMapRemove(slot)); } - collectPushDownCTEInfos(join, context); - if (!getPushDownCTECandidates(ctx).isEmpty()) { - pushDownRuntimeFilterIntoCTE(ctx); - } else { - pushDownRuntimeFilterCommon(join, context); + RuntimeFilterContext ctx = context.getRuntimeFilterContext(); + List legalTypes = Arrays.stream(TRuntimeFilterType.values()) + .filter(type -> (type.getValue() & ctx.getSessionVariable().getRuntimeFilterType()) > 0) + .collect(Collectors.toList()); + + List hashJoinConjuncts = join.getHashJoinConjuncts().stream().collect(Collectors.toList()); + boolean buildSideContainsConsumer = hasCTEConsumerDescendant((PhysicalPlan) join.right()); + for (int i = 0; i < hashJoinConjuncts.size(); i++) { + // BE do not support RF generated from NullSafeEqual, skip them + if (hashJoinConjuncts.get(i) instanceof EqualTo) { + EqualTo equalTo = ((EqualTo) JoinUtils.swapEqualToForChildrenOrder( + (EqualTo) hashJoinConjuncts.get(i), join.left().getOutputSet())); + for (TRuntimeFilterType type : legalTypes) { + //bitmap rf is generated by nested loop join. + if (type == TRuntimeFilterType.BITMAP) { + continue; + } + long buildSideNdv = getBuildSideNdv(join, equalTo); + Pair pair = ctx.getAliasTransferMap().get(equalTo.right()); + // CteConsumer is not allowed to generate RF in order to avoid RF cycle. + if ((pair == null && buildSideContainsConsumer) + || (pair != null && pair.first instanceof PhysicalCTEConsumer)) { + continue; + } + join.pushDownRuntimeFilter(context, generator, join, equalTo.right(), + equalTo.left(), type, buildSideNdv, i); + } + } } return join; } @@ -362,235 +514,18 @@ public class RuntimeFilterGenerator extends PlanPostProcessor { return expression instanceof Slot ? ((Slot) expression) : null; } - private void pushDownRuntimeFilterCommon(PhysicalHashJoin join, - CascadesContext context) { - RuntimeFilterContext ctx = context.getRuntimeFilterContext(); - List legalTypes = Arrays.stream(TRuntimeFilterType.values()) - .filter(type -> (type.getValue() & ctx.getSessionVariable().getRuntimeFilterType()) > 0) - .collect(Collectors.toList()); - - List hashJoinConjuncts = join.getHashJoinConjuncts().stream().collect(Collectors.toList()); - for (int i = 0; i < hashJoinConjuncts.size(); i++) { - // BE do not support RF generated from NullSafeEqual, skip them - if (hashJoinConjuncts.get(i) instanceof EqualTo) { - EqualTo equalTo = ((EqualTo) JoinUtils.swapEqualToForChildrenOrder( - (EqualTo) hashJoinConjuncts.get(i), join.left().getOutputSet())); - for (TRuntimeFilterType type : legalTypes) { - //bitmap rf is generated by nested loop join. - if (type == TRuntimeFilterType.BITMAP) { - continue; - } - long buildSideNdv = getBuildSideNdv(join, equalTo); - join.pushDownRuntimeFilter(context, generator, join, equalTo.right(), - equalTo.left(), type, buildSideNdv, i); - } - } - } - } - - private void collectPushDownCTEInfos(PhysicalHashJoin join, - CascadesContext context) { - RuntimeFilterContext ctx = context.getRuntimeFilterContext(); - Set cteIds = new LinkedHashSet<>(); // use LinkedHashSet to make runtime filter order stable - PhysicalPlan leftChild = (PhysicalPlan) join.left(); - PhysicalPlan rightChild = (PhysicalPlan) join.right(); - - Preconditions.checkState(leftChild != null && rightChild != null); - - boolean leftHasCTE = hasCTEConsumerUnderJoin(leftChild, cteIds); - boolean rightHasCTE = hasCTEConsumerUnderJoin(rightChild, cteIds); - // only support single cte in join currently - if ((leftHasCTE && !rightHasCTE) || (!leftHasCTE && rightHasCTE)) { - for (CTEId id : cteIds) { - if (ctx.getCteToJoinsMap().get(id) == null) { - // use LinkedHashSet to make runtime filter order stable - Set newJoin = new LinkedHashSet<>(); - newJoin.add(join); - ctx.getCteToJoinsMap().put(id, newJoin); - } else { - ctx.getCteToJoinsMap().get(id).add(join); - } - } - } - if (!ctx.getCteToJoinsMap().isEmpty()) { - analyzeRuntimeFilterPushDownIntoCTEInfos(join, context); - } - } - - private List getPushDownCTECandidates(RuntimeFilterContext ctx) { - List candidates = new ArrayList<>(); - Map> cteRFPushDownMap = ctx.getCteRFPushDownMap(); - for (Map.Entry> entry : cteRFPushDownMap.entrySet()) { - CTEId cteId = entry.getKey().getCteId(); - if (ctx.getPushedDownCTE().contains(cteId)) { - continue; - } - candidates.add(cteId); - } - return candidates; - } - - private boolean hasCTEConsumerUnderJoin(PhysicalPlan root, Set cteIds) { - if (root instanceof PhysicalCTEConsumer) { - cteIds.add(((PhysicalCTEConsumer) root).getCteId()); - return true; - } else if (root.children().size() != 1) { - // only collect cte in one side - return false; - } else if (root instanceof PhysicalDistribute - || root instanceof PhysicalFilter - || root instanceof PhysicalProject) { - // only collect cte as single child node under join - return hasCTEConsumerUnderJoin((PhysicalPlan) root.child(0), cteIds); - } else { - return false; - } - } - - private void analyzeRuntimeFilterPushDownIntoCTEInfos(PhysicalHashJoin curJoin, - CascadesContext context) { - RuntimeFilterContext ctx = context.getRuntimeFilterContext(); - Map> cteToJoinsMap = ctx.getCteToJoinsMap(); - for (Map.Entry> entry : cteToJoinsMap.entrySet()) { - CTEId cteId = entry.getKey(); - Set joinSet = entry.getValue(); - if (joinSet.contains(curJoin)) { - // skip current join - continue; - } - Set cteSet = context.getCteIdToConsumers().get(cteId); - Preconditions.checkState(!cteSet.isEmpty()); - String cteName = cteSet.iterator().next().getName(); - // preconditions for rf pushing into cte producer: - // multiple joins whose join condition is on the same cte's column of the same cte - // the other side of these join conditions are the same column of the same table, or - // they in the same equal sets, such as under an equal join condition - // case 1: two joins with t1.c1 = cte1_consumer1.c1 and t1.c1 = cte1_consumer2.c1 conditions - // rf of t1.c1 can be pushed down into cte1 producer. - // ----------------------hashJoin(t1.c1 = cte2_consumer1.c1) - // ----------------------------CteConsumer[cteId= ( CTEId#1=] ) - // ----------------------------PhysicalOlapScan[t1] - // ----------------------hashJoin(t1.c1 = cte2_consumer2.c1) - // ----------------------------CteConsumer[cteId= ( CTEId#1=] ) - // ----------------------------PhysicalOlapScan[t1] - // case 2: two joins with t1.c1 = cte2_consumer1.c1 and t2.c2 = cte2_consumer2.c1 and another equal join - // condition t1.c1 = t2.c2, which means t1.c1 and t2.c2 are in the same equal set. - // rf of t1.c1 and t2.c2 can be pushed down into cte2 producer. - // --------------------hashJoin(t1.c1 = t2.c2) - // ----------------------hashJoin(t2.c2 = cte2_consumer1.c1) - // ----------------------------CteConsumer[cteId= ( CTEId#1=] ) - // ----------------------------PhysicalOlapScan[t2] - // ----------------------hashJoin(t1.c1 = cte2_consumer2.c1) - // ----------------------------CteConsumer[cteId= ( CTEId#1=] ) - // ----------------------------PhysicalOlapScan[t1] - if (joinSet.size() != cteSet.size()) { - continue; - } - List equalTos = new ArrayList<>(); - Map equalCondToJoinMap = new LinkedHashMap<>(); - for (PhysicalHashJoin join : joinSet) { - // precondition: - // 1. no non-equal join condition - // 2. only equalTo and slotReference both sides - // 3. only support one join condition (will be refined further) - if (join.getOtherJoinConjuncts().size() > 1 - || join.getHashJoinConjuncts().size() != 1 - || !(join.getHashJoinConjuncts().get(0) instanceof EqualTo)) { - break; - } else { - EqualTo equalTo = join.getEqualToConjuncts().get(0); - equalTos.add(equalTo); - equalCondToJoinMap.put(equalTo, join); - } - } - if (joinSet.size() == equalTos.size()) { - int matchNum = 0; - Set cteNameSet = new HashSet<>(); - Set anotherSideSlotSet = new HashSet<>(); - for (EqualTo equalTo : equalTos) { - SlotReference left = (SlotReference) equalTo.left(); - SlotReference right = (SlotReference) equalTo.right(); - if (left.getQualifier().size() == 1 && left.getQualifier().get(0).equals(cteName)) { - matchNum += 1; - anotherSideSlotSet.add(right); - cteNameSet.add(left.getQualifiedName()); - } else if (right.getQualifier().size() == 1 && right.getQualifier().get(0).equals(cteName)) { - matchNum += 1; - anotherSideSlotSet.add(left); - cteNameSet.add(right.getQualifiedName()); - } - } - if (matchNum == equalTos.size() && cteNameSet.size() == 1) { - // means all join condition points to the same cte on the same cte column. - // collect the other side columns besides cte column side. - Preconditions.checkState(equalTos.size() == equalCondToJoinMap.size(), - "equalTos.size() != equalCondToJoinMap.size()"); - - PhysicalCTEProducer cteProducer = context.getRuntimeFilterContext().getCteProduceMap().get(cteId); - if (anotherSideSlotSet.size() == 1) { - // meet requirement for pushing down into cte producer - ctx.getCteRFPushDownMap().put(cteProducer, equalCondToJoinMap); - } else { - // check further whether the join upper side can bring equal set, which - // indicating actually the same runtime filter build side - // see above case 2 for reference - boolean inSameEqualSet = false; - for (EqualTo e : curJoin.getEqualToConjuncts()) { - if (e instanceof EqualTo) { - SlotReference oneSide = (SlotReference) e.left(); - SlotReference anotherSide = (SlotReference) e.right(); - if (anotherSideSlotSet.contains(oneSide) && anotherSideSlotSet.contains(anotherSide)) { - inSameEqualSet = true; - break; - } - } - } - if (inSameEqualSet) { - ctx.getCteRFPushDownMap().put(cteProducer, equalCondToJoinMap); - } - } - } - } - } - } - - private void pushDownRuntimeFilterIntoCTE(RuntimeFilterContext ctx) { - Map> cteRFPushDownMap = ctx.getCteRFPushDownMap(); - for (Map.Entry> entry : cteRFPushDownMap.entrySet()) { - PhysicalCTEProducer cteProducer = entry.getKey(); - Preconditions.checkState(cteProducer != null); - if (ctx.getPushedDownCTE().contains(cteProducer.getCteId())) { - continue; - } - Map equalCondToJoinMap = entry.getValue(); - for (Map.Entry innerEntry : equalCondToJoinMap.entrySet()) { - EqualTo equalTo = innerEntry.getKey(); - PhysicalHashJoin join = innerEntry.getValue(); - Preconditions.checkState(join != null); - TRuntimeFilterType type = TRuntimeFilterType.IN_OR_BLOOM; - if (ctx.getSessionVariable().getEnablePipelineEngine() && !join.isBroadCastJoin()) { - type = TRuntimeFilterType.BLOOM; - } - EqualTo newEqualTo = ((EqualTo) JoinUtils.swapEqualToForChildrenOrder( - equalTo, join.child(0).getOutputSet())); - doPushDownIntoCTEProducerInternal(join, ctx, newEqualTo, type, cteProducer); - } - ctx.getPushedDownCTE().add(cteProducer.getCteId()); - } - } - - private void doPushDownIntoCTEProducerInternal(PhysicalHashJoin join, - RuntimeFilterContext ctx, EqualTo equalTo, TRuntimeFilterType type, PhysicalCTEProducer cteProducer) { + private boolean doPushDownIntoCTEProducerInternal(RuntimeFilter rf, Expression targetExpression, + RuntimeFilterContext ctx, PhysicalCTEProducer cteProducer) { PhysicalPlan inputPlanNode = (PhysicalPlan) cteProducer.child(0); - Slot unwrappedSlot = checkTargetChild(equalTo.left()); + Slot unwrappedSlot = checkTargetChild(targetExpression); // aliasTransMap doesn't contain the key, means that the path from the scan to the join // contains join with denied join type. for example: a left join b on a.id = b.id - if (!checkPushDownPreconditionsForJoin(join, ctx, unwrappedSlot)) { - return; + if (!checkPushDownPreconditionsForJoin(rf.getBuilderNode(), ctx, unwrappedSlot)) { + return false; } Slot cteSlot = ctx.getAliasTransferPair(unwrappedSlot).second; PhysicalRelation cteNode = ctx.getAliasTransferPair(unwrappedSlot).first; - long buildSideNdv = getBuildSideNdv(join, equalTo); + long buildSideNdv = rf.getBuildSideNdv(); if (cteNode instanceof PhysicalCTEConsumer && inputPlanNode instanceof PhysicalProject) { PhysicalProject project = (PhysicalProject) inputPlanNode; NamedExpression targetExpr = null; @@ -602,12 +537,7 @@ public class RuntimeFilterGenerator extends PlanPostProcessor { } } Preconditions.checkState(targetExpr != null); - if (!(targetExpr instanceof SlotReference)) { - // if not SlotReference, skip the push down - return; - } else if (!checkCanPushDownIntoBasicTable(project)) { - return; - } else { + if (targetExpr instanceof SlotReference && checkCanPushDownIntoBasicTable(project)) { Map pushDownBasicTableInfos = getPushDownBasicTablesInfos(project, (SlotReference) targetExpr, ctx); if (!pushDownBasicTableInfos.isEmpty()) { @@ -623,22 +553,24 @@ public class RuntimeFilterGenerator extends PlanPostProcessor { targetList.add(targetSlot); targetExpressions.add(targetSlot); targetNodes.add(scan); - ctx.addJoinToTargetMap(join, targetSlot.getExprId()); + ctx.addJoinToTargetMap(rf.getBuilderNode(), targetSlot.getExprId()); ctx.setTargetsOnScanNode(scan, targetSlot); } - // build multi-target runtime filter - // since always on different join, set the expr_order as 0 + RuntimeFilter filter = new RuntimeFilter(generator.getNextId(), - equalTo.right(), targetList, targetExpressions, type, 0, join, buildSideNdv, true, + rf.getSrcExpr(), targetList, targetExpressions, rf.getType(), rf.getExprOrder(), + rf.getBuilderNode(), buildSideNdv, rf.isBloomFilterSizeCalculatedByNdv(), cteNode); targetNodes.forEach(node -> node.addAppliedRuntimeFilter(filter)); for (Slot slot : targetList) { ctx.setTargetExprIdToFilter(slot.getExprId(), filter); } - ctx.setRuntimeFilterIdentityToFilter(equalTo.right(), type, join, filter); + ctx.setRuntimeFilterIdentityToFilter(rf.getSrcExpr(), rf.getType(), rf.getBuilderNode(), filter); + return true; } } } + return false; } @Override diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/RuntimeFilterPruner.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/RuntimeFilterPruner.java index 5005da2a1c..3d5c9752ad 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/RuntimeFilterPruner.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/RuntimeFilterPruner.java @@ -26,16 +26,21 @@ import org.apache.doris.nereids.trees.expressions.SlotReference; import org.apache.doris.nereids.trees.plans.AbstractPlan; import org.apache.doris.nereids.trees.plans.Plan; import org.apache.doris.nereids.trees.plans.physical.PhysicalAssertNumRows; +import org.apache.doris.nereids.trees.plans.physical.PhysicalCTEAnchor; import org.apache.doris.nereids.trees.plans.physical.PhysicalFilter; import org.apache.doris.nereids.trees.plans.physical.PhysicalHashAggregate; import org.apache.doris.nereids.trees.plans.physical.PhysicalHashJoin; +import org.apache.doris.nereids.trees.plans.physical.PhysicalIntersect; import org.apache.doris.nereids.trees.plans.physical.PhysicalLimit; +import org.apache.doris.nereids.trees.plans.physical.PhysicalNestedLoopJoin; import org.apache.doris.nereids.trees.plans.physical.PhysicalRelation; +import org.apache.doris.nereids.trees.plans.physical.PhysicalSetOperation; import org.apache.doris.nereids.trees.plans.physical.PhysicalTopN; import org.apache.doris.qe.ConnectContext; import org.apache.doris.statistics.ColumnStatistic; import org.apache.doris.statistics.Statistics; +import com.google.common.base.Preconditions; import com.google.common.collect.Sets; import java.util.List; @@ -58,6 +63,9 @@ public class RuntimeFilterPruner extends PlanPostProcessor { @Override public Plan visit(Plan plan, CascadesContext context) { if (!plan.children().isEmpty()) { + Preconditions.checkArgument(plan.children().size() == 1, + plan.getClass().getSimpleName() + + " has more than one child, needs its own visitor implementation"); plan.child(0).accept(this, context); if (context.getRuntimeFilterContext().isEffectiveSrcNode(plan.child(0))) { RuntimeFilterContext.EffectiveSrcType childType = context.getRuntimeFilterContext() @@ -68,6 +76,45 @@ public class RuntimeFilterPruner extends PlanPostProcessor { return plan; } + @Override + public PhysicalSetOperation visitPhysicalSetOperation(PhysicalSetOperation setOperation, CascadesContext context) { + for (Plan child : setOperation.children()) { + child.accept(this, context); + } + return setOperation; + } + + @Override + public PhysicalIntersect visitPhysicalIntersect(PhysicalIntersect intersect, CascadesContext context) { + for (Plan child : intersect.children()) { + child.accept(this, context); + } + context.getRuntimeFilterContext().addEffectiveSrcNode(intersect, RuntimeFilterContext.EffectiveSrcType.NATIVE); + return intersect; + } + + @Override + public PhysicalNestedLoopJoin visitPhysicalNestedLoopJoin( + PhysicalNestedLoopJoin join, + CascadesContext context) { + join.right().accept(this, context); + join.left().accept(this, context); + if (context.getRuntimeFilterContext().isEffectiveSrcNode(join.child(0))) { + RuntimeFilterContext.EffectiveSrcType childType = context.getRuntimeFilterContext() + .getEffectiveSrcType(join.child(0)); + context.getRuntimeFilterContext().addEffectiveSrcNode(join, childType); + } + return join; + } + + @Override + public PhysicalCTEAnchor visitPhysicalCTEAnchor(PhysicalCTEAnchor cteAnchor, + CascadesContext context) { + cteAnchor.child(0).accept(this, context); + cteAnchor.child(1).accept(this, context); + return cteAnchor; + } + @Override public PhysicalTopN visitPhysicalTopN(PhysicalTopN topN, CascadesContext context) { topN.child().accept(this, context); diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/AbstractPlan.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/AbstractPlan.java index 48ec363aa5..cd0cfb5429 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/AbstractPlan.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/AbstractPlan.java @@ -35,6 +35,7 @@ import org.apache.doris.statistics.Statistics; import com.google.common.base.Preconditions; import com.google.common.base.Supplier; import com.google.common.base.Suppliers; +import com.google.common.collect.Lists; import org.json.JSONArray; import org.json.JSONObject; @@ -191,4 +192,18 @@ public abstract class AbstractPlan extends AbstractTreeNode implements Pla public int getId() { return id.asInt(); } + + /** + * ancestors in the tree + */ + public List getAncestors() { + List ancestors = Lists.newArrayList(); + ancestors.add(this); + Optional parent = this.getMutableState(MutableState.KEY_PARENT); + while (parent.isPresent()) { + ancestors.add((Plan) parent.get()); + parent = ((Plan) parent.get()).getMutableState(MutableState.KEY_PARENT); + } + return ancestors; + } } diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/AbstractPhysicalPlan.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/AbstractPhysicalPlan.java index 5d8d4046f5..1e9135d600 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/AbstractPhysicalPlan.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/AbstractPhysicalPlan.java @@ -25,7 +25,6 @@ import org.apache.doris.nereids.processor.post.RuntimeFilterGenerator; import org.apache.doris.nereids.properties.LogicalProperties; import org.apache.doris.nereids.properties.PhysicalProperties; import org.apache.doris.nereids.trees.expressions.Expression; -import org.apache.doris.nereids.trees.expressions.NamedExpression; import org.apache.doris.nereids.trees.expressions.Slot; import org.apache.doris.nereids.trees.plans.AbstractPlan; import org.apache.doris.nereids.trees.plans.Explainable; @@ -129,7 +128,7 @@ public abstract class AbstractPhysicalPlan extends AbstractPlan implements Physi filter.addTargetSlot(scanSlot, probeExpr, scan); ctx.addJoinToTargetMap(builderNode, scanSlot.getExprId()); ctx.setTargetExprIdToFilter(scanSlot.getExprId(), filter); - ctx.setTargetsOnScanNode(ctx.getAliasTransferPair((NamedExpression) probeExpr).first, scanSlot); + ctx.setTargetsOnScanNode(ctx.getAliasTransferPair(probeSlot).first, scanSlot); } } else { filter = new RuntimeFilter(generator.getNextId(), @@ -139,7 +138,7 @@ public abstract class AbstractPhysicalPlan extends AbstractPlan implements Physi this.addAppliedRuntimeFilter(filter); ctx.addJoinToTargetMap(builderNode, scanSlot.getExprId()); ctx.setTargetExprIdToFilter(scanSlot.getExprId(), filter); - ctx.setTargetsOnScanNode(ctx.getAliasTransferPair((NamedExpression) probeSlot).first, scanSlot); + ctx.setTargetsOnScanNode(ctx.getAliasTransferPair(probeSlot).first, scanSlot); ctx.setRuntimeFilterIdentityToFilter(src, type, builderNode, filter); } return true; diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalCTEConsumer.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalCTEConsumer.java index 38259e155e..97714a4a48 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalCTEConsumer.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalCTEConsumer.java @@ -102,8 +102,13 @@ public class PhysicalCTEConsumer extends PhysicalRelation { @Override public String toString() { + StringBuilder builder = new StringBuilder(); + if (!getAppliedRuntimeFilters().isEmpty()) { + getAppliedRuntimeFilters() + .stream().forEach(rf -> builder.append(" RF").append(rf.getId().asInt())); + } return Utils.toSqlString("PhysicalCTEConsumer[" + id.asInt() + "]", - "cteId", cteId); + "stats", getStats(), "cteId", cteId, "RFs", builder); } @Override @@ -136,8 +141,15 @@ public class PhysicalCTEConsumer extends PhysicalRelation { @Override public String shapeInfo() { - return Utils.toSqlString("PhysicalCteConsumer", - "cteId", cteId); + StringBuilder shapeBuilder = new StringBuilder(); + shapeBuilder.append(Utils.toSqlString("PhysicalCteConsumer", + "cteId", cteId)); + if (!getAppliedRuntimeFilters().isEmpty()) { + shapeBuilder.append(" apply RFs:"); + getAppliedRuntimeFilters() + .stream().forEach(rf -> shapeBuilder.append(" RF").append(rf.getId().asInt())); + } + return shapeBuilder.toString(); } @Override diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalDistribute.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalDistribute.java index 8f30b50345..3891da6c1a 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalDistribute.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalDistribute.java @@ -70,8 +70,8 @@ public class PhysicalDistribute extends PhysicalUnary extends PhysicalUnary probExprList = Sets.newHashSet(probeExpr); - Pair pair = ctx.getAliasTransferMap().get(probeExpr); - PhysicalRelation target1 = (pair == null) ? null : pair.first; + Pair srcPair = ctx.getAliasTransferMap().get(srcExpr); + PhysicalRelation srcNode = (srcPair == null) ? null : srcPair.first; + Pair targetPair = ctx.getAliasTransferMap().get(probeExpr); + // when probeExpr is output slot of setOperator, targetPair is null + PhysicalRelation target1 = (targetPair == null) ? null : targetPair.first; PhysicalRelation target2 = null; - pair = ctx.getAliasTransferMap().get(srcExpr); - PhysicalRelation srcNode = (pair == null) ? null : pair.first; if (ConnectContext.get() != null && ConnectContext.get().getSessionVariable().expandRuntimeFilterByInnerJoin) { - if (!this.equals(builderNode) && this.getJoinType() == JoinType.INNER_JOIN) { + if (!this.equals(builderNode) + && (this.getJoinType() == JoinType.INNER_JOIN || this.getJoinType().isSemiJoin())) { for (Expression expr : this.getHashJoinConjuncts()) { EqualPredicate equalTo = (EqualPredicate) expr; if (probeExpr.equals(equalTo.left())) { probExprList.add(equalTo.right()); - pair = ctx.getAliasTransferMap().get(equalTo.right()); - target2 = (pair == null) ? null : pair.first; + targetPair = ctx.getAliasTransferMap().get(equalTo.right()); + target2 = (targetPair == null) ? null : targetPair.first; } else if (probeExpr.equals(equalTo.right())) { probExprList.add(equalTo.left()); - pair = ctx.getAliasTransferMap().get(equalTo.left()); - target2 = (pair == null) ? null : pair.first; + targetPair = ctx.getAliasTransferMap().get(equalTo.left()); + target2 = (targetPair == null) ? null : targetPair.first; } if (target2 != null) { ctx.getExpandedRF().add( diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalOlapScan.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalOlapScan.java index 8f461bc448..14629e5281 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalOlapScan.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalOlapScan.java @@ -24,7 +24,6 @@ import org.apache.doris.nereids.properties.LogicalProperties; import org.apache.doris.nereids.properties.PhysicalProperties; import org.apache.doris.nereids.trees.TableSample; import org.apache.doris.nereids.trees.expressions.Slot; -import org.apache.doris.nereids.trees.plans.AbstractPlan; import org.apache.doris.nereids.trees.plans.Plan; import org.apache.doris.nereids.trees.plans.PlanType; import org.apache.doris.nereids.trees.plans.PreAggStatus; @@ -120,9 +119,13 @@ public class PhysicalOlapScan extends PhysicalCatalogRelation implements OlapSca @Override public String toString() { - return Utils.toSqlString("PhysicalOlapScan[" + relationId.asInt() + "]" + getGroupIdWithPrefix(), - "qualified", Utils.qualifiedName(qualifier, table.getName()), - "stats", statistics, "fr", getMutableState(AbstractPlan.FRAGMENT_ID) + StringBuilder builder = new StringBuilder(); + if (!getAppliedRuntimeFilters().isEmpty()) { + getAppliedRuntimeFilters() + .stream().forEach(rf -> builder.append(" RF").append(rf.getId().asInt())); + } + return Utils.toSqlString("PhysicalOlapScan[" + table.getName() + "]" + getGroupIdWithPrefix(), + "stats", statistics, "RFs", builder ); } diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalProject.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalProject.java index 8cdfedbfdd..af7bb950a9 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalProject.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalProject.java @@ -33,6 +33,7 @@ import org.apache.doris.nereids.trees.plans.Plan; import org.apache.doris.nereids.trees.plans.PlanType; import org.apache.doris.nereids.trees.plans.algebra.Project; import org.apache.doris.nereids.trees.plans.visitor.PlanVisitor; +import org.apache.doris.nereids.util.ExpressionUtils; import org.apache.doris.nereids.util.Utils; import org.apache.doris.planner.RuntimeFilterId; import org.apache.doris.statistics.Statistics; @@ -77,8 +78,8 @@ public class PhysicalProject extends PhysicalUnary extends PhysicalUnary[c_customer_sk] +------------hashJoin[INNER_JOIN] hashCondition=((ctr1.ctr_customer_sk = customer.c_customer_sk)) otherCondition=() --------------PhysicalDistribute[DistributionSpecHash] ----------------PhysicalProject -------------------PhysicalOlapScan[customer] apply RFs: RF2 +------------------PhysicalOlapScan[customer] --------------PhysicalDistribute[DistributionSpecHash] ----------------hashJoin[INNER_JOIN] hashCondition=((ctr1.ctr_store_sk = ctr2.ctr_store_sk)) otherCondition=((cast(ctr_total_return as DOUBLE) > cast((avg(cast(ctr_total_return as DECIMALV3(38, 4))) * 1.2) as DOUBLE))) ------------------PhysicalProject --------------------hashJoin[INNER_JOIN] hashCondition=((store.s_store_sk = ctr1.ctr_store_sk)) otherCondition=() build RFs:RF1 s_store_sk->[ctr_store_sk] ----------------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF1 ----------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------PhysicalProject --------------------------filter((store.s_state = 'TN')) diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query14.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query14.out index 8fe54c1394..a81fb3e533 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query14.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query14.out @@ -103,18 +103,18 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------hashAgg[LOCAL] ------------------------------------PhysicalProject ---------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF14 i_item_sk->[ss_item_sk] -----------------------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((store_sales.ss_item_sk = cross_items.ss_item_sk)) otherCondition=() build RFs:RF13 ss_item_sk->[ss_item_sk] +--------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF13 i_item_sk->[ss_item_sk,ss_item_sk] +----------------------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((store_sales.ss_item_sk = cross_items.ss_item_sk)) otherCondition=() ------------------------------------------PhysicalDistribute[DistributionSpecHash] --------------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF12 d_date_sk->[ss_sold_date_sk] ----------------------------------------------PhysicalProject -------------------------------------------------PhysicalOlapScan[store_sales] apply RFs: RF12 RF13 RF14 +------------------------------------------------PhysicalOlapScan[store_sales] apply RFs: RF12 RF13 ----------------------------------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------------------------------PhysicalProject --------------------------------------------------filter((date_dim.d_moy = 11) and (date_dim.d_year = 2001)) ----------------------------------------------------PhysicalOlapScan[date_dim] ------------------------------------------PhysicalDistribute[DistributionSpecHash] ---------------------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +--------------------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF13 ----------------------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------------------PhysicalProject --------------------------------------------PhysicalOlapScan[item] @@ -129,18 +129,18 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------hashAgg[LOCAL] ------------------------------------PhysicalProject ---------------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF17 i_item_sk->[cs_item_sk] -----------------------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((catalog_sales.cs_item_sk = cross_items.ss_item_sk)) otherCondition=() build RFs:RF16 ss_item_sk->[cs_item_sk] +--------------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF15 i_item_sk->[cs_item_sk,ss_item_sk] +----------------------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((catalog_sales.cs_item_sk = cross_items.ss_item_sk)) otherCondition=() ------------------------------------------PhysicalDistribute[DistributionSpecHash] ---------------------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF15 d_date_sk->[cs_sold_date_sk] +--------------------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF14 d_date_sk->[cs_sold_date_sk] ----------------------------------------------PhysicalProject -------------------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF15 RF16 RF17 +------------------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF14 RF15 ----------------------------------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------------------------------PhysicalProject --------------------------------------------------filter((date_dim.d_moy = 11) and (date_dim.d_year = 2001)) ----------------------------------------------------PhysicalOlapScan[date_dim] ------------------------------------------PhysicalDistribute[DistributionSpecHash] ---------------------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +--------------------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF15 ----------------------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------------------PhysicalProject --------------------------------------------PhysicalOlapScan[item] @@ -155,18 +155,18 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------hashAgg[LOCAL] ------------------------------------PhysicalProject ---------------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF20 i_item_sk->[ws_item_sk] -----------------------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((web_sales.ws_item_sk = cross_items.ss_item_sk)) otherCondition=() build RFs:RF19 ss_item_sk->[ws_item_sk] +--------------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF17 i_item_sk->[ws_item_sk,ss_item_sk] +----------------------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((web_sales.ws_item_sk = cross_items.ss_item_sk)) otherCondition=() ------------------------------------------PhysicalDistribute[DistributionSpecHash] ---------------------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF18 d_date_sk->[ws_sold_date_sk] +--------------------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF16 d_date_sk->[ws_sold_date_sk] ----------------------------------------------PhysicalProject -------------------------------------------------PhysicalOlapScan[web_sales] apply RFs: RF18 RF19 RF20 +------------------------------------------------PhysicalOlapScan[web_sales] apply RFs: RF16 RF17 ----------------------------------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------------------------------PhysicalProject --------------------------------------------------filter((date_dim.d_moy = 11) and (date_dim.d_year = 2001)) ----------------------------------------------------PhysicalOlapScan[date_dim] ------------------------------------------PhysicalDistribute[DistributionSpecHash] ---------------------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +--------------------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF17 ----------------------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------------------PhysicalProject --------------------------------------------PhysicalOlapScan[item] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query2.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query2.out index 69e7fe08dd..63360e2ffb 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query2.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query2.out @@ -28,7 +28,7 @@ PhysicalCteAnchor ( cteId=CTEId#1 ) ------------------hashJoin[INNER_JOIN] hashCondition=((date_dim.d_week_seq = d_week_seq1)) otherCondition=() build RFs:RF2 d_week_seq->[d_week_seq] --------------------PhysicalDistribute[DistributionSpecExecutionAny] ----------------------PhysicalProject -------------------------PhysicalCteConsumer ( cteId=CTEId#1 ) +------------------------PhysicalCteConsumer ( cteId=CTEId#1 ) apply RFs: RF2 --------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------PhysicalProject ------------------------filter((date_dim.d_year = 1998)) @@ -38,7 +38,7 @@ PhysicalCteAnchor ( cteId=CTEId#1 ) ------------------hashJoin[INNER_JOIN] hashCondition=((date_dim.d_week_seq = d_week_seq2)) otherCondition=() build RFs:RF1 d_week_seq->[d_week_seq] --------------------PhysicalDistribute[DistributionSpecExecutionAny] ----------------------PhysicalProject -------------------------PhysicalCteConsumer ( cteId=CTEId#1 ) +------------------------PhysicalCteConsumer ( cteId=CTEId#1 ) apply RFs: RF1 --------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------PhysicalProject ------------------------filter((date_dim.d_year = 1999)) diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query23.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query23.out index f2c86958c9..2bb42e2b05 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query23.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query23.out @@ -56,17 +56,17 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------hashAgg[LOCAL] ----------------PhysicalUnion ------------------PhysicalProject ---------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((catalog_sales.cs_item_sk = frequent_ss_items.item_sk)) otherCondition=() +--------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((catalog_sales.cs_item_sk = frequent_ss_items.item_sk)) otherCondition=() build RFs:RF4 cs_item_sk->[item_sk] ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------PhysicalProject ---------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +--------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF4 ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------PhysicalProject ---------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((catalog_sales.cs_bill_customer_sk = best_ss_customer.c_customer_sk)) otherCondition=() build RFs:RF4 c_customer_sk->[cs_bill_customer_sk] +--------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((catalog_sales.cs_bill_customer_sk = best_ss_customer.c_customer_sk)) otherCondition=() ----------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF3 d_date_sk->[cs_sold_date_sk] --------------------------------PhysicalProject -----------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF3 RF4 +----------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF3 --------------------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------------------PhysicalProject ------------------------------------filter((date_dim.d_moy = 7) and (date_dim.d_year = 2000)) @@ -75,17 +75,17 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------------------PhysicalProject --------------------------------PhysicalCteConsumer ( cteId=CTEId#2 ) ------------------PhysicalProject ---------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((web_sales.ws_item_sk = frequent_ss_items.item_sk)) otherCondition=() +--------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((web_sales.ws_item_sk = frequent_ss_items.item_sk)) otherCondition=() build RFs:RF6 ws_item_sk->[item_sk] ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------PhysicalProject ---------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +--------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF6 ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------PhysicalProject ---------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((web_sales.ws_bill_customer_sk = best_ss_customer.c_customer_sk)) otherCondition=() build RFs:RF6 c_customer_sk->[ws_bill_customer_sk] +--------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((web_sales.ws_bill_customer_sk = best_ss_customer.c_customer_sk)) otherCondition=() ----------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF5 d_date_sk->[ws_sold_date_sk] --------------------------------PhysicalProject -----------------------------------PhysicalOlapScan[web_sales] apply RFs: RF5 RF6 +----------------------------------PhysicalOlapScan[web_sales] apply RFs: RF5 --------------------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------------------PhysicalProject ------------------------------------filter((date_dim.d_moy = 7) and (date_dim.d_year = 2000)) diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query30.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query30.out index f738fa63da..7dcac891ad 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query30.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query30.out @@ -29,7 +29,7 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------PhysicalProject ----------------hashJoin[INNER_JOIN] hashCondition=((ctr1.ctr_customer_sk = customer.c_customer_sk)) otherCondition=() build RFs:RF3 c_customer_sk->[ctr_customer_sk] ------------------PhysicalDistribute[DistributionSpecHash] ---------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +--------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF3 ------------------PhysicalDistribute[DistributionSpecHash] --------------------hashJoin[INNER_JOIN] hashCondition=((customer_address.ca_address_sk = customer.c_current_addr_sk)) otherCondition=() build RFs:RF2 ca_address_sk->[c_current_addr_sk] ----------------------PhysicalProject diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query59.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query59.out index df00924922..d2e06e8706 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query59.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query59.out @@ -19,28 +19,28 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------PhysicalDistribute[DistributionSpecGather] ----------PhysicalTopN[LOCAL_SORT] ------------PhysicalProject ---------------hashJoin[INNER_JOIN] hashCondition=((expr_cast(d_week_seq1 as BIGINT) = expr_(d_week_seq2 - 52)) and (y.s_store_id1 = x.s_store_id2)) otherCondition=() +--------------hashJoin[INNER_JOIN] hashCondition=((expr_cast(d_week_seq1 as BIGINT) = expr_(d_week_seq2 - 52)) and (y.s_store_id1 = x.s_store_id2)) otherCondition=() build RFs:RF5 s_store_id2->[s_store_id] ----------------PhysicalDistribute[DistributionSpecHash] ------------------PhysicalProject --------------------hashJoin[INNER_JOIN] hashCondition=((wss.ss_store_sk = store.s_store_sk)) otherCondition=() build RFs:RF4 s_store_sk->[ss_store_sk] ----------------------hashJoin[INNER_JOIN] hashCondition=((d.d_week_seq = d_week_seq1)) otherCondition=() build RFs:RF3 d_week_seq->[d_week_seq] ------------------------PhysicalDistribute[DistributionSpecExecutionAny] --------------------------PhysicalProject -----------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +----------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF3 RF4 ------------------------PhysicalDistribute[DistributionSpecReplicated] --------------------------PhysicalProject ----------------------------filter((d.d_month_seq <= 1206) and (d.d_month_seq >= 1195)) ------------------------------PhysicalOlapScan[date_dim] ----------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------PhysicalProject ---------------------------PhysicalOlapScan[store] +--------------------------PhysicalOlapScan[store] apply RFs: RF5 ----------------PhysicalDistribute[DistributionSpecHash] ------------------PhysicalProject --------------------hashJoin[INNER_JOIN] hashCondition=((wss.ss_store_sk = store.s_store_sk)) otherCondition=() build RFs:RF2 s_store_sk->[ss_store_sk] ----------------------hashJoin[INNER_JOIN] hashCondition=((d.d_week_seq = d_week_seq2)) otherCondition=() build RFs:RF1 d_week_seq->[d_week_seq] ------------------------PhysicalDistribute[DistributionSpecExecutionAny] --------------------------PhysicalProject -----------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +----------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF1 RF2 ------------------------PhysicalDistribute[DistributionSpecReplicated] --------------------------PhysicalProject ----------------------------filter((d.d_month_seq <= 1218) and (d.d_month_seq >= 1207)) diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query81.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query81.out index fd5bbc4f40..20a169a0fa 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query81.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query81.out @@ -29,7 +29,7 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------PhysicalProject ----------------hashJoin[INNER_JOIN] hashCondition=((ctr1.ctr_customer_sk = customer.c_customer_sk)) otherCondition=() build RFs:RF3 c_customer_sk->[ctr_customer_sk] ------------------PhysicalDistribute[DistributionSpecHash] ---------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +--------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF3 ------------------PhysicalDistribute[DistributionSpecHash] --------------------hashJoin[INNER_JOIN] hashCondition=((customer_address.ca_address_sk = customer.c_current_addr_sk)) otherCondition=() build RFs:RF2 ca_address_sk->[c_current_addr_sk] ----------------------PhysicalDistribute[DistributionSpecHash] diff --git a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query95.out b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query95.out index 1a77a97a8b..bb7864faab 100644 --- a/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query95.out +++ b/regression-test/data/nereids_tpcds_shape_sf1000_p0/shape/query95.out @@ -6,10 +6,10 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------hashJoin[INNER_JOIN] hashCondition=((ws1.ws_order_number = ws2.ws_order_number)) otherCondition=(( not (ws_warehouse_sk = ws_warehouse_sk))) build RFs:RF0 ws_order_number->[ws_order_number] --------PhysicalDistribute[DistributionSpecHash] ----------PhysicalProject -------------PhysicalOlapScan[web_sales] apply RFs: RF0 RF6 RF7 +------------PhysicalOlapScan[web_sales] apply RFs: RF0 RF7 --------PhysicalDistribute[DistributionSpecHash] ----------PhysicalProject -------------PhysicalOlapScan[web_sales] apply RFs: RF6 RF7 +------------PhysicalOlapScan[web_sales] apply RFs: RF7 --PhysicalResultSink ----PhysicalTopN[MERGE_SORT] ------PhysicalTopN[LOCAL_SORT] @@ -19,16 +19,16 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------hashAgg[GLOBAL] ----------------hashAgg[LOCAL] ------------------PhysicalProject ---------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((ws1.ws_order_number = web_returns.wr_order_number)) otherCondition=() +--------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((ws1.ws_order_number = web_returns.wr_order_number)) otherCondition=() build RFs:RF6 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:RF5 wr_order_number->[ws_order_number];RF7 wr_order_number->[ws_order_number,ws_order_number] +------------------------hashJoin[INNER_JOIN] hashCondition=((web_returns.wr_order_number = ws_wh.ws_order_number)) otherCondition=() build RFs:RF5 wr_order_number->[ws_order_number] --------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------PhysicalProject -------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF5 RF6 --------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------PhysicalProject -------------------------------PhysicalOlapScan[web_returns] -----------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((ws1.ws_order_number = ws_wh.ws_order_number)) otherCondition=() build RFs:RF4 ws_order_number->[ws_order_number];RF6 ws_order_number->[ws_order_number,ws_order_number] +------------------------------PhysicalOlapScan[web_returns] apply RFs: RF6 +----------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((ws1.ws_order_number = ws_wh.ws_order_number)) otherCondition=() build RFs:RF7 ws_order_number->[ws_order_number,ws_order_number] ------------------------PhysicalDistribute[DistributionSpecHash] --------------------------PhysicalProject ----------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/constraints/query23.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/constraints/query23.out index 40248cb830..8491810ebf 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/constraints/query23.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/constraints/query23.out @@ -56,17 +56,17 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------hashAgg[LOCAL] ----------------PhysicalUnion ------------------PhysicalProject ---------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((catalog_sales.cs_item_sk = frequent_ss_items.item_sk)) otherCondition=() +--------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((catalog_sales.cs_item_sk = frequent_ss_items.item_sk)) otherCondition=() build RFs:RF4 cs_item_sk->[item_sk] ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------PhysicalProject ---------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +--------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF4 ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------PhysicalProject ---------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((catalog_sales.cs_bill_customer_sk = best_ss_customer.c_customer_sk)) otherCondition=() build RFs:RF4 c_customer_sk->[cs_bill_customer_sk] +--------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((catalog_sales.cs_bill_customer_sk = best_ss_customer.c_customer_sk)) otherCondition=() ----------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF3 d_date_sk->[cs_sold_date_sk] --------------------------------PhysicalProject -----------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF3 RF4 +----------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF3 --------------------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------------------PhysicalProject ------------------------------------filter((date_dim.d_moy = 5) and (date_dim.d_year = 2000)) @@ -75,17 +75,17 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------------------PhysicalProject --------------------------------PhysicalCteConsumer ( cteId=CTEId#2 ) ------------------PhysicalProject ---------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((web_sales.ws_item_sk = frequent_ss_items.item_sk)) otherCondition=() +--------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((web_sales.ws_item_sk = frequent_ss_items.item_sk)) otherCondition=() build RFs:RF6 ws_item_sk->[item_sk] ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------PhysicalProject ---------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +--------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF6 ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------PhysicalProject ---------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((web_sales.ws_bill_customer_sk = best_ss_customer.c_customer_sk)) otherCondition=() build RFs:RF6 c_customer_sk->[ws_bill_customer_sk] +--------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((web_sales.ws_bill_customer_sk = best_ss_customer.c_customer_sk)) otherCondition=() ----------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF5 d_date_sk->[ws_sold_date_sk] --------------------------------PhysicalProject -----------------------------------PhysicalOlapScan[web_sales] apply RFs: RF5 RF6 +----------------------------------PhysicalOlapScan[web_sales] apply RFs: RF5 --------------------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------------------PhysicalProject ------------------------------------filter((date_dim.d_moy = 5) and (date_dim.d_year = 2000)) diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query1.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query1.out index d0f8900a56..65dca9e89f 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query1.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query1.out @@ -23,9 +23,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------PhysicalProject ----------------hashJoin[INNER_JOIN] hashCondition=((store.s_store_sk = ctr1.ctr_store_sk)) otherCondition=() build RFs:RF2 s_store_sk->[ctr_store_sk] ------------------PhysicalDistribute[DistributionSpecHash] ---------------------hashJoin[INNER_JOIN] hashCondition=((ctr1.ctr_customer_sk = customer.c_customer_sk)) otherCondition=() build RFs:RF1 c_customer_sk->[ctr_customer_sk] +--------------------hashJoin[INNER_JOIN] hashCondition=((ctr1.ctr_customer_sk = customer.c_customer_sk)) otherCondition=() ----------------------PhysicalDistribute[DistributionSpecHash] -------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF2 ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------PhysicalProject --------------------------PhysicalOlapScan[customer] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query14.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query14.out index 23ded84d53..3fb78e6cc3 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query14.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query14.out @@ -23,9 +23,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------PhysicalProject --------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = d2.d_date_sk)) otherCondition=() build RFs:RF3 d_date_sk->[cs_sold_date_sk] ----------------PhysicalProject -------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_item_sk = ics.i_item_sk)) otherCondition=() build RFs:RF2 i_item_sk->[cs_item_sk] +------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_item_sk = ics.i_item_sk)) otherCondition=() --------------------PhysicalProject -----------------------PhysicalOlapScan[catalog_sales] apply RFs: RF2 RF3 +----------------------PhysicalOlapScan[catalog_sales] apply RFs: RF3 --------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------PhysicalProject ------------------------PhysicalOlapScan[item] @@ -37,9 +37,9 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------PhysicalProject --------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = d3.d_date_sk)) otherCondition=() build RFs:RF5 d_date_sk->[ws_sold_date_sk] ----------------PhysicalProject -------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_item_sk = iws.i_item_sk)) otherCondition=() build RFs:RF4 i_item_sk->[ws_item_sk] +------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_item_sk = iws.i_item_sk)) otherCondition=() --------------------PhysicalProject -----------------------PhysicalOlapScan[web_sales] apply RFs: RF4 RF5 +----------------------PhysicalOlapScan[web_sales] apply RFs: RF5 --------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------PhysicalProject ------------------------PhysicalOlapScan[item] @@ -100,13 +100,13 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------hashAgg[LOCAL] ------------------------------------PhysicalProject ---------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF14 d_date_sk->[ss_sold_date_sk] +--------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF13 d_date_sk->[ss_sold_date_sk] ----------------------------------------PhysicalProject -------------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF13 i_item_sk->[ss_item_sk] ---------------------------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((store_sales.ss_item_sk = cross_items.ss_item_sk)) otherCondition=() build RFs:RF12 ss_item_sk->[ss_item_sk] +------------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = item.i_item_sk)) otherCondition=() +--------------------------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((store_sales.ss_item_sk = cross_items.ss_item_sk)) otherCondition=() ----------------------------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------------------------PhysicalProject ---------------------------------------------------PhysicalOlapScan[store_sales] apply RFs: RF12 RF13 RF14 +--------------------------------------------------PhysicalOlapScan[store_sales] apply RFs: RF13 ----------------------------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) --------------------------------------------PhysicalDistribute[DistributionSpecHash] @@ -127,13 +127,13 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------hashAgg[LOCAL] ------------------------------------PhysicalProject ---------------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF17 d_date_sk->[cs_sold_date_sk] +--------------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF15 d_date_sk->[cs_sold_date_sk] ----------------------------------------PhysicalProject -------------------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF16 i_item_sk->[cs_item_sk] ---------------------------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((catalog_sales.cs_item_sk = cross_items.ss_item_sk)) otherCondition=() build RFs:RF15 ss_item_sk->[cs_item_sk] +------------------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_item_sk = item.i_item_sk)) otherCondition=() +--------------------------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((catalog_sales.cs_item_sk = cross_items.ss_item_sk)) otherCondition=() ----------------------------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------------------------PhysicalProject ---------------------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF15 RF16 RF17 +--------------------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF15 ----------------------------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) --------------------------------------------PhysicalDistribute[DistributionSpecHash] @@ -154,15 +154,15 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------hashAgg[LOCAL] ------------------------------------PhysicalProject ---------------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF20 d_date_sk->[ws_sold_date_sk] +--------------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF18 d_date_sk->[ws_sold_date_sk] ----------------------------------------PhysicalProject -------------------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF19 i_item_sk->[ws_item_sk] ---------------------------------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((web_sales.ws_item_sk = cross_items.ss_item_sk)) otherCondition=() build RFs:RF18 ws_item_sk->[ss_item_sk] +------------------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_item_sk = item.i_item_sk)) otherCondition=() +--------------------------------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((web_sales.ws_item_sk = cross_items.ss_item_sk)) otherCondition=() ----------------------------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) ----------------------------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------------------------PhysicalProject ---------------------------------------------------PhysicalOlapScan[web_sales] apply RFs: RF19 RF20 +--------------------------------------------------PhysicalOlapScan[web_sales] apply RFs: RF18 --------------------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------------------PhysicalProject ------------------------------------------------PhysicalOlapScan[item] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query2.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query2.out index 2bff71e94a..d5d35f846a 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query2.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query2.out @@ -29,14 +29,14 @@ PhysicalCteAnchor ( cteId=CTEId#1 ) --------------------hashJoin[INNER_JOIN] hashCondition=((date_dim.d_week_seq = d_week_seq1)) otherCondition=() build RFs:RF1 d_week_seq->[d_week_seq] ----------------------PhysicalDistribute[DistributionSpecExecutionAny] ------------------------PhysicalProject ---------------------------PhysicalCteConsumer ( cteId=CTEId#1 ) +--------------------------PhysicalCteConsumer ( cteId=CTEId#1 ) apply RFs: RF1 ----------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------PhysicalProject --------------------------filter((date_dim.d_year = 1998)) ----------------------------PhysicalOlapScan[date_dim] ----------------PhysicalDistribute[DistributionSpecHash] ------------------PhysicalProject ---------------------PhysicalCteConsumer ( cteId=CTEId#1 ) +--------------------PhysicalCteConsumer ( cteId=CTEId#1 ) apply RFs: RF2 --------------PhysicalDistribute[DistributionSpecReplicated] ----------------PhysicalProject ------------------filter((date_dim.d_year = 1999)) diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query23.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query23.out index 35b12755dc..d8aa533896 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query23.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query23.out @@ -57,11 +57,11 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------PhysicalProject --------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((catalog_sales.cs_item_sk = frequent_ss_items.item_sk)) otherCondition=() ----------------------PhysicalDistribute[DistributionSpecHash] -------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF4 d_date_sk->[cs_sold_date_sk] ---------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((catalog_sales.cs_bill_customer_sk = best_ss_customer.c_customer_sk)) otherCondition=() build RFs:RF3 c_customer_sk->[cs_bill_customer_sk] +------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF3 d_date_sk->[cs_sold_date_sk] +--------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((catalog_sales.cs_bill_customer_sk = best_ss_customer.c_customer_sk)) otherCondition=() ----------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------PhysicalProject ---------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF3 RF4 +--------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF3 ----------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------PhysicalProject --------------------------------PhysicalCteConsumer ( cteId=CTEId#2 ) @@ -75,11 +75,11 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------PhysicalProject --------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((web_sales.ws_item_sk = frequent_ss_items.item_sk)) otherCondition=() ----------------------PhysicalDistribute[DistributionSpecHash] -------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF6 d_date_sk->[ws_sold_date_sk] ---------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((web_sales.ws_bill_customer_sk = best_ss_customer.c_customer_sk)) otherCondition=() build RFs:RF5 c_customer_sk->[ws_bill_customer_sk] +------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF4 d_date_sk->[ws_sold_date_sk] +--------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((web_sales.ws_bill_customer_sk = best_ss_customer.c_customer_sk)) otherCondition=() ----------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------PhysicalProject ---------------------------------PhysicalOlapScan[web_sales] apply RFs: RF5 RF6 +--------------------------------PhysicalOlapScan[web_sales] apply RFs: RF4 ----------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------PhysicalProject --------------------------------PhysicalCteConsumer ( cteId=CTEId#2 ) diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query30.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query30.out index 72e6cb9e1d..6dd7c6aecc 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query30.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query30.out @@ -30,7 +30,7 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------PhysicalProject --------------------hashJoin[INNER_JOIN] hashCondition=((ctr1.ctr_customer_sk = customer.c_customer_sk)) otherCondition=() build RFs:RF2 c_customer_sk->[ctr_customer_sk] ----------------------PhysicalDistribute[DistributionSpecHash] -------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF2 ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------PhysicalProject --------------------------PhysicalOlapScan[customer] apply RFs: RF3 diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query31.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query31.out index 2216a2d3f9..3cacf0ae18 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query31.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query31.out @@ -26,10 +26,10 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------hashAgg[LOCAL] --------------PhysicalProject ----------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF3 d_date_sk->[ws_sold_date_sk] -------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_bill_addr_sk = customer_address.ca_address_sk)) otherCondition=() build RFs:RF2 ca_address_sk->[ws_bill_addr_sk] +------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_bill_addr_sk = customer_address.ca_address_sk)) otherCondition=() --------------------PhysicalDistribute[DistributionSpecHash] ----------------------PhysicalProject -------------------------PhysicalOlapScan[web_sales] apply RFs: RF2 RF3 +------------------------PhysicalOlapScan[web_sales] apply RFs: RF3 --------------------PhysicalDistribute[DistributionSpecHash] ----------------------PhysicalProject ------------------------PhysicalOlapScan[customer_address] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query38.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query38.out index e91f44096b..42730bedeb 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query38.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query38.out @@ -31,10 +31,10 @@ PhysicalResultSink ----------------------hashAgg[LOCAL] ------------------------PhysicalProject --------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF3 d_date_sk->[cs_sold_date_sk] -----------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_bill_customer_sk = customer.c_customer_sk)) otherCondition=() build RFs:RF2 c_customer_sk->[cs_bill_customer_sk] +----------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_bill_customer_sk = customer.c_customer_sk)) otherCondition=() ------------------------------PhysicalDistribute[DistributionSpecHash] --------------------------------PhysicalProject -----------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF2 RF3 +----------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF3 ------------------------------PhysicalDistribute[DistributionSpecHash] --------------------------------PhysicalProject ----------------------------------PhysicalOlapScan[customer] @@ -48,10 +48,10 @@ PhysicalResultSink ----------------------hashAgg[LOCAL] ------------------------PhysicalProject --------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF5 d_date_sk->[ws_sold_date_sk] -----------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_bill_customer_sk = customer.c_customer_sk)) otherCondition=() build RFs:RF4 c_customer_sk->[ws_bill_customer_sk] +----------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_bill_customer_sk = customer.c_customer_sk)) otherCondition=() ------------------------------PhysicalDistribute[DistributionSpecHash] --------------------------------PhysicalProject -----------------------------------PhysicalOlapScan[web_sales] apply RFs: RF4 RF5 +----------------------------------PhysicalOlapScan[web_sales] apply RFs: RF5 ------------------------------PhysicalDistribute[DistributionSpecHash] --------------------------------PhysicalProject ----------------------------------PhysicalOlapScan[customer] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query5.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query5.out index 95091111f2..2498ab153d 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query5.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query5.out @@ -37,14 +37,14 @@ PhysicalResultSink --------------------------hashAgg[LOCAL] ----------------------------PhysicalProject ------------------------------hashJoin[INNER_JOIN] hashCondition=((salesreturns.date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF3 d_date_sk->[cs_sold_date_sk,cr_returned_date_sk] ---------------------------------hashJoin[INNER_JOIN] hashCondition=((salesreturns.page_sk = catalog_page.cp_catalog_page_sk)) otherCondition=() build RFs:RF2 cp_catalog_page_sk->[cs_catalog_page_sk,cr_catalog_page_sk] +--------------------------------hashJoin[INNER_JOIN] hashCondition=((salesreturns.page_sk = catalog_page.cp_catalog_page_sk)) otherCondition=() ----------------------------------PhysicalUnion ------------------------------------PhysicalDistribute[DistributionSpecHash] --------------------------------------PhysicalProject -----------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF2 RF3 +----------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF3 ------------------------------------PhysicalDistribute[DistributionSpecHash] --------------------------------------PhysicalProject -----------------------------------------PhysicalOlapScan[catalog_returns] apply RFs: RF2 RF3 +----------------------------------------PhysicalOlapScan[catalog_returns] apply RFs: RF3 ----------------------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------------------PhysicalProject --------------------------------------PhysicalOlapScan[catalog_page] @@ -58,16 +58,16 @@ PhysicalResultSink --------------------------hashAgg[LOCAL] ----------------------------PhysicalProject ------------------------------hashJoin[INNER_JOIN] hashCondition=((salesreturns.date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF7 d_date_sk->[ws_sold_date_sk,wr_returned_date_sk] ---------------------------------hashJoin[INNER_JOIN] hashCondition=((salesreturns.wsr_web_site_sk = web_site.web_site_sk)) otherCondition=() build RFs:RF6 web_site_sk->[ws_web_site_sk,ws_web_site_sk] +--------------------------------hashJoin[INNER_JOIN] hashCondition=((salesreturns.wsr_web_site_sk = web_site.web_site_sk)) otherCondition=() ----------------------------------PhysicalUnion ------------------------------------PhysicalDistribute[DistributionSpecHash] --------------------------------------PhysicalProject -----------------------------------------PhysicalOlapScan[web_sales] apply RFs: RF6 RF7 +----------------------------------------PhysicalOlapScan[web_sales] apply RFs: RF7 ------------------------------------PhysicalDistribute[DistributionSpecHash] --------------------------------------PhysicalProject ----------------------------------------hashJoin[INNER_JOIN] hashCondition=((web_returns.wr_item_sk = web_sales.ws_item_sk) and (web_returns.wr_order_number = web_sales.ws_order_number)) otherCondition=() build RFs:RF4 wr_item_sk->[ws_item_sk];RF5 wr_order_number->[ws_order_number] ------------------------------------------PhysicalProject ---------------------------------------------PhysicalOlapScan[web_sales] apply RFs: RF4 RF5 RF6 +--------------------------------------------PhysicalOlapScan[web_sales] apply RFs: RF4 RF5 ------------------------------------------PhysicalProject --------------------------------------------PhysicalOlapScan[web_returns] apply RFs: RF7 ----------------------------------PhysicalDistribute[DistributionSpecReplicated] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query59.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query59.out index 12c4bec36a..c9d5f56859 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query59.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query59.out @@ -21,24 +21,24 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------PhysicalProject --------------hashJoin[INNER_JOIN] hashCondition=((d.d_week_seq = d_week_seq1)) otherCondition=() build RFs:RF5 d_week_seq->[d_week_seq] ----------------PhysicalProject -------------------hashJoin[INNER_JOIN] hashCondition=((wss.ss_store_sk = store.s_store_sk) and (y.s_store_id1 = x.s_store_id2)) otherCondition=() build RFs:RF3 s_store_id1->[s_store_id];RF4 s_store_sk->[ss_store_sk] +------------------hashJoin[INNER_JOIN] hashCondition=((wss.ss_store_sk = store.s_store_sk) and (y.s_store_id1 = x.s_store_id2)) otherCondition=() --------------------PhysicalProject -----------------------hashJoin[INNER_JOIN] hashCondition=((wss.ss_store_sk = store.s_store_sk)) otherCondition=() build RFs:RF2 s_store_sk->[ss_store_sk] +----------------------hashJoin[INNER_JOIN] hashCondition=((wss.ss_store_sk = store.s_store_sk)) otherCondition=() ------------------------hashJoin[INNER_JOIN] hashCondition=((d.d_week_seq = d_week_seq2)) otherCondition=() build RFs:RF1 d_week_seq->[d_week_seq] --------------------------hashJoin[INNER_JOIN] hashCondition=((expr_cast(d_week_seq1 as BIGINT) = expr_(d_week_seq2 - 52))) otherCondition=() ----------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------PhysicalProject ---------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +--------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF5 ----------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------PhysicalProject ---------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +--------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF1 --------------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------------PhysicalProject ------------------------------filter((d.d_month_seq <= 1219) and (d.d_month_seq >= 1208)) --------------------------------PhysicalOlapScan[date_dim] ------------------------PhysicalDistribute[DistributionSpecReplicated] --------------------------PhysicalProject -----------------------------PhysicalOlapScan[store] apply RFs: RF3 +----------------------------PhysicalOlapScan[store] --------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------PhysicalProject ------------------------PhysicalOlapScan[store] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query66.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query66.out index 5e36cb1705..d43236abf2 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query66.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query66.out @@ -45,10 +45,10 @@ PhysicalResultSink ----------------------------PhysicalProject ------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_time_sk = time_dim.t_time_sk)) otherCondition=() build RFs:RF6 t_time_sk->[cs_sold_time_sk] --------------------------------PhysicalProject -----------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_warehouse_sk = warehouse.w_warehouse_sk)) otherCondition=() build RFs:RF5 w_warehouse_sk->[cs_warehouse_sk] +----------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_warehouse_sk = warehouse.w_warehouse_sk)) otherCondition=() ------------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF4 d_date_sk->[cs_sold_date_sk] --------------------------------------PhysicalProject -----------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF4 RF5 RF6 RF7 +----------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF4 RF6 RF7 --------------------------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------------------------PhysicalProject ------------------------------------------filter((date_dim.d_year = 1998)) diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query76.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query76.out index 95615ccb40..4943199ee5 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query76.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query76.out @@ -24,12 +24,12 @@ PhysicalResultSink --------------------------PhysicalOlapScan[date_dim] ----------------PhysicalDistribute[DistributionSpecExecutionAny] ------------------PhysicalProject ---------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF3 d_date_sk->[ws_sold_date_sk] +--------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = date_dim.d_date_sk)) otherCondition=() ----------------------PhysicalProject -------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF2 i_item_sk->[ws_item_sk] +------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_item_sk = item.i_item_sk)) otherCondition=() --------------------------PhysicalProject ----------------------------filter(ws_bill_addr_sk IS NULL) -------------------------------PhysicalOlapScan[web_sales] apply RFs: RF2 RF3 +------------------------------PhysicalOlapScan[web_sales] --------------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------------PhysicalProject ------------------------------PhysicalOlapScan[item] @@ -38,12 +38,12 @@ PhysicalResultSink --------------------------PhysicalOlapScan[date_dim] ----------------PhysicalDistribute[DistributionSpecExecutionAny] ------------------PhysicalProject ---------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF5 d_date_sk->[cs_sold_date_sk] +--------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = date_dim.d_date_sk)) otherCondition=() ----------------------PhysicalProject -------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF4 i_item_sk->[cs_item_sk] +------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_item_sk = item.i_item_sk)) otherCondition=() --------------------------PhysicalProject ----------------------------filter(cs_warehouse_sk IS NULL) -------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF4 RF5 +------------------------------PhysicalOlapScan[catalog_sales] --------------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------------PhysicalProject ------------------------------PhysicalOlapScan[item] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query77.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query77.out index 6764e50528..4c425894c8 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query77.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query77.out @@ -77,12 +77,12 @@ PhysicalResultSink ------------------------PhysicalProject --------------------------hashAgg[LOCAL] ----------------------------PhysicalProject -------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_web_page_sk = web_page.wp_web_page_sk)) otherCondition=() build RFs:RF9 wp_web_page_sk->[ws_web_page_sk] +------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_web_page_sk = web_page.wp_web_page_sk)) otherCondition=() --------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------PhysicalProject ------------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF8 d_date_sk->[ws_sold_date_sk] --------------------------------------PhysicalProject -----------------------------------------PhysicalOlapScan[web_sales] apply RFs: RF8 RF9 +----------------------------------------PhysicalOlapScan[web_sales] apply RFs: RF8 --------------------------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------------------------PhysicalProject ------------------------------------------filter((date_dim.d_date <= '1998-09-04') and (date_dim.d_date >= '1998-08-05')) @@ -94,12 +94,12 @@ PhysicalResultSink --------------------------PhysicalProject ----------------------------hashAgg[LOCAL] ------------------------------PhysicalProject ---------------------------------hashJoin[INNER_JOIN] hashCondition=((web_returns.wr_web_page_sk = web_page.wp_web_page_sk)) otherCondition=() build RFs:RF7 wp_web_page_sk->[wr_web_page_sk] +--------------------------------hashJoin[INNER_JOIN] hashCondition=((web_returns.wr_web_page_sk = web_page.wp_web_page_sk)) otherCondition=() ----------------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------------PhysicalProject --------------------------------------hashJoin[INNER_JOIN] hashCondition=((web_returns.wr_returned_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF6 d_date_sk->[wr_returned_date_sk] ----------------------------------------PhysicalProject -------------------------------------------PhysicalOlapScan[web_returns] apply RFs: RF6 RF7 +------------------------------------------PhysicalOlapScan[web_returns] apply RFs: RF6 ----------------------------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------------------------PhysicalProject --------------------------------------------filter((date_dim.d_date <= '1998-09-04') and (date_dim.d_date >= '1998-08-05')) diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query80.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query80.out index e7f58efe83..1ea80fef13 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query80.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query80.out @@ -52,9 +52,9 @@ PhysicalResultSink ------------------------------------PhysicalProject --------------------------------------hashJoin[LEFT_OUTER_JOIN] hashCondition=((catalog_sales.cs_item_sk = catalog_returns.cr_item_sk) and (catalog_sales.cs_order_number = catalog_returns.cr_order_number)) otherCondition=() ----------------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF5 i_item_sk->[cs_item_sk] -------------------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_catalog_page_sk = catalog_page.cp_catalog_page_sk)) otherCondition=() build RFs:RF4 cp_catalog_page_sk->[cs_catalog_page_sk] +------------------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_catalog_page_sk = catalog_page.cp_catalog_page_sk)) otherCondition=() --------------------------------------------PhysicalProject -----------------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF4 RF5 RF6 RF7 +----------------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF5 RF6 RF7 --------------------------------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------------------------------PhysicalProject ------------------------------------------------PhysicalOlapScan[catalog_page] @@ -79,13 +79,13 @@ PhysicalResultSink ----------------------------PhysicalProject ------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_promo_sk = promotion.p_promo_sk)) otherCondition=() build RFs:RF11 p_promo_sk->[ws_promo_sk] --------------------------------PhysicalProject -----------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_web_site_sk = web_site.web_site_sk)) otherCondition=() build RFs:RF10 web_site_sk->[ws_web_site_sk] +----------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_web_site_sk = web_site.web_site_sk)) otherCondition=() ------------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF9 i_item_sk->[ws_item_sk] --------------------------------------PhysicalProject ----------------------------------------hashJoin[LEFT_OUTER_JOIN] hashCondition=((web_sales.ws_item_sk = web_returns.wr_item_sk) and (web_sales.ws_order_number = web_returns.wr_order_number)) otherCondition=() ------------------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF8 d_date_sk->[ws_sold_date_sk] --------------------------------------------PhysicalProject -----------------------------------------------PhysicalOlapScan[web_sales] apply RFs: RF8 RF9 RF10 RF11 +----------------------------------------------PhysicalOlapScan[web_sales] apply RFs: RF8 RF9 RF11 --------------------------------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------------------------------PhysicalProject ------------------------------------------------filter((date_dim.d_date <= '1998-09-27') and (date_dim.d_date >= '1998-08-28')) diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query81.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query81.out index f38223b693..a2307e48d0 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query81.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query81.out @@ -31,7 +31,7 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------------PhysicalProject ----------------------hashJoin[INNER_JOIN] hashCondition=((ctr1.ctr_customer_sk = customer.c_customer_sk)) otherCondition=() build RFs:RF2 c_customer_sk->[ctr_customer_sk] ------------------------PhysicalDistribute[DistributionSpecHash] ---------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +--------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF2 ------------------------PhysicalDistribute[DistributionSpecHash] --------------------------PhysicalProject ----------------------------PhysicalOlapScan[customer] apply RFs: RF3 diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query87.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query87.out index 4014061fc9..766ce582ad 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query87.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/noStatsRfPrune/query87.out @@ -29,10 +29,10 @@ PhysicalResultSink ------------------hashAgg[LOCAL] --------------------PhysicalProject ----------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF3 d_date_sk->[cs_sold_date_sk] -------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_bill_customer_sk = customer.c_customer_sk)) otherCondition=() build RFs:RF2 c_customer_sk->[cs_bill_customer_sk] +------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_bill_customer_sk = customer.c_customer_sk)) otherCondition=() --------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------PhysicalProject -------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF2 RF3 +------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF3 --------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------PhysicalProject ------------------------------PhysicalOlapScan[customer] @@ -46,10 +46,10 @@ PhysicalResultSink ------------------hashAgg[LOCAL] --------------------PhysicalProject ----------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF5 d_date_sk->[ws_sold_date_sk] -------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_bill_customer_sk = customer.c_customer_sk)) otherCondition=() build RFs:RF4 c_customer_sk->[ws_bill_customer_sk] +------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_bill_customer_sk = customer.c_customer_sk)) otherCondition=() --------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------PhysicalProject -------------------------------PhysicalOlapScan[web_sales] apply RFs: RF4 RF5 +------------------------------PhysicalOlapScan[web_sales] apply RFs: RF5 --------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------PhysicalProject ------------------------------PhysicalOlapScan[customer] 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 ef8fa368e6..6e12e33b54 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 @@ -3,13 +3,13 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --PhysicalCteProducer ( cteId=CTEId#0 ) ----PhysicalProject -------hashJoin[INNER_JOIN] hashCondition=((ws1.ws_order_number = ws2.ws_order_number)) otherCondition=(( not (ws_warehouse_sk = ws_warehouse_sk))) +------hashJoin[INNER_JOIN] hashCondition=((ws1.ws_order_number = ws2.ws_order_number)) otherCondition=(( not (ws_warehouse_sk = ws_warehouse_sk))) build RFs:RF0 ws_order_number->[ws_order_number] --------PhysicalDistribute[DistributionSpecHash] ----------PhysicalProject -------------PhysicalOlapScan[web_sales] +------------PhysicalOlapScan[web_sales] apply RFs: RF0 RF7 --------PhysicalDistribute[DistributionSpecHash] ----------PhysicalProject -------------PhysicalOlapScan[web_sales] +------------PhysicalOlapScan[web_sales] apply RFs: RF7 --PhysicalResultSink ----PhysicalTopN[MERGE_SORT] ------PhysicalTopN[LOCAL_SORT] @@ -19,16 +19,16 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------hashAgg[GLOBAL] ----------------hashAgg[LOCAL] ------------------PhysicalProject ---------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((ws1.ws_order_number = ws_wh.ws_order_number)) otherCondition=() +--------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((ws1.ws_order_number = ws_wh.ws_order_number)) otherCondition=() build RFs:RF6 ws_order_number->[ws_order_number] ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------PhysicalProject ---------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +--------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF6 ----------------------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->[ws_order_number,wr_order_number] +----------------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((ws1.ws_order_number = web_returns.wr_order_number)) otherCondition=() build RFs:RF7 ws_order_number->[ws_order_number,ws_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] +--------------------------------hashJoin[INNER_JOIN] hashCondition=((web_returns.wr_order_number = ws_wh.ws_order_number)) otherCondition=() ----------------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------------PhysicalProject --------------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query1.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query1.out index d0f8900a56..e1300825fc 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query1.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query1.out @@ -25,7 +25,7 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------PhysicalDistribute[DistributionSpecHash] --------------------hashJoin[INNER_JOIN] hashCondition=((ctr1.ctr_customer_sk = customer.c_customer_sk)) otherCondition=() build RFs:RF1 c_customer_sk->[ctr_customer_sk] ----------------------PhysicalDistribute[DistributionSpecHash] -------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF1 RF2 ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------PhysicalProject --------------------------PhysicalOlapScan[customer] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query14.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query14.out index 82934d6f0b..1daa8cb5ce 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query14.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query14.out @@ -100,15 +100,15 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------hashAgg[LOCAL] ------------------------------------PhysicalProject ---------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF14 d_date_sk->[ss_sold_date_sk] +--------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF13 d_date_sk->[ss_sold_date_sk] ----------------------------------------PhysicalProject -------------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF13 i_item_sk->[ss_item_sk] ---------------------------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((store_sales.ss_item_sk = cross_items.ss_item_sk)) otherCondition=() build RFs:RF12 ss_item_sk->[ss_item_sk] +------------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF12 i_item_sk->[ss_item_sk,ss_item_sk] +--------------------------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((store_sales.ss_item_sk = cross_items.ss_item_sk)) otherCondition=() ----------------------------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------------------------PhysicalProject ---------------------------------------------------PhysicalOlapScan[store_sales] apply RFs: RF12 RF13 RF14 +--------------------------------------------------PhysicalOlapScan[store_sales] apply RFs: RF12 RF13 ----------------------------------------------PhysicalDistribute[DistributionSpecHash] -------------------------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +------------------------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF12 --------------------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------------------PhysicalProject ------------------------------------------------PhysicalOlapScan[item] @@ -127,15 +127,15 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------hashAgg[LOCAL] ------------------------------------PhysicalProject ---------------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF17 d_date_sk->[cs_sold_date_sk] +--------------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF15 d_date_sk->[cs_sold_date_sk] ----------------------------------------PhysicalProject -------------------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF16 i_item_sk->[cs_item_sk] ---------------------------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((catalog_sales.cs_item_sk = cross_items.ss_item_sk)) otherCondition=() build RFs:RF15 ss_item_sk->[cs_item_sk] +------------------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF14 i_item_sk->[cs_item_sk,ss_item_sk] +--------------------------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((catalog_sales.cs_item_sk = cross_items.ss_item_sk)) otherCondition=() ----------------------------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------------------------PhysicalProject ---------------------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF15 RF16 RF17 +--------------------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF14 RF15 ----------------------------------------------PhysicalDistribute[DistributionSpecHash] -------------------------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +------------------------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF14 --------------------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------------------PhysicalProject ------------------------------------------------PhysicalOlapScan[item] @@ -154,15 +154,15 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------hashAgg[LOCAL] ------------------------------------PhysicalProject ---------------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF20 d_date_sk->[ws_sold_date_sk] +--------------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF18 d_date_sk->[ws_sold_date_sk] ----------------------------------------PhysicalProject -------------------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF19 i_item_sk->[ws_item_sk] ---------------------------------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((web_sales.ws_item_sk = cross_items.ss_item_sk)) otherCondition=() build RFs:RF18 ws_item_sk->[ss_item_sk] +------------------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF17 i_item_sk->[ws_item_sk,ss_item_sk] +--------------------------------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((web_sales.ws_item_sk = cross_items.ss_item_sk)) otherCondition=() build RFs:RF16 ws_item_sk->[ss_item_sk] ----------------------------------------------PhysicalDistribute[DistributionSpecHash] -------------------------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +------------------------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF16 RF17 ----------------------------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------------------------PhysicalProject ---------------------------------------------------PhysicalOlapScan[web_sales] apply RFs: RF19 RF20 +--------------------------------------------------PhysicalOlapScan[web_sales] apply RFs: RF17 RF18 --------------------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------------------PhysicalProject ------------------------------------------------PhysicalOlapScan[item] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query2.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query2.out index 0d21221718..5d8e996d89 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query2.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query2.out @@ -29,14 +29,14 @@ PhysicalCteAnchor ( cteId=CTEId#1 ) --------------------hashJoin[INNER_JOIN] hashCondition=((date_dim.d_week_seq = d_week_seq1)) otherCondition=() build RFs:RF1 d_week_seq->[d_week_seq] ----------------------PhysicalDistribute[DistributionSpecExecutionAny] ------------------------PhysicalProject ---------------------------PhysicalCteConsumer ( cteId=CTEId#1 ) +--------------------------PhysicalCteConsumer ( cteId=CTEId#1 ) apply RFs: RF1 ----------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------PhysicalProject --------------------------filter((date_dim.d_year = 1998)) ----------------------------PhysicalOlapScan[date_dim] ----------------PhysicalDistribute[DistributionSpecHash] ------------------PhysicalProject ---------------------PhysicalCteConsumer ( cteId=CTEId#1 ) +--------------------PhysicalCteConsumer ( cteId=CTEId#1 ) apply RFs: RF2 --------------PhysicalDistribute[DistributionSpecReplicated] ----------------PhysicalProject ------------------filter((date_dim.d_year = 1999)) diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query23.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query23.out index 24ab3d18bd..6e97a9eafc 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query23.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query23.out @@ -57,11 +57,11 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------PhysicalProject --------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((catalog_sales.cs_item_sk = frequent_ss_items.item_sk)) otherCondition=() ----------------------PhysicalDistribute[DistributionSpecHash] -------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF4 d_date_sk->[cs_sold_date_sk] ---------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((catalog_sales.cs_bill_customer_sk = best_ss_customer.c_customer_sk)) otherCondition=() build RFs:RF3 c_customer_sk->[cs_bill_customer_sk] +------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF3 d_date_sk->[cs_sold_date_sk] +--------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((catalog_sales.cs_bill_customer_sk = best_ss_customer.c_customer_sk)) otherCondition=() ----------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------PhysicalProject ---------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF3 RF4 +--------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF3 ----------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------PhysicalProject --------------------------------PhysicalCteConsumer ( cteId=CTEId#2 ) @@ -75,11 +75,11 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------PhysicalProject --------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((web_sales.ws_item_sk = frequent_ss_items.item_sk)) otherCondition=() ----------------------PhysicalDistribute[DistributionSpecHash] -------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF6 d_date_sk->[ws_sold_date_sk] ---------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((web_sales.ws_bill_customer_sk = best_ss_customer.c_customer_sk)) otherCondition=() build RFs:RF5 c_customer_sk->[ws_bill_customer_sk] +------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF4 d_date_sk->[ws_sold_date_sk] +--------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((web_sales.ws_bill_customer_sk = best_ss_customer.c_customer_sk)) otherCondition=() ----------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------PhysicalProject ---------------------------------PhysicalOlapScan[web_sales] apply RFs: RF5 RF6 +--------------------------------PhysicalOlapScan[web_sales] apply RFs: RF4 ----------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------PhysicalProject --------------------------------PhysicalCteConsumer ( cteId=CTEId#2 ) diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query30.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query30.out index 509e53f182..4190bf7300 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query30.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query30.out @@ -30,7 +30,7 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------PhysicalProject --------------------hashJoin[INNER_JOIN] hashCondition=((ctr1.ctr_customer_sk = customer.c_customer_sk)) otherCondition=() build RFs:RF2 c_customer_sk->[ctr_customer_sk] ----------------------PhysicalDistribute[DistributionSpecHash] -------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF2 ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------PhysicalProject --------------------------PhysicalOlapScan[customer] apply RFs: RF3 diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query59.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query59.out index 24bd0aea7b..c5629b2025 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query59.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query59.out @@ -28,10 +28,10 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------------------hashJoin[INNER_JOIN] hashCondition=((expr_cast(d_week_seq1 as BIGINT) = expr_(d_week_seq2 - 52))) otherCondition=() ----------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------PhysicalProject ---------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +--------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF4 RF5 ----------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------PhysicalProject ---------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +--------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF1 RF2 --------------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------------PhysicalProject ------------------------------filter((d.d_month_seq <= 1219) and (d.d_month_seq >= 1208)) diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query81.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query81.out index b87814d156..601cdffde5 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query81.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/no_stats_shape/query81.out @@ -31,7 +31,7 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------------PhysicalProject ----------------------hashJoin[INNER_JOIN] hashCondition=((ctr1.ctr_customer_sk = customer.c_customer_sk)) otherCondition=() build RFs:RF2 c_customer_sk->[ctr_customer_sk] ------------------------PhysicalDistribute[DistributionSpecHash] ---------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +--------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF2 ------------------------PhysicalDistribute[DistributionSpecHash] --------------------------PhysicalProject ----------------------------PhysicalOlapScan[customer] apply RFs: RF3 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 c977812d0a..262c904649 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 @@ -6,10 +6,10 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------hashJoin[INNER_JOIN] hashCondition=((ws1.ws_order_number = ws2.ws_order_number)) otherCondition=(( not (ws_warehouse_sk = ws_warehouse_sk))) build RFs:RF0 ws_order_number->[ws_order_number] --------PhysicalDistribute[DistributionSpecHash] ----------PhysicalProject -------------PhysicalOlapScan[web_sales] apply RFs: RF0 +------------PhysicalOlapScan[web_sales] apply RFs: RF0 RF7 --------PhysicalDistribute[DistributionSpecHash] ----------PhysicalProject -------------PhysicalOlapScan[web_sales] +------------PhysicalOlapScan[web_sales] apply RFs: RF7 --PhysicalResultSink ----PhysicalTopN[MERGE_SORT] ------PhysicalTopN[LOCAL_SORT] @@ -19,19 +19,19 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------hashAgg[GLOBAL] ----------------hashAgg[LOCAL] ------------------PhysicalProject ---------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((ws1.ws_order_number = ws_wh.ws_order_number)) otherCondition=() +--------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((ws1.ws_order_number = ws_wh.ws_order_number)) otherCondition=() build RFs:RF6 ws_order_number->[ws_order_number] ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------PhysicalProject ---------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +--------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF6 ----------------------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->[ws_order_number,wr_order_number] +----------------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((ws1.ws_order_number = web_returns.wr_order_number)) otherCondition=() build RFs:RF7 ws_order_number->[ws_order_number,ws_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] ------------------------------------PhysicalProject ---------------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +--------------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF1 ----------------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------------PhysicalProject --------------------------------------PhysicalOlapScan[web_returns] apply RFs: RF2 diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query1.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query1.out index 66550bfccf..73dea99cdf 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query1.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query1.out @@ -19,16 +19,16 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------PhysicalDistribute[DistributionSpecGather] --------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject -------------hashJoin[INNER_JOIN] hashCondition=((ctr1.ctr_customer_sk = customer.c_customer_sk)) otherCondition=() build RFs:RF2 ctr_customer_sk->[c_customer_sk] +------------hashJoin[INNER_JOIN] hashCondition=((ctr1.ctr_customer_sk = customer.c_customer_sk)) otherCondition=() --------------PhysicalDistribute[DistributionSpecHash] ----------------PhysicalProject -------------------PhysicalOlapScan[customer] apply RFs: RF2 +------------------PhysicalOlapScan[customer] --------------PhysicalDistribute[DistributionSpecHash] ----------------hashJoin[INNER_JOIN] hashCondition=((ctr1.ctr_store_sk = ctr2.ctr_store_sk)) otherCondition=((cast(ctr_total_return as DOUBLE) > cast((avg(cast(ctr_total_return as DECIMALV3(38, 4))) * 1.2) as DOUBLE))) ------------------PhysicalProject --------------------hashJoin[INNER_JOIN] hashCondition=((store.s_store_sk = ctr1.ctr_store_sk)) otherCondition=() build RFs:RF1 s_store_sk->[ctr_store_sk] ----------------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF1 ----------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------PhysicalProject --------------------------filter((store.s_state = 'SD')) diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query14.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query14.out index 65cafd1d15..a4f70cae0e 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query14.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query14.out @@ -27,10 +27,10 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------PhysicalDistribute[DistributionSpecHash] ----------------hashAgg[LOCAL] ------------------PhysicalProject ---------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_item_sk = ics.i_item_sk)) otherCondition=() build RFs:RF3 i_item_sk->[cs_item_sk] +--------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_item_sk = ics.i_item_sk)) otherCondition=() ----------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = d2.d_date_sk)) otherCondition=() build RFs:RF2 d_date_sk->[cs_sold_date_sk] ------------------------PhysicalProject ---------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF2 RF3 +--------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF2 ------------------------PhysicalDistribute[DistributionSpecReplicated] --------------------------PhysicalProject ----------------------------filter((d2.d_year <= 2002) and (d2.d_year >= 2000)) @@ -42,11 +42,11 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------PhysicalDistribute[DistributionSpecHash] ----------------hashAgg[LOCAL] ------------------PhysicalProject ---------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_item_sk = iws.i_item_sk)) otherCondition=() build RFs:RF5 i_item_sk->[ws_item_sk] +--------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_item_sk = iws.i_item_sk)) otherCondition=() ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = d3.d_date_sk)) otherCondition=() build RFs:RF4 d_date_sk->[ws_sold_date_sk] --------------------------PhysicalProject -----------------------------PhysicalOlapScan[web_sales] apply RFs: RF4 RF5 +----------------------------PhysicalOlapScan[web_sales] apply RFs: RF4 --------------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------------PhysicalProject ------------------------------filter((d3.d_year <= 2002) and (d3.d_year >= 2000)) @@ -106,12 +106,12 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------------------------PhysicalProject --------------------------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((store_sales.ss_item_sk = cross_items.ss_item_sk)) otherCondition=() build RFs:RF14 ss_item_sk->[ss_item_sk] ----------------------------------------PhysicalDistribute[DistributionSpecHash] -------------------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) -----------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF13 i_item_sk->[ss_item_sk] +------------------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF14 +----------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = item.i_item_sk)) otherCondition=() ------------------------------------------PhysicalDistribute[DistributionSpecHash] --------------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF12 d_date_sk->[ss_sold_date_sk] ----------------------------------------------PhysicalProject -------------------------------------------------PhysicalOlapScan[store_sales] apply RFs: RF12 RF13 +------------------------------------------------PhysicalOlapScan[store_sales] apply RFs: RF12 ----------------------------------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------------------------------PhysicalProject --------------------------------------------------filter((date_dim.d_moy = 11) and (date_dim.d_year = 2002)) @@ -132,12 +132,12 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------------------------PhysicalProject --------------------------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((catalog_sales.cs_item_sk = cross_items.ss_item_sk)) otherCondition=() build RFs:RF17 cs_item_sk->[ss_item_sk] ----------------------------------------PhysicalDistribute[DistributionSpecHash] -------------------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) -----------------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF16 i_item_sk->[cs_item_sk] +------------------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF17 +----------------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_item_sk = item.i_item_sk)) otherCondition=() ------------------------------------------PhysicalDistribute[DistributionSpecHash] --------------------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF15 d_date_sk->[cs_sold_date_sk] ----------------------------------------------PhysicalProject -------------------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF15 RF16 +------------------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF15 ----------------------------------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------------------------------PhysicalProject --------------------------------------------------filter((date_dim.d_moy = 11) and (date_dim.d_year = 2002)) @@ -158,12 +158,12 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------------------------PhysicalProject --------------------------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((web_sales.ws_item_sk = cross_items.ss_item_sk)) otherCondition=() build RFs:RF20 ws_item_sk->[ss_item_sk] ----------------------------------------PhysicalDistribute[DistributionSpecHash] -------------------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) -----------------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF19 i_item_sk->[ws_item_sk] +------------------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF20 +----------------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_item_sk = item.i_item_sk)) otherCondition=() ------------------------------------------PhysicalDistribute[DistributionSpecHash] --------------------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF18 d_date_sk->[ws_sold_date_sk] ----------------------------------------------PhysicalProject -------------------------------------------------PhysicalOlapScan[web_sales] apply RFs: RF18 RF19 +------------------------------------------------PhysicalOlapScan[web_sales] apply RFs: RF18 ----------------------------------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------------------------------PhysicalProject --------------------------------------------------filter((date_dim.d_moy = 11) and (date_dim.d_year = 2002)) diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query2.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query2.out index 3b3bde6bac..f38c57d8ba 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query2.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query2.out @@ -28,7 +28,7 @@ PhysicalCteAnchor ( cteId=CTEId#1 ) ------------------hashJoin[INNER_JOIN] hashCondition=((date_dim.d_week_seq = d_week_seq1)) otherCondition=() build RFs:RF2 d_week_seq->[d_week_seq] --------------------PhysicalDistribute[DistributionSpecExecutionAny] ----------------------PhysicalProject -------------------------PhysicalCteConsumer ( cteId=CTEId#1 ) +------------------------PhysicalCteConsumer ( cteId=CTEId#1 ) apply RFs: RF2 --------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------PhysicalProject ------------------------filter((date_dim.d_year = 1998)) @@ -38,7 +38,7 @@ PhysicalCteAnchor ( cteId=CTEId#1 ) ------------------hashJoin[INNER_JOIN] hashCondition=((date_dim.d_week_seq = d_week_seq2)) otherCondition=() build RFs:RF1 d_week_seq->[d_week_seq] --------------------PhysicalDistribute[DistributionSpecExecutionAny] ----------------------PhysicalProject -------------------------PhysicalCteConsumer ( cteId=CTEId#1 ) +------------------------PhysicalCteConsumer ( cteId=CTEId#1 ) apply RFs: RF1 --------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------PhysicalProject ------------------------filter((date_dim.d_year = 1999)) diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query23.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query23.out index 4ae641ee37..85d3d22b2c 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query23.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query23.out @@ -56,17 +56,17 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------hashAgg[LOCAL] ----------------PhysicalUnion ------------------PhysicalProject ---------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((catalog_sales.cs_item_sk = frequent_ss_items.item_sk)) otherCondition=() +--------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((catalog_sales.cs_item_sk = frequent_ss_items.item_sk)) otherCondition=() build RFs:RF4 cs_item_sk->[item_sk] ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------PhysicalProject ---------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +--------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF4 ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------PhysicalProject ---------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((catalog_sales.cs_bill_customer_sk = best_ss_customer.c_customer_sk)) otherCondition=() build RFs:RF4 c_customer_sk->[cs_bill_customer_sk] +--------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((catalog_sales.cs_bill_customer_sk = best_ss_customer.c_customer_sk)) otherCondition=() ----------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF3 d_date_sk->[cs_sold_date_sk] --------------------------------PhysicalProject -----------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF3 RF4 +----------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF3 --------------------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------------------PhysicalProject ------------------------------------filter((date_dim.d_moy = 5) and (date_dim.d_year = 2000)) @@ -75,17 +75,17 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------------------PhysicalProject --------------------------------PhysicalCteConsumer ( cteId=CTEId#2 ) ------------------PhysicalProject ---------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((web_sales.ws_item_sk = frequent_ss_items.item_sk)) otherCondition=() +--------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((web_sales.ws_item_sk = frequent_ss_items.item_sk)) otherCondition=() build RFs:RF6 ws_item_sk->[item_sk] ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------PhysicalProject ---------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +--------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF6 ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------PhysicalProject ---------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((web_sales.ws_bill_customer_sk = best_ss_customer.c_customer_sk)) otherCondition=() build RFs:RF6 c_customer_sk->[ws_bill_customer_sk] +--------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((web_sales.ws_bill_customer_sk = best_ss_customer.c_customer_sk)) otherCondition=() ----------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF5 d_date_sk->[ws_sold_date_sk] --------------------------------PhysicalProject -----------------------------------PhysicalOlapScan[web_sales] apply RFs: RF5 RF6 +----------------------------------PhysicalOlapScan[web_sales] apply RFs: RF5 --------------------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------------------PhysicalProject ------------------------------------filter((date_dim.d_moy = 5) and (date_dim.d_year = 2000)) diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query30.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query30.out index 1455f42051..9f72a79a16 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query30.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query30.out @@ -29,7 +29,7 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------PhysicalProject ----------------hashJoin[INNER_JOIN] hashCondition=((ctr1.ctr_customer_sk = customer.c_customer_sk)) otherCondition=() build RFs:RF3 c_customer_sk->[ctr_customer_sk] ------------------PhysicalDistribute[DistributionSpecHash] ---------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +--------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF3 ------------------PhysicalDistribute[DistributionSpecHash] --------------------hashJoin[INNER_JOIN] hashCondition=((customer_address.ca_address_sk = customer.c_current_addr_sk)) otherCondition=() build RFs:RF2 ca_address_sk->[c_current_addr_sk] ----------------------PhysicalProject diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query31.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query31.out index 3f3b3c5b8e..835238e3d7 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query31.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query31.out @@ -27,12 +27,12 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ----------PhysicalDistribute[DistributionSpecHash] ------------hashAgg[LOCAL] --------------PhysicalProject -----------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_bill_addr_sk = customer_address.ca_address_sk)) otherCondition=() build RFs:RF3 ca_address_sk->[ws_bill_addr_sk] +----------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_bill_addr_sk = customer_address.ca_address_sk)) otherCondition=() ------------------PhysicalDistribute[DistributionSpecHash] --------------------PhysicalProject ----------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF2 d_date_sk->[ws_sold_date_sk] ------------------------PhysicalProject ---------------------------PhysicalOlapScan[web_sales] apply RFs: RF2 RF3 +--------------------------PhysicalOlapScan[web_sales] apply RFs: RF2 ------------------------PhysicalDistribute[DistributionSpecReplicated] --------------------------PhysicalProject ----------------------------filter((ws.d_year = 2000) and d_qoy IN (1, 2, 3)) diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query33.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query33.out index 4f960339fa..b84e41f1c4 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query33.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query33.out @@ -48,7 +48,7 @@ PhysicalResultSink ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------hashAgg[LOCAL] --------------------------PhysicalProject -----------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF6 i_item_sk->[cs_item_sk] +----------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_item_sk = item.i_item_sk)) otherCondition=() ------------------------------PhysicalDistribute[DistributionSpecHash] --------------------------------PhysicalProject ----------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_bill_addr_sk = customer_address.ca_address_sk)) otherCondition=() build RFs:RF5 ca_address_sk->[cs_bill_addr_sk] @@ -56,7 +56,7 @@ PhysicalResultSink --------------------------------------PhysicalProject ----------------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF4 d_date_sk->[cs_sold_date_sk] ------------------------------------------PhysicalProject ---------------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF4 RF5 RF6 +--------------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF4 RF5 ------------------------------------------PhysicalDistribute[DistributionSpecReplicated] --------------------------------------------PhysicalProject ----------------------------------------------filter((date_dim.d_moy = 1) and (date_dim.d_year = 2002)) diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query38.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query38.out index d7d71de6f4..2b49086650 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query38.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query38.out @@ -31,12 +31,12 @@ PhysicalResultSink --------------------PhysicalDistribute[DistributionSpecHash] ----------------------hashAgg[LOCAL] ------------------------PhysicalProject ---------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_bill_customer_sk = customer.c_customer_sk)) otherCondition=() build RFs:RF3 c_customer_sk->[cs_bill_customer_sk] +--------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_bill_customer_sk = customer.c_customer_sk)) otherCondition=() ----------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------PhysicalProject --------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF2 d_date_sk->[cs_sold_date_sk] ----------------------------------PhysicalProject -------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF2 RF3 +------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF2 ----------------------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------------------PhysicalProject --------------------------------------filter((date_dim.d_month_seq <= 1194) and (date_dim.d_month_seq >= 1183)) @@ -49,12 +49,12 @@ PhysicalResultSink --------------------PhysicalDistribute[DistributionSpecHash] ----------------------hashAgg[LOCAL] ------------------------PhysicalProject ---------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_bill_customer_sk = customer.c_customer_sk)) otherCondition=() build RFs:RF5 c_customer_sk->[ws_bill_customer_sk] +--------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_bill_customer_sk = customer.c_customer_sk)) otherCondition=() ----------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------PhysicalProject --------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF4 d_date_sk->[ws_sold_date_sk] ----------------------------------PhysicalProject -------------------------------------PhysicalOlapScan[web_sales] apply RFs: RF4 RF5 +------------------------------------PhysicalOlapScan[web_sales] apply RFs: RF4 ----------------------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------------------PhysicalProject --------------------------------------filter((date_dim.d_month_seq <= 1194) and (date_dim.d_month_seq >= 1183)) diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query5.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query5.out index cfdbc1f258..9d8fb659c2 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query5.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query5.out @@ -37,16 +37,16 @@ PhysicalResultSink ------------------------PhysicalDistribute[DistributionSpecHash] --------------------------hashAgg[LOCAL] ----------------------------PhysicalProject -------------------------------hashJoin[INNER_JOIN] hashCondition=((salesreturns.page_sk = catalog_page.cp_catalog_page_sk)) otherCondition=() build RFs:RF3 cp_catalog_page_sk->[cs_catalog_page_sk,cr_catalog_page_sk] +------------------------------hashJoin[INNER_JOIN] hashCondition=((salesreturns.page_sk = catalog_page.cp_catalog_page_sk)) otherCondition=() --------------------------------PhysicalProject ----------------------------------hashJoin[INNER_JOIN] hashCondition=((salesreturns.date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF2 d_date_sk->[cs_sold_date_sk,cr_returned_date_sk] ------------------------------------PhysicalUnion --------------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------------PhysicalProject -------------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF2 RF3 +------------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF2 --------------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------------PhysicalProject -------------------------------------------PhysicalOlapScan[catalog_returns] apply RFs: RF2 RF3 +------------------------------------------PhysicalOlapScan[catalog_returns] apply RFs: RF2 ------------------------------------PhysicalDistribute[DistributionSpecReplicated] --------------------------------------PhysicalProject ----------------------------------------filter((date_dim.d_date <= '2000-09-02') and (date_dim.d_date >= '2000-08-19')) @@ -59,18 +59,18 @@ PhysicalResultSink ------------------------PhysicalDistribute[DistributionSpecHash] --------------------------hashAgg[LOCAL] ----------------------------PhysicalProject -------------------------------hashJoin[INNER_JOIN] hashCondition=((salesreturns.wsr_web_site_sk = web_site.web_site_sk)) otherCondition=() build RFs:RF7 web_site_sk->[ws_web_site_sk,ws_web_site_sk] +------------------------------hashJoin[INNER_JOIN] hashCondition=((salesreturns.wsr_web_site_sk = web_site.web_site_sk)) otherCondition=() --------------------------------PhysicalProject ----------------------------------hashJoin[INNER_JOIN] hashCondition=((salesreturns.date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF6 d_date_sk->[ws_sold_date_sk,wr_returned_date_sk] ------------------------------------PhysicalUnion --------------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------------PhysicalProject -------------------------------------------PhysicalOlapScan[web_sales] apply RFs: RF6 RF7 +------------------------------------------PhysicalOlapScan[web_sales] apply RFs: RF6 --------------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------------PhysicalProject ------------------------------------------hashJoin[INNER_JOIN] hashCondition=((web_returns.wr_item_sk = web_sales.ws_item_sk) and (web_returns.wr_order_number = web_sales.ws_order_number)) otherCondition=() build RFs:RF4 wr_item_sk->[ws_item_sk];RF5 wr_order_number->[ws_order_number] --------------------------------------------PhysicalProject -----------------------------------------------PhysicalOlapScan[web_sales] apply RFs: RF4 RF5 RF7 +----------------------------------------------PhysicalOlapScan[web_sales] apply RFs: RF4 RF5 --------------------------------------------PhysicalProject ----------------------------------------------PhysicalOlapScan[web_returns] apply RFs: RF6 ------------------------------------PhysicalDistribute[DistributionSpecReplicated] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query59.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query59.out index 56c5d51905..43445831c5 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query59.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query59.out @@ -19,28 +19,28 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------PhysicalDistribute[DistributionSpecGather] ----------PhysicalTopN[LOCAL_SORT] ------------PhysicalProject ---------------hashJoin[INNER_JOIN] hashCondition=((expr_cast(d_week_seq1 as BIGINT) = expr_(d_week_seq2 - 52)) and (y.s_store_id1 = x.s_store_id2)) otherCondition=() +--------------hashJoin[INNER_JOIN] hashCondition=((expr_cast(d_week_seq1 as BIGINT) = expr_(d_week_seq2 - 52)) and (y.s_store_id1 = x.s_store_id2)) otherCondition=() build RFs:RF5 s_store_id2->[s_store_id] ----------------PhysicalDistribute[DistributionSpecHash] ------------------PhysicalProject --------------------hashJoin[INNER_JOIN] hashCondition=((wss.ss_store_sk = store.s_store_sk)) otherCondition=() build RFs:RF4 s_store_sk->[ss_store_sk] ----------------------hashJoin[INNER_JOIN] hashCondition=((d.d_week_seq = d_week_seq1)) otherCondition=() build RFs:RF3 d_week_seq->[d_week_seq] ------------------------PhysicalDistribute[DistributionSpecExecutionAny] --------------------------PhysicalProject -----------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +----------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF3 RF4 ------------------------PhysicalDistribute[DistributionSpecReplicated] --------------------------PhysicalProject ----------------------------filter((d.d_month_seq <= 1207) and (d.d_month_seq >= 1196)) ------------------------------PhysicalOlapScan[date_dim] ----------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------PhysicalProject ---------------------------PhysicalOlapScan[store] +--------------------------PhysicalOlapScan[store] apply RFs: RF5 ----------------PhysicalDistribute[DistributionSpecHash] ------------------PhysicalProject ---------------------hashJoin[INNER_JOIN] hashCondition=((wss.ss_store_sk = store.s_store_sk)) otherCondition=() build RFs:RF2 s_store_sk->[ss_store_sk] +--------------------hashJoin[INNER_JOIN] hashCondition=((wss.ss_store_sk = store.s_store_sk)) otherCondition=() ----------------------hashJoin[INNER_JOIN] hashCondition=((d.d_week_seq = d_week_seq2)) otherCondition=() build RFs:RF1 d_week_seq->[d_week_seq] ------------------------PhysicalDistribute[DistributionSpecExecutionAny] --------------------------PhysicalProject -----------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +----------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF1 ------------------------PhysicalDistribute[DistributionSpecReplicated] --------------------------PhysicalProject ----------------------------filter((d.d_month_seq <= 1219) and (d.d_month_seq >= 1208)) diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query66.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query66.out index 22bb067cd5..a5c900ccdc 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query66.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query66.out @@ -41,14 +41,14 @@ PhysicalResultSink --------------------PhysicalDistribute[DistributionSpecHash] ----------------------hashAgg[LOCAL] ------------------------PhysicalProject ---------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_warehouse_sk = warehouse.w_warehouse_sk)) otherCondition=() build RFs:RF7 w_warehouse_sk->[cs_warehouse_sk] +--------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_warehouse_sk = warehouse.w_warehouse_sk)) otherCondition=() ----------------------------PhysicalProject ------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_time_sk = time_dim.t_time_sk)) otherCondition=() build RFs:RF6 t_time_sk->[cs_sold_time_sk] --------------------------------PhysicalProject ----------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF5 d_date_sk->[cs_sold_date_sk] ------------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_ship_mode_sk = ship_mode.sm_ship_mode_sk)) otherCondition=() build RFs:RF4 sm_ship_mode_sk->[cs_ship_mode_sk] --------------------------------------PhysicalProject -----------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF4 RF5 RF6 RF7 +----------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF4 RF5 RF6 --------------------------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------------------------PhysicalProject ------------------------------------------filter(sm_carrier IN ('GREAT EASTERN', 'LATVIAN')) diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query77.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query77.out index 1ac424b09c..73ee6191d2 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query77.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query77.out @@ -80,11 +80,11 @@ PhysicalResultSink ----------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------hashAgg[LOCAL] --------------------------------PhysicalProject -----------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_web_page_sk = web_page.wp_web_page_sk)) otherCondition=() build RFs:RF9 wp_web_page_sk->[ws_web_page_sk] +----------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_web_page_sk = web_page.wp_web_page_sk)) otherCondition=() ------------------------------------PhysicalProject --------------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF8 d_date_sk->[ws_sold_date_sk] ----------------------------------------PhysicalProject -------------------------------------------PhysicalOlapScan[web_sales] apply RFs: RF8 RF9 +------------------------------------------PhysicalOlapScan[web_sales] apply RFs: RF8 ----------------------------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------------------------PhysicalProject --------------------------------------------filter((date_dim.d_date <= '1998-09-04') and (date_dim.d_date >= '1998-08-05')) @@ -95,12 +95,12 @@ PhysicalResultSink ------------------------PhysicalProject --------------------------hashAgg[LOCAL] ----------------------------PhysicalProject -------------------------------hashJoin[INNER_JOIN] hashCondition=((web_returns.wr_web_page_sk = web_page.wp_web_page_sk)) otherCondition=() build RFs:RF7 wp_web_page_sk->[wr_web_page_sk] +------------------------------hashJoin[INNER_JOIN] hashCondition=((web_returns.wr_web_page_sk = web_page.wp_web_page_sk)) otherCondition=() --------------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------------PhysicalProject ------------------------------------hashJoin[INNER_JOIN] hashCondition=((web_returns.wr_returned_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF6 d_date_sk->[wr_returned_date_sk] --------------------------------------PhysicalProject -----------------------------------------PhysicalOlapScan[web_returns] apply RFs: RF6 RF7 +----------------------------------------PhysicalOlapScan[web_returns] apply RFs: RF6 --------------------------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------------------------PhysicalProject ------------------------------------------filter((date_dim.d_date <= '1998-09-04') and (date_dim.d_date >= '1998-08-05')) diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query80.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query80.out index 3764d69438..62e6b9716b 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query80.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query80.out @@ -46,7 +46,7 @@ PhysicalResultSink ------------------------PhysicalDistribute[DistributionSpecHash] --------------------------hashAgg[LOCAL] ----------------------------PhysicalProject -------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_catalog_page_sk = catalog_page.cp_catalog_page_sk)) otherCondition=() build RFs:RF11 cp_catalog_page_sk->[cs_catalog_page_sk] +------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_catalog_page_sk = catalog_page.cp_catalog_page_sk)) otherCondition=() --------------------------------PhysicalProject ----------------------------------hashJoin[RIGHT_OUTER_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:RF9 cs_item_sk->[cr_item_sk];RF10 cs_order_number->[cr_order_number] ------------------------------------PhysicalProject @@ -56,7 +56,7 @@ PhysicalResultSink ----------------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF7 i_item_sk->[cs_item_sk] ------------------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF6 d_date_sk->[cs_sold_date_sk] --------------------------------------------PhysicalProject -----------------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF6 RF7 RF8 RF11 +----------------------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF6 RF7 RF8 --------------------------------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------------------------------PhysicalProject ------------------------------------------------filter((date_dim.d_date <= '1998-09-27') and (date_dim.d_date >= '1998-08-28')) @@ -81,13 +81,13 @@ PhysicalResultSink --------------------------------PhysicalProject ----------------------------------PhysicalOlapScan[web_returns] apply RFs: RF16 RF17 --------------------------------PhysicalProject -----------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_web_site_sk = web_site.web_site_sk)) otherCondition=() build RFs:RF15 web_site_sk->[ws_web_site_sk] +----------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_web_site_sk = web_site.web_site_sk)) otherCondition=() ------------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_promo_sk = promotion.p_promo_sk)) otherCondition=() build RFs:RF14 p_promo_sk->[ws_promo_sk] --------------------------------------PhysicalProject ----------------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF13 i_item_sk->[ws_item_sk] ------------------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF12 d_date_sk->[ws_sold_date_sk] --------------------------------------------PhysicalProject -----------------------------------------------PhysicalOlapScan[web_sales] apply RFs: RF12 RF13 RF14 RF15 +----------------------------------------------PhysicalOlapScan[web_sales] apply RFs: RF12 RF13 RF14 --------------------------------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------------------------------PhysicalProject ------------------------------------------------filter((date_dim.d_date <= '1998-09-27') and (date_dim.d_date >= '1998-08-28')) diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query81.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query81.out index a684a664a3..9b9a03af8f 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query81.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query81.out @@ -29,7 +29,7 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------PhysicalProject ----------------hashJoin[INNER_JOIN] hashCondition=((ctr1.ctr_customer_sk = customer.c_customer_sk)) otherCondition=() build RFs:RF3 c_customer_sk->[ctr_customer_sk] ------------------PhysicalDistribute[DistributionSpecHash] ---------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +--------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF3 ------------------PhysicalDistribute[DistributionSpecHash] --------------------hashJoin[INNER_JOIN] hashCondition=((customer_address.ca_address_sk = customer.c_current_addr_sk)) otherCondition=() build RFs:RF2 ca_address_sk->[c_current_addr_sk] ----------------------PhysicalDistribute[DistributionSpecHash] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query87.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query87.out index 4ed67c2332..da9a5d873b 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query87.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query87.out @@ -29,12 +29,12 @@ PhysicalResultSink ----------------PhysicalDistribute[DistributionSpecHash] ------------------hashAgg[LOCAL] --------------------PhysicalProject -----------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_bill_customer_sk = customer.c_customer_sk)) otherCondition=() build RFs:RF3 c_customer_sk->[cs_bill_customer_sk] +----------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_bill_customer_sk = customer.c_customer_sk)) otherCondition=() ------------------------PhysicalDistribute[DistributionSpecHash] --------------------------PhysicalProject ----------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF2 d_date_sk->[cs_sold_date_sk] ------------------------------PhysicalProject ---------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF2 RF3 +--------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF2 ------------------------------PhysicalDistribute[DistributionSpecReplicated] --------------------------------PhysicalProject ----------------------------------filter((date_dim.d_month_seq <= 1195) and (date_dim.d_month_seq >= 1184)) @@ -47,12 +47,12 @@ PhysicalResultSink ----------------PhysicalDistribute[DistributionSpecHash] ------------------hashAgg[LOCAL] --------------------PhysicalProject -----------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_bill_customer_sk = customer.c_customer_sk)) otherCondition=() build RFs:RF5 c_customer_sk->[ws_bill_customer_sk] +----------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_bill_customer_sk = customer.c_customer_sk)) otherCondition=() ------------------------PhysicalDistribute[DistributionSpecHash] --------------------------PhysicalProject ----------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF4 d_date_sk->[ws_sold_date_sk] ------------------------------PhysicalProject ---------------------------------PhysicalOlapScan[web_sales] apply RFs: RF4 RF5 +--------------------------------PhysicalOlapScan[web_sales] apply RFs: RF4 ------------------------------PhysicalDistribute[DistributionSpecReplicated] --------------------------------PhysicalProject ----------------------------------filter((date_dim.d_month_seq <= 1195) and (date_dim.d_month_seq >= 1184)) diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query95.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query95.out index 4973a40f07..f4c9f48d17 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query95.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/rf_prune/query95.out @@ -6,10 +6,10 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------hashJoin[INNER_JOIN] hashCondition=((ws1.ws_order_number = ws2.ws_order_number)) otherCondition=(( not (ws_warehouse_sk = ws_warehouse_sk))) build RFs:RF0 ws_order_number->[ws_order_number] --------PhysicalDistribute[DistributionSpecHash] ----------PhysicalProject -------------PhysicalOlapScan[web_sales] apply RFs: RF0 RF6 RF7 +------------PhysicalOlapScan[web_sales] apply RFs: RF0 RF7 --------PhysicalDistribute[DistributionSpecHash] ----------PhysicalProject -------------PhysicalOlapScan[web_sales] apply RFs: RF6 RF7 +------------PhysicalOlapScan[web_sales] apply RFs: RF7 --PhysicalResultSink ----PhysicalTopN[MERGE_SORT] ------PhysicalTopN[LOCAL_SORT] @@ -19,16 +19,16 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------hashAgg[GLOBAL] ----------------hashAgg[LOCAL] ------------------PhysicalProject ---------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((ws1.ws_order_number = web_returns.wr_order_number)) otherCondition=() +--------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((ws1.ws_order_number = web_returns.wr_order_number)) otherCondition=() build RFs:RF6 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:RF5 wr_order_number->[ws_order_number];RF7 wr_order_number->[ws_order_number,ws_order_number] +------------------------hashJoin[INNER_JOIN] hashCondition=((web_returns.wr_order_number = ws_wh.ws_order_number)) otherCondition=() --------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------PhysicalProject -------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF6 --------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------PhysicalProject -------------------------------PhysicalOlapScan[web_returns] -----------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((ws1.ws_order_number = ws_wh.ws_order_number)) otherCondition=() build RFs:RF4 ws_order_number->[ws_order_number];RF6 ws_order_number->[ws_order_number,ws_order_number] +------------------------------PhysicalOlapScan[web_returns] apply RFs: RF6 +----------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((ws1.ws_order_number = ws_wh.ws_order_number)) otherCondition=() build RFs:RF7 ws_order_number->[ws_order_number,ws_order_number] ------------------------PhysicalDistribute[DistributionSpecHash] --------------------------PhysicalProject ----------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query1.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query1.out index 66550bfccf..73dea99cdf 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query1.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query1.out @@ -19,16 +19,16 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------PhysicalDistribute[DistributionSpecGather] --------PhysicalTopN[LOCAL_SORT] ----------PhysicalProject -------------hashJoin[INNER_JOIN] hashCondition=((ctr1.ctr_customer_sk = customer.c_customer_sk)) otherCondition=() build RFs:RF2 ctr_customer_sk->[c_customer_sk] +------------hashJoin[INNER_JOIN] hashCondition=((ctr1.ctr_customer_sk = customer.c_customer_sk)) otherCondition=() --------------PhysicalDistribute[DistributionSpecHash] ----------------PhysicalProject -------------------PhysicalOlapScan[customer] apply RFs: RF2 +------------------PhysicalOlapScan[customer] --------------PhysicalDistribute[DistributionSpecHash] ----------------hashJoin[INNER_JOIN] hashCondition=((ctr1.ctr_store_sk = ctr2.ctr_store_sk)) otherCondition=((cast(ctr_total_return as DOUBLE) > cast((avg(cast(ctr_total_return as DECIMALV3(38, 4))) * 1.2) as DOUBLE))) ------------------PhysicalProject --------------------hashJoin[INNER_JOIN] hashCondition=((store.s_store_sk = ctr1.ctr_store_sk)) otherCondition=() build RFs:RF1 s_store_sk->[ctr_store_sk] ----------------------PhysicalDistribute[DistributionSpecExecutionAny] -------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF1 ----------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------PhysicalProject --------------------------filter((store.s_state = 'SD')) diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query14.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query14.out index eddff073c8..69a8888f2a 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query14.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query14.out @@ -106,7 +106,7 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------------------------PhysicalProject --------------------------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((store_sales.ss_item_sk = cross_items.ss_item_sk)) otherCondition=() build RFs:RF14 ss_item_sk->[ss_item_sk] ----------------------------------------PhysicalDistribute[DistributionSpecHash] -------------------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +------------------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF14 ----------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF13 i_item_sk->[ss_item_sk] ------------------------------------------PhysicalDistribute[DistributionSpecHash] --------------------------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF12 d_date_sk->[ss_sold_date_sk] @@ -132,7 +132,7 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------------------------PhysicalProject --------------------------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((catalog_sales.cs_item_sk = cross_items.ss_item_sk)) otherCondition=() build RFs:RF17 cs_item_sk->[ss_item_sk] ----------------------------------------PhysicalDistribute[DistributionSpecHash] -------------------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +------------------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF17 ----------------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF16 i_item_sk->[cs_item_sk] ------------------------------------------PhysicalDistribute[DistributionSpecHash] --------------------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF15 d_date_sk->[cs_sold_date_sk] @@ -158,7 +158,7 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------------------------PhysicalProject --------------------------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((web_sales.ws_item_sk = cross_items.ss_item_sk)) otherCondition=() build RFs:RF20 ws_item_sk->[ss_item_sk] ----------------------------------------PhysicalDistribute[DistributionSpecHash] -------------------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +------------------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF20 ----------------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_item_sk = item.i_item_sk)) otherCondition=() build RFs:RF19 i_item_sk->[ws_item_sk] ------------------------------------------PhysicalDistribute[DistributionSpecHash] --------------------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF18 d_date_sk->[ws_sold_date_sk] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query2.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query2.out index 69e7fe08dd..63360e2ffb 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query2.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query2.out @@ -28,7 +28,7 @@ PhysicalCteAnchor ( cteId=CTEId#1 ) ------------------hashJoin[INNER_JOIN] hashCondition=((date_dim.d_week_seq = d_week_seq1)) otherCondition=() build RFs:RF2 d_week_seq->[d_week_seq] --------------------PhysicalDistribute[DistributionSpecExecutionAny] ----------------------PhysicalProject -------------------------PhysicalCteConsumer ( cteId=CTEId#1 ) +------------------------PhysicalCteConsumer ( cteId=CTEId#1 ) apply RFs: RF2 --------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------PhysicalProject ------------------------filter((date_dim.d_year = 1998)) @@ -38,7 +38,7 @@ PhysicalCteAnchor ( cteId=CTEId#1 ) ------------------hashJoin[INNER_JOIN] hashCondition=((date_dim.d_week_seq = d_week_seq2)) otherCondition=() build RFs:RF1 d_week_seq->[d_week_seq] --------------------PhysicalDistribute[DistributionSpecExecutionAny] ----------------------PhysicalProject -------------------------PhysicalCteConsumer ( cteId=CTEId#1 ) +------------------------PhysicalCteConsumer ( cteId=CTEId#1 ) apply RFs: RF1 --------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------PhysicalProject ------------------------filter((date_dim.d_year = 1999)) diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query23.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query23.out index 40248cb830..8491810ebf 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query23.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query23.out @@ -56,17 +56,17 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------hashAgg[LOCAL] ----------------PhysicalUnion ------------------PhysicalProject ---------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((catalog_sales.cs_item_sk = frequent_ss_items.item_sk)) otherCondition=() +--------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((catalog_sales.cs_item_sk = frequent_ss_items.item_sk)) otherCondition=() build RFs:RF4 cs_item_sk->[item_sk] ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------PhysicalProject ---------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +--------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF4 ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------PhysicalProject ---------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((catalog_sales.cs_bill_customer_sk = best_ss_customer.c_customer_sk)) otherCondition=() build RFs:RF4 c_customer_sk->[cs_bill_customer_sk] +--------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((catalog_sales.cs_bill_customer_sk = best_ss_customer.c_customer_sk)) otherCondition=() ----------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------hashJoin[INNER_JOIN] hashCondition=((catalog_sales.cs_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF3 d_date_sk->[cs_sold_date_sk] --------------------------------PhysicalProject -----------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF3 RF4 +----------------------------------PhysicalOlapScan[catalog_sales] apply RFs: RF3 --------------------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------------------PhysicalProject ------------------------------------filter((date_dim.d_moy = 5) and (date_dim.d_year = 2000)) @@ -75,17 +75,17 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------------------------------PhysicalProject --------------------------------PhysicalCteConsumer ( cteId=CTEId#2 ) ------------------PhysicalProject ---------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((web_sales.ws_item_sk = frequent_ss_items.item_sk)) otherCondition=() +--------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((web_sales.ws_item_sk = frequent_ss_items.item_sk)) otherCondition=() build RFs:RF6 ws_item_sk->[item_sk] ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------PhysicalProject ---------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +--------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF6 ----------------------PhysicalDistribute[DistributionSpecHash] ------------------------PhysicalProject ---------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((web_sales.ws_bill_customer_sk = best_ss_customer.c_customer_sk)) otherCondition=() build RFs:RF6 c_customer_sk->[ws_bill_customer_sk] +--------------------------hashJoin[LEFT_SEMI_JOIN] hashCondition=((web_sales.ws_bill_customer_sk = best_ss_customer.c_customer_sk)) otherCondition=() ----------------------------PhysicalDistribute[DistributionSpecHash] ------------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF5 d_date_sk->[ws_sold_date_sk] --------------------------------PhysicalProject -----------------------------------PhysicalOlapScan[web_sales] apply RFs: RF5 RF6 +----------------------------------PhysicalOlapScan[web_sales] apply RFs: RF5 --------------------------------PhysicalDistribute[DistributionSpecReplicated] ----------------------------------PhysicalProject ------------------------------------filter((date_dim.d_moy = 5) and (date_dim.d_year = 2000)) diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query30.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query30.out index c70c5d0dda..0160329ec2 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query30.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query30.out @@ -29,7 +29,7 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------PhysicalProject ----------------hashJoin[INNER_JOIN] hashCondition=((ctr1.ctr_customer_sk = customer.c_customer_sk)) otherCondition=() build RFs:RF3 c_customer_sk->[ctr_customer_sk] ------------------PhysicalDistribute[DistributionSpecHash] ---------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +--------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF3 ------------------PhysicalDistribute[DistributionSpecHash] --------------------hashJoin[INNER_JOIN] hashCondition=((customer_address.ca_address_sk = customer.c_current_addr_sk)) otherCondition=() build RFs:RF2 ca_address_sk->[c_current_addr_sk] ----------------------PhysicalProject diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query59.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query59.out index e43fadf4eb..7c291bd990 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query59.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query59.out @@ -19,28 +19,28 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------PhysicalDistribute[DistributionSpecGather] ----------PhysicalTopN[LOCAL_SORT] ------------PhysicalProject ---------------hashJoin[INNER_JOIN] hashCondition=((expr_cast(d_week_seq1 as BIGINT) = expr_(d_week_seq2 - 52)) and (y.s_store_id1 = x.s_store_id2)) otherCondition=() +--------------hashJoin[INNER_JOIN] hashCondition=((expr_cast(d_week_seq1 as BIGINT) = expr_(d_week_seq2 - 52)) and (y.s_store_id1 = x.s_store_id2)) otherCondition=() build RFs:RF5 s_store_id2->[s_store_id] ----------------PhysicalDistribute[DistributionSpecHash] ------------------PhysicalProject --------------------hashJoin[INNER_JOIN] hashCondition=((wss.ss_store_sk = store.s_store_sk)) otherCondition=() build RFs:RF4 s_store_sk->[ss_store_sk] ----------------------hashJoin[INNER_JOIN] hashCondition=((d.d_week_seq = d_week_seq1)) otherCondition=() build RFs:RF3 d_week_seq->[d_week_seq] ------------------------PhysicalDistribute[DistributionSpecExecutionAny] --------------------------PhysicalProject -----------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +----------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF3 RF4 ------------------------PhysicalDistribute[DistributionSpecReplicated] --------------------------PhysicalProject ----------------------------filter((d.d_month_seq <= 1207) and (d.d_month_seq >= 1196)) ------------------------------PhysicalOlapScan[date_dim] ----------------------PhysicalDistribute[DistributionSpecReplicated] ------------------------PhysicalProject ---------------------------PhysicalOlapScan[store] +--------------------------PhysicalOlapScan[store] apply RFs: RF5 ----------------PhysicalDistribute[DistributionSpecHash] ------------------PhysicalProject --------------------hashJoin[INNER_JOIN] hashCondition=((wss.ss_store_sk = store.s_store_sk)) otherCondition=() build RFs:RF2 s_store_sk->[ss_store_sk] ----------------------hashJoin[INNER_JOIN] hashCondition=((d.d_week_seq = d_week_seq2)) otherCondition=() build RFs:RF1 d_week_seq->[d_week_seq] ------------------------PhysicalDistribute[DistributionSpecExecutionAny] --------------------------PhysicalProject -----------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +----------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF1 RF2 ------------------------PhysicalDistribute[DistributionSpecReplicated] --------------------------PhysicalProject ----------------------------filter((d.d_month_seq <= 1219) and (d.d_month_seq >= 1208)) diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query81.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query81.out index 7fcc5b06b2..aa637bc646 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query81.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query81.out @@ -29,7 +29,7 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------PhysicalProject ----------------hashJoin[INNER_JOIN] hashCondition=((ctr1.ctr_customer_sk = customer.c_customer_sk)) otherCondition=() build RFs:RF3 c_customer_sk->[ctr_customer_sk] ------------------PhysicalDistribute[DistributionSpecHash] ---------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +--------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF3 ------------------PhysicalDistribute[DistributionSpecHash] --------------------hashJoin[INNER_JOIN] hashCondition=((customer_address.ca_address_sk = customer.c_current_addr_sk)) otherCondition=() build RFs:RF2 ca_address_sk->[c_current_addr_sk] ----------------------PhysicalDistribute[DistributionSpecHash] diff --git a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query95.out b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query95.out index 4973a40f07..a2c6bccca1 100644 --- a/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query95.out +++ b/regression-test/data/nereids_tpcds_shape_sf100_p0/shape/query95.out @@ -6,10 +6,10 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) ------hashJoin[INNER_JOIN] hashCondition=((ws1.ws_order_number = ws2.ws_order_number)) otherCondition=(( not (ws_warehouse_sk = ws_warehouse_sk))) build RFs:RF0 ws_order_number->[ws_order_number] --------PhysicalDistribute[DistributionSpecHash] ----------PhysicalProject -------------PhysicalOlapScan[web_sales] apply RFs: RF0 RF6 RF7 +------------PhysicalOlapScan[web_sales] apply RFs: RF0 RF7 --------PhysicalDistribute[DistributionSpecHash] ----------PhysicalProject -------------PhysicalOlapScan[web_sales] apply RFs: RF6 RF7 +------------PhysicalOlapScan[web_sales] apply RFs: RF7 --PhysicalResultSink ----PhysicalTopN[MERGE_SORT] ------PhysicalTopN[LOCAL_SORT] @@ -19,16 +19,16 @@ PhysicalCteAnchor ( cteId=CTEId#0 ) --------------hashAgg[GLOBAL] ----------------hashAgg[LOCAL] ------------------PhysicalProject ---------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((ws1.ws_order_number = web_returns.wr_order_number)) otherCondition=() +--------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((ws1.ws_order_number = web_returns.wr_order_number)) otherCondition=() build RFs:RF6 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:RF5 wr_order_number->[ws_order_number];RF7 wr_order_number->[ws_order_number,ws_order_number] +------------------------hashJoin[INNER_JOIN] hashCondition=((web_returns.wr_order_number = ws_wh.ws_order_number)) otherCondition=() build RFs:RF5 wr_order_number->[ws_order_number] --------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------PhysicalProject -------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) +------------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) apply RFs: RF5 RF6 --------------------------PhysicalDistribute[DistributionSpecHash] ----------------------------PhysicalProject -------------------------------PhysicalOlapScan[web_returns] -----------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((ws1.ws_order_number = ws_wh.ws_order_number)) otherCondition=() build RFs:RF4 ws_order_number->[ws_order_number];RF6 ws_order_number->[ws_order_number,ws_order_number] +------------------------------PhysicalOlapScan[web_returns] apply RFs: RF6 +----------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((ws1.ws_order_number = ws_wh.ws_order_number)) otherCondition=() build RFs:RF7 ws_order_number->[ws_order_number,ws_order_number] ------------------------PhysicalDistribute[DistributionSpecHash] --------------------------PhysicalProject ----------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q21.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q21.out index 44dc87ff59..87fee9b93f 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q21.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/nostats_rf_prune/q21.out @@ -12,10 +12,10 @@ PhysicalResultSink ------------------PhysicalProject --------------------hashJoin[INNER_JOIN] hashCondition=((supplier.s_suppkey = l1.l_suppkey)) otherCondition=() build RFs:RF3 s_suppkey->[l_suppkey] ----------------------PhysicalDistribute[DistributionSpecHash] -------------------------hashJoin[INNER_JOIN] hashCondition=((orders.o_orderkey = l1.l_orderkey)) otherCondition=() build RFs:RF2 o_orderkey->[l_orderkey] +------------------------hashJoin[INNER_JOIN] hashCondition=((orders.o_orderkey = l1.l_orderkey)) otherCondition=() build RFs:RF2 o_orderkey->[l_orderkey,l_orderkey] --------------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((l2.l_orderkey = l1.l_orderkey)) otherCondition=(( not (l_suppkey = l_suppkey))) build RFs:RF1 l_orderkey->[l_orderkey] ----------------------------PhysicalProject -------------------------------PhysicalOlapScan[lineitem] apply RFs: RF1 +------------------------------PhysicalOlapScan[lineitem] apply RFs: RF1 RF2 ----------------------------hashJoin[RIGHT_ANTI_JOIN] hashCondition=((l3.l_orderkey = l1.l_orderkey)) otherCondition=(( not (l_suppkey = l_suppkey))) build RFs:RF0 l_orderkey->[l_orderkey] ------------------------------PhysicalProject --------------------------------filter((l3.l_receiptdate > l3.l_commitdate)) diff --git a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape_no_stats/q21.out b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape_no_stats/q21.out index 44dc87ff59..87fee9b93f 100644 --- a/regression-test/data/nereids_tpch_shape_sf1000_p0/shape_no_stats/q21.out +++ b/regression-test/data/nereids_tpch_shape_sf1000_p0/shape_no_stats/q21.out @@ -12,10 +12,10 @@ PhysicalResultSink ------------------PhysicalProject --------------------hashJoin[INNER_JOIN] hashCondition=((supplier.s_suppkey = l1.l_suppkey)) otherCondition=() build RFs:RF3 s_suppkey->[l_suppkey] ----------------------PhysicalDistribute[DistributionSpecHash] -------------------------hashJoin[INNER_JOIN] hashCondition=((orders.o_orderkey = l1.l_orderkey)) otherCondition=() build RFs:RF2 o_orderkey->[l_orderkey] +------------------------hashJoin[INNER_JOIN] hashCondition=((orders.o_orderkey = l1.l_orderkey)) otherCondition=() build RFs:RF2 o_orderkey->[l_orderkey,l_orderkey] --------------------------hashJoin[RIGHT_SEMI_JOIN] hashCondition=((l2.l_orderkey = l1.l_orderkey)) otherCondition=(( not (l_suppkey = l_suppkey))) build RFs:RF1 l_orderkey->[l_orderkey] ----------------------------PhysicalProject -------------------------------PhysicalOlapScan[lineitem] apply RFs: RF1 +------------------------------PhysicalOlapScan[lineitem] apply RFs: RF1 RF2 ----------------------------hashJoin[RIGHT_ANTI_JOIN] hashCondition=((l3.l_orderkey = l1.l_orderkey)) otherCondition=(( not (l_suppkey = l_suppkey))) build RFs:RF0 l_orderkey->[l_orderkey] ------------------------------PhysicalProject --------------------------------filter((l3.l_receiptdate > l3.l_commitdate)) 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 24519d50e4..d172804f48 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 @@ -30,7 +30,7 @@ suite("query{--}") { 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' + sql 'set dump_nereids_memo=false' def ds = """{query}""" qt_ds_shape_{--} ''' explain shape plan 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 26e4934778..8dc4a378f8 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 @@ -30,7 +30,7 @@ suite("query1") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query10.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query10.groovy index 03b1d2bca9..2e51ad1a01 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 @@ -30,7 +30,7 @@ suite("query10") { 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' + sql 'set dump_nereids_memo=false' def ds = """select cd_gender, cd_marital_status, 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 f7bcf22622..a61c145cc4 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 @@ -30,7 +30,7 @@ suite("query11") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query12.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query12.groovy index 4e512d43c2..2b262c61b6 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 @@ -30,7 +30,7 @@ suite("query12") { 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' + sql 'set dump_nereids_memo=false' def ds = """select i_item_id ,i_item_desc ,i_category 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 2f3d00c324..afc5ba660c 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 @@ -30,7 +30,7 @@ suite("query13") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query14.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query14.groovy index 47a7ee463a..59497dfbf6 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 @@ -30,7 +30,7 @@ suite("query14") { 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' + sql 'set dump_nereids_memo=false' def ds = """with cross_items as (select i_item_sk ss_item_sk from item, 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 91b7e5a036..b2bb27b619 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 @@ -30,7 +30,7 @@ suite("query15") { 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' + sql 'set dump_nereids_memo=false' def ds = """select ca_zip ,sum(cs_sales_price) from catalog_sales 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 0ae40d15fc..3fa9ea8af6 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 @@ -30,7 +30,7 @@ suite("query16") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query17.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query17.groovy index 3f82efd83d..6f2f5cbe73 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 @@ -30,7 +30,7 @@ suite("query17") { 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' + sql 'set dump_nereids_memo=false' def ds = """select i_item_id ,i_item_desc ,s_state 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 4279a94780..2a829c7c0c 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 @@ -30,7 +30,7 @@ suite("query18") { 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' + sql 'set dump_nereids_memo=false' def ds = """select i_item_id, ca_country, ca_state, 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 dc5714b7b3..a251716906 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 @@ -30,7 +30,7 @@ suite("query19") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query2.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query2.groovy index f9897201e8..2ed71d564c 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 @@ -30,7 +30,7 @@ suite("query2") { 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' + sql 'set dump_nereids_memo=false' def ds = """with wscs as (select sold_date_sk ,sales_price 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 6db88b75dd..0c3f1013e0 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 @@ -30,7 +30,7 @@ suite("query20") { 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' + sql 'set dump_nereids_memo=false' def ds = """select i_item_id ,i_item_desc ,i_category 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 bf872a39e4..4fd5428ec7 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 @@ -30,7 +30,7 @@ suite("query21") { 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' + sql 'set dump_nereids_memo=false' def ds = """select * from(select w_warehouse_name ,i_item_id 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 a5acdc2d78..c2b514c6e0 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 @@ -30,7 +30,7 @@ suite("query22") { 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' + sql 'set dump_nereids_memo=false' def ds = """select i_product_name ,i_brand ,i_class 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 3d3b936bfa..f52cf26cf2 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 @@ -30,7 +30,7 @@ suite("query23") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query24.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query24.groovy index 42f2f0d839..fee9c9889c 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 @@ -30,7 +30,7 @@ suite("query24") { 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' + sql 'set dump_nereids_memo=false' def ds = """with ssales as (select c_last_name ,c_first_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 49eaec7555..30f328156a 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 @@ -30,7 +30,7 @@ suite("query25") { 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' + sql 'set dump_nereids_memo=false' def ds = """select i_item_id ,i_item_desc 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 ef1f6fb222..7f934697c9 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 @@ -30,7 +30,7 @@ suite("query26") { 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' + sql 'set dump_nereids_memo=false' def ds = """select i_item_id, avg(cs_quantity) agg1, avg(cs_list_price) agg2, 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 b67c90cdd9..978973ca1e 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 @@ -30,7 +30,7 @@ suite("query27") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query28.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query28.groovy index 38c60856ea..b84014c357 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 @@ -30,7 +30,7 @@ suite("query28") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query29.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query29.groovy index 3277754177..a86d44b2b1 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 @@ -30,7 +30,7 @@ suite("query29") { 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' + sql 'set dump_nereids_memo=false' def ds = """select i_item_id ,i_item_desc 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 4ccdbce73b..f1da8363ab 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 @@ -30,7 +30,7 @@ suite("query3") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query30.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query30.groovy index a1277ccb82..d9e3615381 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 @@ -30,7 +30,7 @@ suite("query30") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query31.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query31.groovy index 9114e7c747..0500eddb40 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 @@ -30,7 +30,7 @@ suite("query31") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query32.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query32.groovy index 3a1c6518af..2c1428db8c 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 @@ -30,7 +30,7 @@ suite("query32") { 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' + sql 'set dump_nereids_memo=false' def ds = """select sum(cs_ext_discount_amt) as "excess discount amount" from catalog_sales 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 a7ab465ac5..70d745bf31 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 @@ -30,7 +30,7 @@ suite("query33") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query34.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query34.groovy index 26de532c56..15d128ff14 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 @@ -30,7 +30,7 @@ suite("query34") { 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' + sql 'set dump_nereids_memo=false' def ds = """select c_last_name ,c_first_name ,c_salutation 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 afae0a31fb..6dd6709ef4 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 @@ -30,7 +30,7 @@ suite("query35") { 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' + sql 'set dump_nereids_memo=false' def ds = """select ca_state, cd_gender, 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 2cc21b564d..02dbe8cecc 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 @@ -30,7 +30,7 @@ suite("query36") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query37.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query37.groovy index 6e93b1ae1a..9163c80bd2 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 @@ -30,7 +30,7 @@ suite("query37") { 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' + sql 'set dump_nereids_memo=false' def ds = """select i_item_id ,i_item_desc ,i_current_price 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 63951c5110..965c45576e 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 @@ -30,7 +30,7 @@ suite("query38") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query39.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query39.groovy index cc3130829b..e41e232567 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 @@ -30,7 +30,7 @@ suite("query39") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query4.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query4.groovy index 363b6019b7..e70f2f6807 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 @@ -30,7 +30,7 @@ suite("query4") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query40.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query40.groovy index bf3c8bcba5..f73e73d700 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 @@ -30,7 +30,7 @@ suite("query40") { 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' + sql 'set dump_nereids_memo=false' def ds = """select w_state ,i_item_id 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 2da38b937e..870e14f371 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 @@ -30,7 +30,7 @@ suite("query41") { 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' + sql 'set dump_nereids_memo=false' def ds = """select distinct(i_product_name) from item i1 where i_manufact_id between 704 and 704+40 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 2e742a6d5d..a01f7df42a 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 @@ -30,7 +30,7 @@ suite("query42") { 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' + sql 'set dump_nereids_memo=false' def ds = """select dt.d_year ,item.i_category_id ,item.i_category 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 895117ba23..b5fbf2041a 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 @@ -30,7 +30,7 @@ suite("query43") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query44.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query44.groovy index ee63467db2..09997e9d85 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 @@ -30,7 +30,7 @@ suite("query44") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query45.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query45.groovy index 2dc555b0e7..4f9bd0254c 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 @@ -30,7 +30,7 @@ suite("query45") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query46.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query46.groovy index 6352c0cd44..12c4f884cd 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 @@ -30,7 +30,7 @@ suite("query46") { 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' + sql 'set dump_nereids_memo=false' def ds = """select c_last_name ,c_first_name ,ca_city 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 65bdaa77b4..a07003aaad 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 @@ -30,7 +30,7 @@ suite("query47") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query48.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query48.groovy index 29aa2dd0dd..2efe971c71 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 @@ -30,7 +30,7 @@ suite("query48") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query49.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query49.groovy index 48a8ce0740..e3dba83118 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 @@ -30,7 +30,7 @@ suite("query49") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query5.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query5.groovy index 230a1f766b..28d199b6f5 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 @@ -30,7 +30,7 @@ suite("query5") { 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' + sql 'set dump_nereids_memo=false' def ds = """with ssr as (select s_store_id, sum(sales_price) as sales, 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 8518305731..0dda1a1ae7 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 @@ -30,7 +30,7 @@ suite("query50") { 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' + sql 'set dump_nereids_memo=false' def ds = """select s_store_name ,s_company_id 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 e5c49b81df..67870f80fd 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 @@ -30,7 +30,7 @@ suite("query51") { 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' + sql 'set dump_nereids_memo=false' def ds = """WITH web_v1 as ( select ws_item_sk item_sk, d_date, 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 747015b139..969ebf2f5b 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 @@ -30,7 +30,7 @@ suite("query52") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query53.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query53.groovy index 44f6b9298c..816669c313 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 @@ -30,7 +30,7 @@ suite("query53") { 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' + sql 'set dump_nereids_memo=false' def ds = """select * from (select i_manufact_id, sum(ss_sales_price) sum_sales, 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 3d5cb32046..86c37f2df9 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 @@ -30,7 +30,7 @@ suite("query54") { 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' + sql 'set dump_nereids_memo=false' def ds = """with my_customers as ( select distinct c_customer_sk , c_current_addr_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 17969c92cb..3b4a9a0062 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 @@ -30,7 +30,7 @@ suite("query55") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query56.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query56.groovy index 383cafa5e0..5e9e546502 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 @@ -30,7 +30,7 @@ suite("query56") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query57.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query57.groovy index e3e19c808f..5e7e7fc855 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 @@ -30,7 +30,7 @@ suite("query57") { 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' + sql 'set dump_nereids_memo=false' def ds = """with v1 as( select i_category, i_brand, cc_name, 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 3539d9544b..28f39fda58 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 @@ -30,7 +30,7 @@ suite("query58") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query59.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query59.groovy index 47bff37015..5fcc50a0cb 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 @@ -30,7 +30,7 @@ suite("query59") { 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' + sql 'set dump_nereids_memo=false' def ds = """with wss as (select d_week_seq, ss_store_sk, 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 4fb62187bc..10660670c8 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 @@ -30,7 +30,7 @@ suite("query6") { 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' + sql 'set dump_nereids_memo=false' def ds = """select a.ca_state state, count(*) cnt from customer_address a ,customer c 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 461e65ed72..e030fa0a23 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 @@ -30,7 +30,7 @@ suite("query60") { 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' + sql 'set dump_nereids_memo=false' 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/query61.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query61.groovy index 7ed7c6a525..503e273326 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 @@ -30,7 +30,7 @@ suite("query61") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query62.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query62.groovy index 49aa286865..93964a6ca0 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 @@ -30,7 +30,7 @@ suite("query62") { 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' + sql 'set dump_nereids_memo=false' def ds = """select substr(w_warehouse_name,1,20) ,sm_type 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 621d5f8908..f96b85bb9e 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 @@ -30,7 +30,7 @@ suite("query63") { 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' + sql 'set dump_nereids_memo=false' def ds = """select * from (select i_manager_id ,sum(ss_sales_price) sum_sales 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 55190653ec..7fcfa8afb5 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 @@ -30,7 +30,7 @@ suite("query64") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query65.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query65.groovy index ebbeea8abd..b2dd10b4bc 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 @@ -30,7 +30,7 @@ suite("query65") { 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' + sql 'set dump_nereids_memo=false' def ds = """select s_store_name, i_item_desc, 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 5fe60e2cab..875148a86c 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 @@ -30,7 +30,7 @@ suite("query66") { 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' + sql 'set dump_nereids_memo=false' def ds = """select w_warehouse_name ,w_warehouse_sq_ft 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 b770846d3e..8ee3badac9 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 @@ -30,7 +30,7 @@ suite("query67") { 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' + sql 'set dump_nereids_memo=false' def ds = """select * from (select i_category ,i_class 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 0d6f6e95e2..b0ea47bb51 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 @@ -30,7 +30,7 @@ suite("query68") { 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' + sql 'set dump_nereids_memo=false' def ds = """select c_last_name ,c_first_name ,ca_city 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 e5566c3a9b..3cdbe68296 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 @@ -30,7 +30,7 @@ suite("query69") { 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' + sql 'set dump_nereids_memo=false' def ds = """select cd_gender, cd_marital_status, 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 8b7fd9175f..a86e87323b 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 @@ -30,7 +30,7 @@ suite("query7") { 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' + sql 'set dump_nereids_memo=false' def ds = """select i_item_id, avg(ss_quantity) agg1, avg(ss_list_price) agg2, 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 1cf13e956b..cddbbad4f3 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 @@ -30,7 +30,7 @@ suite("query70") { 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' + sql 'set dump_nereids_memo=false' def ds = """select sum(ss_net_profit) as total_sum ,s_state 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 10f7a8be9c..67c4b2c72f 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 @@ -30,7 +30,7 @@ suite("query71") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query72.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query72.groovy index 4f9a018e2e..d7d29fa74c 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 @@ -30,7 +30,7 @@ suite("query72") { 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' + sql 'set dump_nereids_memo=false' def ds = """select i_item_desc ,w_warehouse_name ,d1.d_week_seq 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 5544873083..4a34653957 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 @@ -30,7 +30,7 @@ suite("query73") { 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' + sql 'set dump_nereids_memo=false' def ds = """select c_last_name ,c_first_name ,c_salutation 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 f42dc7c6a4..4a26c2648e 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 @@ -30,7 +30,7 @@ suite("query74") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query75.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query75.groovy index 9eeb254104..f9be13cc96 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 @@ -30,7 +30,7 @@ suite("query75") { 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' + sql 'set dump_nereids_memo=false' def ds = """WITH all_sales AS ( SELECT d_year ,i_brand_id 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 bf5f4c8d97..52c6e6b771 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 @@ -30,7 +30,7 @@ suite("query76") { 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' + sql 'set dump_nereids_memo=false' 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 FROM store_sales, item, date_dim 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 45693e6f1b..02bdd22af3 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 @@ -30,7 +30,7 @@ suite("query77") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query78.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query78.groovy index 7a8b57e767..00ffaec948 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 @@ -30,7 +30,7 @@ suite("query78") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query79.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query79.groovy index fde72e0859..2051eab4fb 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 @@ -30,7 +30,7 @@ suite("query79") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query8.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query8.groovy index e8f8e6f4b0..80e5d51ed4 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 @@ -30,7 +30,7 @@ suite("query8") { 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' + sql 'set dump_nereids_memo=false' def ds = """select s_store_name ,sum(ss_net_profit) from store_sales 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 64e7f913ed..1a2580ca5a 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 @@ -30,7 +30,7 @@ suite("query80") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query81.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query81.groovy index f058cff75e..407f1e3f71 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 @@ -30,7 +30,7 @@ suite("query81") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query82.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query82.groovy index 49ca2c51e3..d69f74d004 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 @@ -30,7 +30,7 @@ suite("query82") { 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' + sql 'set dump_nereids_memo=false' def ds = """select i_item_id ,i_item_desc ,i_current_price 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 2f0de7342b..a9fc04b273 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 @@ -30,7 +30,7 @@ suite("query83") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query84.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query84.groovy index a69dd44fb3..76b269131c 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 @@ -30,7 +30,7 @@ suite("query84") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query85.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query85.groovy index 3ef45ade8b..c7a6121e3e 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 @@ -30,7 +30,7 @@ suite("query85") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query86.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query86.groovy index 6803b4b594..6ebfdc8d18 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 @@ -30,7 +30,7 @@ suite("query86") { 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' + sql 'set dump_nereids_memo=false' def ds = """select sum(ws_net_paid) as total_sum ,i_category 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 6a7e665ea4..6cb1243739 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 @@ -30,7 +30,7 @@ suite("query87") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query88.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query88.groovy index 401af85bd6..0a2786236a 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 @@ -30,7 +30,7 @@ suite("query88") { 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' + sql 'set dump_nereids_memo=false' def ds = """select * from (select count(*) h8_30_to_9 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 8e654061dc..34a0521f6b 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 @@ -30,7 +30,7 @@ suite("query89") { 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' + sql 'set dump_nereids_memo=false' def ds = """select * from( select i_category, i_class, i_brand, 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 8110bc942b..17b42f2cde 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 @@ -30,7 +30,7 @@ suite("query9") { 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' + sql 'set dump_nereids_memo=false' def ds = """select case when (select count(*) from store_sales where ss_quantity between 1 and 20) > 1071 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 1a6743a7d6..990f71d96d 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 @@ -30,7 +30,7 @@ suite("query90") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query91.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query91.groovy index fe2e497bc2..1195f26e70 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 @@ -30,7 +30,7 @@ suite("query91") { 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' + sql 'set dump_nereids_memo=false' def ds = """select cc_call_center_id Call_Center, cc_name Call_Center_Name, 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 181cdfb32a..835d38fbe3 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 @@ -30,7 +30,7 @@ suite("query92") { 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' + sql 'set dump_nereids_memo=false' def ds = """select sum(ws_ext_discount_amt) as "Excess Discount Amount" from 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 c03b904607..2856dbf7c5 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 @@ -30,7 +30,7 @@ suite("query93") { 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' + sql 'set dump_nereids_memo=false' def ds = """select ss_customer_sk ,sum(act_sales) sumsales from (select ss_item_sk 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 bbbdca8c7e..a9620dbe6e 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 @@ -30,7 +30,7 @@ suite("query94") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query95.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query95.groovy index eda70ba6ed..1fe9952aec 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 @@ -30,7 +30,7 @@ suite("query95") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query96.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query96.groovy index b296603c79..950a3e5ae3 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 @@ -30,7 +30,7 @@ suite("query96") { 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' + sql 'set dump_nereids_memo=false' def ds = """select count(*) from store_sales ,household_demographics 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 93b3e29d90..10680c82bc 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 @@ -30,7 +30,7 @@ suite("query97") { 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' + sql 'set dump_nereids_memo=false' 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_sf1000_p0/shape/query98.groovy b/regression-test/suites/nereids_tpcds_shape_sf1000_p0/shape/query98.groovy index 118b1fd6cc..c2521358fe 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 @@ -30,7 +30,7 @@ suite("query98") { 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' + sql 'set dump_nereids_memo=false' def ds = """select i_item_id ,i_item_desc ,i_category 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 e560299d8a..60f0d19d8b 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 @@ -30,7 +30,7 @@ suite("query99") { 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' + sql 'set dump_nereids_memo=false' def ds = """select substr(w_warehouse_name,1,20) ,sm_type