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


##########
hudi-client/hudi-flink-client/src/main/java/org/apache/hudi/client/common/HoodieFlinkEngineContext.java:
##########
@@ -205,6 +210,15 @@ public <I, O> O aggregate(HoodieData<I> data, O zeroValue, 
Functions.Function2<O
     return data.collectAsList().stream().parallel().reduce(zeroValue, 
seqOp::apply, combOp::apply);
   }
 
+  @Override
+  public ReaderContextFactory<?> getReaderContextFactory(HoodieTableMetaClient 
metaClient) {
+    // metadata table and HFile reads are only supported by the 
AvroReaderContext.
+    if (metaClient.isMetadataTable() || 
HFILE.getFileExtension().equals(metaClient.getTableConfig().getBaseFileFormat().getFileExtension()))
 {

Review Comment:
   in which case the data table cound have `HFile` as the base file 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