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


##########
hudi-common/src/main/java/org/apache/hudi/avro/HoodieAvroReaderContext.java:
##########
@@ -65,12 +69,17 @@
  */
 public class HoodieAvroReaderContext extends 
HoodieReaderContext<IndexedRecord> {
   private final String payloadClass;
+  private HoodieFileFormat dataBlockFormat = HoodieFileFormat.PARQUET;
 
   public HoodieAvroReaderContext(
       StorageConfiguration<?> storageConfiguration,
       HoodieTableConfig tableConfig) {
     super(storageConfiguration, tableConfig);
     this.payloadClass = tableConfig.getPayloadClass();
+    if (tableConfig.getLogFileFormat() != null
+        && tableConfig.getLogFileFormat() != HoodieFileFormat.HOODIE_LOG) {
+      dataBlockFormat = tableConfig.getLogFileFormat();

Review Comment:
   By passing the base file format from the table cofig. Here assume the log 
file and base file have the same format.



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