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

Function test_open_union_dataset

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

Source from the content-addressed store, hash-verified

2795
2796@pytest.mark.parquet
2797def test_open_union_dataset(tempdir, dataset_reader, pickle_module):
2798 _, path = _create_single_file(tempdir)
2799 dataset = ds.dataset(path)
2800
2801 union = ds.dataset([dataset, dataset])
2802 assert isinstance(union, ds.UnionDataset)
2803
2804 pickled = pickle_module.loads(pickle_module.dumps(union))
2805 assert dataset_reader.to_table(pickled) == dataset_reader.to_table(union)
2806
2807
2808def 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