imtzer commented on code in PR #12202:
URL: https://github.com/apache/iceberg/pull/12202#discussion_r1949308559
##########
core/src/main/java/org/apache/iceberg/SchemaUpdate.java:
##########
@@ -240,7 +240,10 @@ public UpdateSchema makeColumnOptional(String name) {
}
private void internalUpdateColumnRequirement(String name, boolean
isOptional) {
- Types.NestedField field = findField(name);
+ Types.NestedField field = findFieldFromUpdate(name);
+ if (field == null) {
Review Comment:
> You may want to check
https://github.com/apache/iceberg/pull/12211/files#diff-a642a12eac1cb0d3f5bf883427d2971025300182e21b630e5536e54a9fbd8bcaR402
Finished! I have reformed the code
--
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]