ndrluis commented on code in PR #1285: URL: https://github.com/apache/iceberg-python/pull/1285#discussion_r1838046096
########## mkdocs/docs/api.md: ########## @@ -1129,6 +1129,28 @@ with table.manage_snapshots() as ms: ms.create_branch(snapshot_id1, "Branch_A").create_tag(snapshot_id2, "tag789") ``` +## Table Statistics Management + +Manage table statistics with operations through the `Table` API: + +```python +# To run a specific operation +table.update_statistics().set_statistics(snapshot_id, statistics_file).commit() +# To run multiple operations +table.update_statistics() + .set_statistics(snapshot_id1, statistics_file1) + .remove_statistics(snapshot_id2) +# Operations are applied on commit. Review Comment: I added the commit() and kept the comment consistent with the other examples. -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org