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

    VectorExpression vecUdf = new VectorUDFDatetimeLegacyHybridCalendarTimestamp(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]) {
        java.sql.Timestamp input =
            ((TimestampColumnVector) batch.cols[in]).asScratchTimestamp(i);
        java.sql.Timestamp result =
            ((TimestampColumnVector) batch.cols[out]).asScratchTimestamp(i);
        compareToUDFDatetimeLegacyHybridCalendar(genUdf, input, result);
      } 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