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

Function test_parquet_dataset_factory

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

Source from the content-addressed store, hash-verified

3816@pytest.mark.parquet
3817@pytest.mark.pandas # write_to_dataset currently requires pandas
3818def test_parquet_dataset_factory(tempdir):
3819 root_path = tempdir / "test_parquet_dataset"
3820 metadata_path, table = _create_parquet_dataset_simple(root_path)
3821 dataset = ds.parquet_dataset(metadata_path)
3822 assert dataset.schema.equals(table.schema)
3823 assert len(dataset.files) == 4
3824 result = dataset.to_table()
3825 assert result.num_rows == 40
3826
3827
3828@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