hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prasanth J (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (HIVE-5787) Move non-type specific column statistics to ColumnStatistics object in ORC
Date Mon, 03 Mar 2014 20:04:22 GMT

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

Prasanth J reassigned HIVE-5787:
--------------------------------

    Assignee: Prasanth J

> Move non-type specific column statistics to ColumnStatistics object in ORC
> --------------------------------------------------------------------------
>
>                 Key: HIVE-5787
>                 URL: https://issues.apache.org/jira/browse/HIVE-5787
>             Project: Hive
>          Issue Type: Improvement
>    Affects Versions: 0.13.0
>            Reporter: Prasanth J
>            Assignee: Prasanth J
>            Priority: Minor
>              Labels: orcfile
>
> Non-type statistics like min, max, numNulls etc. can be moved to ColumnStatistics class.
This avoids ugly checks like 
> {code} if (index instanceof IntegerColumnStatistics) {
>         return ((IntegerColumnStatistics) index).getMinimum();
>       } else if (index instanceof DoubleColumnStatistics) {
>         return ((DoubleColumnStatistics) index).getMinimum();
>       } else if (index instanceof StringColumnStatistics) {
>         return ((StringColumnStatistics) index).getMinimum();
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message