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

Function test_open_dataset_from_fileinfos

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

Source from the content-addressed store, hash-verified

2965@pytest.mark.parquet
2966@pytest.mark.s3
2967def test_open_dataset_from_fileinfos(s3_example_simple, dataset_reader):
2968 table, path, filesystem, uri, _, _, _, _ = s3_example_simple
2969 selector = fs.FileSelector("mybucket")
2970 finfos = filesystem.get_file_info(selector)
2971 dataset = ds.dataset(finfos, format="parquet", filesystem=filesystem)
2972 assert dataset_reader.to_table(dataset).equals(table)
2973
2974
2975@pytest.mark.parquet

Callers

nothing calls this directly

Calls 3

equalsMethod · 0.80
get_file_infoMethod · 0.45
to_tableMethod · 0.45

Tested by

no test coverage detected