wzx140 commented on code in PR #5522:
URL: https://github.com/apache/hudi/pull/5522#discussion_r891961288


##########
hudi-common/src/main/java/org/apache/hudi/common/table/log/block/HoodieHFileDataBlock.java:
##########
@@ -120,19 +122,21 @@ protected byte[] serializeRecords(List<IndexedRecord> 
records) throws IOExceptio
 
     // Serialize records into bytes
     Map<String, byte[]> sortedRecordsMap = new TreeMap<>();
-    Iterator<IndexedRecord> itr = records.iterator();
+    // Get writer schema

Review Comment:
   The write schema is also used in HoodieAvroDataBlock. And 
HoodieAppendHandle#appendDataAndDeleteBlocks has add schema in hearder before 
writing HoodieDataBlock.



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