1
0

Handling duplicate record update for single partition (duplicates in single or different parquet files)

This commit is contained in:
Omkar Joshi
2019-03-01 15:34:46 -08:00
committed by vinoth chandar
parent b514e1ab18
commit 4a8bec7ea5
3 changed files with 15 additions and 8 deletions

View File

@@ -68,6 +68,12 @@ public class HoodieRecord<T extends HoodieRecordPayload> implements Serializable
this.newLocation = null;
}
public HoodieRecord(HoodieRecord<T> record) {
this(record.key, record.data);
this.currentLocation = record.currentLocation;
this.newLocation = record.newLocation;
}
public HoodieKey getKey() {
return key;
}