-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-18113: [C++] Use RandomAccessFile::ReadManyAsync for cloud file systems #14747
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,6 +22,7 @@ | |
| #include <vector> | ||
|
|
||
| #include "arrow/filesystem/filesystem.h" | ||
| #include "arrow/io/caching.h" | ||
| #include "arrow/util/macros.h" | ||
| #include "arrow/util/uri.h" | ||
|
|
||
|
|
@@ -167,6 +168,12 @@ struct ARROW_EXPORT S3Options { | |
| /// delay between retries. | ||
| std::shared_ptr<S3RetryStrategy> retry_strategy; | ||
|
|
||
| /// Coalesce options for requesting multiple reads at once | ||
| io::CoalesceOptions coalesceOptions = io::CoalesceOptions::Defaults(); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: follow the naming conventions (snake_case)
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks, btw I'll use here |
||
|
|
||
| int64_t hole_size_limit = 1; | ||
| int64_t range_size_limit = 100; | ||
|
Comment on lines
+174
to
+175
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need these separately?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. typo, I forgot to delete those fields |
||
|
|
||
| S3Options(); | ||
|
|
||
| /// Configure with the default AWS credentials provider chain. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since coalescing may merge ranges, you'll need to post-process things so that the returned futures map 1:1 with the original ranges. (May need to refactor things so you don't have to do the coalescing step twice?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, thanks David, I'm writing a test for verifying these cases.