-
Notifications
You must be signed in to change notification settings - Fork 4k
GH-41973: Expose new S3 option check_directory_existence_before_creation #41998
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
GH-41973: Expose new S3 option check_directory_existence_before_creation #41998
Conversation
|
|
|
Hi @nealrichardson , could you pls review when you have time? I have to admit I use C++/Python in my daily life but know nothing about R and just follow the existing code for allow_bucket_deletion to expose it. |
|
Hi @paleolimbot @thisisnic , could you review this PR when you have time? Thanks. |
|
Hi @HaochengLIU, I took a look through and left some suggestions. One thing I think we'll have to sort out here is the issue that's making the Check minimum supported Arrow C++ Version check fail. We'll need an ifdef guard in Edit: And can you please rebase and fix conflicts? |
7f3d26e to
e46e0dc
Compare
|
Hi @amoeba , I rebased and the somehow do not see the suggestion you are referring to.. Could you point me to that? Per the install error Where is this 00install.out log 😢 |
|
@HaochengLIU The CI output there can be a bit tricky to follow, but the important bit is in the next section: https://github.com/apache/arrow/actions/runs/10207786938/job/28243188693?pr=41998#step:8:49 I think what @amoeba is referring to is that fact that the arrow R package is compatible with previous versions of the Arrow C++ library, and so you're getting that error above because #41822 was only released in version 17.0.0 so you'll get errors trying to use it with previous versions, as our minimum version to support is 15.0.2. |
|
Sorry @HaochengLIU, I think I forgot to save my review. You should see them now. @thisisnic is right about my note. See this example: https://github.com/apache/arrow/blob/c69c1d80eb27022c1b3f91fbbc7979f8293c9e50/r/src/extension-impl.cpp#L103 I think here we want to do here is (1) conditionally define two versions of |
The tricky thing about that is the codegen script that creates Another option would be to refactor to send a list of options to |
e46e0dc to
913400d
Compare
|
Hi folks, thanks for reviewing and I've addressed most of the comments. If it's confirmed that arrow/r/src/extension-impl.cpp will not work per @nealrichardson , I can try to tackle the refactor work first once I'm back from vacation |
|
We probably shouldn't do this here, but we should have a discussion about how much effort keeping compatibility with older versions we should push for PRs like these. I've created #43623 for that, but broadly am supportive of bumping the minimum version if we need to in order to implement this feature. |
|
Thanks for the catch @nealrichardson and the suggestion. I'd be supportive of approving this PR with just the "Check minimum supported Arrow C++ Version " job failing and just my existing suggestions applied. |
913400d to
1e7edab
Compare
|
Hi, sorry for the delay here, was carried away by other life events. Let me know if there is anything i can help here |
Not your fault at all, we didn't resolve the earlier discussion on previous versions. Based on the CI results after rebasing the PR, there are a few changes needed before merging this, which I was going to take a look at myself. If you'd rather take a look though, let me know, and I'll leave it to you instead! |
I will be in a national park without wifi for the incoming days, could I handle this PR to you :) |
|
I copied this to #46619 as the rebase was pretty horrific to attempt on this branch, but I made sure to attribute the new PR to you, @HaochengLIU |
Rationale for this change
Expose new S3 option
check_directory_existence_before_creationfrom GH-41493PR to expose in Python is also under review.
What changes are included in this PR?
Expose new S3 option
check_directory_existence_before_creationfrom GH-41493Are these changes tested?
yes
Are there any user-facing changes?
Yes. R function documentation is updated.