pub fn normalized(
form: NormalForm,
negated: bool,
v: &ValueVector,
out: &mut Bitmap,
) -> Result<()>Expand description
Write v IS [NOT] NORMALIZED form into out, which must be sized to
the vector and cleared.
The negation is carried in rather than done afterwards, and that is
not a shortcut but the only correct place for it. A predicate over a
column of three-valued logic is a bitmap of the rows that passed, so
a null row is off in the bitmap; taking the complement of the bitmap
would turn every null row into a row that passed, and a null is not
normalized and is not unnormalized either. Deciding the row here and
masking the nulls off afterwards answers IS NOT NORMALIZED the way
the row engine answers it, which is why there is no general NOT over
a predicate register anywhere in this crate.