[HUDI-1738] Emit deletes for flink MOR table streaming read (#2742)
Current we did a soft delete for DELETE row data when writes into hoodie table. For streaming read of MOR table, the Flink reader detects the delete records and still emit them if the record key semantics are still kept. This is useful and actually a must for streaming ETL pipeline incremental computation.
This commit is contained in:
@@ -429,8 +429,8 @@ public class HoodieFlinkWriteClient<T extends HoodieRecordPayload> extends
|
||||
HoodieFlinkTable<T> table = getHoodieTable();
|
||||
String commitType = CommitUtils.getCommitActionType(HoodieTableType.valueOf(tableType));
|
||||
HoodieActiveTimeline activeTimeline = table.getMetaClient().getActiveTimeline();
|
||||
activeTimeline.deletePending(HoodieInstant.State.INFLIGHT, commitType, instant);
|
||||
activeTimeline.deletePending(HoodieInstant.State.REQUESTED, commitType, instant);
|
||||
activeTimeline.deletePendingIfExists(HoodieInstant.State.INFLIGHT, commitType, instant);
|
||||
activeTimeline.deletePendingIfExists(HoodieInstant.State.REQUESTED, commitType, instant);
|
||||
}
|
||||
|
||||
public void transitionRequestedToInflight(String tableType, String inFlightInstant) {
|
||||
|
||||
Reference in New Issue
Block a user