-
Notifications
You must be signed in to change notification settings - Fork 80
feat: implement update column #498
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
base: main
Are you sure you want to change the base?
Conversation
src/iceberg/update/update_schema.cc
Outdated
| ICEBERG_BUILDER_ASSIGN_OR_RETURN(auto field_opt, FindFieldForUpdate(name)); | ||
|
|
||
| // If not found, check if there's a deleted field with this name | ||
| if (!field_opt.has_value()) { |
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.
Why not directly error out? The Java impl does not check original field.
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.
This is to distinguish between conflicting types, whether columns do not exist at all, or whether deleted columns are updated. I will modify the logic of FindFieldForUpdate to no longer check the delete list, but check and return the corresponding conflict information in UpdateColumns, which is consistent with java
No description provided.