Function datafusion_physical_expr::aggregate::utils::adjust_output_array
source · pub fn adjust_output_array(
data_type: &DataType,
array: ArrayRef
) -> Result<ArrayRef, DataFusionError>
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