Skip to content

Commit

Permalink
[MINOR] Fix OverwriteWithLatestAvroPayload full class name (apache#7096)
Browse files Browse the repository at this point in the history
  • Loading branch information
albericgenius authored and satishkotha committed Dec 11, 2022
1 parent eb86d5d commit 7bae457
Showing 1 changed file with 2 additions and 1 deletion.
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 @@ -77,7 +78,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 7bae457

Please sign in to comment.