codope commented on code in PR #12579:
URL: https://github.com/apache/hudi/pull/12579#discussion_r1905152620


##########
hudi-common/src/main/java/org/apache/hudi/avro/HoodieAvroUtils.java:
##########
@@ -676,13 +676,15 @@ public static Schema 
getNestedFieldSchemaFromRecord(GenericRecord record, String
    */
   public static Schema getNestedFieldSchemaFromWriteSchema(Schema writeSchema, 
String fieldName) {
     String[] parts = fieldName.split("\\.");
-    int i = 0;
-    for (; i < parts.length; i++) {
+    Schema currentSchema = writeSchema;

Review Comment:
   SI functional test that I had added covers such a schema, but i've also add 
a separate UT for the util method that covers both positiv and negative 
scenarios.



-- 
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]

Reply via email to