pub fn write_batch_to_parquet(
batch: RecordBatch,
filepath: &PathBuf,
compression: Option<Compression>,
max_row_group_size: Option<usize>,
write_mode: Option<ParquetWriteMode>,
) -> Result<()>Expand description
Writes a RecordBatch to a Parquet file at the specified filepath, with optional compression.
§Errors
Returns an error if writing to Parquet fails or any I/O operation fails.