What’s the best way to handle schema evolution in a data pipeline?
Loading
What’s the best way to handle schema evolution in a data pipeline?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Tuhin PaulPosted Feb 3, 2025, 5:01 PM
Part -2
Real-Time Transformation:
AI Model Versioning:
Serve multiple model versions via TFX Pipelines
Use schema version → model version mapping
This architecture validates zero downtime schema changes while maintaining AI processing capabilities for critical drone operations.
Tuhin PaulPosted Feb 3, 2025, 4:43 PM
Part - 1
I will try to share a detailed solution for schema evolution in my recent project on anomaly detection pipeline using schema versioning, and backward compatibility patterns. This example will be bit advance in nature.
A critical system processes live drone sensor data (GPS, accelerometer, lidar) to detect anomalies. The schema evolves when:
New sensor
temperatureis addedgps.coordinateformat changes from [lat, long] to GeoJSONField
lidar.resolutionis deprecatedSchema Registry (Avro)
Schema Transformer (Python with FastAPI)
Kafka Consumer with Schema Awareness
Schema Evolution Strategy:
Backward Compatibility: New fields have defaults
Forward Compatibility: Ignore unknown fields
Use Avro’s
defaultand aliases for field renames