Open tdcmeehan opened 2 months ago
I think updating the timestamp case in TypeConverter
toPrestoType
to...
case TIMESTAMP:
Types.TimestampType timestampType = (Types.TimestampType) type.asPrimitiveType();
if (timestampType.shouldAdjustToUTC()) {
return TimestampWithTimeZoneType.TIMESTAMP_WITH_TIME_ZONE;
}
return TimestampType.TIMESTAMP;
should fix this
Your Environment
Expected Behavior
Currently, the Presto Iceberg connector does not differentiate between
timestamp
andtimestamptz
, mapping both toTIMESTAMP
. This is incorrect, especially whendeprecated.legacy-timestamp
is set tofalse
, becausetimestamptz
represents a point in time value, whereas Presto'sTIMESTAMP
represents a timestamp that is not a point in time.Current Behavior
All Iceberg
timestamp
andtimestamptz
s are being mapped toTIMESTAMP
Possible Solution
Improve the type mapping to use
TIMESTAMP WITH TIME ZONE
Steps to Reproduce
1. 2. 3. 4.
Screenshots (if appropriate)
Context