You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2021/02/17 17:33:00 UTC

[jira] [Commented] (ARROW-5745) [C++] properties of Map(Array|Type) are confusingly named

    [ https://issues.apache.org/jira/browse/ARROW-5745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17286013#comment-17286013 ] 

Antoine Pitrou commented on ARROW-5745:
---------------------------------------

I think that unfortunately the ship has sailed here. Changing the semantics of {{MapArray::values()}} would probably annoy a lot of users.

> [C++] properties of Map(Array|Type) are confusingly named
> ---------------------------------------------------------
>
>                 Key: ARROW-5745
>                 URL: https://issues.apache.org/jira/browse/ARROW-5745
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: C++
>            Reporter: Ben Kietzman
>            Assignee: Ben Kietzman
>            Priority: Major
>             Fix For: 4.0.0
>
>
> In the context of ListArrays, "values" indicates the elements in a slot of the ListArray. Since MapArray isa ListArray, "values" indicates the same thing and the elements are key-item pairs. This naming scheme is not idiomatic; these *should* be called key-value pairs but that would require propagating the renaming down to ListArray.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)