Function arrow::datatypes::validate_decimal_precision_and_scale
source ยท pub fn validate_decimal_precision_and_scale<T>(
precision: u8,
scale: i8,
) -> Result<(), ArrowError>where
T: DecimalType,
Expand description
Validate that precision
and scale
are valid for T
Returns an Error if:
precision
is zeroprecision
is larger thanT:MAX_PRECISION
scale
is larger thanT::MAX_SCALE
scale
is >precision