[bugfix] fix shared expr related problems

This commit is contained in:
obdev
2023-03-02 17:08:04 +00:00
committed by ob-robot
parent 528a51f718
commit 8752faba5e
16 changed files with 77 additions and 160 deletions

View File

@ -1422,7 +1422,7 @@ int ObTransformSimplifySubquery::groupby_can_be_eliminated_in_any_all(const ObSe
ret = OB_INVALID_ARGUMENT;
LOG_WARN("select list expr is NULL", K(ret));
} else if ((s_expr)->has_flag(CNT_COLUMN)) {
if (!ObOptimizerUtil::find_equal_expr(stmt->get_group_exprs(), s_expr)) {
if (!ObOptimizerUtil::find_item(stmt->get_group_exprs(), s_expr)) {
all_in_group_exprs = false;
} else { /* do nothing */ }
} else { /* do nothing */ }