gt

Function gt 

Source
pub fn gt(lhs: ExprRef, rhs: ExprRef) -> ExprRef
Expand description

Create a new BinaryExpr using the Gt operator.

ยงExample usage

let xs = PrimitiveArray::new(buffer![1i32, 2i32, 3i32], Validity::NonNullable);
let result = gt(root(), lit(2)).evaluate(&Scope::new(xs.to_array())).unwrap();

assert_eq!(
    result.to_bool().boolean_buffer(),
    BoolArray::from_iter(vec![false, false, true]).boolean_buffer(),
);