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 π
- Split
Trees - 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-
Completeaggregate, aquantile(no fixed-width state), and aby(...)naming a value field or the time index. - declined π
- enter_
suffix π - Puts
mergedat 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 aby(...)naming a value field would name. The split tree reads exactly one source. - split π
- Splits the innermost aggregate out of
node;Ok(None)whennodeholds no aggregate. - suffix_
carries π - Whether
enter_suffixrebuilds this subtree from constants alone. It accepts a subset of the shapesenter_suffixbuilds; a shape outside them would become anInternalerror there.