pub fn and(lhs: ExprRef, rhs: ExprRef) -> ExprRefExpand description
Create a new BinaryExpr using the And operator.
ยงExample usage
use vortex_array::array::BoolArray;
use vortex_array::{IntoArrayData, IntoArrayVariant};
use vortex_expr::{and, ident, lit};
let xs = BoolArray::from_iter(vec![true, false, true]).into_array();
let result = and(ident(), lit(true)).evaluate(&xs).unwrap();
assert_eq!(
result.into_bool().unwrap().boolean_buffer(),
BoolArray::from_iter(vec![true, false, true]).boolean_buffer(),
);