Fix error info bug

This commit is contained in:
2149
2023-07-24 11:49:02 +00:00
committed by ob-robot
parent 5498380d35
commit 95018ccb1d
2 changed files with 15 additions and 3 deletions

View File

@ -1838,7 +1838,13 @@ int ObRawExprUtils::check_deterministic_single(const ObRawExpr *expr,
int ret = OB_SUCCESS;
CK (OB_NOT_NULL(expr));
if (OB_SUCC(ret) && ObResolverUtils::DISABLE_CHECK != check_status) {
if (expr->is_sys_func_expr()) {
if (is_oracle_mode()
&& (T_FUN_SYS_DEFAULT == expr->get_expr_type()
|| T_OP_IS == expr->get_expr_type())) {
ret = OB_NOT_SUPPORTED;
LOG_USER_ERROR(OB_NOT_SUPPORTED, "Use special functions in generated columns");
LOG_WARN("special function is not suppored in generated column", K(ret), KPC(expr));
} else if (expr->is_sys_func_expr()) {
bool is_non_pure_func = false;
if (OB_FAIL(expr->is_non_pure_sys_func_expr(is_non_pure_func))) {
LOG_WARN("check is non pure sys func expr failed", K(ret));