Fokko commented on code in PR #4446:
URL: https://github.com/apache/iceberg-python/pull/4446#discussion_r4654459317
##########
pyiceberg/table/__init__.py:
##########
@@ -1200,7 +1210,7 @@ def commit_transaction(self) -> Table:
self._cleanup_uncommitted_manifests()
break
self._rebuild_snapshot_updates()
- except (CommitFailedException, ValidationException):
+ except (CommitFailedException, ValidationException,
ValueError):
Review Comment:
One more comment! I think this is a risky change. The `ValueError` can be
general catch-all. Let's say that the commit succeeded, but there is an issue
with the response. In this situation all the files will be cleaned up. Can we
avoid this change? For example, when it find a duplicate file, that we raise a
`ValidationException` instead?
--
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]