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

Function test_open_union_dataset

python/pyarrow/tests/test_dataset.py:2802–2810  ·  view source on GitHub ↗
(tempdir, dataset_reader, pickle_module)

Source from the content-addressed store, hash-verified

2800
2801@pytest.mark.parquet
2802def test_open_union_dataset(tempdir, dataset_reader, pickle_module):
2803 _, path = _create_single_file(tempdir)
2804 dataset = ds.dataset(path)
2805
2806 union = ds.dataset([dataset, dataset])
2807 assert isinstance(union, ds.UnionDataset)
2808
2809 pickled = pickle_module.loads(pickle_module.dumps(union))
2810 assert dataset_reader.to_table(pickled) == dataset_reader.to_table(union)
2811
2812
2813def test_open_union_dataset_with_additional_kwargs(multisourcefs):

Callers

nothing calls this directly

Calls 4

_create_single_fileFunction · 0.85
loadsMethod · 0.80
dumpsMethod · 0.80
to_tableMethod · 0.45

Tested by

no test coverage detected