pub fn not_eq(lhs: ExprRef, rhs: ExprRef) -> ExprRef
Expand description
Create a new BinaryExpr
using the NotEq
operator.
ยงExample usage
let xs = PrimitiveArray::new(buffer![1i32, 2i32, 3i32], Validity::NonNullable);
let result = not_eq(root(), lit(3)).evaluate(&Scope::new(xs.to_array())).unwrap();
assert_eq!(
result.to_bool().boolean_buffer(),
BoolArray::from_iter(vec![true, true, false]).boolean_buffer(),
);