[HUDI-3993] Replacing UDF in Bulk Insert w/ RDD transformation (#5470)
This commit is contained in:
@@ -55,6 +55,10 @@ public class HoodieInternalWriteStatus implements Serializable {
|
||||
this.random = new Random(RANDOM_SEED);
|
||||
}
|
||||
|
||||
public boolean isTrackingSuccessfulWrites() {
|
||||
return trackSuccessRecords;
|
||||
}
|
||||
|
||||
public void markSuccess(String recordKey) {
|
||||
if (trackSuccessRecords) {
|
||||
this.successRecordKeys.add(recordKey);
|
||||
|
||||
@@ -56,7 +56,7 @@ public class NonpartitionedAvroKeyGenerator extends BaseKeyGenerator {
|
||||
// for backward compatibility, we need to use the right format according to the number of record key fields
|
||||
// 1. if there is only one record key field, the format of record key is just "<value>"
|
||||
// 2. if there are multiple record key fields, the format is "<field1>:<value1>,<field2>:<value2>,..."
|
||||
if (getRecordKeyFieldNames().size() == 1) {
|
||||
if (getRecordKeyFields().size() == 1) {
|
||||
return KeyGenUtils.getRecordKey(record, getRecordKeyFields().get(0), isConsistentLogicalTimestampEnabled());
|
||||
}
|
||||
return KeyGenUtils.getRecordKey(record, getRecordKeyFields(), isConsistentLogicalTimestampEnabled());
|
||||
|
||||
Reference in New Issue
Block a user