jorisvandenbossche commented on issue #33763:
URL: https://github.com/apache/arrow/issues/33763#issuecomment-1397332990

   Actually, this seems to working fine for me with the latest pyarrow:
   
   ```
   In [72]: map_type = pa.map_(
       ...:     pa.field("key", pa.string(), nullable=False, metadata={"abc": 
"1"}),
       ...:     pa.field("value", pa.int32(), metadata={"abc": "2"}))
       ...: 
   
   In [73]: map_type
   Out[73]: MapType(map<string, int32>)
   
   In [74]: map_type.key_field
   Out[74]: pyarrow.Field<key: string not null>
   
   In [75]: map_type.key_field.metadata
   Out[75]: {b'abc': b'1'}
   ```
   
   @sfc-gh-zpeng what version of pyarrow are you using?


-- 
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]

Reply via email to