jorisvandenbossche commented on code in PR #13033:
URL: https://github.com/apache/arrow/pull/13033#discussion_r863680671
##########
python/pyarrow/tests/test_dataset.py:
##########
@@ -2582,6 +2600,38 @@ def test_open_dataset_from_fsspec(tempdir):
assert dataset.schema.equals(table.schema)
[email protected]
[email protected]
+def test_file_format_inspect_fsspec(s3_filesystem):
+ # https://issues.apache.org/jira/browse/ARROW-16413
+ from pyarrow.fs import _ensure_filesystem
+
+ fs, (host, port, access_key, secret_key) = s3_filesystem
+
+ # create bucket + file with pyarrow
+ table = pa.table({'a': [1, 2, 3]})
+ path = "mybucket/data.parquet"
+ with fs.open_output_stream(path) as out:
+ pq.write_table(table, out)
+
+ # read using fsspec filesystem
+ import s3fs
Review Comment:
Good catch, need to add some skips for this
--
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]