bkietz commented on a change in pull request #7156:
URL: https://github.com/apache/arrow/pull/7156#discussion_r425175133
##########
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:
I can certainly add these but it is far from a complete and general
solution. For example this would not enable you to pass a list of buffers or
file like objects other than bytesIO and nativefile
----------------------------------------------------------------
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]