Checking your account

You can read the lesson while its saved answers and constructions load. Learning controls will open once that work is ready.

The Last Message to Arrive May Be an Older Reading

Keeping a Copy Current When the Source Keeps Changing

BOTIE

Once a source table can correct or delete a reading, copying it once is no longer enough. A downstream training table needs to learn which records changed and what happened to them. Change data capture, usually shortened to CDC, is the process of communicating those inserts, updates and deletions.

The Delta Lake work described in the 2020 paper addressed dependable table updates over analytical files. Delta’s MERGE operation can match incoming rows to stored rows and apply declared insert or update rules. That gives us somewhere to express a correction, but we must still decide which source change is authoritative when messages arrive out of order.

Here the source gives each pump’s changes an increasing sequence. A later arrival can therefore be recognised as an older change. We also keep the version of a deletion behind the consumer’s view, so an old update cannot make a deleted pump reappear.

Sources for this history