starocean999 commented on code in PR #56256:
URL: https://github.com/apache/doris/pull/56256#discussion_r2425355981
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java:
##########
@@ -4121,6 +4121,13 @@ protected LogicalPlan withSelectQuerySpecification(
List<OrderKey> orderKeys = Lists.newArrayList();
LogicalPlan aggregate = withAggregate(filter, selectColumnCtx,
aggClause, orderKeys);
boolean isDistinct = (selectClause.DISTINCT() != null);
+ if (!isDistinct) {
+ if (aggregate instanceof LogicalRepeat) {
+ ((LogicalRepeat) aggregate).setWithInProjection(false);
Review Comment:
create a new instance instead of updating member variable
--
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]