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

[jira] [Resolved] (ARROW-11452) [Rust] Parquet reader cannot read file where a struct column has the same name as struct member columns

     [ https://issues.apache.org/jira/browse/ARROW-11452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Neville Dipale resolved ARROW-11452.
------------------------------------
    Fix Version/s: 4.0.0
       Resolution: Fixed

Issue resolved by pull request 9390
[https://github.com/apache/arrow/pull/9390]

> [Rust] Parquet reader cannot read file where a struct column has the same name as struct member columns 
> --------------------------------------------------------------------------------------------------------
>
>                 Key: ARROW-11452
>                 URL: https://issues.apache.org/jira/browse/ARROW-11452
>             Project: Apache Arrow
>          Issue Type: Bug
>            Reporter: Max Burke
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>         Attachments: structs.parquet
>
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> For example, given the schema:
>  
> count: struct<min: int64 not null, max: int64 not null, mean: int64 not null, count: uint64 not null, sum: int64 not null, variance: int64 not null> not null
>   child 0, min: int64 not null
>   child 1, max: int64 not null
>   child 2, mean: int64 not null
>   child 3, count: uint64 not null
>   child 4, sum: int64 not null
>   child 5, variance: int64 not null
> ul_observation_date: struct<min: timestamp[us] not null, max: timestamp[us] not null, mean: timestamp[us] not null, count: uint64 not null, sum: timestamp[us] not null, variance: timestamp[us] not null> not null
>   child 0, min: timestamp[us] not null
>   child 1, max: timestamp[us] not null
>   child 2, mean: timestamp[us] not null
>   child 3, count: uint64 not null
>   child 4, sum: timestamp[us] not null
>   child 5, variance: timestamp[us] not null
>  
> The array reader performs dictionary lookups for the type of columns of types such as ul_observation_date, but when it looks up the field `count` it gets the definition not of the ul_observation_date.count field but of the `count` struct. 
>  
> Attached is a sample file that exhibits this behavior.
>  
> [^structs.parquet]



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