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

Function test_make_fragment

python/pyarrow/tests/test_dataset.py:1220–1235  ·  view source on GitHub ↗
(multisourcefs)

Source from the content-addressed store, hash-verified

1218
1219@pytest.mark.parquet
1220def test_make_fragment(multisourcefs):
1221 parquet_format = ds.ParquetFileFormat()
1222 dataset = ds.dataset('/plain', filesystem=multisourcefs,
1223 format=parquet_format)
1224
1225 for path in dataset.files:
1226 fragment = parquet_format.make_fragment(path, multisourcefs)
1227 assert fragment.row_groups == [0]
1228
1229 row_group_fragment = parquet_format.make_fragment(path, multisourcefs,
1230 row_groups=[0])
1231 for f in [fragment, row_group_fragment]:
1232 assert isinstance(f, ds.ParquetFileFragment)
1233 assert f.path == path
1234 assert isinstance(f.filesystem, type(multisourcefs))
1235 assert row_group_fragment.row_groups == [0]
1236
1237
1238@pytest.mark.parquet

Callers

nothing calls this directly

Calls 2

ParquetFileFormatMethod · 0.80
typeEnum · 0.50

Tested by

no test coverage detected