-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
table.update_schema()
continues to commit when exist with an exception
#1505
Comments
table.update_schema()
commits when context manager exist with an errortable.update_schema()
still commits when exist with an error
table.update_schema()
still commits when exist with an errortable.update_schema()
still commits when exist with an exception
table.update_schema()
still commits when exist with an exceptiontable.update_schema()
continues to commit when exist with an exception
Hey @jiakai-li thanks for raising this issue! Specifically, when using UpdateSchema as a "transaction" and a context manager, I expect the transaction to be atomic
This example shows that the first The core issue is from setting Transaction's As mentioned in #1253, i think we should get rid of |
Thank you @kevinjqliu , I'm closing this issue to avoid duplicates then. Let's keep the discussion at #1253 |
I like the example you have above! Do you mind transferring it to #1253? |
Apache Iceberg version
0.8.1 (latest release)
Please describe the bug 🐞
While working on the issue of #1493 I noticed when running below code, the field of
field_should_not_exist
will still be added to the table.The behaviour is a bit confuse to me. Due to an exception is raised within the context manager, I would expect the transaction to be aborted. But seems commit is currently the only option to exit the context manager:
Willingness to contribute
The text was updated successfully, but these errors were encountered: