XiaoHongbo-Hope commented on code in PR #7264:
URL: https://github.com/apache/paimon/pull/7264#discussion_r2791997225


##########
paimon-python/pypaimon/tag/tag_manager.py:
##########
@@ -140,6 +140,14 @@ def create_tag(
 
         self._create_or_replace_tag(snapshot, tag_name)
 
+    def list_tag(self):
+        """List all tags."""
+        result = []
+        for tag_file in self.file_io.list_status(self.tag_directory()):
+            _, tag = tag_file.base_name.split("-", 1)
+            result.append(tag)
+        return result

Review Comment:
   We can check or filter TAG_PREFIX first to avoid ValueError during spit



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