TheR1sing3un commented on code in PR #7873:
URL: https://github.com/apache/paimon/pull/7873#discussion_r3461089019


##########
paimon-python/pypaimon/write/file_store_commit.py:
##########
@@ -189,6 +191,116 @@ def commit(self, commit_messages: List[CommitMessage], 
commit_identifier: int):
                          allow_rollback=allow_rollback,
                          index_deletes=index_deletes)
 
+    def commit_compact(self, commit_messages: List[CommitMessage], 
commit_identifier: int):
+        """Commit compaction-only messages.
+
+        Each message must carry no new_files; compact_before → DELETE entries,
+        compact_after → ADD entries; snapshot kind = COMPACT. Skips row-id
+        assignment and conflict detection (a compaction never produces new 
rows).
+        """
+        if not commit_messages:
+            return
+
+        for msg in commit_messages:
+            if msg.new_files:

Review Comment:
   fixed



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