private VectorizedRowBatch getFreshBatchOfDates(int size) {
    return getVectorizedRowBatch(new Long[] {
        (long) Date.valueOf("0001-01-01").toEpochDay(),
        (long) Date.valueOf("1400-01-01").toEpochDay(),
        (long) Date.valueOf("1500-01-01").toEpochDay(),
        (long) Date.valueOf("1583-01-01").toEpochDay(),
        },
        size);
  }
Input array is used to fill the entire specified size of the vector row batch.
ql/src/test/org/apache/hadoop/hive/ql/exec/vector/expressions/TestVectorUDFDatetimeLegacyHybridCalendar.java