jorisvandenbossche commented on code in PR #14717:
URL: https://github.com/apache/arrow/pull/14717#discussion_r1042218704
##########
python/pyarrow/tests/parquet/test_parquet_file.py:
##########
@@ -329,3 +334,26 @@ def test_parquet_file_explicitly_closed(tempdir):
p.read()
assert not p.closed
assert p.closed # parquet file obj reports as closed
+
+
[email protected]
[email protected]("use_uri", (True, False))
+def test_parquet_file_with_filesystem(tempdir, s3_example_fs, use_uri):
+ s3_fs, s3_uri, s3_path = s3_example_fs
+
+ args = (s3_uri if use_uri else s3_path,)
+ kwargs = {} if use_uri else dict(filesystem=s3_fs)
+
+ table = pa.table({"a": range(10)})
+ pq.write_table(table, *args, **kwargs)
Review Comment:
```suggestion
pq.write_table(table, path, filesystem=s3_fs)
```
(this test is about ParquetFile, so I think it is fine to always setup the
test file this way
--
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]