cshuo commented on code in PR #13163:
URL: https://github.com/apache/hudi/pull/13163#discussion_r2049809598


##########
hudi-flink-datasource/hudi-flink/src/test/java/org/apache/hudi/sink/utils/ConsistentBucketStreamWriteFunctionWrapper.java:
##########
@@ -58,7 +58,9 @@ public void invoke(I record) throws Exception {
     HoodieFlinkInternalRow hoodieRecord = toHoodieFunction.map((RowData) 
record);
     ScalaCollector<HoodieFlinkInternalRow> collector = 
ScalaCollector.getInstance();
     assignFunction.processElement(hoodieRecord, null, collector);
-    writeFunction.processElement(collector.getVal(), null, null);
+    for (HoodieFlinkInternalRow row: collector.getVal()) {

Review Comment:
   `collector` is used to collect emitted records from `asisgnFunction`, it's 
possible `asisgnFunction` emits more than one records for one time 
processElement, e.g., for case global inedx, it may emits 1 DELETE + 1 INSERT.



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