[FEAT MERGE] Fix the error code loss and overwriting issues on the master branch

Co-authored-by: jingtaoye35 <1255153887@qq.com>
Co-authored-by: fkuner <784819644@qq.com>
Co-authored-by: lucky-sinx <2549261744@qq.com>
This commit is contained in:
hwx65
2024-06-17 13:46:15 +00:00
committed by ob-robot
parent 020eae1d2b
commit da5aece3e1
266 changed files with 661 additions and 347 deletions

View File

@ -404,7 +404,7 @@ int ObExprOperator::call(ObObj *stack, int64_t &stack_size, ObExprCtx &expr_ctx)
K_(row_dimension), K(input_types_.count()),
K(stack_size), K(ret));
}
if (OB_UNLIKELY(real_param_num_ < 0)) {
if (OB_SUCC(ret) && OB_UNLIKELY(real_param_num_ < 0)) {
ret = OB_ERR_UNEXPECTED;
LOG_ERROR("bug! real_param_num is less than 0", K_(name), K(get_type_name(type_)),
K_(type), K_(param_num), K_(real_param_num),