From aa891acf20040d15e7ca59dc503adb3c1e4325b8 Mon Sep 17 00:00:00 2001 From: bknbkn <67318028+bknbkn@users.noreply.github.com> Date: Thu, 26 Oct 2023 01:30:21 +0800 Subject: [PATCH] Core: Reduce unnecessary add operations in deletedPaths set (#8868) --- .../src/main/java/org/apache/iceberg/ManifestFilterManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/apache/iceberg/ManifestFilterManager.java b/core/src/main/java/org/apache/iceberg/ManifestFilterManager.java index e0e5fed5ba8a..3b4c5e57e31e 100644 --- a/core/src/main/java/org/apache/iceberg/ManifestFilterManager.java +++ b/core/src/main/java/org/apache/iceberg/ManifestFilterManager.java @@ -450,8 +450,8 @@ private ManifestFile filterManifestWithDeletedFiles( // only add the file to deletes if it is a new delete // this keeps the snapshot summary accurate for non-duplicate data deletedFiles.add(entry.file().copyWithoutStats()); + deletedPaths.add(wrapper); } - deletedPaths.add(wrapper); } else { writer.existing(entry); }