You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by rh...@apache.org on 2014/04/01 23:22:24 UTC
svn commit: r1583796 -
/hive/branches/branch-0.13/ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcInputFormat.java
Author: rhbutani
Date: Tue Apr 1 21:22:24 2014
New Revision: 1583796
URL: http://svn.apache.org/r1583796
Log:
HIVE-6786 Off by one error in ORC PPD (Prasanth J via Sergey Shelukhin)
Modified:
hive/branches/branch-0.13/ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcInputFormat.java
Modified: hive/branches/branch-0.13/ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcInputFormat.java
URL: http://svn.apache.org/viewvc/hive/branches/branch-0.13/ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcInputFormat.java?rev=1583796&r1=1583795&r2=1583796&view=diff
==============================================================================
--- hive/branches/branch-0.13/ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcInputFormat.java (original)
+++ hive/branches/branch-0.13/ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcInputFormat.java Tue Apr 1 21:22:24 2014
@@ -754,7 +754,7 @@ public class OrcInputFormat implements
// eliminate stripes that doesn't satisfy the predicate condition
includeStripe = new boolean[stripes.size()];
for(int i=0; i < stripes.size(); ++i) {
- includeStripe[i] = (i > stripeStats.size()) ||
+ includeStripe[i] = (i >= stripeStats.size()) ||
isStripeSatisfyPredicate(stripeStats.get(i), sarg,
filterColumns);
if (LOG.isDebugEnabled() && !includeStripe[i]) {