fn rescale_scalar<T: ArrowPrimitiveType>(
array: &PrimitiveArray<T>,
is_scalar: bool,
mul: T::Native,
) -> Option<PrimitiveArray<T>>where
T::Native: OverflowingOp,Expand description
Multiplies the value of the decimal scalar array by mul, so that the
kernel doesn’t rescale it on every row.
Returns None if array isn’t a valid scalar, mul is one, the product
overflows, or its allocation fails. The kernel then rescales the scalar on
every row, so that an overflow is an error only if a valid row needs the
value, and an allocation failure reaches the kernel’s fallible reservation.