rok commented on code in PR #39438:
URL: https://github.com/apache/arrow/pull/39438#discussion_r1594178598


##########
python/pyarrow/parquet/core.py:
##########
@@ -1327,17 +1327,15 @@ def __init__(self, path_or_paths, filesystem=None, 
schema=None, *, filters=None,
                     except ValueError:
                         filesystem = LocalFileSystem(use_mmap=memory_map)
                 finfo = filesystem.get_file_info(path_or_paths)
-                if finfo.is_file:
-                    single_file = path_or_paths
                 if finfo.type == FileType.Directory:
                     self._base_dir = path_or_paths
             else:
-                single_file = path_or_paths
+                buffer_reader = path_or_paths
 
         parquet_format = ds.ParquetFileFormat(**read_options)
 
-        if single_file is not None:
-            fragment = parquet_format.make_fragment(single_file, filesystem)
+        if buffer_reader is not None:
+            fragment = parquet_format.make_fragment(buffer_reader, filesystem)

Review Comment:
   Changed back to `single_file`.



-- 
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