JingsongLi commented on code in PR #1213:
URL: https://github.com/apache/incubator-paimon/pull/1213#discussion_r1202374921


##########
paimon-hive/paimon-hive-connector-common/src/test/java/org/apache/paimon/hive/PaimonStorageHandlerITCase.java:
##########
@@ -900,14 +900,25 @@ public void testPredicatePushDown() throws Exception {
     public void testDateAndTimestamp() throws Exception {
         String path = folder.newFolder().toURI().toString();
         String tablePath = String.format("%s/default.db/hive_test_table", 
path);
+        ThreadLocalRandom random = ThreadLocalRandom.current();
         Options conf = new Options();
         conf.set(CatalogOptions.WAREHOUSE, path);
-        conf.set(CoreOptions.FILE_FORMAT, CoreOptions.FileFormatType.AVRO);
+        int randomInt = random.nextInt(3);
+        if (randomInt == 0) {
+            conf.set(CoreOptions.FILE_FORMAT, CoreOptions.FileFormatType.ORC);
+        } else if (randomInt == 1) {
+            conf.set(CoreOptions.FILE_FORMAT, 
CoreOptions.FileFormatType.PARQUET);
+        } else {
+            conf.set(CoreOptions.FILE_FORMAT, CoreOptions.FileFormatType.AVRO);
+        }
         Table table =
                 FileStoreTestUtils.createFileStoreTable(
                         conf,
                         RowType.of(
-                                new DataType[] {DataTypes.DATE(), 
DataTypes.TIMESTAMP(3)},
+                                new DataType[] {
+                                    DataTypes.DATE(),
+                                    DataTypes.TIMESTAMP(random.nextBoolean() ? 
3 : 6)

Review Comment:
   random.nextInt(10)



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

Reply via email to