Returns a Decimal array with the same data as self, with the specified precision and scale. See [`validate_decimal_precision_and_scale`]
(self, precision: u8, scale: i8)
| 1613 | /// |
| 1614 | /// See [`validate_decimal_precision_and_scale`] |
| 1615 | pub fn with_precision_and_scale(self, precision: u8, scale: i8) -> Result<Self, ArrowError> { |
| 1616 | validate_decimal_precision_and_scale::<T>(precision, scale)?; |
| 1617 | Ok(Self { |
| 1618 | data_type: T::TYPE_CONSTRUCTOR(precision, scale), |
| 1619 | ..self |
| 1620 | }) |
| 1621 | } |
| 1622 | |
| 1623 | /// Validates values in this array can be properly interpreted |
| 1624 | /// with the specified precision. |
no outgoing calls