fix error code of count(distinct roaringbitmap)

This commit is contained in:
qijiax
2024-07-12 10:32:14 +00:00
committed by ob-robot
parent 90584a3814
commit 02e684c3a2
9 changed files with 35 additions and 9 deletions

View File

@ -71,7 +71,7 @@ int ObExprRegexpReplace::calc_result_typeN(ObExprResType &type,
} else {
const ObExprResType &text = real_text->get_result_type();
for (int i = 0; OB_SUCC(ret) && i < param_num; i++) {
if (!types[i].is_null() && !is_type_valid(types[i].get_type())) {
if (!types[i].is_null() && !is_type_valid_regexp(types[i].get_type())) {
ret = OB_INVALID_ARGUMENT;
LOG_WARN("the parameter is not castable", K(ret), K(i));
}