What is Schema Evolution?

Picture a data team adding an optional field to a customer event schema that the registry accepts. A churn model keeps running, but its feature built from the new field reads the default for older records.

Schema evolution is the planned process of changing a data structure over time, such as adding, removing or retyping fields, often with a schema registry or table format that checks each change against compatibility rules, so existing producers, consumers and downstream systems can keep writing and reading the data.

CUBIG defines AI-ready data as data prepared for a specific AI task, with results checked, that a team can check again when conditions change. A schema change is one of those conditions, even when the registry accepts it as compatible.

Confluent’s Schema Registry documentation defines schema evolution as “the practice of safely changing schemas over time while maintaining compatibility with existing producers and consumers” and states: “The default compatibility mode is BACKWARD.” Backward compatibility means consumers using the new schema can read data produced with the last schema. The Delta Lake documentation says: “Schema evolution allows users to resolve schema mismatches between the target and source table in merge.” For merge, the Delta Lake documentation says to set spark.databricks.delta.schema.autoMerge.enabled to true before running the merge.

How does schema evolution work?

A data producer proposes a schema change: an added optional field, a removed field or a changed type. The schema registry checks the change against the compatibility rule set for that subject, or the table format applies its schema enforcement rules, before consumers read the new data. Under backward compatibility, for example, a consumer on the new schema must still be able to read records written under the old one.

Data engineers review field names, types, optionality and default values before they ship a change. A storage system can accept a new structure while application code, feature pipelines and analytical queries still expect the old one.

How is schema evolution different from schema drift?

Schema evolution is a planned change that a compatibility rule checks before release. Schema drift is an unplanned structure change that downstream pipelines, models or reports were not updated to match, such as an upstream team renaming a column without telling its consumers.

Each case needs a different response from the data team. Planned evolution needs a compatibility check and updates to the consumers that use the changed field. Unplanned drift needs an investigation of the source change and of every pipeline that depends on it.

CUBIG Shorts

No Errors. Every Number Wrong.

A CUBIG Shorts clip on schema drift.

▶  Watch on YouTubeSubscribe

Where does schema evolution break in AI work?

A compatible change can still change what a model sees. A new optional field with a default value passes the registry check, but records written under the old schema now read as the default, so a model feature built from that field mixes real values with defaults. The model keeps accepting its inputs, and part of those inputs now describe a default instead of a business condition.

Compatibility protects the reader from failing; it does not protect the meaning of the field. ML engineers check how each schema change affects feature definitions and missing-value handling, and the data team compares the new extract with the previous data version for field availability, meaning and data consistency.

To keep a record for that comparison, Syntitan, CUBIG’s AI-ready data platform, keeps the original Dataset intact, starts each Use Case Project from a copy and records preparation and verification results as Versions. A new extract after a schema change can be diagnosed in Ready for Raw Data from six angles: usability, integrity, context, consistency, reproducibility and traceability. Syntitan does not manage schema registries or enforce compatibility rules.

Related entries: schema drift, data contract, field mapping, data consistency and data versioning. Related article: Schema Changes Break Production AI: The Silent Release.

Frequently asked questions

How is schema evolution different from schema drift?

Schema evolution is a planned change checked against compatibility rules. Schema drift is an unplanned structure change that downstream pipelines, models or reports were not updated to match.

What is backward compatibility in schema evolution?

Backward compatibility means consumers using the new schema can read data produced with the last schema. Confluent Schema Registry uses BACKWARD as its default compatibility mode.

Can a compatible schema change still affect an AI model?

Yes. A new optional field with a default value can pass the registry check while records written under the old schema read as the default value in a model feature built from that field.