pub fn check_precision<T: NativeDecimalType>(
values: &[T],
validity: &Mask,
decimal_dtype: DecimalDType,
) -> VortexResult<()>Expand description
Checks that every valid value fits the precision of decimal_dtype.
Null slots are not checked, so they can hold any value. The check takes a materialized
Mask, so it needs no execution context.
ยงErrors
Returns an error if validity and values have different lengths, or if a valid value is
outside the precision of decimal_dtype. The error names the first such row, its value and
decimal_dtype.