Skip to content

Commit

Permalink
[HUDI-2855] Change the default value of 'PAYLOAD_CLASS_NAME' to 'Defa…
Browse files Browse the repository at this point in the history
…ultHoodieRecordPayload' (#4115)
  • Loading branch information
dongkelun authored Nov 25, 2021
1 parent a9bd208 commit 88067f5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import org.apache.hudi.common.model.HoodieCleaningPolicy;
import org.apache.hudi.common.model.HoodieFailedWritesCleaningPolicy;
import org.apache.hudi.common.model.HoodieFileFormat;
import org.apache.hudi.common.model.OverwriteWithLatestAvroPayload;
import org.apache.hudi.common.model.DefaultHoodieRecordPayload;
import org.apache.hudi.common.model.WriteConcurrencyMode;
import org.apache.hudi.common.table.HoodieTableConfig;
import org.apache.hudi.common.table.marker.MarkerType;
Expand Down Expand Up @@ -102,7 +102,7 @@ public class HoodieWriteConfig extends HoodieConfig {

public static final ConfigProperty<String> WRITE_PAYLOAD_CLASS_NAME = ConfigProperty
.key("hoodie.datasource.write.payload.class")
.defaultValue(OverwriteWithLatestAvroPayload.class.getName())
.defaultValue(DefaultHoodieRecordPayload.class.getName())
.withDocumentation("Payload class used. Override this, if you like to roll your own merge logic, when upserting/inserting. "
+ "This will render any value set for PRECOMBINE_FIELD_OPT_VAL in-effective");

Expand Down

0 comments on commit 88067f5

Please sign in to comment.