(tempdir)
| 5055 | |
| 5056 | |
| 5057 | def 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 |
nothing calls this directly
no test coverage detected