rdblue commented on a change in pull request #2204:
URL: https://github.com/apache/iceberg/pull/2204#discussion_r573217947
##########
File path: core/src/main/java/org/apache/iceberg/SchemaUpdate.java
##########
@@ -136,13 +136,15 @@ private void internalAddColumn(String parent, String
name, boolean isOptional, T
parentField.type().isNestedType() &&
parentField.type().asNestedType().isStructType(),
"Cannot add to non-struct column: %s: %s", parent,
parentField.type());
parentId = parentField.fieldId();
+ Types.NestedField currField = schema.findField(parent + "." + name);
Review comment:
Is "current" too long? For style, we prefer using full words rather than
abbreviations in most cases.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]