pub async fn write_batches_to_parquet(
batches: &[RecordBatch],
path: &str,
storage_options: Option<HashMap<String, String>>,
compression: Option<Compression>,
max_row_group_size: Option<usize>,
) -> Result<()>
Expand description
Writes multiple RecordBatch
items to a Parquet file using object store, with optional compression, row group sizing, and storage options.
§Errors
Returns an error if writing to Parquet fails or any I/O operation fails.