-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-9869: [R] Implement full S3FileSystem/S3Options constructor #8197
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
Conversation
5864fbf to
425923d
Compare
|
@github-actions crossbow submit homebrew-r-autobrew |
|
Revision: 425923d986bf4bd9e7950b9dd5dced70ddc1161f Submitted crossbow builds: ursa-labs/crossbow @ actions-545
|
|
@github-actions crossbow submit homebrew-r-autobrew |
|
Revision: 2b89af19be38e0756af0c1fbb4f066555dc22d15 Submitted crossbow builds: ursa-labs/crossbow @ actions-546
|
|
@github-actions crossbow submit homebrew-r-autobrew |
|
Revision: 51b93dfc54b3b5f9a33e72d7e3009afd16825975 Submitted crossbow builds: ursa-labs/crossbow @ actions-547
|
r/src/filesystem.cpp
Outdated
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.
Why not reuse get_optional_string here?
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.
Because I don't want to set it if the user doesn't provide it (i.e. if it is NULL). Or is empty string "" the same thing? s3fs.h doesn't give these fields default values.
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.
The empty string is implicitly the default value.
5180a51 to
1933a40
Compare
cfbd63d to
1e14dae
Compare
| #' @export | ||
| read_ipc_stream <- function(file, as_data_frame = TRUE, ...) { | ||
| read_ipc_stream <- function(file, as_data_frame = TRUE, filesystem = NULL, ...) { | ||
| if (!inherits(file, "InputStream")) { |
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.
There are a lot of this happening. Does this really need file= and filesystem. Can this be something like:
read_ipc_stream(filesystem$open(file))?
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.
Unfortunately, it's spelled filesystem$OpenInputStream(file) if it's for reading, or filesystem$OpenOutputStream(file) for writing. I resisted adding the extra argument, but I thought it was less bad than requiring users to learn those.
But we could think of other solutions. One possibility is having some sort of FileLocator object that is filesystem + path; we've started exploring that in places in the C++ library, and I've been looking into similar things for ARROW-9870. Maybe we could revisit this question in that PR (next week-ish)?
|
I'm going to merge this and we can follow up with UX questions in the next PR. |
Also adds tests that run on minio, which I've tested locally, added documentation for how to run them, and added them to the macOS ("autobrew") nightly test run (because the Linux builds still don't have aws-sdk-cpp support).