Function datafusion_physical_expr_common::aggregate::utils::adjust_output_array
source ยท pub fn adjust_output_array(
data_type: &DataType,
array: ArrayRef,
) -> Result<ArrayRef>Expand description
Adjust array type metadata if needed
Since Decimal128Arrays created from Vec<NativeType> have
default precision and scale, this function adjusts the output to
match data_type, if necessary