[Fix] fix compile problem (#34184)

fix compile problem in branch-2.1
This commit is contained in:
feiniaofeiafei
2024-04-26 17:57:16 +08:00
committed by GitHub
parent 10e098845d
commit 90040e7f92

View File

@ -146,7 +146,7 @@ public class MergeAggregate implements RewriteRuleFactory {
(existValue, newValue) -> existValue));
Set<AggregateFunction> aggregateFunctions = outerAgg.getAggregateFunctions();
List<AggregateFunction> replacedAggFunctions = projectOptional.map(project ->
(List<AggregateFunction>) PlanUtils.replaceExpressionByProjections(
(List<AggregateFunction>) (List) PlanUtils.replaceExpressionByProjections(
projectOptional.get().getProjects(), new ArrayList<>(aggregateFunctions)))
.orElse(new ArrayList<>(aggregateFunctions));
for (AggregateFunction outerFunc : replacedAggFunctions) {