alamb commented on issue #1718:
URL: https://github.com/apache/arrow-rs/issues/1718#issuecomment-1707250598

   Maybe we could add a new API for encoding that took ArrayRefs rather than 
RecordBatches
   
   The existing API is like: 
https://docs.rs/parquet/latest/parquet/arrow/arrow_writer/struct.ArrowWriter.html#method.write
   
   Maybe a new one could look something like:
   
   
   ```rust
   let writer: ArrowWriter = ...;
   
   // Create some new structure  for writing each row group
   let row_group_writer = writer.new_row_group();
   // could also call row_group_writer.write_column() for multiple columns 
concurrently
   for col in record_batch.col() {
     row_group_writer.write(col)?
   }
   row_group_writer.finish()?
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to