nsivabalan commented on a change in pull request #3315:
URL: https://github.com/apache/hudi/pull/3315#discussion_r678658288



##########
File path: 
hudi-common/src/main/java/org/apache/hudi/common/table/log/AbstractHoodieLogRecordScanner.java
##########
@@ -302,7 +310,12 @@ private void processDataBlock(HoodieDataBlock dataBlock) 
throws Exception {
   }
 
   protected HoodieRecord<?> createHoodieRecord(IndexedRecord rec) {
-    return SpillableMapUtils.convertToHoodieRecordPayload((GenericRecord) rec, 
this.payloadClassFQN);
+    if (!simpleRecordKeyFieldOpt.isPresent()) {

Review comment:
       not sure if I tried it here or for keyGen related code blocks. But what 
I found was, if 
   ```
   Option.map.ofElse
   ```
   is called just one, it works smoothly. But if this piece of code gets called 
N no of times repeatedly, I ran into issues. 
   I will try it out again just to confirm my understanding. 




-- 
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: commits-unsubscr...@hudi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to