-
Notifications
You must be signed in to change notification settings - Fork 921
Add configurable download method to object_store for enhanced usability #6837
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
midnattsol
wants to merge
7
commits into
apache:main
Choose a base branch
from
midnattsol:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Implemented and to handle concurrent downloads and efficient file writing. - Added the main function to coordinate multi-chunk downloads and writes. - Introduced support for cancellation using , enabling early termination of both downloads and writes. - Added to allow customization of concurrency, buffer size, and retry limits. These functions provide an efficient way to handle downloads from an while ensuring robust error handling and cancellation support.
…patibility with uploads. This change enhances clarity by using a more generic and versatile name for transfer-related operations. Changes made: - Updated the name in the source code. - Adjusted related documentation and comments. No functional changes were introduced beyond the refactor.
- Renamed struct TransferConfig to TransferOptions to improve code clarity and consistency. - Renamed fields in `TransferConfig`: `max_concurrent_chunks` to `concurrent_tasks`, and `chunk_queue_size` to `buffer_capacity` for clarity. - Updated references to old variables throughout the codebase. Rationale: - Improved readability and maintainability. - `<old_variable_name>` was ambiguous or inconsistent with naming conventions. No functional changes were made; this is purely a refactor for naming consistency.
…SendToChannel` formerly `SendDataError` - Renamed several error variants for better clarity and consistency. - Updated the `source` of one error to properly propagate the original cause.
- Removed redundant documentation as it's already implicit in the code.
Thank you for this PR. We are in the process of moving the object_store code to its own repository. Would it be possible for you to create a PR in that repository instead?
(we will handle moving all existing issues to the new repository) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
Closes apache/arrow-rs-object-store#267
Rationale for this change
The current
get
method inObjectStore
requires users to handle multipart downloads and large file transfers manually, which can be complex and error-prone. This PR proposes a newdownload
method to streamline this process by:This change simplifies the API for users and aligns with the feature request outlined in issue apache/arrow-rs-object-store#267.
What changes are included in this PR?
download
method in theobject_store::local
module.TransferOptions
struct for user-configurable transfer options, such as concurrency, buffer size, and retry limits.download_chunk
: Downloads individual chunks of data.write_multi_chunks
: Writes downloaded chunks to a local file.Are there any user-facing changes?
Yes:
download
method to simplify file downloads from the object store.TransferOptions
struct.download
method.