-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-8074: [C++][Dataset][Python] FileFragments from buffers and NativeFiles #7156
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
Closed
Closed
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
96d3c40
ARROW-8047: [C++][Dataset] Support creation of Datasets with buffer f…
bkietz 68072f0
add FileSource to python
bkietz b7e1115
add support for arbitrary CustomOpen functors
bkietz fc4f94e
refactor refcount handling
bkietz 8d0e970
add explicit default constructor for OwnedRefNoGIL
bkietz 7fedc05
use std::forward when calling unbound method
bkietz 65f6d20
try manual parameter packing for GCC 4.8
bkietz b7e864a
nullary parameter pack case
bkietz 1e662c5
enable more python tests
jorisvandenbossche 5b2aaff
correct wrapping of Fragment
bkietz 83f21e0
allow construction of Dataset from list(FileSource)
bkietz 1fc87db
use __cinit__ for FileSource
bkietz 5334256
review comments, add PyError RAII helper
bkietz d987c3c
iwyu: <utility>
bkietz 6434656
revert rvalue accessors for result/status
bkietz 8a4447c
revert CustomOpen
bkietz 96814da
lint fixes
bkietz 12ef385
MSVC fix
bkietz 6f4dbab
add absent FileFragment.filesystem -> None
bkietz ad369db
Update cpp/src/arrow/status.h
bkietz 50fb210
fix broken suggestion
bkietz e8bce6d
FileSource::FromPaths
bkietz 9c4d95a
rebase fix: FileSource
bkietz 93bd9f4
revert modifications to Factory
bkietz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
Oops, something went wrong.
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.
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.
I'm not satisfied how this class is transforming into a Franken-class. The need of static fake properties and the semi-broken default constructor.
I'd say make FileSource an interface and use inheritance, make Open() virtual, the
path()andfilesystem()will be specific to one implementation (maybe name them Source, FileSource, BufferSource, ...). We can make an accept visitor for classes who wants to touch properties like the path.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.
I agree that
FileSourcewould benefit from refactoring but I think that doing so further in this PR (including resorbingWritableFileSource) is not necessary. I'll make a follow up JIRA