ShiKaiWi opened a new pull request, #3957:
URL: https://github.com/apache/arrow-rs/pull/3957

   # Which issue does this PR close?
   
   <!--
   We generally require a GitHub issue to be filed for all bug fixes and 
enhancements and this helps us generate change logs for our releases. You can 
link an issue to this PR using the GitHub syntax. For example `Closes #123` 
indicates that this PR will close issue #123.
   -->
   
   Closes #1269.
   
   # Rationale for this change
    Currently, async api for arrow writer has not been supported yet. And if 
the underlying storage's api is async, it is difficult to use the arrow writer 
api, and a workaround way is to collect all the bytes in memory and then feed 
them to the underlying storage by the async api, which may lead to high memory 
consumption if the final parquet file is large.
   
   So we need an async api for the arrow writer, allowing that the caller can 
integrate an async underlying storage easily, e.g object store.
   <!--
   Why are you proposing this change? If this is already explained clearly in 
the issue then this section is not needed.
   Explaining clearly why changes are proposed helps reviewers understand your 
changes and offer better suggestions for fixes.
   -->
   
   # What changes are included in this PR?
   - Implement the async arrow writer based on the sync arrow writer.
   - The inner buffer of the async arrow writer can be configured with an 
option called `buffer_flush_threshold` to allow the caller can control the 
memory usage.
   <!--
   There is no need to duplicate the description in the issue here but it is 
sometimes worth providing a summary of the individual changes in this PR.
   -->
   
   # Are there any user-facing changes?
   `AsyncArrowWriter`.
   
   <!--
   If there are user-facing changes then we may require documentation to be 
updated before approving the PR.
   -->
   
   <!---
   If there are any breaking changes to public APIs, please add the `breaking 
change` label.
   -->
   


-- 
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