rdblue commented on code in PR #5009:
URL: https://github.com/apache/iceberg/pull/5009#discussion_r910195914


##########
core/src/test/java/org/apache/iceberg/TestRowDelta.java:
##########
@@ -823,16 +823,14 @@ public void testAddDeleteFilesMultipleSpecs() {
 
     Map<String, String> summary = snapshot.summary();
 
-    Assert.assertEquals("Should change 4 partitions", "4", 
summary.get(CHANGED_PARTITION_COUNT_PROP));
+    Assert.assertEquals("Should change 3 partitions", "3", 
summary.get(CHANGED_PARTITION_COUNT_PROP));
     Assert.assertEquals("Should add 1 data file", "1", 
summary.get(ADDED_FILES_PROP));
     Assert.assertEquals("Should have 4 data files", "4", 
summary.get(TOTAL_DATA_FILES_PROP));
     Assert.assertEquals("Should add 3 delete files", "3", 
summary.get(ADDED_DELETE_FILES_PROP));
     Assert.assertEquals("Should have 3 delete files", "3", 
summary.get(TOTAL_DELETE_FILES_PROP));
     Assert.assertEquals("Should add 3 position deletes", "3", 
summary.get(ADDED_POS_DELETES_PROP));
     Assert.assertEquals("Should have 3 position deletes", "3", 
summary.get(TOTAL_POS_DELETES_PROP));
 
-    Assert.assertTrue("Partition metrics must be correct",
-        summary.get(CHANGED_PARTITION_PREFIX).contains(ADDED_DELETE_FILES_PROP 
+ "=1"));

Review Comment:
   I think this should still be present. It is okay to have an entry for the 
table root in cases like this.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to