diff --git a/orc/src/java/org/apache/orc/impl/TreeReaderFactory.java b/orc/src/java/org/apache/orc/impl/TreeReaderFactory.java index 6c8ecfd..7233ce4 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 @@ void skipRows(long items) throws IOException { 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) {