You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Krisztian Szucs (Jira)" <ji...@apache.org> on 2020/10/07 20:59: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=17209862#comment-17209862 ] 

Krisztian Szucs commented on ARROW-9997:
----------------------------------------

I find this issue a bit pressing before the release, but I'm not sure about the desired resolution. Perhaps returning with a multimap/multidict like object from {{scalar.as_py()}} would work (although it can cause backward incompatibilities if users expect dictionary instances). 

[~apitrou] [~jorisvandenbossche] thoughts?

> [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)