Function arrow::compute::kernels::boolean::not[][src]

pub fn not(left: &BooleanArray) -> Result<BooleanArray>
Expand description

Performs unary NOT operation on an arrays. If value is null then the result is also null.

Error

This function never errors. It returns an error for consistency.

Example

use arrow::array::BooleanArray;
use arrow::error::Result;
use arrow::compute::kernels::boolean::not;
let a = BooleanArray::from(vec![Some(false), Some(true), None]);
let not_a = not(&a)?;
assert_eq!(not_a, BooleanArray::from(vec![Some(true), Some(false), None]));