beyond1920 commented on code in PR #10219:
URL: https://github.com/apache/hudi/pull/10219#discussion_r1411547067
##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/Iterators.scala:
##########
@@ -248,7 +274,7 @@ class RecordMergingFileIterator(logFiles:
List[HoodieLogFile],
true
} else {
val mergedRecordOpt = merge(curRow, updatedRecordOpt.get)
- if (mergedRecordOpt.isEmpty) {
+ if (mergedRecordOpt.orNull == null) {
Review Comment:
No, in the last commit, Some(null) might appear here if it's delete
operation.
To better readable, I update the pr in the latest commit to change
optional.map to optional.flatmap to avoid Some(null).
--
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]