Skip to main content

scalar_cmp

Function scalar_cmp 

Source
pub fn scalar_cmp(
    lhs: &Scalar,
    rhs: &Scalar,
    operator: CompareOperator,
) -> VortexResult<Scalar>
Expand description

Compares scalars with matching dtypes, ignoring nullability.

Returns null if either operand is null, and an error if the operand dtypes differ.