yihua commented on code in PR #20288:
URL: https://github.com/apache/hudi/pull/20288#discussion_r4263536750


##########
hudi-client/hudi-flink-client/src/main/java/org/apache/hudi/table/format/FlinkRecordContext.java:
##########
@@ -139,8 +139,7 @@ public RowData convertAvroRecord(IndexedRecord avroRecord) {
   @Override
   public HoodieRecord<RowData> constructHoodieRecord(BufferedRecord<RowData> 
bufferedRecord, String partitionPath) {
     HoodieKey hoodieKey = new HoodieKey(bufferedRecord.getRecordKey(), 
partitionPath);
-    // delete record
-    if (bufferedRecord.isDelete()) {
+    if (bufferedRecord.isDelete() && bufferedRecord.isEmpty()) {

Review Comment:
   Should such semantic logic be extracted into the common abstraction and 
merging layer?  Does other engine implementation have the same problem?



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