kshitij12345 commented on code in PR #13629:
URL: https://github.com/apache/arrow/pull/13629#discussion_r931237338
##########
python/pyarrow/parquet/__init__.py:
##########
@@ -3453,6 +3471,13 @@ def read_schema(where, memory_map=False,
decryption_properties=None):
n_legs: int64
animal: string
"""
- return ParquetFile(
- where, memory_map=memory_map,
- decryption_properties=decryption_properties).schema.to_arrow_schema()
+ filesystem, where = _resolve_filesystem_and_path(where, filesystem)
+ source = filesystem.open_input_file(
+ where) if filesystem is not None else where
+ ctx = source if filesystem is not None else nullcontext()
Review Comment:
Makes sense. Thanks for the suggestion. Have updated the code. PTAL :)
--
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]