fn zip_primitive_with_scalar(
mask: &BooleanArray,
array: &dyn Array,
scalar: &dyn Array,
scalar_is_truthy: bool,
) -> Option<Result<ArrayRef, ArrowError>>Expand description
zip of a primitive array with a scalar on the other side, or None for the types it
does not handle. scalar_is_truthy says which side the scalar is on.
The output values are a select per row between the array’s value and the scalar’s, and its
null buffer has a closed form, so no row goes through [MutableArrayData]. With a null
scalar the values under the scalar’s rows are never read, so the array’s values buffer is
shared as it is.