timothyw553 commented on code in PR #18993:
URL: https://github.com/apache/iceberg/pull/18993#discussion_r4726622191


##########
core/src/test/java/org/apache/iceberg/TestMetadataTableFilters.java:
##########
@@ -76,6 +76,7 @@ protected static List<Object> parameters() {
   @Override
   public void setupTable() throws Exception {
     super.setupTable();
+    assumeThat(formatVersion).as("v4 does not allow new equality 
deletes").isLessThan(4);

Review Comment:
   adding this guard in `setupTable` skips every v4 case in this class, and the 
same pattern in `TestRowDelta#testRowDeltaCaseSensitivity`, 
`TestRewriteManifests`, and `TestExpireSnapshotsAction` drops v4 coverage for 
case sensitivity, manifest replacement, and delete-file expiration too. since 
these tests only use equality deletes as setup fixtures, could we swap them to 
DVs on v4 instead?
   ```diff
   -    assumeThat(formatVersion).as("v4 does not allow new equality 
deletes").isLessThan(4);
   ...
   -      table.newRowDelta().addDeletes(FILE_C2_DELETES).commit();
   -      table.newRowDelta().addDeletes(FILE_D2_DELETES).commit();
   +      table.newRowDelta()
   +          .addDeletes(formatVersion == 4 ? newDV(FILE_C) : FILE_C2_DELETES)
   +          .commit();
   +      table.newRowDelta()
   +          .addDeletes(formatVersion == 4 ? newDV(FILE_D) : FILE_D2_DELETES)
   +          .commit();
   ```



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