-
Notifications
You must be signed in to change notification settings - Fork 313
feat(catalog): Add ErrorKind::CatalogCommitConflicts #1452
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
Conversation
I actually suggest that we change the name. |
I think this is similar to java's name convention, see https://github.com/apache/iceberg/blob/6bd6887db1f90674ca5e20e88cc95c5f92dcb050/core/src/main/java/org/apache/iceberg/BaseTransaction.java#L423 |
I agree with you that following similar Java naming conventions can benefit developers coming from Java. However, having a consistent error kind naming style makes it easier for us to maintain the list and for users to use it. I propose the name
It's clean, self-descriptive, well-structured, and can easily scale to other possible error kinds. By the way, I think |
Sounds reasonable to me. |
Hi @liurenjie1024 @Xuanwo , thanks for the vaulable inputs! I've updated the error kind name based on the suggestion, please take a look again |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @CTTY for this pr!
cc @Xuanwo to take another look. |
Which issue does this PR close?
Related issue: #1387
What changes are included in this PR?
Add a new
ErrorKind
:CatalogCommitConflicts
for catalog to return and indicate that the operation can be retried.Are these changes tested?