bkietz commented on a change in pull request #7156:
URL: https://github.com/apache/arrow/pull/7156#discussion_r426705314
##########
File path: python/pyarrow/dataset.py
##########
@@ -411,7 +421,14 @@ def _filesystem_dataset(source, schema=None,
filesystem=None,
partitioning = _ensure_partitioning(partitioning)
if isinstance(source, (list, tuple)):
- fs, paths_or_selector = _ensure_multiple_sources(source, filesystem)
+ if all(_is_path_like(elem) for elem in source):
+ fs, paths_or_selector = _ensure_multiple_sources(source,
+ filesystem)
+ else:
+ fs, paths_or_selector = _MockFileSystem(), source
Review comment:
This is a dirty hack to get the ParquetDataset tests passing; it's
ignored later except that `fs` must be a non-`None` FileSystem.
----------------------------------------------------------------
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]