jonvex commented on code in PR #11943:
URL: https://github.com/apache/hudi/pull/11943#discussion_r1811140568


##########
hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/realtime/AbstractRealtimeRecordReader.java:
##########
@@ -111,8 +111,8 @@ public AbstractRealtimeRecordReader(RealtimeSplit split, 
JobConf job) {
   }
 
   private boolean usesCustomPayload(HoodieTableMetaClient metaClient) {
-    return 
!(metaClient.getTableConfig().getPayloadClass().contains(HoodieAvroPayload.class.getName())
-        || 
metaClient.getTableConfig().getPayloadClass().contains(OverwriteWithLatestAvroPayload.class.getName()));
+    return 
metaClient.getTableConfig().getRecordMergeMode().equals(RecordMergeMode.CUSTOM)
+        && 
metaClient.getTableConfig().getRecordMergerStrategy().equals(HoodieRecordMerger.PAYLOAD_BASED_MERGER_STRATEGY_UUID);

Review Comment:
   Yes



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