You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Joris Van den Bossche (Jira)" <ji...@apache.org> on 2020/09/15 14:27:00 UTC

[jira] [Commented] (ARROW-9997) [Python] StructScalar.as_py() fails if the type has duplicate field names

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

Joris Van den Bossche commented on ARROW-9997:
----------------------------------------------

Personnally, I think moving away from the mapping API is quite a usability regression. Would it be a possibility to still provide that as the default, but have a alternative way to get a field by position? 
(in a similar way, Table and Schema also work like that, they raise when getting a field by name and the name is duplicated, but you still can get a field by name)

> [Python] StructScalar.as_py() fails if the type has duplicate field names
> -------------------------------------------------------------------------
>
>                 Key: ARROW-9997
>                 URL: https://issues.apache.org/jira/browse/ARROW-9997
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>            Reporter: Krisztian Szucs
>            Assignee: Krisztian Szucs
>            Priority: Major
>             Fix For: 2.0.0
>
>
> {{StructScalar}} currently extends an abstract Mapping interface. Since the type allows duplicate field names we cannot provide that API.



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