Enqurious logo
Back to blog
Guides & Tutorials

The Schema Evolution Challenge in Modern Data Pipelines (Part 1/5)

The Schema Evolution Challenge in Modern Data Pipelines (Part 1/5) blog cover image
Data Engineering
databricks
GCP
schema-evolution
incremental-loading
Amit ChoudharyCo-founder & CEO

The Problem: Broken Pipelines from Schema Changes

ChatGPT Image May 10, 2025, 02_40_42 PM.png

Three weeks into my role at Globalmart, an e-commerce company handling millions of daily transactions, I received a 2 AM call from our BI lead. The pipeline had failed because a source system added a new loyalty_points column to the customer data feed. By the time I fixed it, executive reports were three hours late.

This wasn't an isolated incident. We faced a recurring pattern:

  1. Source systems changed schemas without notice

  2. Pipeline broke

  3. Engineers scrambled to fix it manually

  4. Business teams missed critical data for decisions

Over six months, we experienced 59 pipeline failures due to schema changesβ€”nearly 10 per month.


Globalmart's Data Landscape

Globalmart's data came from multiple systems:

  • POS systems from 200+ retail locations

  • E-commerce platform

  • Inventory management

  • CRM tools

  • Third-party logistics

Each system was owned by different teams who often changed data structures without informing the data team.

The data model included interconnected entities: Customers, Orders, Products, Payments, Returns, and Shipping. Complexity lay not just in the number of tables but in their relationshipsβ€”a single order involved updates across multiple entities.

1a334d64-5868-4765-9d0c-895536b0a811_Ecom er-diagram.webp


Medallion Architecture Implementation

Globalmart used a medallion architecture in Databricks on GCP:

  1. Bronze Layer: Raw data landing

  2. Silver Layer: Validated, cleansed data with business rules

  3. Gold Layer: Aggregated, business-ready data

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Bronze Layer β”‚     β”‚  Silver Layer  β”‚     β”‚  Gold Layer   β”‚
β”‚  Raw Ingestion│────►│  Cleaned Data  │────►│  Business     β”‚
β”‚               β”‚     β”‚                β”‚     β”‚  Ready Data   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

The pipeline assumed stable data structuresβ€”an assumption that proved problematic.


Impact Assessment

Schema changes took many forms:

  • Addition of new columns

  • Removal of columns

  • Data type changes

  • Column renaming

  • Restructuring of nested fields

The business impact was significant:

Table

Schema Changes

Pipeline Failures

Business Impact

Customers

24

17

Customer analytics delayed 12 times

Orders

31

22

Revenue reporting inaccurate 8 times

Products

18

11

Inventory forecasting affected 7 times

Payments

14

9

Finance reconciliation delayed 6 times

The real business costs included:

  • Financial Impact: ~$20,000 per day for major reporting delays

  • Engineering Overhead: 15% of engineers' time spent fixing schema issues

  • Lost Trust: Decreasing confidence in the data platform

  • Scaling Problems: Growing frequency and severity of issues

During one sales event, a new promotional code field broke the pipeline, causing a six-hour analytics delay. The marketing team couldn't optimize ad spend in real-time, wasting an estimated $150,000.


Failed Traditional Approaches

Our initial attempts at solutions weren't effective:

  1. Strict Schema Enforcement: Rejected non-conforming data, creating historical gaps

  2. Manual Schema Updates: Couldn't keep pace with change frequency

  3. Schema Validation Jobs: Still reactive rather than proactive

These approaches failed because:

  • Coordinating changes across dozens of source systems was nearly impossible

  • Manual updates couldn't scale

  • Strict enforcement sacrificed data continuity


Delta Lake as a Potential Solution

Delta Lake offered promising capabilities for our schema evolution challenges:

  1. Automatic Schema Evolution: Adapting to changes without intervention

  2. Schema Enforcement: Maintaining data quality while allowing evolution

  3. Time Travel: Accessing historical data versions

  4. Transaction Log: Tracking all table changes

Our ideal solution needed to:

  • Automatically adapt to most schema changes

  • Maintain data integrity

  • Preserve historical consistency

  • Minimize processing latency

  • Provide visibility into schema changes

  • Maintain backward compatibility


The Broader Challenge

As we analyzed further, we recognized schema evolution was part of a larger data engineering challenge. We needed to address:

  1. Incremental Processing: Full table scans were becoming prohibitively expensive

  2. Pipeline Orchestration: Managing processing dependencies

  3. Data Quality: Ensuring consistency across evolving schemas


