public static java.sql.Date toSQLDate(int v) {
    // note that, in this case, can't handle Daylight Saving Time
    final long t = v * MILLIS_PER_DAY;
    return new java.sql.Date(t - LOCAL_TZ.getOffset(t));
  }
Converts the internal representation of a SQL DATE (int) to the Java type used for UDF
parameters ({@link java.sql.Date}).
amoro-format-mixed/amoro-mixed-flink/amoro-mixed-flink-common/src/main/java/org/apache/amoro/flink/util/DateTimeUtils.java