fix error code of count(distinct roaringbitmap)
This commit is contained in:
@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user