FangYongs commented on code in PR #2748:
URL: https://github.com/apache/incubator-paimon/pull/2748#discussion_r1470514654


##########
paimon-core/src/test/java/org/apache/paimon/table/FileStoreTableTestBase.java:
##########
@@ -1240,6 +1248,50 @@ public void testSchemaPathOption() throws Exception {
         assertThat(schemaPath).isEqualTo(tablePath);
     }
 
+    @Test
+    public void testBranchWriteAndRead() throws Exception {
+        FileStoreTable table = createFileStoreTable();
+
+        generateBranch(table);
+
+        // Write data to branch1
+        try (StreamTableWrite write = table.newWrite(commitUser);
+                StreamTableCommit commit = table.newCommit(commitUser, 
BRANCH_NAME)) {
+            write.write(rowData(2, 20, 200L));
+            commit.commit(1, write.prepareCommit(false, 2));
+        }
+
+        // Validate data in branch1

Review Comment:
   We also need to verify that the data of the `main` is not affected by 
`branch1`



-- 
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...@paimon.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to