Skip to main content

eval_comparison_truth

Function eval_comparison_truth 

Source
pub fn eval_comparison_truth(
    op: BinaryOp,
    l: &Value,
    r: &Value,
) -> Result<Option<bool>>
Expand description

Compare two values without allocating an intermediate Value::Bool.

None is SQL UNKNOWN (normally caused by NULL). Predicate executors use this form so comparisons and boolean composition stay in a compact tri-state representation throughout the row-filtering hot path.