There may be a bug in TrinoPageSource.java appendTo method,
checkArgument(type.equals(TIMESTAMP_TZ_MILLIS));
Timestamp timestamp = (org.apache.paimon.data.Timestamp) value;
type.writeObject(
output, fromEpochMillisAndFraction(timestamp.getMillisecond(), 0, UTC_KEY));
when javaType is LongTimestampWithTimeZone.class, type is TIMESTAMP_TZ_MICROS but not TIMESTAMP_TZ_MILLIS?