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
and in datafusion::common::arrow::compute - Rust
[go: Go Back, main page]

Function and

Source
pub fn and(
    left: &BooleanArray,
    right: &BooleanArray,
) -> Result<BooleanArray, ArrowError>
Expand description

Performs AND 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

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