Repository: hive
Updated Branches:
refs/heads/branch-1 2af539c17 -> 3208897f7
refs/heads/branch-2.0 74c46e846 -> 1ccefa329
refs/heads/branch-2.1 b1188b45d -> 3965fc0f5
refs/heads/master e841edc57 -> 653b85899
HIVE-14483 : java.lang.ArrayIndexOutOfBoundsException
org.apache.orc.impl.TreeReaderFactory.commonReadByteArrays (Sergey
Zadoroshnyak, reviewed by Sergey Shelukhin)
Conflicts:
ql/src/java/org/apache/hadoop/hive/ql/io/orc/TreeReaderFactory.java
Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/1ccefa32
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/1ccefa32
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/1ccefa32
Branch: refs/heads/branch-2.0
Commit: 1ccefa3299cb5e63a0e9d61ef8fac739f6a2bdfa
Parents: 74c46e8
Author: Sergey Shelukhin <[email protected]>
Authored: Mon Aug 15 13:27:23 2016 -0700
Committer: Sergey Shelukhin <[email protected]>
Committed: Mon Aug 15 13:54:12 2016 -0700
----------------------------------------------------------------------
ql/src/java/org/apache/hadoop/hive/ql/io/orc/TreeReaderFactory.java | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hive/blob/1ccefa32/ql/src/java/org/apache/hadoop/hive/ql/io/orc/TreeReaderFactory.java
----------------------------------------------------------------------
diff --git
a/ql/src/java/org/apache/hadoop/hive/ql/io/orc/TreeReaderFactory.java
b/ql/src/java/org/apache/hadoop/hive/ql/io/orc/TreeReaderFactory.java
index 8bb32ea..4db95d9 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/io/orc/TreeReaderFactory.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/io/orc/TreeReaderFactory.java
@@ -1501,6 +1501,7 @@ public class TreeReaderFactory {
BytesColumnVector result, final int batchSize) throws IOException {
// Read lengths
scratchlcv.isNull = result.isNull; // Notice we are replacing the
isNull vector here...
+ scratchlcv.ensureSize(batchSize, false);
lengths.nextVector(scratchlcv, batchSize);
int totalLength = 0;
if (!scratchlcv.isRepeating) {