hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashutosh Chauhan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-7667) handle cast for long in get_aggr_stats() api for metastore for mysql
Date Sat, 09 Aug 2014 00:10:12 GMT

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

Ashutosh Chauhan commented on HIVE-7667:
----------------------------------------

Without a fix, you are greeted with:
{code}
java.lang.ClassCastException: java.math.BigDecimal cannot be cast to java.lang.Long
        at org.apache.hadoop.hive.metastore.StatObjectConverter.fillColumnStatisticsData(StatObjectConverter.java:380)
        at org.apache.hadoop.hive.metastore.MetaStoreDirectSql.prepareCSObj(MetaStoreDirectSql.java:939)
        at org.apache.hadoop.hive.metastore.MetaStoreDirectSql.aggrColStatsForPartitions(MetaStoreDirectSql.java:925)
        at org.apache.hadoop.hive.metastore.ObjectStore$7.getSqlResult(ObjectStore.java:5913)
        at org.apache.hadoop.hive.metastore.ObjectStore$7.getSqlResult(ObjectStore.java:5909)
        at org.apache.hadoop.hive.metastore.ObjectStore$GetHelper.run(ObjectStore.java:2208)
        at org.apache.hadoop.hive.metastore.ObjectStore.get_aggr_stats_for(ObjectStore.java:5909)
{code}

> handle cast for long in get_aggr_stats() api for metastore for mysql
> --------------------------------------------------------------------
>
>                 Key: HIVE-7667
>                 URL: https://issues.apache.org/jira/browse/HIVE-7667
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore, Statistics
>    Affects Versions: 0.14.0
>            Reporter: Ashutosh Chauhan
>            Assignee: Ashutosh Chauhan
>         Attachments: HIVE-7667.patch
>
>




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

Mime
View raw message