make state func not to be shared

This commit is contained in:
yinyj17
2023-09-13 13:44:14 +00:00
committed by ob-robot
parent e5822c705c
commit d3d95a19a3

View File

@ -3667,7 +3667,9 @@ bool ObSysFunRawExpr::inner_same_as(
T_FUN_SYS_RANDOM == get_expr_type() ||
T_FUN_SYS_GUID == get_expr_type() ||
T_OP_GET_USER_VAR == get_expr_type() ||
T_OP_GET_SYS_VAR == get_expr_type()) {
T_OP_GET_SYS_VAR == get_expr_type() ||
(has_flag(IS_STATE_FUNC) && (NULL == check_context ||
(NULL != check_context && check_context->need_check_deterministic_)))) {
} else if (get_expr_class() == expr.get_expr_class()) {
//for EXPR_UDF and EXPR_SYS_FUNC
const ObSysFunRawExpr *s_expr = static_cast<const ObSysFunRawExpr *>(&expr);