timothyw553 commented on code in PR #18846:
URL: https://github.com/apache/iceberg/pull/18846#discussion_r4722607099
##########
core/src/test/java/org/apache/iceberg/TestRowDelta.java:
##########
@@ -417,6 +421,47 @@ public void testFileDeleteAndRowDelete() {
statuses(Status.ADDED));
}
+ @TestTemplate
+ public void concurrentEqualityDeletesOutsideConflictFilterForRemovedFile() {
+ assumeThat(formatVersion).isIn(2, 3);
Review Comment:
nit: `isIn(2, 3)` skips format v4 here and in `TestOverwriteWithValidation`
— could we enable both on v4 too?
```diff
- assumeThat(formatVersion).isIn(2, 3);
+ assumeThat(formatVersion).isGreaterThanOrEqualTo(2);
```
##########
core/src/main/java/org/apache/iceberg/BaseOverwriteFiles.java:
##########
@@ -177,13 +177,8 @@ protected void validate(TableMetadata base, Snapshot
parent) {
}
if (!deletedDataFiles.isEmpty()) {
- if (conflictDetectionFilter != null) {
- validateNoNewDeletesForDataFiles(
- base, startingSnapshotId, conflictDetectionFilter,
deletedDataFiles, parent);
- } else {
- // direct deletes: validate no rows were deleted from deleted files
- validateNoNewDeletesForDataFiles(base, startingSnapshotId,
deletedDataFiles, parent);
- }
+ // direct deletes: validate no rows were deleted from deleted files
+ validateNoNewDeletesForDataFiles(base, startingSnapshotId,
deletedDataFiles, parent);
Review Comment:
should we also update the javadoc on
`OverwriteFiles.validateNoConflictingDeletes()` and
`RowDelta.validateNoConflictingDeleteFiles()`? right now both still say
validation uses `conflictDetectionFilter`, which no longer holds for explicitly
removed files. a short comment here explaining that deletes outside the filter
can still apply to replaced files might help 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: [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]