rdblue commented on code in PR #9008:
URL: https://github.com/apache/iceberg/pull/9008#discussion_r1558325098


##########
api/src/test/java/org/apache/iceberg/expressions/TestMiscLiteralConversions.java:
##########
@@ -62,6 +64,22 @@ public void testIdentityConversions() {
     }
   }
 
+  @Test
+  public void testTimestampWithMicrosecondsToDate() {
+    final Literal<Long> micros =
+        
Literal.of("2017-08-18T14:21:01.919432755").to(Types.TimestampType.withoutZone());
+    final Literal<Integer> dateOfNanos = micros.to(Types.DateType.get());
+    
assertThat(dateOfNanos).isEqualTo(Literal.of("2017-08-18").to(Types.DateType.get()));
+  }
+
+  @Test
+  public void testTimestampWithNanoosecondsToDate() {

Review Comment:
   Typo: Nanoo



-- 
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

Reply via email to