kshitij12345 commented on code in PR #13629:
URL: https://github.com/apache/arrow/pull/13629#discussion_r925423325
##########
python/pyarrow/parquet/__init__.py:
##########
@@ -3411,11 +3416,15 @@ def read_metadata(where, memory_map=False,
decryption_properties=None):
format_version: 2.6
serialized_size: 561
"""
+ filesystem, where = _resolve_filesystem_and_path(where, filesystem)
+ if filesystem is not None:
+ where = filesystem.open_input_file(where)
return ParquetFile(where, memory_map=memory_map,
Review Comment:
I am curious as to what is the minimum supported Python version.
I was planning to do something like which requires Python 3.7 or more.
```python
source = filesystem.open_input_file(where) if filesystem is not None else
nullcontext()
with source:
return ParquetFile(
source, memory_map=memory_map,
decryption_properties=decryption_properties).schema.to_arrow_schema()
```
--
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]