pub fn is_not_null(input: &dyn Array) -> BooleanArray
Available on crate feature compute_boolean only.
Expand description

Returns a non-null BooleanArray with whether each value of the array is not null.

Example

use arrow2::array::BooleanArray;
use arrow2::compute::boolean::is_not_null;

let a = BooleanArray::from(&vec![Some(false), Some(true), None]);
let a_is_not_null = is_not_null(&a);
assert_eq!(a_is_not_null, BooleanArray::from_slice(&vec![true, true, false]));