cos120 commented on code in PR #7264:
URL: https://github.com/apache/paimon/pull/7264#discussion_r2796611702
##########
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:
since name of tag file is `f"{TAG_PREFIX}{tag_name}"`, `split("-", 1)` can
handle it.
--
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]