(multisourcefs)
| 1218 | |
| 1219 | @pytest.mark.parquet |
| 1220 | def 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 |
nothing calls this directly
no test coverage detected