bugfix: keep func extracted shared expr wrongly

This commit is contained in:
obdev
2023-05-29 12:47:05 +00:00
committed by ob-robot
parent 2529123af5
commit 2ecf1f811d

View File

@ -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;
}