Search GimmeJob

Type at least 2 characters. Enter also searches by meaning.
QA interview question
Databases, SQL & BIData / ETL / BIMiddleCommonTheory

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

Reconcile source and target control totals
Dialect · SQL standardRuntime · static 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.

#etl#elt#pipeline#reconciliation

Sources

Develop and test Dataflow pipelinesGoogle Cloud · Unit, integration and end-to-end testing for batch and streaming pipelinesAdd data tests to your DAGdbt Labs · Reusable assertions for analytics transformations and data contractsGreat Expectations CoreGreat Expectations · Data-quality expectations, validation definitions and evidence