JingsongLi commented on code in PR #5430:
URL: https://github.com/apache/paimon/pull/5430#discussion_r2041310825


##########
paimon-flink/paimon-flink-common/src/test/java/org/apache/paimon/flink/BranchSqlITCase.java:
##########
@@ -288,6 +288,21 @@ public void testBranchFastForward() throws Exception {
                         "Fast-forward from the current branch 'test' is not 
allowed.");
     }
 
+    @Test
+    public void testBranchSystemTableRead() throws Exception {
+        sql(
+                "CREATE TABLE T ( pt INT NOT NULL, k INT NOT NULL, v STRING ) 
PARTITIONED BY (pt) WITH ( 'bucket' = '-1' )");
+        sql("CALL sys.create_branch('default.T', 'stream')");
+        sql(
+                "INSERT INTO T$branch_stream VALUES (1, 10, 'truck'), (1, 12, 
'suv'), (2, 20, 'moto'), (2, 25, 'coupe')");
+        sql("alter table T set ('branch'='stream')");

Review Comment:
   This is deprecated method, you should use `T$branch_stream$files` only.



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