[
https://issues.apache.org/jira/browse/HIVE-12069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16891823#comment-16891823
]
Marta Kuczora commented on HIVE-12069:
--------------------------------------
Started to work on
[HIVE-21987|https://issues.apache.org/jira/browse/HIVE-21987] which is about
the same issue. Close this Jira as 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)