vinothchandar commented on a change in pull request #2977:
URL: https://github.com/apache/hudi/pull/2977#discussion_r665841138



##########
File path: 
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/table/action/cluster/SparkExecuteClusteringCommitActionExecutor.java
##########
@@ -209,7 +209,7 @@ protected String getCommitActionType() {
               .build();
 
           
recordIterators.add(HoodieFileSliceReader.getFileSliceReader(baseFileReader, 
scanner, readerSchema,
-              table.getMetaClient().getTableConfig().getPayloadClass()));
+              table.getMetaClient().getTableConfig().getPayloadClass(), 
table.getMetaClient().getTableConfig().getPreCombineField()));

Review comment:
       pull out `table.getMetaClient().getTableConfig()` into a variable ? for 
ease of reading? 

##########
File path: 
hudi-common/src/main/java/org/apache/hudi/common/table/log/HoodieFileSliceReader.java
##########
@@ -36,11 +36,11 @@
   private Iterator<HoodieRecord<? extends HoodieRecordPayload>> 
recordsIterator;
 
   public static <R extends IndexedRecord, T extends HoodieRecordPayload> 
HoodieFileSliceReader getFileSliceReader(
-      HoodieFileReader<R> baseFileReader, HoodieMergedLogRecordScanner 
scanner, Schema schema, String payloadClass) throws IOException {
+      HoodieFileReader<R> baseFileReader, HoodieMergedLogRecordScanner 
scanner, Schema schema, String payloadClass, String preCombineField) throws 
IOException {

Review comment:
       I am kind of skeptical about leaking the precombineField this deep.




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