Skip to content
Data EngineeringGCP Client project · NDA

Legacy Warehouse Migration to BigQuery

Moving 15 TB and 600+ tables off an on-premise warehouse with zero reporting downtime.

Financial services client (NDA)
Client
Data Engineer — ingestion and validation workstream
My role
2026 · 6 months
Timeline
6 engineers
Team
Data migrated
15 TB
Tables and procedures
600+
Hours of reporting downtime
0
Faster month-end queries
5×

Architecture

How the system fits together

  1. 1

    Sources

    • On-prem SQL Server
    • SSIS packages
    • Flat-file drops
  2. 2

    Ingest

    • Datastream + batch extracts
    • Cloud Storage staging
  3. 3

    Transform

    • dbt models
    • BigQuery SQL
    • Cloud Composer (Airflow)
  4. 4

    Validate

    • Row-count & checksum reconciliation
    • Dual-run comparison
  5. 5

    Serve

    • BigQuery marts
    • Looker Studio
    • Existing BI tools

Context

The situation

The client's ten-year-old on-premise warehouse was close to capacity. Month-end reports took hours, a hardware renewal was due, and hundreds of SSIS packages held business logic nobody fully understood.

Challenge

What made it hard

  • 600+ tables and stored procedures with undocumented business logic.
  • Finance could not accept any reporting downtime or unexplained number changes.
  • SQL dialect differences between SQL Server and BigQuery.
  • Strict data-residency and access-control requirements.

Approach

Key decisions and trade-offs

  1. 01

    Inventory, then migrate in waves

    Built an automated catalogue of tables, dependencies and query frequency from system views, then migrated in waves — starting with the most-used marts.

  2. 02

    Business rules as tested code

    Rewrote stored procedures as modular dbt models with tests for uniqueness, nulls and accepted values, so business rules became documented, reviewable code.

  3. 03

    Prove it with reconciliation

    Ran the old and new warehouses side by side. A nightly Airflow DAG compared row counts, column checksums and key aggregates and flagged any drift.

  4. 04

    Secure by default

    Used regional datasets, customer-managed encryption keys, authorised views and IAM groups that mirrored existing roles.

Results

The impact

  • All 15 TB and 600+ tables moved with zero reporting downtime.
  • Month-end queries run about five times faster.
  • Business logic now lives in version-controlled, tested dbt models.
  • The on-premise hardware renewal was avoided entirely.