feiniaofeiafei commented on code in PR #61074:
URL: https://github.com/apache/doris/pull/61074#discussion_r2893500539
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/SplitMultiDistinctStrategy.java:
##########
@@ -60,6 +60,7 @@ public static Plan rewrite(LogicalAggregate<? extends Plan>
agg, DistinctSelecto
.deepCopy(agg, new DeepCopierContext());
LogicalCTEProducer<Plan> producer = new
LogicalCTEProducer<>(ctx.statementContext.getNextCTEId(),
cloneAgg.child());
+ ctx.statementContext.setCteProducer(producer.getCteId(), producer);
ctx.cteProducerList.add(producer);
StatsDerive derive = new StatsDerive(false);
producer.accept(derive, new DeriveContext());
Review Comment:
these rows can be removed "
StatsDerive derive = new StatsDerive(false);
producer.accept(derive, new DeriveContext());
"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]