pub(crate) fn check_cut(
op: &BoundAggregate,
fields: &[FieldSpec],
time_index: &str,
) -> Result<()>Expand description
Refuses an aggregate whose state the split cannot carry, and one grouped by a value field.
Only the eight fixed-width accumulators are carried: a quantile’s state is the group’s samples, and
a non-Complete stage is a state or a merge rather than an answer. A by(...) naming a value field
or the time index cannot be kept either - the state rows are indexed by field and by grid point,
so a group that varies with either is not a group - while a label the input does not have is
simply absent, exactly as it is in the existing planner.