This is an automated email from the ASF dual-hosted git repository.
lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git
The following commit(s) were added to refs/heads/master by this push:
new caf2625ecf [python] Rename list_tag to list_tags
caf2625ecf is described below
commit caf2625ecf7b814c75349476d878a6894fc42714
Author: JingsongLi <[email protected]>
AuthorDate: Thu Feb 12 12:18:29 2026 +0800
[python] Rename list_tag to list_tags
---
paimon-python/pypaimon/table/file_store_table.py | 4 ++--
paimon-python/pypaimon/tag/tag_manager.py | 2 +-
paimon-python/pypaimon/tests/table/simple_table_test.py | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/paimon-python/pypaimon/table/file_store_table.py
b/paimon-python/pypaimon/table/file_store_table.py
index 64423e12dc..f3e61cc930 100644
--- a/paimon-python/pypaimon/table/file_store_table.py
+++ b/paimon-python/pypaimon/table/file_store_table.py
@@ -139,7 +139,7 @@ class FileStoreTable(Table):
tag_mgr = self.tag_manager()
return tag_mgr.delete_tag(tag_name)
- def list_tag(self):
+ def list_tags(self):
"""
List all tags.
@@ -147,7 +147,7 @@ class FileStoreTable(Table):
List of name of tag
"""
tag_mgr = self.tag_manager()
- return tag_mgr.list_tag()
+ return tag_mgr.list_tags()
def path_factory(self) -> 'FileStorePathFactory':
from pypaimon.utils.file_store_path_factory import FileStorePathFactory
diff --git a/paimon-python/pypaimon/tag/tag_manager.py
b/paimon-python/pypaimon/tag/tag_manager.py
index 19e98129a3..e342147a16 100644
--- a/paimon-python/pypaimon/tag/tag_manager.py
+++ b/paimon-python/pypaimon/tag/tag_manager.py
@@ -141,7 +141,7 @@ class TagManager:
self._create_or_replace_tag(snapshot, tag_name)
- def list_tag(self):
+ def list_tags(self):
"""List all tags."""
result = []
for tag_file in self.file_io.list_status(self.tag_directory()):
diff --git a/paimon-python/pypaimon/tests/table/simple_table_test.py
b/paimon-python/pypaimon/tests/table/simple_table_test.py
index bf4458d9ad..66579d3e85 100644
--- a/paimon-python/pypaimon/tests/table/simple_table_test.py
+++ b/paimon-python/pypaimon/tests/table/simple_table_test.py
@@ -204,14 +204,14 @@ class SimpleTableTest(unittest.TestCase):
table_commit.close()
table.create_tag("test_tag_2")
- all_tags = set(table.list_tag())
+ all_tags = set(table.list_tags())
self.assertEqual(all_tags, {"test_tag", "test_tag_2"})
# Delete the tag
result = table.delete_tag("test_tag")
self.assertTrue(result)
- all_tags = table.list_tag()
+ all_tags = table.list_tags()
self.assertEqual(all_tags, ["test_tag_2"])
# Verify tag no longer exists