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

Function test_write_dataset_schema_metadata

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

Source from the content-addressed store, hash-verified

5055
5056
5057def test_write_dataset_schema_metadata(tempdir):
5058 # ensure that schema metadata gets written
5059 from pyarrow import feather
5060
5061 table = pa.table({'a': [1, 2, 3]})
5062 table = table.replace_schema_metadata({b'key': b'value'})
5063 ds.write_dataset(table, tempdir, format="feather")
5064
5065 schema = feather.read_table(tempdir / "part-0.feather").schema
5066 assert schema.metadata == {b'key': b'value'}
5067
5068
5069@pytest.mark.parquet

Callers

nothing calls this directly

Calls 1

read_tableMethod · 0.45

Tested by

no test coverage detected