AlenkaF commented on code in PR #48008:
URL: https://github.com/apache/arrow/pull/48008#discussion_r2493426208


##########
python/pyarrow/parquet/core.py:
##########
@@ -1887,10 +1887,23 @@ def read_table(source, *, columns=None, 
use_threads=True,
                 "the 'schema' argument is not supported when the "
                 "pyarrow.dataset module is not available"
             )
+        if isinstance(source, list):
+            raise ValueError(
+                "the 'source' argument cannot be a list of files "
+                "when the pyarrow.dataset module is not available"
+            )
+
         filesystem, path = _resolve_filesystem_and_path(source, filesystem)
         if filesystem is not None:
+            if not filesystem.get_file_info(path).is_file:
+                raise ValueError(
+                    "the 'source' argument should be "
+                    "an existing .parquet file and not a directory, "
+                    "when the pyarrow.dataset module is not available"

Review Comment:
   Please ignore, see 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]

Reply via email to