proposal: Make AsyncArrowWriter accepts AsyncFileWriter trait instead #5738
Labels
enhancement
Any new improvement worthy of a entry in the changelog
parquet
Changes to the parquet crate
This proposal intends to make
AsyncArrowWriter
accepts a new trait calledAsyncFileWriter
instead like what we do forParquetRecordBatchStream
.AsyncArrowWriter
acceptsAsyncWrite
currently:arrow-rs/parquet/src/arrow/async_writer/mod.rs
Lines 100 to 109 in 19a3bb0
AsyncWrite
is a low-level, poll-based API. Users with writers that provideasync fn write()
will need to encapsulate it within a manually written future state machine.For example:
arrow-rs/object_store/src/buffered.rs
Lines 306 to 313 in 08af471
Describe the solution you'd like
I propose to make
AsyncArrowWriter
accepts a new trait calledAsyncFileWriter
:Describe alternatives you've considered
Not yet.
Additional context
ParquetRecordBatchStream
accetpsAsyncFileReader
:arrow-rs/parquet/src/arrow/async_reader/mod.rs
Lines 123 to 147 in f38283b
I'm willing help implement this proposal.
The text was updated successfully, but these errors were encountered: