duplicate last_record (shallow copy) to not store rewritten records to state_store
fixed a bug when time_column is set