You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "smaheshwar-pltr (via GitHub)" <gi...@apache.org> on 2026/09/07 03:18:34 UTC

Re: [PR] Core: Fix branch snapshot scans when main is empty [iceberg]

smaheshwar-pltr commented on code in PR #17735:
URL: https://github.com/apache/iceberg/pull/17735#discussion_r3946295153


##########
core/src/test/java/org/apache/iceberg/TestScansAndSchemaEvolution.java:
##########
@@ -317,6 +318,26 @@ public void testColumnDrop() throws IOException {
     assertThat(tasks).hasSize(2);
   }
 
+  @TestTemplate
+  void plansBranchSnapshotWhenMainIsEmptyAfterSchemaEvolution() throws IOException {
+    Table table = TestTables.create(temp, "test", SCHEMA, SPEC, formatVersion);
+
+    table.newAppend().appendFile(createDataFile("one")).toBranch("branch").commit();
+    long snapshotId = table.snapshot("branch").snapshotId();

Review Comment:
   Done, thanks!



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

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org