1
0

[HUDI-2139] MergeInto MOR Table May Result InCorrect Result (#3230)

This commit is contained in:
pengzhiwei
2021-07-23 10:19:43 +08:00
committed by GitHub
parent c89bf1de20
commit 5a2f3d439e
6 changed files with 241 additions and 52 deletions

View File

@@ -18,6 +18,10 @@
package org.apache.hudi.common.model;
import org.apache.avro.Schema;
import java.util.Properties;
/**
* Holds payload properties that implementation of {@link HoodieRecordPayload} can leverage.
* Since both payload classes and HoodiePayloadConfig needs to access these props, storing it here in hudi-common.
@@ -38,4 +42,10 @@ public class HoodiePayloadProps {
* @see DefaultHoodieRecordPayload
*/
public static final String PAYLOAD_EVENT_TIME_FIELD_PROP_KEY = "hoodie.payload.event.time.field";
/**
* A runtime config pass to the {@link HoodieRecordPayload#getInsertValue(Schema, Properties)}
* to tell if the current record is a update record or insert record for mor table.
*/
public static final String PAYLOAD_IS_UPDATE_RECORD_FOR_MOR = "hoodie.is.update.record.for.mor";
}