[fix](nereids)4 phase agg may lost parameter in some case (#34816)

This commit is contained in:
starocean999
2024-05-15 17:54:30 +08:00
committed by yiguolei
parent 5719f6ff0c
commit 8264078a9a
2 changed files with 3 additions and 1 deletions

View File

@ -1766,7 +1766,7 @@ public class AggregateStrategies implements ImplementationRuleFactory {
AggregateFunction nonDistinct = aggregateFunction
.withDistinctAndChildren(false, ImmutableList.copyOf(aggChild));
AggregateExpression nonDistinctAggExpr = new AggregateExpression(nonDistinct,
distinctLocalParam, aggregateFunction.child(0));
distinctLocalParam, aggregateFunction);
return nonDistinctAggExpr;
} else {
needUpdateSlot.add(aggregateFunction);