Skip to main content

Module split

Module split 

Source
Expand description

Where a native aggregate is split so two planes can run it.

A Complete aggregate is only correct when one execution reads every contribution. Over a partitioned raw-series scan, the innermost aggregate is split: the per-series prefix runs in each partition under a Partial aggregate, and the suffix above the cut runs over a Final aggregate of the merged state.

What cannot be split correctly is refused with [DataFusionError::NotImplemented], which the planner reads as β€œplan this query the existing way”.

StructsΒ§

Split πŸ”’
SplitTrees
A split aggregate as the two trees that run it.

FunctionsΒ§

admit_prefix πŸ”’
Checks that the prefix answers one series from one series’ samples: maps and constant-sided binaries over a window or instant selection of a raw input.
check_cut πŸ”’
Refuses a non-Complete aggregate, a quantile (no fixed-width state), and a by(...) naming a value field or the time index.
declined πŸ”’
enter_suffix πŸ”’
Puts merged at the cut and returns the suffix above it.
histogram_group_is_single πŸ”’
Whether every histogram-routing key of this aggregate is necessarily empty.
prefix_fields πŸ”’
The fields of the first raw input in tree, which a by(...) naming a value field would name. The split tree reads exactly one source.
split πŸ”’
Splits the innermost aggregate out of node; Ok(None) when node holds no aggregate.
suffix_carries πŸ”’
Whether enter_suffix rebuilds this subtree from constants alone. It accepts a subset of the shapes enter_suffix builds; a shape outside them would become an Internal error there.