(tempdir)
| 5103 | |
| 5104 | |
| 5105 | def test_write_dataset_schema_metadata(tempdir): |
| 5106 | # ensure that schema metadata gets written |
| 5107 | from pyarrow import feather |
| 5108 | |
| 5109 | table = pa.table({'a': [1, 2, 3]}) |
| 5110 | table = table.replace_schema_metadata({b'key': b'value'}) |
| 5111 | ds.write_dataset(table, tempdir, format="feather") |
| 5112 | |
| 5113 | schema = feather.read_table(tempdir / "part-0.feather").schema |
| 5114 | assert schema.metadata == {b'key': b'value'} |
| 5115 | |
| 5116 | |
| 5117 | @pytest.mark.parquet |
nothing calls this directly
no test coverage detected