in src/main/java/org/apache/paimon/trino/TrinoTypeUtils.java [168:179]
public Type visit(LocalZonedTimestampType localZonedTimestampType) {
int precision = localZonedTimestampType.getPrecision();
if (precision <= 3) {
return TimestampWithTimeZoneType.TIMESTAMP_TZ_MILLIS;
} else if (precision <= 6) {
return TimestampWithTimeZoneType.TIMESTAMP_TZ_MICROS;
} else if (precision <= 9) {
return TimestampWithTimeZoneType.TIMESTAMP_TZ_NANOS;
} else {
return TimestampWithTimeZoneType.TIMESTAMP_TZ_PICOS;
}
}