[fix](Nereids) finalize local aggregate should not turn on stream pre agg (#13922)

This commit is contained in:
morrySnow
2022-11-03 11:08:06 +08:00
committed by GitHub
parent a4a991207b
commit 31d8fdd9e4

View File

@ -29,7 +29,8 @@ public class LogicalAggToPhysicalHashAgg extends OneImplementationRuleFactory {
public Rule build() {
return logicalAggregate().thenApply(ctx -> {
boolean useStreamAgg = !ctx.connectContext.getSessionVariable().disableStreamPreaggregations
&& !ctx.root.getGroupByExpressions().isEmpty();
&& !ctx.root.getGroupByExpressions().isEmpty()
&& !ctx.root.isFinalPhase();
return new PhysicalAggregate<>(
ctx.root.getGroupByExpressions(),
ctx.root.getOutputExpressions(),