jiwen624 commented on code in PR #18846:
URL: https://github.com/apache/iceberg/pull/18846#discussion_r4723465821
##########
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:
Good catch, updated both javadocs. I left the inline comment as is since the
javadoc now carries the explanation.
##########
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:
Nice, switched both to isGreaterThanOrEqualTo(2)
--
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]