Skip to main content

unpack_evaluated_series

Function unpack_evaluated_series 

Source
pub fn unpack_evaluated_series(
    source: DfSendableRecordBatchStream,
    expected: Option<Arc<SeriesSchema>>,
) -> Result<SendableEvaluatedSeriesStream>
Expand description

Unpacks DataFusion batches declared by pack_evaluated_series.

The frame declares its grid, its field list, and its label mode, so the returned stream carries the [SeriesSchema] the rows are addressed on and needs no planning-side copy of it. The grid is the frame’s own declaration: the timestamps stay unmaterialized until a consumer asks for one.

A frame that declares raw samples, keyed identity, or an ordering other than contiguous is refused before the stream is returned, as is a grid the declaration check cannot make sense of. expected is a check and never an input, exactly as on the raw path: when given it must name the same fields and the same grid the frame declares.