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


##########
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:
   The naming is misleading, we should always use 
`HoodieWriteConfig.getLogDataBlockFormat` to return the log block type instead 
of file suffix name to decode the data log file.



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