revise some expr flags

This commit is contained in:
obdev 2022-12-23 09:37:58 +00:00 committed by ob-robot
parent 35eec7741d
commit 38846e73d6

View File

@ -204,6 +204,7 @@ int ObRawExprInfoExtractor::add_const(ObRawExpr &expr)
|| T_FUN_SYS_WRAPPER_INNER == expr.get_expr_type()
|| T_FUN_SYS_LAST_INSERT_ID == expr.get_expr_type()
|| T_FUN_SYS_TO_BLOB == expr.get_expr_type()
|| T_FUN_SYS_SYSDATE == expr.get_expr_type()
|| not_calculable_expr(expr)
|| (T_FUN_UDF == expr.get_expr_type()
&& !static_cast<ObUDFRawExpr&>(expr).is_deterministic()))) {
@ -524,8 +525,6 @@ int ObRawExprInfoExtractor::visit(ObSysFunRawExpr &expr)
|| T_FUN_SYS_PART_ID == expr.get_expr_type()
|| T_OP_GET_PACKAGE_VAR == expr.get_expr_type()
|| T_OP_GET_SUBPROGRAM_VAR == expr.get_expr_type()
|| T_FUN_SYS_USER == expr.get_expr_type()
|| T_FUN_SYS_UID == expr.get_expr_type()
|| (T_FUN_SYS_SYSDATE == expr.get_expr_type() && !lib::is_oracle_mode())
|| T_FUN_SYS_SLEEP == expr.get_expr_type()
|| T_FUN_NORMAL_UDF == expr.get_expr_type()