hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@apache.org
Subject svn commit: r1027666 - in /hadoop/hive/trunk: CHANGES.txt ql/src/java/org/apache/hadoop/hive/ql/exec/StatsTask.java
Date Tue, 26 Oct 2010 18:02:42 GMT
Author: namit
Date: Tue Oct 26 18:02:41 2010
New Revision: 1027666

URL: http://svn.apache.org/viewvc?rev=1027666&view=rev
Log:
HIVE-1748 Statistics broken for tables with size in excess of Integer.MAX_VALUE
(Paul Butler via namit)


Modified:
    hadoop/hive/trunk/CHANGES.txt
    hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/StatsTask.java

Modified: hadoop/hive/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/CHANGES.txt?rev=1027666&r1=1027665&r2=1027666&view=diff
==============================================================================
--- hadoop/hive/trunk/CHANGES.txt (original)
+++ hadoop/hive/trunk/CHANGES.txt Tue Oct 26 18:02:41 2010
@@ -407,6 +407,9 @@ Trunk -  Unreleased
     Eclipse library dependencies)
     (Carl Steinbach via jvs)
 
+    HIVE-1748 Statistics broken for tables with size in excess of Integer.MAX_VALUE
+    (Paul Butler via namit)
+
   TESTS
 
     HIVE-1464. improve  test query performance

Modified: hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/StatsTask.java
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/StatsTask.java?rev=1027666&r1=1027665&r2=1027666&view=diff
==============================================================================
--- hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/StatsTask.java (original)
+++ hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/StatsTask.java Tue Oct 26
18:02:41 2010
@@ -334,7 +334,7 @@ public class StatsTask extends Task<Stat
                     Long.parseLong(parameters.get(StatsSetupConst.ROW_COUNT)) :
                     0L;
           long sz = parameters.containsKey(StatsSetupConst.TOTAL_SIZE) ?
-                    Integer.parseInt(parameters.get(StatsSetupConst.TOTAL_SIZE)) :
+                    Long.parseLong(parameters.get(StatsSetupConst.TOTAL_SIZE)) :
                     0L;
           if (hasStats) {
             PartitionStatistics oldPartStats = new PartitionStatistics(nf, nr, sz);



Mime
View raw message