pub fn record_batch_to_rows(
batch: &RecordBatch,
schema: &TableSchema,
) -> Result<Vec<(InternalKey, Row)>>Expand description
Convert an Arrow RecordBatch (from a Parquet read) back into
(InternalKey, Row) pairs.
Column lookup is by name, not position, so this function works uniformly against:
- L0 batches (with
_merutable_valueblob present) — fast path: decode eachRowfrom postcard bytes; the typed columns are ignored. - L1+ batches (typed columns only) — materialize each
Rowfield by field from the per-column Arrow arrays. - Projected batches that include only a subset of columns, as long as
_merutable_ikeyis present.