danny0405 commented on code in PR #8998:
URL: https://github.com/apache/hudi/pull/8998#discussion_r1236061938
##########
hudi-common/src/main/java/org/apache/hudi/common/util/HoodieRecordUtils.java:
##########
@@ -92,8 +91,8 @@ public static HoodieRecordMerger createRecordMerger(String
basePath, EngineType
.filter(merger ->
merger.getMergingStrategy().equals(recordMergerStrategy))
.filter(merger -> recordTypeCompatibleEngine(merger.getRecordType(),
engineType))
.findFirst();
- if (hey.isPresent()) {
- return hey.get();
+ if (mergerOpt.isPresent()) {
+ return mergerOpt.get();
} else {
Review Comment:
Can we just use `orElseThrow` ?
--
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]