epgif commented on code in PR #9008: URL: https://github.com/apache/iceberg/pull/9008#discussion_r1539857850
########## api/src/main/java/org/apache/iceberg/expressions/Literals.java: ########## @@ -298,7 +299,7 @@ public <T> Literal<T> to(Type type) { case TIME: return (Literal<T>) new TimeLiteral(value()); case TIMESTAMP: - return (Literal<T>) new TimestampLiteral(value()); + return (Literal<T>) new TimestampLiteral(((TimestampType) type).unit(), value()); Review Comment: Now you only get new behavior if explicitly requesting TIMESTAMP_NANO. -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org