Coming Next

In Part 2, we'll look into the implementation of schema evolution with Delta Lake on Databricks, covering:

  • Schema evolution mechanisms

  • Handling different types of schema changes

  • Effective code patterns

  • Testing and validation approaches


Stay tuned for Part 2: Implementing Schema Evolution with Delta Lake on Databricks.

Ready to Experience the Future of Data?

Discover how Enqurious helps deliver an end-to-end learning experience
Curious how we're reshaping the future of data? Watch our story unfold

You Might Also Like

7 Major Stages of the Data Engineering Lifecycle blog cover image
Guides & Tutorials
April 8, 2025
7 Major Stages of the Data Engineering Lifecycle

Discover the 7 major stages of the data engineering lifecycle, from data collection to storage and analysis. Learn the key processes, tools, and best practices that ensure a seamless and efficient data flow, supporting scalable and reliable data systems.

Ayushi EnquriousSr. Data Engineer
Troubleshooting Pip Installation Issues on Dataproc with Internal IP Only blog cover image
Guides & Tutorials
April 3, 2025
Troubleshooting Pip Installation Issues on Dataproc with Internal IP Only

This blog is troubleshooting adventure which navigates networking quirks, uncovers why cluster couldn’t reach PyPI, and find the real fixβ€”without starting from scratch.

Ayushi EnquriousSr. Data Engineer
Optimizing Query Performance in BigQuery blog cover image
Guides & Tutorials
January 24, 2025
Optimizing Query Performance in BigQuery

Explore query scanning can be optimized from 9.78 MB down to just 3.95 MB using table partitioning. And how to use partitioning, how to decide the right strategy, and the impact it can have on performance and costs.

Ayushi EnquriousSr. Data Engineer
When Partitioning and Clustering Go Wrong: Lessons from Optimizing Queries blog cover image
Guides & Tutorials
January 24, 2025
When Partitioning and Clustering Go Wrong: Lessons from Optimizing Queries

Dive deeper into query design, optimization techniques, and practical takeaways for BigQuery users.

Ayushi EnquriousSr. Data Engineer
Stored Procedures vs. Functions: Choosing the Right Tool for the Job blog cover image
Guides & Tutorials
January 6, 2025
Stored Procedures vs. Functions: Choosing the Right Tool for the Job

Wondering when to use a stored procedure vs. a function in SQL? This blog simplifies the differences and helps you choose the right tool for efficient database management and optimized queries.

Divyanshi EnquriousAnalyst
Understanding the Power Law Distribution blog cover image
Guides & Tutorials
January 3, 2025
Understanding the Power Law Distribution

This blog talks about the Power Law statistical distribution and how it explains content virality

Amit EnquriousCo-founder & CEO
Breaking Down Data Silos with BigQuery Omni and BigLake blog cover image
Guides & Tutorials
December 23, 2024
Breaking Down Data Silos with BigQuery Omni and BigLake

Discover how BigQuery Omni and BigLake break down data silos, enabling seamless multi-cloud analytics and cost-efficient insights without data movement.

Ayushi EnquriousSr. Data Engineer
Solving a Computer Vision task with AI assistance blog cover image
Guides & Tutorials
December 18, 2024
Solving a Computer Vision task with AI assistance

In this article we'll build a motivation towards learning computer vision by solving a real world problem by hand along with assistance with chatGPT

Amit EnquriousCo-founder & CEO
How Apache Airflow Helps Manage Tasks, Just Like an Orchestra blog cover image
Guides & Tutorials
September 16, 2024
How Apache Airflow Helps Manage Tasks, Just Like an Orchestra

This blog explains how Apache Airflow orchestrates tasks like a conductor leading an orchestra, ensuring smooth and efficient workflow management. Using a fun Romeo and Juliet analogy, it shows how Airflow handles timing, dependencies, and errors.

Burhanuddin EnquriousJr. Data Engineer
Snapshots and Point-in-Time Restore: The E-Commerce Lifesaver blog cover image
Guides & Tutorials
January 13, 2024
Snapshots and Point-in-Time Restore: The E-Commerce Lifesaver

The blog underscores how snapshots and Point-in-Time Restore (PITR) are essential for data protection, offering a universal, cost-effective solution with applications in disaster recovery, testing, and compliance.

Ayushi EnquriousSr. Data Engineer
Basics of Langchain blog cover image
Guides & Tutorials
December 16, 2023
Basics of Langchain

