public static void setBatchSize(VectorizedRowBatch batch, int size) {
    assert (size <= batch.getMaxSize());
    batch.size = size;
  }
Reduce the batch size for a vectorized row batch
ql/src/java/org/apache/hadoop/hive/ql/exec/vector/VectorizedBatchUtil.java