private void verifyVectorUDFDatetimeLegacyHybridCalendarDate(VectorizedRowBatch batch)
      throws HiveException {
    GenericUDF genUdf = new GenericUDFDatetimeLegacyHybridCalendar();
    genUdf.initialize(
        new ObjectInspector[] {PrimitiveObjectInspectorFactory.writableDateObjectInspector});

    VectorExpression vecUdf = new VectorUDFDatetimeLegacyHybridCalendarDate(0, 1);
    vecUdf.evaluate(batch);
    final int in = 0;
    final int out = 1;

    for (int i = 0; i < batch.size; i++) {
      if (batch.cols[in].noNulls || !batch.cols[in].isNull[i]) {
        long input = ((LongColumnVector) batch.cols[in]).vector[i];
        long output = ((LongColumnVector) batch.cols[out]).vector[i];
        compareToUDFDatetimeLegacyHybridCalendar(genUdf, input, output);
      } else {
        Assert.assertEquals(batch.cols[out].isNull[i], batch.cols[in].isNull[i]);
      }
    }
  }
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