fengjian428 commented on code in PR #4676:
URL: https://github.com/apache/hudi/pull/4676#discussion_r967962209


##########
hudi-common/src/main/java/org/apache/hudi/common/util/SpillableMapUtils.java:
##########
@@ -154,8 +155,13 @@ private static Object getPreCombineVal(GenericRecord rec, 
String preCombineField
     if (preCombineField == null) {
       return 0;
     }
-    Schema.Field field = rec.getSchema().getField(preCombineField);
-    return field == null ? 0 : rec.get(field.pos());
+    // Handle multiple ordering/preCombineFields
+    if (preCombineField.contains(";")) {
+      return HoodieAvroUtils.getMultipleNestedFieldVals(rec, preCombineField, 
false);
+    } else {

Review Comment:
   for the whole feature can refer to 
https://github.com/apache/hudi/compare/master...fengjian428:hudi:partial-update-feature



-- 
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: commits-unsubscr...@hudi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to