danny0405 commented on code in PR #10219:
URL: https://github.com/apache/hudi/pull/10219#discussion_r1411495155


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/Iterators.scala:
##########
@@ -273,17 +299,26 @@ class RecordMergingFileIterator(logFiles: 
List[HoodieLogFile],
         val result = recordMerger.merge(curRecord, baseFileReaderAvroSchema, 
newRecord, logFileReaderAvroSchema, payloadProps)
         toScalaOption(result)
           .map { r =>
-            val schema = HoodieInternalRowUtils.getCachedSchema(r.getRight)
-            val projection = 
HoodieInternalRowUtils.getCachedUnsafeProjection(schema, structTypeSchema)
-            projection.apply(r.getLeft.getData.asInstanceOf[InternalRow])
+            val data = r.getLeft.getData.asInstanceOf[InternalRow]
+            if (isDeleteData(data)) {
+              null

Review Comment:
   Isn't the return type an option ?



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