Skip to main content

rows_to_record_batch

Function rows_to_record_batch 

Source
pub fn rows_to_record_batch(
    rows: &Rows,
    table_info: &TableInfo,
) -> Result<RecordBatch>
Expand description

Converts prepared rows in target-schema order without Prom-specific renaming.

Missing columns evaluate their defaults once per conversion. Explicit nulls remain nulls. Semantic types are checked against the table time index and primary-key indices.

ยงPanics

Panics if rows.rows is empty. Callers must skip empty writes before conversion.