danny0405 commented on a change in pull request #2593:
URL: https://github.com/apache/hudi/pull/2593#discussion_r583574546
##########
File path:
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/io/HoodieAppendHandle.java
##########
@@ -178,6 +178,14 @@ private void init(HoodieRecord record) {
}
}
+ /**
+ * Returns whether the hoodie record is an UPDATE.
+ */
+ protected boolean isUpdateRecord(HoodieRecord<T> hoodieRecord) {
+ // If currentLocation is present, then this is an update
+ return hoodieRecord.getCurrentLocation() != null;
Review comment:
This is the default logic for Hoodie, we should keep it, the
`FlinkAppendHandle` already overrides the behavior.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]