danny0405 commented on code in PR #10324:
URL: https://github.com/apache/hudi/pull/10324#discussion_r1429429815


##########
hudi-common/src/main/java/org/apache/hudi/common/table/read/HoodieFileGroupReader.java:
##########
@@ -179,6 +180,9 @@ private Schema generateRequiredSchema() {
     for (String field : 
recordMerger.getMandatoryFieldsForMerging(hoodieTableConfig)) {
       if (requestedSchema.getField(field) == null) {
         Option<Schema.Field> foundFieldOpt  = findNestedField(dataSchema, 
field);
+        if (!foundFieldOpt.isPresent()) {
+          foundFieldOpt = findMetaField(field);

Review Comment:
   Can you amplify the details, how the test got fixed with this change? I want 
to understand why the `_hoodie_record_key` is necessary 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]

Reply via email to