chenghuichen commented on code in PR #7077:
URL: https://github.com/apache/paimon/pull/7077#discussion_r2706616810
##########
paimon-core/src/test/java/org/apache/paimon/JavaPyE2ETest.java:
##########
@@ -106,118 +106,126 @@ public void before() throws Exception {
@Test
@EnabledIfSystemProperty(named = "run.e2e.tests", matches = "true")
public void testJavaWriteReadAppendTable() throws Exception {
- Identifier identifier = identifier("mixed_test_append_tablej");
- Schema schema =
- Schema.newBuilder()
- .column("id", DataTypes.INT())
- .column("name", DataTypes.STRING())
- .column("category", DataTypes.STRING())
- .column("value", DataTypes.DOUBLE())
- .partitionKeys("category")
- .option("dynamic-partition-overwrite", "false")
- .build();
-
- catalog.createTable(identifier, schema, true);
- Table table = catalog.getTable(identifier);
- FileStoreTable fileStoreTable = (FileStoreTable) table;
-
- try (StreamTableWrite write = fileStoreTable.newWrite(commitUser);
- InnerTableCommit commit =
fileStoreTable.newCommit(commitUser)) {
-
- write.write(createRow4Cols(1, "Apple", "Fruit", 1.5));
- write.write(createRow4Cols(2, "Banana", "Fruit", 0.8));
- write.write(createRow4Cols(3, "Carrot", "Vegetable", 0.6));
- write.write(createRow4Cols(4, "Broccoli", "Vegetable", 1.2));
- write.write(createRow4Cols(5, "Chicken", "Meat", 5.0));
- write.write(createRow4Cols(6, "Beef", "Meat", 8.0));
-
- commit.commit(0, write.prepareCommit(true, 0));
+ for (String format : Arrays.asList("parquet", "orc", "avro")) {
+ Identifier identifier = identifier("mixed_test_append_tablej_" +
format);
+ Schema schema =
+ Schema.newBuilder()
+ .column("id", DataTypes.INT())
+ .column("name", DataTypes.STRING())
+ .column("category", DataTypes.STRING())
+ .column("value", DataTypes.DOUBLE())
Review Comment:
> Can you also add TIMESTAMP and LOCAL_ZONE_TIMESTAMP?
Updated. This did reveal some issues.
--
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]