Skip to content

Commit

Permalink
fix the right payload class name, then MOR table use projection schema
Browse files Browse the repository at this point in the history
  • Loading branch information
albericgenius committed Nov 1, 2022
1 parent 455a3bd commit 6dfd9bf
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 @@ -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 6dfd9bf

Please sign in to comment.