Mottl commented on code in PR #46330:
URL: https://github.com/apache/arrow/pull/46330#discussion_r3304318463
##########
python/pyarrow/parquet/core.py:
##########
@@ -1825,7 +1826,15 @@ def read_table(source, *, columns=None, use_threads=True,
filesystem, path = _resolve_filesystem_and_path(source, filesystem)
if filesystem is not None:
source = filesystem.open_input_file(path)
- # TODO test that source is not a directory or a list
+ if not (
+ (isinstance(source, str) and not os.path.isdir(source))
Review Comment:
If a source is a folder in an S3 bucket,
`filesystem.get_file_info(path).is_file` is `false` and we raise a `ValueError`
a few lines above.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]