Every engineering team has a ghost-in-the-machine story. In this case it was not a rogue query or broken model; it was schema drift, the silent killer of AI pipelines.
What Is Schema Drift and Why It Is a Nightmare
Schema drift occurs when a data structure changes unexpectedly: a column is renamed in Firestore, a type differs in BigQuery, or a nested field arrives unexpectedly. The downstream Feast feature store inherits that inconsistency, models consume inconsistent inputs, and predictions degrade while errors can remain silent.
The Stack: BigQuery, Firestore, and Feast
- BigQuery served as the analytics backbone.
- Firestore supplied high-velocity transactional data.
- Feast served features to models at scale.
Individually each component worked well. Together, they formed a brittle system: one schema change in Firestore could ripple into BigQuery and contaminate Feast feature sets.
BigQuery vs. Firestore: Who Calls the Shots?
Treating every source as equal created ambiguity. The team made BigQuery the single source of truth, with Firestore adapting to BigQuery rather than the other way around. Feast then had one authoritative schema to trust.
How We Beat Schema Drift
- BigQuery validation first: Every schema passed through BigQuery’s strict definitions.
- Firestore normalization: Incoming events were reshaped to align with the BigQuery schema.
- Feast lock-in: Feature views referenced only schema-validated BigQuery tables.
What Changed After
- Models received stable, reproducible feature sets.
- Silent failures disappeared.
- The team could deploy with confidence rather than crossed fingers.
The work did not merely tame schema drift; it removed schema drift’s ability to derail production.
Why This Matters for Enterprise AI
Schema drift is rarely the headline topic in AI discussions, but it is fundamental to operational AI. If features cannot be trusted, predictions cannot be trusted; and without trusted predictions, AI becomes noise.
Key Takeaways
- Schema drift is a hidden cause of AI pipeline failure.
- BigQuery as the schema anchor prevents cascading ambiguity.
- Firestore must adapt to the data contract, not dictate it.
- Feast requires schema-validated data to serve dependable features.
- Confidence in AI begins with confidence in data.
Originally published by Prestanda Consulting on Medium. View the original Medium publication.