@Test
  public void testVectorUDFDatetimeLegacyHybridCalendarDate() throws HiveException {
    VectorizedRowBatch batch = getFreshBatchOfDates(VectorizedRowBatch.DEFAULT_SIZE);
    Assert.assertTrue(((LongColumnVector) batch.cols[1]).noNulls);
    Assert.assertFalse(((LongColumnVector) batch.cols[1]).isRepeating);
    verifyVectorUDFDatetimeLegacyHybridCalendarDate(batch);
    TestVectorizedRowBatch.addRandomNulls(batch.cols[0]);
    verifyVectorUDFDatetimeLegacyHybridCalendarDate(batch);

    batch = getFreshBatchOfDates(1);
    batch.cols[0].isRepeating = true; //
    verifyVectorUDFDatetimeLegacyHybridCalendarDate(batch);
    batch.cols[0].noNulls = false;
    batch.cols[0].isNull[0] = true;
    verifyVectorUDFDatetimeLegacyHybridCalendarDate(batch);

    batch = getFreshBatchOfDates(3);
    batch.cols[0].isRepeating = false;
    batch.selectedInUse = true;
    batch.selected = new int[] {0, 1, 2};
    verifyVectorUDFDatetimeLegacyHybridCalendarDate(batch);
    batch.cols[0].noNulls = false;
    batch.cols[0].isNull[0] = true;
    verifyVectorUDFDatetimeLegacyHybridCalendarDate(batch);
  }
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