Skip to main content

project_batch

Function project_batch 

Source
pub fn project_batch(
    batch: &RecordBatch,
    projection: &[String],
) -> Result<RecordBatch>
Expand description

Build a RecordBatch with the specified column projection.

Selects only the named columns from the input batch. Always includes _time.

ยงErrors

Returns an error if the batch cannot be constructed.