public static void setSample(VectorizedRowBatch batch) {
    batch.size = VectorizedRowBatch.DEFAULT_SIZE;
    for (int i = 0; i != batch.numCols; i++) {
      setSampleLongCol((LongColumnVector) batch.cols[i]);
    }
  }
Make sure you can create a batch and that all columns are the
default size.
ql/src/test/org/apache/hadoop/hive/ql/exec/vector/TestVectorizedRowBatch.java