public static TimestampData parseTimestampData(String dateStr, int precision, TimeZone timeZone)
      throws DateTimeException {
    return TimestampData.fromInstant(
        fromTemporalAccessor(DEFAULT_TIMESTAMP_FORMATTER.parse(dateStr), precision)
            .atZone(timeZone.toZoneId())
            .toInstant());
  }
Converts the Java type used for UDF parameters of SQL TIMESTAMP type ({@link Timestamp}) to
internal representation (long).

<p>Converse of {@link #toSQLTimestamp(long)}.
amoro-format-mixed/amoro-mixed-flink/amoro-mixed-flink-common/src/main/java/org/apache/amoro/flink/util/DateTimeUtils.java