thisisnic commented on issue #47893:
URL: https://github.com/apache/arrow/issues/47893#issuecomment-7142444846
I used an AI agent to run these checks, and I've reviewed the results.
----------------
🤖 :
This still happens on pyarrow 26.0.1, and it affects other readers: Polars
2.2.0 refuses to read the reprex file above (`InvalidUtf8`), and refuses a file
written with non-UTF-8 schema metadata (`replace_schema_metadata({b"k\xff":
b"v\xff\xfe"})`) with "File out of specification: invalid utf8". DuckDB 2.0.1
and fastparquet read both.
One detail on the reprex: the extension bytes aren't in the Parquet
key-value metadata directly. They are inside the base64 `ARROW:schema` entry,
as the field's `ARROW:extension:metadata`. Schema-level metadata is what ends
up verbatim in the Parquet footer.
Related: #49058 covers the same question for Arrow custom metadata in
general, with a PR (#49696) and a dev list discussion about compatibility. That
PR checks metadata passed in from Python, so it wouldn't catch bytes returned
by `__arrow_ext_serialize__`.
--
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]