Function validate_decimal_precision_and_scale
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:
precisionis zeroprecisionis larger thanT:MAX_PRECISIONscaleis larger thanT::MAX_SCALEscaleis >precision