Chris created ARROW-17626:
-----------------------------
Summary: discrepancy of of schema and schema.metadata if second
same-name key is ignored if the second key is byte-encoded
Key: ARROW-17626
URL: https://issues.apache.org/jira/browse/ARROW-17626
Project: Apache Arrow
Issue Type: Bug
Components: Python
Reporter: Chris
Attachments: pa_bug.py
schema = pa.schema(
[('col1', pa.int8())],
metadata={
'key': 'key provided as string',
b'key': 'key provided as bytes'
}
)
print(schema)
# col1: int8
# -- schema metadata --
# key: 'key provided as string'
# key: 'key provided as bytes'
print(schema.metadata)
# {b'key': b'key provided as string'}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)