Skip to main content

binary

Function binary 

Source
pub fn binary(
    arena: &mut MorselArena,
    op: BinOp,
    l: &ValueVector,
    r: &ValueVector,
    sel: Option<&SelVector>,
) -> Result<ValueVector>
Expand description

Evaluate l op r into a new flat vector. The full vector is computed regardless of selection: the loop is branch-free and cheaper than gathering, and selections keep their meaning positionally.

sel is the chunk’s selection, which says which rows are the query’s. It is what the conditions are raised over and nothing else reads it, so a caller with every row in hand passes None.