hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ser...@apache.org
Subject hive git commit: HIVE-12034 : HIVE-4243 broke things for llap branch (Sergey Shelukhin) ADDENDUM
Date Mon, 05 Oct 2015 20:46:44 GMT
Repository: hive
Updated Branches:
  refs/heads/llap edd3079f7 -> 68e5ad9e6


HIVE-12034 : HIVE-4243 broke things for llap branch (Sergey Shelukhin) ADDENDUM


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

Branch: refs/heads/llap
Commit: 68e5ad9e68ca1dc1ab89708396565ab8369e7302
Parents: edd3079
Author: Sergey Shelukhin <sershe@apache.org>
Authored: Mon Oct 5 13:39:46 2015 -0700
Committer: Sergey Shelukhin <sershe@apache.org>
Committed: Mon Oct 5 13:39:46 2015 -0700

----------------------------------------------------------------------
 ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcFile.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/68e5ad9e/ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcFile.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcFile.java b/ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcFile.java
index 68d3255..b4dd4ab 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcFile.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcFile.java
@@ -132,7 +132,9 @@ public final class OrcFile {
       }
       values = new WriterVersion[max + 1];
       for (WriterVersion v : WriterVersion.values()) {
-        values[v.id] = v;
+        if (v.id < values.length) {
+          values[v.id] = v;
+        }
       }
     }
 


Mime
View raw message