MCPcopy Create free account
hub / github.com/apache/arrow-rs / or

Function or

arrow-arith/src/boolean.rs:273–275  ·  view source on GitHub ↗

Performs `OR` operation on two arrays. If either left or right value is null then the result is also null. # Error This function errors when the arrays have different lengths. # Example ```rust # use arrow_array::BooleanArray; # use arrow_arith::boolean::or; let a = BooleanArray::from(vec![Some(false), Some(true), None]); let b = BooleanArray::from(vec![Some(true), Some(true), Some(false)]); let o

(left: &BooleanArray, right: &BooleanArray)

Source from the content-addressed store, hash-verified

271/// assert_eq!(or_ab, BooleanArray::from(vec![Some(true), Some(true), None]));
272/// ```
273pub fn or(left: &BooleanArray, right: &BooleanArray) -> Result<BooleanArray, ArrowError> {
274 binary_boolean_kernel(left, right, |a, b| a | b)
275}
276
277/// Performs `AND_NOT` operation on two arrays. If either left or right value is null then the
278/// result is also null.

Callers 8

bench_orFunction · 0.85
record_batchMethod · 0.85
buildMethod · 0.85
in_listMethod · 0.85
test_bool_array_orFunction · 0.85
test_bool_array_or_nullsFunction · 0.85

Calls 1

binary_boolean_kernelFunction · 0.85