diff --git a/src/sql/resolver/expr/ob_raw_expr.cpp b/src/sql/resolver/expr/ob_raw_expr.cpp index 1e46e6f4f1..76b0c1aabc 100644 --- a/src/sql/resolver/expr/ob_raw_expr.cpp +++ b/src/sql/resolver/expr/ob_raw_expr.cpp @@ -3330,6 +3330,7 @@ bool ObAggFunRawExpr::inner_same_as( if (order_items_.count() == a_expr->order_items_.count()) { for (int64_t i = 0; bool_ret && i < order_items_.count(); ++i) { if(OB_ISNULL(order_items_.at(i).expr_) || OB_ISNULL(a_expr->order_items_.at(i).expr_) + || order_items_.at(i).order_type_ != a_expr->order_items_.at(i).order_type_ || !order_items_.at(i).expr_->same_as(*(a_expr->order_items_.at(i).expr_), check_context)) { bool_ret = false; }