HIVE-14483 : java.lang.ArrayIndexOutOfBoundsException org.apache.orc.impl.TreeReaderFactory.commonReadByteArrays (Sergey Zadoroshnyak, reviewed by Sergey Shelukhin)
Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/653b8589 Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/653b8589 Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/653b8589 Branch: refs/heads/master Commit: 653b85899134229a7fd6debeacab37e82bd350fd Parents: e841edc Author: Sergey Shelukhin <[email protected]> Authored: Mon Aug 15 13:55:16 2016 -0700 Committer: Sergey Shelukhin <[email protected]> Committed: Mon Aug 15 13:55:16 2016 -0700 ---------------------------------------------------------------------- orc/src/java/org/apache/orc/impl/TreeReaderFactory.java | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/653b8589/orc/src/java/org/apache/orc/impl/TreeReaderFactory.java ---------------------------------------------------------------------- diff --git a/orc/src/java/org/apache/orc/impl/TreeReaderFactory.java b/orc/src/java/org/apache/orc/impl/TreeReaderFactory.java index c4a2093..e6fef91 100644 --- a/orc/src/java/org/apache/orc/impl/TreeReaderFactory.java +++ b/orc/src/java/org/apache/orc/impl/TreeReaderFactory.java @@ -1228,6 +1228,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, scratchlcv.vector, batchSize); int totalLength = 0; if (!scratchlcv.isRepeating) {
