predator4ann commented on code in PR #8216:
URL: https://github.com/apache/gravitino/pull/8216#discussion_r2324606836
##########
trino-connector/trino-connector/src/main/java/org/apache/gravitino/trino/connector/catalog/iceberg/IcebergDataTypeTransformer.java:
##########
@@ -49,6 +49,15 @@ public Type getGravitinoType(io.trino.spi.type.Type type) {
"Iceberg does not support the datatype VARCHAR with length");
}
return Types.StringType.get();
+ } else if (io.trino.spi.type.TimeType.class.isAssignableFrom(typeClass)) {
+ // Iceberg only supports time type with microsecond (6) precision
+ return Types.TimeType.of(TRINO_MICROS_PRECISION);
Review Comment:
When creating an Iceberg table via Trino, whether it is timestamp or
timestamp(0...12), the final mapped Iceberg data type is always timestamp(6).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]