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:3959–3969  ·  view source on GitHub ↗
(tempdir)

Source from the content-addressed store, hash-verified

3957@pytest.mark.parquet
3958@pytest.mark.pandas
3959def test_parquet_dataset_factory_metadata(tempdir):
3960 # ensure ParquetDatasetFactory preserves metadata (ARROW-9363)
3961 root_path = tempdir / "test_parquet_dataset_factory_metadata"
3962 metadata_path, table = _create_parquet_dataset_partitioned(root_path)
3963
3964 dataset = ds.parquet_dataset(metadata_path, partitioning="hive")
3965 assert dataset.schema.equals(table.schema)
3966 assert b"key" in dataset.schema.metadata
3967
3968 fragments = list(dataset.get_fragments())
3969 assert b"key" in fragments[0].physical_schema.metadata
3970
3971
3972@pytest.mark.parquet

Callers

nothing calls this directly

Calls 3

listFunction · 0.85
equalsMethod · 0.80

Tested by

no test coverage detected