JingsongLi commented on code in PR #7415:
URL: https://github.com/apache/paimon/pull/7415#discussion_r2924537374
##########
paimon-python/pypaimon/table/file_store_table.py:
##########
@@ -61,6 +62,7 @@ def __init__(self, file_io: FileIO, identifier: Identifier,
table_path: str,
self.total_buckets = self.options.bucket()
self.schema_manager = SchemaManager(file_io, table_path)
+ self.consumer_manager = ConsumerManager(file_io, table_path,
self.current_branch())
Review Comment:
just provide a method `consumer_manager()`, and import `ConsumerManager` in
it.
##########
docs/content/pypaimon/python-api.md:
##########
@@ -591,6 +591,125 @@ to the appropriate rollback logic.
| f is not in [l1, l2] | PredicateBuilder.is_not_in(f, [l1, l2]) |
| lower <= f <= upper | PredicateBuilder.between(f, lower, upper) |
+## Consumer Management
+
+Consumer management allows you to track consumption progress, prevent snapshot
expiration, and resume from breakpoints.
+
+### Create ConsumerManager
+
+```python
+from pypaimon import CatalogFactory
+from pypaimon.consumer.consumer_manager import ConsumerManager
Review Comment:
No need to import?
--
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]