Skip to main content

evaluate_leaf

Function evaluate_leaf 

Source
pub fn evaluate_leaf(
    row: &QueryRow,
    predicate: &SSTablePredicate,
) -> LeafOutcome
Expand description

Evaluate a single SSTable leaf predicate against one QueryRow with SQL three-valued (Kleene) semantics.

Returns LeafOutcome::Unknown when the predicate’s column is absent from the row or its value is Null; otherwise a definite True/False from the typed comparison. This is the finer-grained primitive underlying both evaluate_predicates (pure AND, where Unknown rejects like False) and the Flight nested-predicate evaluator (issue #834), so all three paths share one copy of the comparison logic (values_equal / compare_values_ordering).

IN and Prefix follow evaluate_predicates: IN is membership over the value list, Prefix is a text starts_with. Range (two-bound) is included for completeness even though Flight lowers single bounds to Gt/Lt/etc. BloomFilter is always True (checked upstream).