wjones127 commented on a change in pull request #11855:
URL: https://github.com/apache/arrow/pull/11855#discussion_r763381855
##########
File path: python/pyarrow/tests/test_array.py
##########
@@ -891,6 +891,14 @@ def test_list_from_arrays(list_array_type,
list_type_factory):
result.validate(full=True)
+def test_map_labelled():
+ t = pa.map_(pa.field("name", "string", nullable=False), "int64")
+ arr = pa.array([[('a', 1), ('b', 2)], [('c', 3)]], type=t)
+ assert arr.type.key_field == pa.field("name", pa.utf8(), nullable=False)
Review comment:
According to the spec:
https://github.com/apache/arrow/blob/85b276dd13512d6676a0bc2dc703a0f9b6934236/format/Schema.fbs#L112-L115
I don't see anything about the names for a list. IMO seems like a piece of
metadata most people want to ignore. I'll create a JIRA to discuss that.
--
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]