Thank you vasanth!
Say I have records like this for key
Key timestamp flag
100 tm1 Update
100 tm2 Update
100 tm3 Split
101 tm4 New
101 tm5 update
102 tm6 New
102 tm7 split
102 tm8 update
My job should insert 2 records (one with key 101, one with 102)
key last_update_time last_split_time insert_time
101 tm5 NA tm4
102 tm8 tm7 tm6
and update one target rec like
ke