Function arrow_arith::boolean::is_not_null

source ·
pub fn is_not_null(input: &dyn Array) -> Result<BooleanArray, ArrowError>
Expand description

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

§Error

This function never errors.

§Example

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