Function arrow::compute::subtract

source ·
pub fn subtract<T>(
    left: &PrimitiveArray<T>,
    right: &PrimitiveArray<T>
) -> Result<PrimitiveArray<T>, ArrowError>where
    T: ArrowNumericType,
Expand description

Perform left - right operation on two arrays. If either left or right value is null then the result is also null.

This doesn’t detect overflow. Once overflowing, the result will wrap around. For an overflow-checking variant, use subtract_checked instead.