pub fn adjust_output_array(
data_type: &DataType,
array: Arc<dyn Array>,
) -> Result<Arc<dyn Array>, 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