linliu-code commented on code in PR #12866:
URL: https://github.com/apache/hudi/pull/12866#discussion_r2105880024


##########
hudi-io/src/main/java/org/apache/hudi/io/hfile/HFileFileInfoBlock.java:
##########
@@ -61,4 +69,39 @@ public HFileInfo readFileInfo() throws IOException {
     }
     return new HFileInfo(fileInfoMap);
   }
+
+  // ================ Below are for Write ================
+
+  public HFileFileInfoBlock(HFileContext context) {
+    super(context, HFileBlockType.FILE_INFO, -1L);
+  }
+
+  public void add(String name, byte[] value) {
+    entries.put(name, value);

Review Comment:
   A couple of them are needed, e.g., `hfile.LASTKEY`,  since if I did not add 
them, the reader would fail.



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