Skip to content
RevOps Agentified

Databricks

Use Databricks AUTO CDC with source sequencing and verify how late billing events affect a current-state table.

Keep source revision 18 when revision 17 arrives late
Revision 18
The subscription becomes Paused.
Late revision 17
The older Active event does not replace the current value.
Revision 19
The newest approved event changes the same key once.

Billing sends subscription revision 18 as Paused. Revision 17 arrives later because an earlier message was delayed. Use Databricks AUTO CDC to sequence by the source change order when applying updates to a current-state Delta table.

Pick the keys and the meaning of sequence

In a Lakeflow Spark Declarative Pipelines test pipeline, define the target and use AUTO CDC against the change feed. Select the subscription key and sequence by the source revision or another column that gives the authoritative order. If ordering needs a tie breaker, Databricks supports a structure of columns for sequencing. Choose SCD Type 1 for a current-state mirror. If consumers need historical versions, verify a separate SCD Type 2 design.

Apply revision 18 first and send revision 17 afterward. Inspect the saved value after each step. Both events refer to the same business key. A sequence based only on arrival time would give the later delivery authority over the newer business revision.

Verify delayed, new and repeated changes

Current-state checks for one billing key
DeliveryExpected current stateEvidence
Revision 18 arrives as Paused.One Paused subscription row.Target key, status, and retained sequence evidence.
Revision 17 arrives late as Active.Current status stays Paused.Compare pipeline progress and target readback after the late event.
Revision 19 arrives as Active.The same key now appears as Active once.Check target key count and latest status.

Test conflicting rows at the same source sequence before production and fix the upstream ordering if a tie would change the outcome. The integration guide shows how to carry the source revision alongside the business key.

Test the Databricks example

Use these inputs to predict the result. Check your answer against the guide.

Delivery
Revision 19 arrives as Active.
Check the expected result
Expected current state
The same key now appears as Active once.
Evidence
Check target key count and latest status.

Compare with another case

Delivery
Revision 18 arrives as Paused.
Expected current state
One Paused subscription row.

GTM Systems Academy newsletter

Get guides to CRM ownership, integrations, and migrations, with checks to run before you change your stack.