danny0405 commented on code in PR #13078:
URL: https://github.com/apache/hudi/pull/13078#discussion_r2049863275
##########
hudi-common/src/main/java/org/apache/hudi/internal/schema/action/InternalSchemaMerger.java:
##########
@@ -165,7 +165,8 @@ private Types.Field dealWithRename(int fieldId, Type
newType, Types.Field oldFie
String finalFieldName = useColNameFromFileSchema ? nameFromFileSchema :
nameFromQuerySchema;
Type typeFromFileSchema = fieldFromFileSchema.type();
if (!useColNameFromFileSchema) {
- renamedFields.put(nameFromQuerySchema, nameFromFileSchema);
+ // use full name here to prevent conflicts for composite types
+ renamedFields.put(querySchema.findFullName(fieldId), nameFromFileSchema);
Review Comment:
can you doc an example here?
--
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]