You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Marta Kuczora (JIRA)" <ji...@apache.org> on 2019/07/24 12:45:00 UTC

[jira] [Resolved] (HIVE-12069) Hive cannot read Parquet decimals backed by INT32 or INT64

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

Marta Kuczora resolved HIVE-12069.
----------------------------------
    Resolution: Duplicate

> Hive cannot read Parquet decimals backed by INT32 or INT64
> ----------------------------------------------------------
>
>                 Key: HIVE-12069
>                 URL: https://issues.apache.org/jira/browse/HIVE-12069
>             Project: Hive
>          Issue Type: Sub-task
>    Affects Versions: 1.2.1
>            Reporter: Cheng Lian
>            Priority: Major
>
> According to the [DECIMAL section|https://github.com/apache/parquet-format/blob/5b806d1e855bf47f5234c768aefc000b704f43ab/LogicalTypes.md#decimal] of parquet-format spec, low precision Parquet decimals can be written as {{INT32}} or {{INT64}} for better storage and query efficiency. However, currently Hive only recognizes decimals backed by binaries (either {{BINARY}} or {{FIXED_LEN_BYTE_ARRAY}}).
> We can improve this by providing a more general {{PrimitiveConverter}} [here|https://github.com/apache/hive/blob/release-1.2.1/ql/src/java/org/apache/hadoop/hive/ql/io/parquet/convert/ETypeConverter.java#L127-L137].



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)