koenvo opened a new pull request, #1817: URL: https://github.com/apache/iceberg-python/pull/1817
<!-- Closes #1776 --> # Rationale for this change Previously, the **upsert** functionality was implemented at the **table** level, which meant it always initiated a new **Transaction**. This change moves the **upsert** implementation to the **Transaction** level while keeping `table.upsert(...)` as an entry point. With this refactor, end users now have the flexibility to call **upsert** in two ways: - `table.upsert(...)` – which still starts a new transaction. - `transaction.upsert(...)` – allowing upserts within an existing transaction. # Are these changes tested? Not yet. # Are there any user-facing changes? Yes. This change enables users to perform **upserts within an existing transaction** using `transaction.upsert(...)`, in addition to the existing `table.upsert(...)` method. <!-- In the case of user-facing changes, please add the changelog label. --> -- 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