pub fn or(
lhs: &BooleanArray,
rhs: &BooleanArray
) -> Result<BooleanArray, ArrowError>
This is supported on crate feature
compute_boolean_kleene
only.Expand description
Logical ‘or’ operation on two arrays with Kleene logic
Errors
This function errors if the operands have different lengths.
Example
use arrow2::array::BooleanArray;
use arrow2::compute::boolean_kleene::or;
let a = BooleanArray::from(&[Some(true), Some(false), None]);
let b = BooleanArray::from(&[None, None, None]);
let or_ab = or(&a, &b)?;
assert_eq!(or_ab, BooleanArray::from(&[Some(true), None, None]));