jiakai-li commented on issue #1253:
URL: 
https://github.com/apache/iceberg-python/issues/1253#issuecomment-2583844373

   Just raise another possibility for discussion. We could also modify the 
`_transaction._autocommit` when calling `UpdateSchema.__enter__` method, which 
indicates multiple updates is coming and we would like to avoid the autocommit. 
Something like:
   ```python
   class UpdateSchema(UpdateTableMetadata["UpdateSchema"]):
       ...
       def __enter__(self):
           self._transaction._autocommit = False
           return self
       ...
   ```


-- 
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

Reply via email to