You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "JacobHayes (via GitHub)" <gi...@apache.org> on 2024/05/04 16:01:07 UTC
Re: [I] [Python][Parquet] pa.schema() silently drops metadata if a schema object is passed [arrow]
JacobHayes commented on issue #38575:
URL: https://github.com/apache/arrow/issues/38575#issuecomment-2094276951
I came across this too - it also appears to also happen if you pass a `pa.struct` into `pa.schema`, eg:
```python
[I] ~/s/g/a/artigraph (misc|●4✚3) $ python3
Python 3.12.2 (main, May 3 2024, 17:50:09) [Clang 15.0.0 (clang-1500.3.9.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyarrow as pa
>>> pa.__version__
'16.0.0'
>>> pa.schema([pa.field("test", pa.int64())], metadata={"a": "b"})
test: int64
-- schema metadata --
a: 'b'
>>> pa.schema(pa.struct([pa.field("test", pa.int64())]), metadata={"a": "b"})
test: int64
```
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org