From 2d8f63716c6208c46540244b0f4029f7d48ed1f7 Mon Sep 17 00:00:00 2001 From: 924060929 <924060929@qq.com> Date: Thu, 21 Mar 2024 20:19:00 +0800 Subject: [PATCH] fix --- .../apache/doris/nereids/rules/analysis/BindExpression.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/BindExpression.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/BindExpression.java index 2017006870f110..04ba599aa60d5b 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/BindExpression.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/BindExpression.java @@ -419,7 +419,8 @@ private LogicalHaving bindHavingAggregate( if (boundInAggFuncs.size() == 1) { return boundInAggFuncs; } - return analyzer.bindSlotByScope(unboundSlot, aggOutputScope); + + return bindByAggChild.get().bindSlot(analyzer, unboundSlot); }; });