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

@ -51,7 +51,7 @@ int ObExprRegexpCount::calc_result_typeN(ObExprResType &type,
LOG_WARN("param number of regexp_count at least 2 and at most 4", K(ret), K(param_num));
} else {
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));
}