pub fn adjust_output_array(
data_type: &DataType,
array: Arc<dyn Array>,
) -> Result<Arc<dyn Array>, DataFusionError>👎Deprecated since 44.0.0: use PrimitiveArray::with_datatype
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