public static String formatDate(int date) {
    final StringBuilder buf = new StringBuilder(10);
    formatDate(buf, date);
    return buf.toString();
  }
Helper for CAST({date} AS VARCHAR(n)).
amoro-format-mixed/amoro-mixed-flink/amoro-mixed-flink-common/src/main/java/org/apache/amoro/flink/util/DateTimeUtils.java