Schema Evolution vs Schema Drift vs Data Contracts: Which Stops Pipeline Breakage?
Three terms, three different jobs, and the order in which they protect a pipeline
Data contracts are the only one of the three that stops a pipeline from breaking, because they constrain what a schema is allowed to become. Schema evolution is the mechanism that applies a change, and schema drift is the unplanned change itself. The dlt schema contracts documentation frames it the same way: evolution acts, drift reports, and contracts constrain. The practical answer is to use all three in sequence: detect drift, auto-allow safe evolution, and enforce a contract on everything else.
Key Takeaways
- •Schema drift is an unplanned change to a source schema. It is a symptom, and it breaks nothing on its own until a downstream consumer depends on the changed field.
- •Schema evolution is the ability of a pipeline or format to accept a change, such as a new column, without failing. It lets a change through, so it can also let a bad change through.
- •A data contract is an agreed, enforceable definition of a dataset's shape and semantics. It is the only one of the three that can reject a change before it reaches production.
- •The workable policy is to auto-allow additive changes and fail fast on breaking ones (removed columns, type changes, renamed keys, changed meaning).
- •Detection without a decision rule just produces alerts. Each class of change needs a predetermined outcome: allow, quarantine, or block.
Schema evolution vs schema drift vs data contracts: what each one actually is
The three terms get used interchangeably in vendor copy, which is why teams buy a drift detector and expect it to prevent outages. They sit at different points in the lifecycle of a change, so we separate them by the question each answers.
| Concept | Question it answers | Acts on the change? | Can it block a change? |
|---|---|---|---|
| Schema drift | Did the source schema change without anyone telling us? | No. It observes and reports. | No |
| Schema evolution | Can the pipeline or storage format absorb this change? | Yes. It applies the change. | Only if it is configured to refuse some changes |
| Data contract | Is this change allowed under what we agreed with consumers? | Yes. It validates, then accepts or rejects. | Yes. That is its purpose |
A useful mental model is a three-stage gate. Drift detection finds the change. A contract classifies it as permitted or forbidden. Evolution then applies the permitted ones. Skip the middle stage and evolution applies everything, including the change that drops a column your revenue dashboard reads.
Schema drift: the problem, not the fix
Schema drift is any difference between the schema a pipeline was built against and the schema it now receives. A source team adds a field, widens a type, renames a key, or stops populating a column. Nobody files a ticket, because from their side nothing is wrong.
Drift is not inherently harmful. An added nullable column is drift, and most pipelines handle it fine. The harm comes from the subset of drift that changes meaning or removes something a consumer relies on. The questions teams ask once drift lands are the familiar ones: "What changed in the orders schema since last deploy?" and "Is the customer_id join safe after the migration?" Both require knowing which changes are breaking, which a drift report alone does not tell you.
Schema evolution: the mechanism that lets change through
Schema evolution means a system can accept a changed schema and keep working. Serialization formats define explicit rules for it. The Apache Avro specification describes schema resolution between a writer's schema and a reader's schema, including how added fields with defaults are handled and which type promotions are legal. Table formats and ingestion libraries expose the same idea as options such as adding columns automatically.
Evolution is a capability, not a policy. Turning on automatic column addition is a sensible default, but "evolve everything" is how a type change from integer to string reaches a gold table at 2 a.m. The usual failure is not that evolution broke. It worked, and propagated a change nobody approved.
- •Safe by default: adding a nullable column, adding a new table, widening a numeric type where the engine guarantees no loss.
- •Needs review: changing a column's type, changing nullability, changing a default that downstream logic depends on.
- •Should usually fail: dropping a column, renaming a column without an alias, changing a key or grain.
Data contracts: the part that stops breakage
A data contract is a written, machine-checkable agreement between a producer and its consumers about a dataset's schema, semantics, quality expectations and ownership. Open specifications exist, such as the Open Data Contract Standard, so a contract can live in version control rather than in a wiki page.
What makes a contract different from evolution is enforcement. It is evaluated before the change is applied, and the result is a decision: accept, quarantine the offending rows, or reject the load. dlt's schema contracts expose this as per-entity modes for tables, columns and data types, with options to evolve, discard, or raise on a violation. That is the clearest published example we know of the evolve-or-fail split.
Contracts have a cost. Someone has to write them, and a stale contract blocks legitimate changes. A contract that only the producer can edit becomes a bottleneck, and one nobody reviews drifts away from reality. We think contracts earn their keep on the interfaces that matter, such as the tables that feed finance reporting, ML features and external data products. They are not worth writing for every staging table.
Which one stops pipeline breakage?
Contracts stop breakage, evolution prevents unnecessary breakage, and drift detection tells you where to write contracts. If you can only do one, do the contract on your highest-value interface. If you already have evolution switched on everywhere, you have the largest exposure, because every upstream change now flows through unchecked.
The failure modes line up with the gaps:
- •Drift detection only: you learn about the breaking change after the dashboard is wrong.
- •Evolution only: the change is absorbed silently and its meaning shifts downstream.
- •Contracts only: breaking changes are blocked, but every harmless additive change also needs a human, and the team starts bypassing the gate.
A decision rule that combines all three
We recommend one rule, applied per dataset: auto-allow additive changes, fail fast on breaking ones, and route the ambiguous middle to a person. Written down, it is short enough to put in the contract itself.
- •Additive and backward compatible (new nullable column, new table): evolve automatically and log it.
- •Ambiguous (type change, nullability change, new enum value): quarantine the affected rows or hold the load, and request approval.
- •Breaking (dropped or renamed column, changed grain, changed semantics): fail the load before it touches downstream tables, and notify the owning team.
The point of "fail fast" is where the failure happens. A load that errors at ingestion costs a retry. The same change discovered through a wrong number in a board report costs a day of backfills and a correction. The decision rule moves the failure to the cheap place.
Where the work usually stalls
Teams that adopt this rule tend to stall on the middle step, not the first or the last. Classifying a change as breaking requires knowing who consumes the column. "What's the blast radius if I drop this column?" is a lineage question, and most drift tooling cannot answer it. The schema registry knows the shape, the catalog knows the consumers, and the engineer who gets paged is the integration layer between them.
Our Schema Agent covers this step. It detects column-level drift, projects the downstream impact, and generates a safe migration for additive changes while blocking breaking ones. It is one of fifteen MCP-native agents, so you can ask it from Claude Code or Cursor without opening a separate dashboard: "Is the customer_id join safe after the migration?" The OSS edition is read-only by default, so it reports and proposes rather than writing. Writes and approval workflows are part of Pro.
The agent only classifies as well as the context it has. When a breaking change is flagged, the Pipeline Agent can pause or patch the affected job, and the Incidents Agent can trace which consumers were exposed. We covered how Data Workers keeps catalog and lineage context current in a separate post, because blast-radius answers are only as good as that metadata. The same MCP interface is described in the MCP specification, which is why any compatible client can invoke these agents.
A short rollout order
If you are starting from nothing, we would sequence the work this way, and we would not try to do it all in one quarter.
- •Turn on drift reporting for every source and read the log for two weeks. This tells you which tables actually change.
- •List the five to ten datasets whose breakage would reach a customer, a regulator or an executive. Write contracts for those only.
- •Set evolution to allow additive changes everywhere else, with each change logged.
- •Define the owner and the approval path for ambiguous changes before the first one arrives.
- •Review the contracts quarterly, and delete the ones that never fired.
Frequently Asked Questions
Is schema drift the same as schema evolution? No. Schema drift is the unplanned change in a source schema. Schema evolution is the capability of a pipeline or format to accept a schema change. Drift happens to you, and evolution is something you configure.
Do I need data contracts if my pipeline already handles schema evolution? Yes, for any dataset where a silent change would be costly. Evolution absorbs changes without judging them, so a type change or a dropped column can pass straight through. A contract is the step that decides whether the change is allowed.
Should I allow all schema changes to evolve automatically? We do not recommend it. Auto-allow additive, backward-compatible changes such as a new nullable column, and fail fast on removals, renames and type changes. That keeps harmless changes from needing a human and puts a stop in front of the breaking ones.
Can a drift detector alone prevent pipeline failures? No. A detector reports that a schema changed, usually after the load has run. To prevent the failure you need a rule that classifies the change and a gate that acts on it before it reaches downstream tables.
How do I know whether a schema change is breaking? Check whether anything downstream depends on the changed field, and whether its type or meaning changed. That is a lineage question, so it needs consumer metadata as well as the schema diff.