You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@parquet.apache.org by "Alex Levenson (JIRA)" <ji...@apache.org> on 2015/08/01 01:58:04 UTC

[jira] [Resolved] (PARQUET-346) ThriftSchemaConverter throws for unknown struct or union type

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

Alex Levenson resolved PARQUET-346.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.0

Issue resolved by pull request 252
[https://github.com/apache/parquet-mr/pull/252]

> ThriftSchemaConverter throws for unknown struct or union type
> -------------------------------------------------------------
>
>                 Key: PARQUET-346
>                 URL: https://issues.apache.org/jira/browse/PARQUET-346
>             Project: Parquet
>          Issue Type: Bug
>          Components: parquet-mr
>            Reporter: Alex Levenson
>            Assignee: Alex Levenson
>             Fix For: 2.0.0
>
>
> ThriftSchemaConverter should either only be called on ThriftStruct's that have populated structOrUnionType metadata, or should support a mode where this data is unknown w/o throwing an exception.
> Currently it is called using the file's metadata here:
> https://github.com/apache/parquet-mr/blob/d6f082b9be5d507ff60c6bc83a179cc44015ab97/parquet-thrift/src/main/java/org/apache/parquet/thrift/ThriftRecordConverter.java#L797
> One workaround is not not use the file matadata here but rather the schema from the thrift class. The other is to support unknown struct or union types



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)