Skip to content

Commit

Permalink
[MINOR] Fix OverwriteWithLatestAvroPayload full class name (#7096)
Browse files Browse the repository at this point in the history
  • Loading branch information
albericgenius authored Nov 1, 2022
1 parent 2f53be3 commit 13fd5b9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import org.apache.hudi.common.model.HoodieAvroPayload;
import org.apache.hudi.common.model.HoodiePayloadProps;
import org.apache.hudi.common.model.OverwriteWithLatestAvroPayload;
import org.apache.hudi.common.table.HoodieTableMetaClient;
import org.apache.hudi.exception.HoodieException;
import org.apache.hudi.common.table.TableSchemaResolver;
Expand Down Expand Up @@ -85,7 +86,7 @@ public AbstractRealtimeRecordReader(RealtimeSplit split, JobConf job) {

private boolean usesCustomPayload(HoodieTableMetaClient metaClient) {
return !(metaClient.getTableConfig().getPayloadClass().contains(HoodieAvroPayload.class.getName())
|| metaClient.getTableConfig().getPayloadClass().contains("org.apache.hudi.OverwriteWithLatestAvroPayload"));
|| metaClient.getTableConfig().getPayloadClass().contains(OverwriteWithLatestAvroPayload.class.getName()));
}

/**
Expand Down

0 comments on commit 13fd5b9

Please sign in to comment.