dantrim opened a new issue #10935: URL: https://github.com/apache/arrow/issues/10935
If I write a simple Parquet file using the script [simple-write-parquet.cpp](https://gist.github.com/dantrim/33f9f14d0b2d3ec45c022aa05f7a45ee), I expect to have a simple Parquet file with a single column `MyInt`. The script [simple-write-parquet.cpp](https://gist.github.com/dantrim/33f9f14d0b2d3ec45c022aa05f7a45ee) attempts to add `KeyValueMetadata` to the field `MyInt` with some dummy values. In the C++ code, if I do, ```c++ std::cout << field->ToString(true) << std::endl; ``` I see the expected return. ``` ... -- metadata -- foo: bar bar: foo ``` and I expect that this metadata will be preserved in the output Parquet file. However, when I attempt to read this file back using `pyarrow`, this field metadata key-value pair does not seem to exist: ```python import pyarrow as pa import pyarrow.parquet as pq table = pq.read_table("test.parquet") field = table.field("MyInt") field.metadata # None! ``` Is there a way to retrieve from within `pyarrow` the `KeyValueMetadata` attached to both fields and schema (e.g. via the `WithMetadata` methods) from the C++ side writing out the Parquet files to disk? Thanks! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
