Skip to content

Commit

Permalink
Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
aokolnychyi committed Nov 4, 2024
1 parent d96a59a commit 3fc4241
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,12 @@ public void testRewriteManifestsPreservesOptionalFields() throws IOException {
try (CloseableIterable<FileScanTask> tasks = table.newScan().planFiles()) {
for (FileScanTask fileTask : tasks) {
DataFile dataFile = fileTask.file();
DeleteFile deleteFile = Iterables.getOnlyElement(fileTask.deletes());
if (dataFile.location().equals(dataFile1.location())) {
DeleteFile deleteFile = Iterables.getOnlyElement(fileTask.deletes());
assertThat(deleteFile.referencedDataFile()).isEqualTo(deleteFile1.referencedDataFile());
} else if (dataFile.location().equals(dataFile2.location())) {
DeleteFile deleteFile = Iterables.getOnlyElement(fileTask.deletes());
assertThat(deleteFile.referencedDataFile()).isEqualTo(deleteFile2.referencedDataFile());
} else {
DeleteFile deleteFile = Iterables.getOnlyElement(fileTask.deletes());
assertThat(deleteFile.referencedDataFile()).isEqualTo(deleteFile3.referencedDataFile());
}
}
Expand Down

0 comments on commit 3fc4241

Please sign in to comment.