What is ETL? Extract, transform, load explained
Learn how ETL extracts, transforms, and loads data, how it differs from ELT, and how to design reliable pipelines with validation, examples, and error handling.
TL;DR
- ETL means extract, transform, load: collect source data, apply defined preparation rules, and write the result to a destination.
- ELT loads data before applying transformations in the destination; choose the sequence based on architecture, controls, and workload.
- Define record grain, keys, types, and update behavior before joining datasets or scheduling a pipeline.
- Validate counts and totals, preserve rejected records, and design retries so a failed run does not create duplicate output.
- Prowork by Parabola can capture operational data preparation in a Flow, with source mappings, calculations, and exceptions visible.
ETL is a data integration process that extracts data from sources, transforms it into a defined structure, and loads it into a destination. It is used to prepare consistent data for reporting, analysis, application processes, and operational work.
The destination might be a warehouse, database, file, or another approved system. A useful ETL design defines not only the happy path but also how missing data, changed schemas, rejected records, and partial failures are handled.
The three ETL stages
Extract
Read data from approved sources such as files, APIs, or databases. Record which source, version, and time range were used. Extraction may copy a full dataset or only changes since a previous checkpoint. Rate limits, permissions, pagination, and late-arriving records affect completeness.
Transform
Clean and type fields, normalize identifiers, join datasets, apply mappings, calculate values, and aggregate at the required grain. Keep source values where traceability matters. A transformation should implement a documented business rule rather than silently fix data based on an analyst's guess.
Load
Write the prepared data to its destination using a defined append, replace, merge, or upsert policy. Validate destination acceptance and reconcile the result. A successful file upload or API response may not prove that every record was accepted downstream.
ETL versus ELT
ELT stands for extract, load, transform. It moves data into the destination first and performs transformations there, often using a data warehouse's compute and SQL capabilities. ETL transforms before the final load. Real architectures can combine both patterns.
The distinction affects where raw data is stored, which system performs calculations, and how access and processing are controlled. It does not establish that one pattern is universally faster or cheaper. Evaluate data sensitivity, destination capabilities, team ownership, latency, and workload.
How to design a reliable pipeline
1. Define the output and record grain
Specify the business question, required fields, keys, types, and unit represented by each row. One row per order is different from one row per order line or payment. Joining data at incompatible grains can multiply amounts without producing any technical error.
2. Establish source and transformation contracts
Document expected columns, identifier formats, time zones, currencies, and valid values. Define null handling and the distinction between missing, zero, and not applicable. Version consequential mappings and rules so prior results remain explainable.
3. Validate at boundaries
Check extraction coverage, record counts, uniqueness, required fields, and control totals. Validate joins for unexpected multiplication or dropped rows. Route rejected records with reasons and retain enough source evidence for correction.
4. Design restart and delivery behavior
Use stable record keys and a destination policy that supports safe retries. Idempotent processing means repeating the same intended operation does not create unintended additional effects. It does not mean changing inputs should always produce identical results.
Define checkpoints, retry limits, failure alerts, and recovery ownership. Avoid marking a run complete when only part of the output was delivered. Decide how late records and corrections update previous results.
Worked example: preparing sales data
Suppose an illustrative order file contains three lines: two units of SKU A at $10, one unit of SKU B at $15, and three units of SKU A at $10. Merchandise value before discounts and tax is $20 + $15 + $30 = $65.
The transformation maps source item codes to a master SKU list and aggregates by SKU. Correct output is SKU A: five units and $50; SKU B: one unit and $15. Output value remains $65.
If the master table accidentally has two rows for SKU A, a naive join duplicates both A lines and produces $115: $50 counted twice plus $15. A valid-looking output file can therefore be wrong. Uniqueness checks and a $65 input-to-output reconciliation reveal the problem.
If SKU B has no mapping, keep its $15 as an exception. The control becomes $50 valid output + $15 exceptions = $65 source value. Dropping the line would make the output appear complete while understating the source population.
Common ETL mistakes
- Joining on nonunique keys without checking the resulting row count.
- Treating an empty source as a successful zero-activity period when extraction failed.
- Appending the same output after every retry.
- Replacing missing values with zero without a business rule.
- Changing schemas or mappings without considering downstream consumers.
Monitor data freshness, rejected-record value, unmatched keys, and destination acceptance alongside runtime. A fast pipeline that produces incomplete data has not met the business requirement.
Keeping operational transformations visible
Prowork can capture preparation, joins, mappings, and validation checks in a Flow. Process owners can inspect the implementation and review exceptions before using the output in accounting or operational decisions.
FAQ
Is ETL only for data warehouses?
No. Warehouses are common destinations, but ETL can prepare data for files, databases, reporting, or operational processes. Define the output contract for the actual consumer.
Is ETL the same as copying data?
No. Copying moves data. ETL also applies preparation and business rules before loading the result. Even simple copies still need completeness and delivery checks.
What should happen when a source is empty?
Distinguish a valid no-activity response from failed extraction or missing files. Only the valid case should proceed under the documented empty-input policy.
Can ETL run continuously?
Pipelines can run in scheduled batches, micro-batches, or streaming patterns depending on the architecture. Define acceptable latency and recovery behavior rather than assuming every ETL process is a nightly job.