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/3208897f
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/3208897f
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/3208897f
Branch: refs/heads/branch-1
Commit: 3208897f7697af733b00ab40856012f76e80cf9c
Parents: 2af539c
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:31 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/3208897f/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 146b3f0..3858a79 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
@@ -1487,6 +1487,7 @@ public class TreeReaderFactory {
BytesColumnVector result, long 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) {