What should ETL or ELT pipeline testing cover end to end?
Answer
Verify source extraction, schema and type handling, transformation rules, joins and filters, target loading and idempotent reruns. Reconcile counts and control totals at boundaries, test late, duplicate, missing and malformed records, and verify lineage, freshness, observability and recovery. Protect sensitive data throughout the test path.
Strong answer includes
- covers extract, transform and load boundaries
- uses reconciliation and adversarial records
- tests reruns, recovery and data protection
Practical example
Requires source_orders and warehouse_orders from an ETL test environment; the DATE literals are SQL-standard syntax.
SELECT 'source' AS dataset, COUNT(*) AS rows, SUM(amount) AS total_amount
FROM source_orders
WHERE load_date = DATE '2026-08-21'
UNION ALL
SELECT 'target' AS dataset, COUNT(*) AS rows, SUM(amount) AS total_amount
FROM warehouse_orders
WHERE load_date = DATE '2026-08-21';Start ETL validation with independent control totals at each boundary, then drill into row-level differences when counts or amounts diverge. Add separate checks for rejected rows, type conversions, joins, defaults and rerun idempotency rather than trusting only the job status.
Expected result: Source and target totals match after accounting for documented rejects and transformations.