danny0405 commented on code in PR #9776:
URL: https://github.com/apache/hudi/pull/9776#discussion_r1349444353
##########
hudi-common/src/main/java/org/apache/hudi/common/util/HoodieRecordUtils.java:
##########
@@ -109,4 +110,11 @@ public static boolean
recordTypeCompatibleEngine(HoodieRecordType recordType, En
public static HoodieRecordMerger mergerToPreCombineMode(HoodieRecordMerger
merger) {
return merger instanceof OperationModeAwareness ?
((OperationModeAwareness) merger).asPreCombiningMode() : merger;
}
+
+ public static String getCurrentLocationInstant(HoodieRecord<?> record) {
+ if (record.getCurrentLocation() != null) {
+ return record.getCurrentLocation().getInstantTime();
+ }
+ return null;
Review Comment:
Retutns null is more concise here.
--
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]