You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Prasanth Jayachandran (JIRA)" <ji...@apache.org> on 2015/06/17 07:59:01 UTC

[jira] [Updated] (HIVE-11031) ORC concatenation of old files can fail while merging column statistics

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

Prasanth Jayachandran updated HIVE-11031:
-----------------------------------------
    Attachment: HIVE-11031.patch

> ORC concatenation of old files can fail while merging column statistics
> -----------------------------------------------------------------------
>
>                 Key: HIVE-11031
>                 URL: https://issues.apache.org/jira/browse/HIVE-11031
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 1.0.0, 1.2.0, 1.1.0, 2.0.0
>            Reporter: Prasanth Jayachandran
>            Assignee: Prasanth Jayachandran
>         Attachments: HIVE-11031.patch
>
>
> Column statistics in ORC are optional protobuf fields. Old ORC files might not have statistics for newly added types like decimal, date, timestamp etc. But column statistics merging assumes column statistics exists for these types and invokes merge. For example, merging of TimestampColumnStatistics directly casts the received ColumnStatistics object without doing instanceof check. If the ORC file contains time stamp column statistics then this will work else it will throw ClassCastException.
> Also, the file merge operator swallows the exception.



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