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


##########
hudi-common/src/main/java/org/apache/hudi/common/util/SpillableMapUtils.java:
##########
@@ -152,10 +153,13 @@ public static <R> HoodieRecord<R> 
convertToHoodieRecordPayload(GenericRecord rec
       record = recordWithoutMetaFields;
     }
 
-    HoodieRecord<? extends HoodieRecordPayload> hoodieRecord = new 
HoodieAvroRecord<>(new HoodieKey(recKey, partitionPath),
-        HoodieRecordUtils.loadPayload(payloadClazz, record, preCombineVal), 
operation);
-
-    return (HoodieRecord<R>) hoodieRecord;
+    if (StringUtils.isNullOrEmpty(payloadClazz)) {
+      return (HoodieRecord<R>) new HoodieAvroIndexedRecord(new 
HoodieKey(recKey, partitionPath), record);

Review Comment:
   we can not use this, record would contain a schema schema field which is 
huge.



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