Fix bit aggregate function redundant cast expr

This commit is contained in:
hezuojiao
2023-04-24 12:17:47 +00:00
committed by ob-robot
parent 349ecdf982
commit dad6688384

View File

@ -1368,7 +1368,7 @@ int ObRawExprDeduceType::visit(ObAggFunRawExpr &expr)
result_type.set_calc_type(result_type.get_type()); result_type.set_calc_type(result_type.get_type());
expr.set_result_type(result_type); expr.set_result_type(result_type);
ObObjTypeClass from_tc = child_expr->get_type_class(); ObObjTypeClass from_tc = child_expr->get_type_class();
need_add_cast = (ObUIntTC != from_tc); need_add_cast = (ObUIntTC != from_tc && ObIntTC != from_tc);
} }
break; break;
} }