pub(crate) fn state_chunk_from_partial(
partial: PartialAggregate,
state_schema: Arc<AggregateStateSchema>,
op: &BoundAggregate,
) -> Result<StateChunk>Expand description
Hands one partition’s kernel state over as the frame state a consumer reads.
The fold already builds the frame’s own representation - field-major states on sparse absolute grid positions - so this moves the groups. It copies nothing: the charge the fold reported for those groups is the charge the chunk keeps.