-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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-38857: [Python] Add append mode for pyarrow.OsFile #38820
Conversation
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.
Thanks for the PR @milesgranger !
This PR doesn't seem to fit our definition for MINOR, as it should be only about minor documentation changes.
Could you please create a GitHub issue and update the PR title accordingly?
Thanks!
|
Ah, how embarrassing. Issue created and and title updated as requested! |
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.
Hi @milesgranger, thank you for the PR!
LGTM +1
Would only add an example to the docstrings of the OSFile
class. It would maybe also be worth adding a test to test_native_file_modes
?
Thanks for the review @AlenkaF. Should I go about adding a Edit: happy to do a follow up as well. Whichever is easier for you all. |
Ah, thank you for looking into it. I am not sure how to handle |
You could add a private |
29e8983
to
0057016
Compare
Failure seems unrelated. |
I have rerun it just in case. |
I also think is unrelated. I've opened #39003 to track it. |
Thanks! 👋 |
Thanks Miles! ;) |
After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit 92fe831. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 5 possible false positives for unstable benchmarks that are known to sometimes produce them. |
…8820) ### Rationale for this change Seems reasonable. :) ### What changes are included in this PR? Exposes the C++ append parameter from FileOutputStream to PyArrow's OSFile. ### Are these changes tested? Yes. ### Are there any user-facing changes? Can add `a` or `ab` to `mode` parameter in `pyarrow.OsFile` * Closes: apache#38857 Authored-by: Miles Granger <miles59923@gmail.com> Signed-off-by: AlenkaF <frim.alenka@gmail.com>
### Rationale for this change Small fixup of the change in apache#38820 to fix the build failure on cython 2 (nightly crossbow build) * Closes: apache#38857 Authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com> Signed-off-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
Rationale for this change
Seems reasonable. :)
What changes are included in this PR?
Exposes the C++ append parameter from FileOutputStream to PyArrow's OSFile.
Are these changes tested?
Yes.
Are there any user-facing changes?
Can add
a
orab
tomode
parameter inpyarrow.OsFile