You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Chris (Jira)" <ji...@apache.org> on 2022/09/06 08:59:00 UTC

[jira] [Created] (ARROW-17626) discrepancy of of schema and schema.metadata if second same-name key is ignored if the second key is byte-encoded

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)