default rownum not allowed and fix obj deserialize bug

This commit is contained in:
sdc
2023-06-01 12:42:00 +00:00
committed by ob-robot
parent d83fc8474e
commit 623c7d90aa
4 changed files with 19 additions and 33 deletions

View File

@ -4763,6 +4763,9 @@ int ObResolverUtils::resolve_default_expr_v2_column_expr(ObResolverParams &param
LOG_USER_ERROR(OB_ERR_BAD_FIELD_ERROR, col_name.length(), col_name.ptr(), scope_name.length(), scope_name.ptr());
} else if (OB_FAIL(expr->formalize(session_info))) {
LOG_WARN("formalize expr failed", K(ret));
} else if (OB_UNLIKELY(expr->has_flag(CNT_ROWNUM))) {
ret = OB_ERR_CBY_PSEUDO_COLUMN_NOT_ALLOWED;
LOG_WARN("rownum in default value is not allowed", K(ret));
} else {
LOG_DEBUG("succ to resolve_default_expr_v2_column_expr",
"is_const_expr", expr->is_const_raw_expr(),