hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aihua Xu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-13251) hive can't read the decimal in AVRO file generated from previous version
Date Mon, 14 Mar 2016 15:07:33 GMT

    [ https://issues.apache.org/jira/browse/HIVE-13251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15193423#comment-15193423
] 

Aihua Xu commented on HIVE-13251:
---------------------------------

dec_old.avro is binary. Seems we had issue to apply patch for such file as I found from other
jira in HIVE-5823.

I will do the same. I have verified the avro_decimal_old.q passed locally.

Commit instructions:
1. add attachment dec.avro to data/files folder
2. apply attached patch.
3. commit




> hive can't read the decimal in AVRO file generated from previous version
> ------------------------------------------------------------------------
>
>                 Key: HIVE-13251
>                 URL: https://issues.apache.org/jira/browse/HIVE-13251
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive
>    Affects Versions: 2.1.0
>            Reporter: Aihua Xu
>            Assignee: Aihua Xu
>         Attachments: HIVE-13251.1.patch
>
>
> HIVE-7174 makes the avro schema change to match avro definition, while it breaks the
compatibility if the file is generated from the previous Hive although the file schema from
the file for such decimal is not correct based on avro definition. We should allow to read
old file format "precision" : "4", "scale": "8", but when we write, we should write in the
new format.



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

Mime
View raw message