Skip to main content

admit_prefix

Function admit_prefix 

Source
pub(crate) fn admit_prefix(root: &NativeNode) -> Result<()>
Expand description

Checks that the per-series prefix is a tree one partition can evaluate on its own.

The producer runs one execution per partition and folds exactly the series that partition’s scan returned, so the prefix has to answer one series from one series’ samples: maps are point-wise, a binary operation with a constant side applies that constant to each series its other side answers, and a window or an instant selection reads the raw input itself. A raw input means no evaluation grid - a tree whose input is already evaluated is a subquery’s, which one partition cannot evaluate.

A clamp whose maximum is below its minimum answers no value at all, so the fold would see a group with no sample of that field rather than the query the reader wrote.