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

Function test_parquet_dataset_factory

python/pyarrow/tests/test_dataset.py:3813–3820  ·  view source on GitHub ↗
(tempdir)

Source from the content-addressed store, hash-verified

3811@pytest.mark.parquet
3812@pytest.mark.pandas # write_to_dataset currently requires pandas
3813def test_parquet_dataset_factory(tempdir):
3814 root_path = tempdir / "test_parquet_dataset"
3815 metadata_path, table = _create_parquet_dataset_simple(root_path)
3816 dataset = ds.parquet_dataset(metadata_path)
3817 assert dataset.schema.equals(table.schema)
3818 assert len(dataset.files) == 4
3819 result = dataset.to_table()
3820 assert result.num_rows == 40
3821
3822
3823@pytest.mark.parquet

Callers

nothing calls this directly

Calls 4

lenFunction · 0.85
equalsMethod · 0.80
to_tableMethod · 0.45

Tested by

no test coverage detected