Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
not in datafusion::common::arrow::compute - Rust
[go: Go Back, main page]

Function not

Source
pub fn not(left: &BooleanArray) -> Result<BooleanArray, ArrowError>
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

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