yihua commented on code in PR #6486:
URL: https://github.com/apache/hudi/pull/6486#discussion_r963181777
##########
hudi-common/src/main/java/org/apache/hudi/internal/schema/action/InternalSchemaChangeApplier.java:
##########
@@ -51,7 +51,8 @@ public InternalSchema applyAddChange(
TableChange.ColumnPositionChange.ColumnPositionType positionType) {
TableChanges.ColumnAddChange add =
TableChanges.ColumnAddChange.get(latestSchema);
String parentName = TableChangesHelper.getParentName(colName);
- add.addColumns(parentName, colName, colType, doc);
+ String leafName = TableChangesHelper.getLeafName(colName);
+ add.addColumns(parentName, leafName, colType, doc);
Review Comment:
Could you add tests around nested fields to guard the changes?
--
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]