[ARRAY] fix array with null/null

This commit is contained in:
helloamateur 2024-12-16 17:15:33 +00:00 committed by ob-robot
parent c448567ff8
commit 3724a8f402

View File

@ -153,7 +153,8 @@ int ObExprArrayMap::calc_result_typeN(ObExprResType& type,
LOG_WARN("failed to set null collection", K(ret));
}
} else {
if (types_stack[0].get_type() == ObDecimalIntType || types_stack[0].get_type() == ObNumberType) {
if (types_stack[0].get_type() == ObDecimalIntType || types_stack[0].get_type() == ObNumberType ||
types_stack[0].get_type() == ObUNumberType) {
// decimalint isn't supported in array, so cast to supported type
ObObjType calc_type = ObIntType;
if (types_stack[0].get_scale() != 0) {