Fokko commented on code in PR #4123: URL: https://github.com/apache/iceberg-python/pull/4123#discussion_r4395053408
########## mkdocs/docs/api.md: ########## @@ -1408,6 +1408,30 @@ assert tbl.metadata.snapshots[-1].summary["abc"] == "def" New snapshot summaries automatically include `engine-name` (`pyiceberg`) and `engine-version` (the installed PyIceberg version). These values override same-named entries in `snapshot_properties`. +## Multi-table commits + +With the REST catalog, changes to several tables can be committed atomically: either every table +is updated, or none of them is. Stage the changes in one transaction per table, then pass the +transactions to `commit_transactions`: + +```python +orders_tx = orders.transaction() +orders_tx.append(new_orders) +items_tx = items.transaction() +items_tx.append(new_items) + +catalog.commit_transactions(orders_tx, items_tx) Review Comment: I'm a big fan of the context-manager, should we use that in this example as well? -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
