pub fn pack_aggregate_state(
source: SendableStateSeriesStream,
state: Arc<AggregateStateSchema>,
schema: Arc<SeriesSchema>,
) -> Result<DfSendableRecordBatchStream>Expand description
Packs aggregate-state chunks into bounded DataFusion record batches.
The producer supplies one [StateSeries] per group chunk; the cursor columnarises it into the
frame once. Aggregate state requires a grid, explicit labels and contiguous ordering. The state
schema is revalidated with its own constructor before any stream is returned.