Skip to content

Commit

Permalink
add make_fragment to test
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche committed May 3, 2022
1 parent cd9b58d commit a0e0ad8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/pyarrow/tests/test_dataset.py
Expand Up @@ -2602,10 +2602,9 @@ def test_open_dataset_from_fsspec(tempdir):

@pytest.mark.parquet
@pytest.mark.s3
def test_inspect_file_fsspec(s3_filesystem):
def test_file_format_inspect_fsspec(s3_filesystem):
# https://issues.apache.org/jira/browse/ARROW-16413
from pyarrow.fs import _ensure_filesystem
import pyarrow.dataset as ds

fs, (host, port, access_key, secret_key) = s3_filesystem

Expand All @@ -2629,6 +2628,9 @@ def test_inspect_file_fsspec(s3_filesystem):
schema = format.inspect(path, filesystem)
assert schema.equals(table.schema)

fragment = format.make_fragment(path, filesystem)
assert fragment.physical_schema.equals(table.schema)


@pytest.mark.pandas
def test_filter_timestamp(tempdir, dataset_reader):
Expand Down

0 comments on commit a0e0ad8

Please sign in to comment.