(
value: T::Native,
precision: u8,
scale: i8,
)
| 81 | } |
| 82 | |
| 83 | fn validate_decimal_precision<T: DecimalType>( |
| 84 | value: T::Native, |
| 85 | precision: u8, |
| 86 | scale: i8, |
| 87 | ) -> Result<T::Native, ArrowError> { |
| 88 | T::validate_decimal_precision(value, precision, scale).map_err(|e| { |
| 89 | ArrowError::ComputeError(format!( |
| 90 | "Decimal overflow: rounded value exceeds precision {precision}: {e}" |
| 91 | )) |
| 92 | })?; |
| 93 | Ok(value) |
| 94 | } |
| 95 | |
| 96 | fn calculate_new_precision_scale<T: DecimalType>( |
| 97 | precision: u8, |
no outgoing calls
no test coverage detected
searching dependent graphs…