[chore](test) let some case suitable for legacy planner and nereids (#33352)

This commit is contained in:
morrySnow
2024-04-09 08:51:33 +08:00
committed by yiguolei
parent a38b97fbdd
commit f35dd3fc35
6 changed files with 12 additions and 19 deletions

View File

@ -478,7 +478,8 @@ public class BindExpression implements AnalysisRuleFactory {
conjunct = TypeCoercionUtils.castIfNotSameType(conjunct, BooleanType.INSTANCE);
boundConjuncts.add(conjunct);
}
checkIfOutputAliasNameDuplicatedForGroupBy(boundConjuncts.build(), child.getOutput());
checkIfOutputAliasNameDuplicatedForGroupBy(boundConjuncts.build(),
child instanceof LogicalProject ? ((LogicalProject<?>) child).getOutputs() : child.getOutput());
return new LogicalHaving<>(boundConjuncts.build(), having.child());
}