Back to glossary

Schema Evolution

The process of modifying a data schema over time to accommodate changing requirements while maintaining backward and forward compatibility with existing data and consumers.

Schemas evolve as business requirements change: new fields are added, fields are renamed, types change, and deprecated fields are removed. Schema evolution manages these changes without breaking existing data pipelines, applications, or stored data. The challenge is coordinating changes across producers, storage, and consumers that may update at different times.

Schema registries (like Confluent Schema Registry) enforce compatibility rules. Backward-compatible changes (adding optional fields, removing fields with defaults) ensure new consumers can read old data. Forward-compatible changes ensure old consumers can read new data. Full compatibility ensures both, but limits the types of changes allowed.

For AI data pipelines, schema evolution is critical because training data accumulates over time. When a feature schema changes, historical data must remain usable or be migrated. Formats like Parquet, Avro, and Delta Lake support schema evolution natively, allowing columns to be added, removed, or renamed while maintaining the ability to read historical data. This ensures that model training can use the full historical dataset even as the schema evolves.

Related Terms