bkietz commented on a change in pull request #7156:
URL: https://github.com/apache/arrow/pull/7156#discussion_r425326032
##########
File path: python/pyarrow/dataset.py
##########
@@ -592,9 +596,13 @@ def dataset(source, schema=None, format=None,
filesystem=None,
selector_ignore_prefixes=ignore_prefixes
)
+ import io
+
# TODO(kszucs): support InMemoryDataset for a table input
if _is_path_like(source):
return _filesystem_dataset(source, **kwargs)
+ elif isinstance(source, (io.BytesIO, FileSource)):
Review comment:
Well for the time being I've added
`dataset.py::_is_native_file_wrappable` which includes an explicit and easily
extensible class list. Further refactoring can be left for a follow up
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]