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:2961–2966  ·  view source on GitHub ↗
(s3_example_simple, dataset_reader)

Source from the content-addressed store, hash-verified

2959@pytest.mark.parquet
2960@pytest.mark.s3
2961def test_open_dataset_from_fileinfos(s3_example_simple, dataset_reader):
2962 table, path, filesystem, uri, _, _, _, _ = s3_example_simple
2963 selector = fs.FileSelector("mybucket")
2964 finfos = filesystem.get_file_info(selector)
2965 dataset = ds.dataset(finfos, format="parquet", filesystem=filesystem)
2966 assert dataset_reader.to_table(dataset).equals(table)
2967
2968
2969@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