MCPcopy Create free account
hub / github.com/apache/arrow / test_open_dataset_from_uri_s3

Function test_open_dataset_from_uri_s3

python/pyarrow/tests/test_dataset.py:2952–2962  ·  view source on GitHub ↗
(s3_example_simple, dataset_reader)

Source from the content-addressed store, hash-verified

2950@pytest.mark.parquet
2951@pytest.mark.s3
2952def test_open_dataset_from_uri_s3(s3_example_simple, dataset_reader):
2953 # open dataset from non-localfs string path
2954 table, path, fs, uri, _, _, _, _ = s3_example_simple
2955
2956 # full string URI
2957 dataset = ds.dataset(uri, format="parquet")
2958 assert dataset_reader.to_table(dataset).equals(table)
2959
2960 # passing filesystem object
2961 dataset = ds.dataset(path, format="parquet", filesystem=fs)
2962 assert dataset_reader.to_table(dataset).equals(table)
2963
2964
2965@pytest.mark.parquet

Callers

nothing calls this directly

Calls 2

equalsMethod · 0.80
to_tableMethod · 0.45

Tested by

no test coverage detected