JingsongLi commented on code in PR #1199:
URL: https://github.com/apache/incubator-paimon/pull/1199#discussion_r1201499274


##########
paimon-core/src/main/java/org/apache/paimon/manifest/ManifestFileMeta.java:
##########
@@ -185,4 +207,108 @@ private static void mergeCandidates(
             newMetas.addAll(merged);
         }
     }
+
+    static class FullCompactionHelper {
+        private List<ManifestFileMeta> metas;
+        private ManifestFile manifestFile;
+        private RowType partitionType;
+        private int index;
+
+        public FullCompactionHelper(
+                List<ManifestFileMeta> metas, ManifestFile manifestFile, 
RowType partitionType) {
+            this.metas = metas;
+            this.manifestFile = manifestFile;
+            this.partitionType = partitionType;
+            int index = metas.size();
+        }
+
+        public int getFirstManifest() {
+            // Manifests which container DELETE ManifestEntry
+            List<ManifestFileMeta> delta = Lists.newArrayList();
+            long deltaSize = 0;
+            long baseSize = 0;
+
+            for (ManifestFileMeta meta : metas) {
+                if (meta.numDeletedFiles > 0) {
+                    deltaSize += meta.fileSize();

Review Comment:
   `break;` here.
   The latter are all delta's.



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

Reply via email to