The blog contains the journey of ChatGPT, and what are the limitations of ChatGPT, due to which Langchain came into the picture to overcome the limitations and help us to create applications that can solve our real-time queries

Burhanuddin EnquriousJr. Data Engineer
Understanding Data Lakes and Data Warehouses: A Simple Guide blog cover image
Guides & Tutorials
December 8, 2023
Understanding Data Lakes and Data Warehouses: A Simple Guide

This blog simplifies the complex world of data management by exploring two pivotal concepts: Data Lakes and Data Warehouses.

Ayushi EnquriousSr. Data Engineer
An L&D Strategy to achieve 100% Certification clearance blog cover image
Guides & Tutorials
December 6, 2023
An L&D Strategy to achieve 100% Certification clearance

An account of experience gained by Enqurious team as a result of guiding our key clients in achieving a 100% success rate at certifications

Amit EnquriousCo-founder & CEO
Serving Up Cloud Concepts: A Pizza Lover's Guide to Understanding Tech blog cover image
Guides & Tutorials
November 2, 2023
Serving Up Cloud Concepts: A Pizza Lover's Guide to Understanding Tech

demystifying the concepts of IaaS, PaaS, and SaaS with Microsoft Azure examples

Ayushi EnquriousSr. Data Engineer
Azure Data Factory: The Ultimate Prep Cook for Your Data Kitchen blog cover image
Guides & Tutorials
October 31, 2023
Azure Data Factory: The Ultimate Prep Cook for Your Data Kitchen

Discover how Azure Data Factory serves as the ultimate tool for data professionals, simplifying and automating data processes

Ayushi EnquriousSr. Data Engineer
Harnessing Azure Cosmos DB APIs: Transforming E-Commerce blog cover image
Guides & Tutorials
October 26, 2023
Harnessing Azure Cosmos DB APIs: Transforming E-Commerce

Revolutionizing e-commerce with Azure Cosmos DB, enhancing data management, personalizing recommendations, real-time responsiveness, and gaining valuable insights.

Ayushi EnquriousSr. Data Engineer
Unleashing the Power of NoSQL: Beyond Traditional Databases blog cover image
Guides & Tutorials
October 26, 2023
Unleashing the Power of NoSQL: Beyond Traditional Databases

Highlights the benefits and applications of various NoSQL database types, illustrating how they have revolutionized data management for modern businesses.

Ayushi EnquriousSr. Data Engineer
Calendar Events Automation: Streamline Your Life with App Script Automation blog cover image
Guides & Tutorials
October 10, 2023
Calendar Events Automation: Streamline Your Life with App Script Automation

This blog delves into the capabilities of Calendar Events Automation using App Script.

Burhanuddin EnquriousJr. Data Engineer
A Journey Through Extraction, Transformation, and Loading blog cover image
Guides & Tutorials
September 7, 2023
A Journey Through Extraction, Transformation, and Loading

Dive into the fundamental concepts and phases of ETL, learning how to extract valuable data, transform it into actionable insights, and load it seamlessly into your systems.

Burhanuddin EnquriousJr. Data Engineer
A Simple Guide to Data Literacy blog cover image
Guides & Tutorials
June 23, 2023
A Simple Guide to Data Literacy

An easy to follow guide prepared based on our experience with upskilling thousands of learners in Data Literacy

Amit EnquriousCo-founder & CEO
The Bakery Brain: Simplifying neural networks blog cover image
Guides & Tutorials
June 23, 2023
The Bakery Brain: Simplifying neural networks

Teaching a Robot to Recognize Pastries with Neural Networks and artificial intelligence (AI)

Shuchismita EnquriousData Scientist
Demystifying Namespace Structures blog cover image
Guides & Tutorials
June 23, 2023
Demystifying Namespace Structures

Streamlining Storage Management for E-commerce Business by exploring Flat vs. Hierarchical Systems

Ayushi EnquriousSr. Data Engineer
The Ownership Dilemma blog cover image
Guides & Tutorials
January 26, 2023
The Ownership Dilemma

Figuring out how Cloud help reduce the Total Cost of Ownership of the IT infrastructure

Amit EnquriousCo-founder & CEO
Making sense of Cloud as an IT Professional blog cover image
Guides & Tutorials
January 26, 2023
Making sense of Cloud as an IT Professional

Understand the circumstances which force organizations to start thinking about migration their business to cloud

Amit EnquriousCo-founder & CEO