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


##########
hudi-client/hudi-flink-client/src/main/java/org/apache/hudi/table/action/commit/FlinkWriteHelper.java:
##########
@@ -97,7 +98,9 @@ public List<HoodieRecord<T>> deduplicateRecords(
       final T data1 = rec1.getData();
       final T data2 = rec2.getData();
 
-      @SuppressWarnings("unchecked") final T reducedData = (T) 
data2.preCombine(data1);
+      Properties properties = new Properties();
+      properties.put("schema", schemaString);
+      @SuppressWarnings("unchecked") final T reducedData = (T) 
data2.preCombine(data1, properties);

Review Comment:
   In the previous comment, it suggests achieving the same result by only 
implementing another payload class without changing the top level API in 
HoodieRecordPayload, so I reuse HoodieRecordPayload#preCombine(T oldValue, 
Properties properties), WDYT?  if you think it worth implementing a new 
Interface, I can also fallback into the old way



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