Skip to main content

reads_across_series

Function reads_across_series 

Source
pub fn reads_across_series(node: &NativeNode) -> bool
Expand description

Whether node reads the whole input vector at a point rather than one series at a time.

An Aggregate folds every series of its group, whether its argument is bound or read per point, a Binary and a Set pair two vectors’ series by label, an Info looks the info series of each series up by its identifying labels, and a Vector operation (sort, absent, topk, limitk, histogram_quantile, …) reorders or reads the whole vector at a grid point.

Merge answers one series per label set, and the label sets it answers span every input series: two of them can collapse into the one it emits. It is therefore whole-vector too, which is why it also cannot be moved below a boundary that holds only part of a metric. Everything else - an input, a scalar, a selection, a window, a map, and a binary operation with a constant on one side, whose broadcast reaches each series the other side answers - answers one series from one series’ rows.

Both a region-side placement and the native route’s admission ask this, and they must agree: a tree admitted here but refused there becomes a node the physical layer cannot build, and one refused here but admitted there would be pushed to a region that holds part of the metric.

The walk asks the facts-free form of unifies_its_own_contributions: a placement reads a tree without the binding that says which metric each of its inputs reads, and every reader of this answer - the admission below, the region-side classification and the locality of a built node - asks it of the same tree, so the conservative answer is the one that keeps them agreeing.