pub fn pack_raw_series(
source: SendableRawSeriesStream,
) -> Result<DfSendableRecordBatchStream>Expand description
Packs a storage raw-series stream into DataFusion record batches incrementally.
Rows accumulate across chunks into batches bounded by the builder’s row and estimated payload limits; one legal oversized row may be emitted alone, and these limits are a work bound, not a resident-memory cap. A ready batch is yielded without polling the source again.
Buffered rows are published as soon as the source reports Pending, i.e. this constructor needs
no timer and works on any executor. A caller that knows its poller is a Tokio runtime with the
time driver enabled may hold buffered rows across a pending period with
pack_raw_series_with.
Even under [SeriesOrdering::Interleaved], each producer fragment chain must close before
another starts; arbitrary multiplexing of open chains is rejected. Closed fragment chains may
recur with the same key and overlapping timestamps. Finality closes a producer fragment, not
necessarily the logical series. For Contiguous, validation checks adjacent chunk conditions
but does not certify nonadjacent recurrence.
The stream’s own declaration is the only decode input: a frame unpacked without a scan-bound
[RawLabelSource] round trips unchanged instead of being re-declared from a binding it does not
have, and nothing is derived from a binding here. The declaration also decides the frame’s label
mode, so a chunk whose labels disagree with it is rejected when that chunk is coded.