protected void func(LongColumnVector outputColVector, LongColumnVector inputColVector, int i) {
    // get number of milliseconds from number of days
    Date inputDate = Date.ofEpochDay((int) inputColVector.vector[i]);
    java.sql.Date oldDate = new java.sql.Date(inputDate.toEpochMilli());
    Date adjustedDate = Date.valueOf(SIMPLE_DATE_FORMAT_THREAD_LOCAL.get().format(oldDate));
    outputColVector.vector[i] = adjustedDate.toEpochDay();
  }
Vectorized version of GenericUDFDatetimeLegacyHybridCalendar (datetime_legacy_hybrid_calendar).
Converts a date/timestamp to legacy hybrid Julian-Gregorian calendar assuming that its internal
days/milliseconds since epoch is calculated using the proleptic Gregorian calendar.
Extends {@link FuncDateToDate}
ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/VectorUDFDatetimeLegacyHybridCalendarDate.java