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

Function test_parquet_dataset_factory

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

Source from the content-addressed store, hash-verified

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