[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

@ -4519,7 +4519,8 @@ bool ObUDFRawExpr::inner_same_as(const ObRawExpr &expr,
bool bool_ret = true;
if (this == &expr) {
// do nothing
} else if (NULL != check_context && check_context->need_check_deterministic_ && !is_deterministic()) {
} else if (!is_deterministic() && (NULL == check_context ||
(NULL != check_context && check_context->need_check_deterministic_))) {
bool_ret = false;
} else if (!ObSysFunRawExpr::inner_same_as(expr, check_context)) {
bool_ret = false;