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

Function test_parquet_dataset_factory_metadata

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

Source from the content-addressed store, hash-verified

3964@pytest.mark.parquet
3965@pytest.mark.pandas
3966def test_parquet_dataset_factory_metadata(tempdir):
3967 # ensure ParquetDatasetFactory preserves metadata (ARROW-9363)
3968 root_path = tempdir / "test_parquet_dataset_factory_metadata"
3969 metadata_path, table = _create_parquet_dataset_partitioned(root_path)
3970
3971 dataset = ds.parquet_dataset(metadata_path, partitioning="hive")
3972 assert dataset.schema.equals(table.schema)
3973 assert b"key" in dataset.schema.metadata
3974
3975 fragments = list(dataset.get_fragments())
3976 assert b"key" in fragments[0].physical_schema.metadata
3977
3978
3979@pytest.mark.parquet

Callers

nothing calls this directly

Calls 3

listFunction · 0.85
equalsMethod · 0.80

Tested by

no test coverage detected