hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pxi...@apache.org
Subject [2/7] hive git commit: HIVE-8627: Compute stats on a table from impala caused the table to be corrupted (Na via Xuefu)
Date Tue, 11 Aug 2015 21:12:00 GMT
HIVE-8627: Compute stats on a table from impala caused the table to be corrupted (Na via Xuefu)

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1635309 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/6be7f512
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/6be7f512
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/6be7f512

Branch: refs/heads/branch-1.0
Commit: 6be7f5127c3b0f5a25256456798c9d98ba2145f3
Parents: 27a3fc2
Author: Xuefu Zhang <xuefu@apache.org>
Authored: Wed Oct 29 21:38:01 2014 +0000
Committer: Pengcheng Xiong <pxiong@apache.org>
Committed: Tue Aug 11 13:53:47 2015 -0700

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hive/metastore/StatObjectConverter.java  | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/6be7f512/metastore/src/java/org/apache/hadoop/hive/metastore/StatObjectConverter.java
----------------------------------------------------------------------
diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/StatObjectConverter.java
b/metastore/src/java/org/apache/hadoop/hive/metastore/StatObjectConverter.java
index 5c3bce3..475883b 100644
--- a/metastore/src/java/org/apache/hadoop/hive/metastore/StatObjectConverter.java
+++ b/metastore/src/java/org/apache/hadoop/hive/metastore/StatObjectConverter.java
@@ -417,6 +417,7 @@ public class StatObjectConverter {
   public static void fillColumnStatisticsData(String colType, ColumnStatisticsData data,
       Object llow, Object lhigh, Object dlow, Object dhigh, Object declow, Object dechigh,
       Object nulls, Object dist, Object avglen, Object maxlen, Object trues, Object falses)
throws MetaException {
+    colType = colType.toLowerCase();
     if (colType.equals("boolean")) {
       BooleanColumnStatsData boolStats = new BooleanColumnStatsData();
       boolStats.setNumFalses(MetaStoreDirectSql.extractSqlLong(falses));


Mime
View raw message