anuragmantri commented on code in PR #11771:
URL: https://github.com/apache/iceberg/pull/11771#discussion_r1887709101


##########
core/src/test/java/org/apache/iceberg/catalog/CatalogTests.java:
##########
@@ -1590,13 +1590,15 @@ public void 
testCompleteCreateTransactionMultipleSchemas() {
     updateSchema.commit();
 
     UpdatePartitionSpec updateSpec = create.updateSpec().addField("new_col");
-    PartitionSpec newSpec = updateSpec.apply();
     updateSpec.commit();
 
     ReplaceSortOrder replaceSortOrder = 
create.replaceSortOrder().asc("new_col");
     SortOrder newSortOrder = replaceSortOrder.apply();
     replaceSortOrder.commit();
 
+    // Get new spec after commit to write new file with new spec
+    PartitionSpec newSpec = create.table().spec();

Review Comment:
   This test was not using the latest spec. I would fail with `newAppend()` too.



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

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


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

Reply via email to