polars_parquet::arrow::write

Function row_group_iter

Source
pub fn row_group_iter<A: AsRef<dyn Array> + 'static + Send + Sync>(
    chunk: RecordBatchT<A>,
    encodings: Vec<Vec<Encoding>>,
    fields: Vec<ParquetType>,
    options: WriteOptions,
) -> RowGroupIterColumns<'static, PolarsError>
Expand description

Maps a RecordBatchT and parquet-specific options to an RowGroupIterColumns used to write to parquet

ยงPanics

Iff

  • encodings.len() != fields.len() or
  • encodings.len() != chunk.arrays().len()