1 of 12

CHAPTER 05 · DATA WAREHOUSE & BIG DATA

ETL Processes & Modern ELT Pipelines

Log-based CDC, cleansing workflows, ELT with dbt, orchestration, and data quality firewalls.

Chapter 5 Sub-Chapters

5.1 Anatomy of an ETL System

5.2 Extraction & Log-Based CDC

5.3–5.4 Transformation & Loading Modes

5.5 Paradigm Shift: ETL to ELT

5.6 Orchestration & Idempotency

5.7–5.9 Quality Firewall, Lineage & Streaming

5.10 TSB Bank Case & Fintech Scenario

2 of 12

SECTION 5.1 · FIGURE 5.1

ETL: The 60–80% Engineering Backbone

Rescues fragmented operational data, resolves anomalies, and delivers trusted dimensional tables.

Cross-Cutting Support: Audit logs, error quarantine tables, recovery, and metadata tracking.

EXTRACT

Full · Incremental · CDC

TRANSFORM (Staging)

LOAD

Bulk · Trickle · MERGE

Data Warehouse

RDBMS / ERP

REST APIs

CSV / Logs

•

Cleansing & deduplication

•

Conforming & SK lookup

•

SCD handling & aggregates

3 of 12

SECTION 5.2 · FIGURE 5.2

Log-Based Change Data Capture (CDC)

Reads database transaction logs directly with near-zero impact on production OLTP tables.

Why CDC Beats Timestamps: Captures INSERT, UPDATE, and hard DELETEs in exact sequence without scanning source tables.

OLTP App

MySQL / Postgres

binlog / WAL

Transaction log

Debezium

CDC Connector

Kafka Topics

db.orders / users

Data Lakehouse

Stream Engine

4 of 12

SECTIONS 5.3 & 5.4 · CORE STAGES

Transformation & Loading Patterns

Transformation Kitchen

Loading Strategies

Profiling: Measure NULLs, formats, and cardinality.

Cleansing: Standardize text and remove duplicates.

Conforming: Align currencies, units, and timezones.

SK Lookup: Map natural keys to surrogate keys.

Bulk Load: Fast parallel COPY in off-hours.

Trickle / Micro-Batch: Continuous near-real-time feeds.

Upsert / MERGE: Atomic inserts and updates.

Partition Swap: Zero-downtime atomic table switches.

5 of 12

SECTION 5.5 · FIGURE 5.3

The Paradigm Shift: ETL to ELT

TRADITIONAL ETL

MODERN ELT (CLOUD & DBT)

Source

Extract

Transform (ETL Server)

Load

DW

Source

Extract

Load Raw

Cloud DW / Lakehouse

Transform (SQL / dbt)

6 of 12

Parameter

ETL Architecture

ELT Architecture

Transform Engine

Dedicated external ETL server

Native SQL inside Cloud DW

Hardware Needs

Heavy Informatica / SSIS servers

Elastic cloud MPP compute

Loading Speed

Slower pre-load bottleneck

Instant raw ingestion

Flexibility

Rule changes need re-extraction

Re-run SQL / dbt on raw data

PII Privacy

Mask PII before entering DW

Needs strict DW RBAC & masking

SECTION 5.5 · TABLE 5.1

ETL vs. ELT Architecture Comparison

7 of 12

SECTION 5.6 · PIPELINE RELIABILITY

Production Pipeline Engineering

Three reliability guarantees separating classroom scripts from enterprise pipelines.

DAG Orchestration

Airflow schedules retries and backfills.

Idempotency

Re-runs yield identical target states.

Late Dimensions

Creates temporary inferred member rows.

8 of 12

SECTION 5.7 · FIGURE 5.4

Data Quality Firewall & Audit Dimension

dim_audit attaches batch ID, load timestamp, pipeline version, and quality score to every fact row.

Staging Data

Column Screen

NULL, range, format

Structure Screen

Referential integrity

Business Screen

Invoice = line totals

PASS → Load Fact + audit_key

WARN → Load with quality flag

CRITICAL → Quarantine / Halt

9 of 12

SECTIONS 5.8 & 5.9 · OBSERVABILITY & REAL-TIME

Data Lineage & Streaming Integration

Automated Data Lineage

dbt ref() and OpenLineage trace table and column provenance for impact analysis.

Continuous Streaming Patterns

CDC-to-Lakehouse MERGE, Flink/Spark transforms, or real-time OLAP (Druid/Pinot).

Pragmatic Freshness Test

Use streaming only when minute-level freshness directly improves a business decision.

10 of 12

SECTION 5.10 · INDUSTRY CAUTIONARY CASE

TSB Bank's Big-Bang Migration Failure

April 2018 unverified cutover locked millions of UK banking customers out of services.

Migration Rules: Test at production scale, migrate iteratively with rollback, and automate reconciliation.

5.2M

Customers impacted

£48.65M

FCA / PRA regulatory fine

£32.7M

Customer compensation

11 of 12

SECTION 5.11 · APPLIED FINTECH SCENARIO

50M Daily Transactions: Batch to Micro-Batch ELT

Replacing 7-hour nightly batch ETL with Debezium CDC + Kafka + Spark/dbt micro-batches.

12 of 12

CHAPTER 05 · SUMMARY

What We Covered Today

Next Lecture: Chapter 6 — Data Integration & Data Quality

ETL Backbone

60–80% of DW effort goes to integration.

Log-Based CDC

Captures inserts, updates, deletes with zero drag.

Modern ELT

Load raw fast, transform via Cloud SQL & dbt.

Quality & Trust

Idempotency, audit dimensions, and lineage.