- Introduced by
- Ralph Kimball and data warehouse pioneers
- Year
- 1996
- Type
- Data integration methodology
- Family
- Data Pipeline & Integration
What does it do?
The Extract-Transform-Load (ETL) process is a systematic approach to moving data from source systems into a target repository.
In data warehousing practice, ETL pipelines extract data from operational sources, apply business rules and data quality checks, and load the results into data warehouses and analytical systems. The same data manipulation operations, which include joining, filtering and aggregating sources, also build the analytical base tables used in predictive analytics, where derived features are computed from several data sources.
The intuition behind the method
The three-phase ETL model reflects the fact that raw operational data is usually not fit for analysis as it is stored in source systems. Extract retrieves data from the sources, Transform reshapes and cleanses it to match the business rules, and Load writes it into the warehouse tables. Because the phases run in sequence, the validation step sits between transformation and loading, so records that fail the rules can be stopped or routed for review before they reach users.
History
The ETL pattern is usually described in the context of dimensional data warehousing, a practice popularised by Ralph Kimball in the 1990s, when data warehouses were developing as a distinct field. As data warehouses became standard enterprise infrastructure, ETL work moved from custom scripts to dedicated tools such as Informatica, Talend and Apache NiFi, and cloud platforms later added managed ETL services. Loading raw data first and transforming it inside the target system (ELT) and streaming pipelines are related but separate design choices, and batch ETL remains common.
When to use it
Choose an ETL design when data from several operational sources must be combined, cleaned and stored in a shared analytical store, such as a data warehouse, a business intelligence platform or an analytical base table for predictive modelling. It fits batch reporting, where data is refreshed on a schedule and some delay before availability is acceptable. The design assumes that source schemas are reasonably stable and that the business rules used in the transform step are defined and agreed. Do not rely on a batch ETL design when users need data within moments of a source change, when a single source needs no reshaping, or when source structures change so often that transformation logic cannot be kept current.
Limitations and considerations
- Batch loading creates a delay between a change in a source system and its appearance in the warehouse
- Each transformation rule is custom logic that must be re-tested when source fields or business rules change, so complex transform sets become costly to maintain and debug
- Transformations that join or aggregate large volumes of data need substantial compute and processing time within the load window
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Places data quality rules in a defined transform and validate stage, so failing records can be stopped or routed to an error store before they reach the warehouse
- Stages extracted data before transformation, which keeps the source-facing extract logic separate from the analytical model
- Logs execution and tracks data lineage in the monitor step, which gives an audit trail for tracing a reported figure back to its source
Applications
- Consolidating point-of-sale records from many store systems into one central store for sales analysis
- Combining billing, network and customer service records into a single customer view for analytics
- Reconciling transactions from several processing systems before settlement and financial reporting
- Merging patient records from different hospital information systems into a common analytical dataset
How it works
How it works
Identify and connect to source systems, query or capture data changes, and stage the raw data for processing.
Apply business rules, aggregate values, join data from multiple sources, and clean inconsistencies and missing values.
Move validated data into dimension and fact tables using a full reload or an incremental load. Incremental loads identify changed rows through change data capture, source timestamps or a stored watermark, which records the last successfully loaded value. They are faster on large tables, but a timestamp-based approach can miss late-arriving records whose timestamps fall before the watermark, and it does not capture deletes unless the source provides delete markers or change capture records them. Watermark errors can silently skip or duplicate data, so reconciliation checks should follow each incremental run.
Before loading, check the transformed data for completeness, accuracy, duplicates, referential integrity and consistency against the defined rules. Records that fail are stopped or routed to an error table with a reason code for investigation. Validation gates the load, so that only accepted records reach the warehouse.
Log process execution, track data lineage, alert on failures or anomalies, and monitor quality metrics. Useful metrics include row-count reconciliation between the source extract and the target table, the null rate for key fields, the duplicate rate on business keys, and the rate of rejected records. Each metric is compared against a baseline or an agreed threshold, and a breach raises an alert.
Common pitfalls
- Applying business transformations during extraction rather than staging the raw extract and transforming it in the transform step, which makes it harder to reprocess data when the rules change
- Loading data before the validation checks for completeness, duplicates and referential integrity have run, so errors reach the warehouse
- Writing transformations that depend directly on current source field names and formats, so they fail without warning when the source system is changed
- Dropping rejected records without logging them, so warehouse totals cannot be reconciled with the source and the reason for the gap is lost
Frequently asked questions
What is the difference between ETL and ELT?
ETL transforms data before loading into the target; ELT loads raw data first then applies transformations within the target. ELT leverages warehouse compute power; ETL applies transformations before storage. Choose based on source size and target capability.
How do I handle incremental loads versus full refreshes?
Incremental loads process only changed data, identified through change data capture, timestamps or a watermark. They are faster on large tables but can miss late-arriving or deleted records if the change mechanism is poorly designed. Full refreshes reload all data, which gives a simpler consistency guarantee but uses more resources. The choice is a trade-off between load time, resource use and the risk of missed changes. Full refreshes are often practical for small reference tables, while large fact tables usually need incremental loading with reconciliation checks after each run.
What should I do when source data has quality issues?
Establish data quality rules in the transform phase: validate completeness, check for duplicates, verify referential integrity. Route bad records to an error table for investigation; document rules for stakeholder transparency.
How do I ensure ETL job reliability and recovery?
Implement idempotent transformations so reruns produce the same result. Use checkpoints to enable resumption after failures. Log all processing steps. Test recovery procedures regularly to ensure they work when needed.
Related methods
Sources
Kimball, R. (1996). The Data Warehouse Toolkit: Practical Techniques for Building Dimensional Data Warehouses. New York: John Wiley & Sons.
Open publication referenceKakish, K., & Kraft, T. (2012). The six pillars of enterprise data quality. DM Direct, 5(6), 44-47.
Open publication referenceVassiliadis, P., Quix, C., Vassalos, V., & Jarke, M. (2000). Data warehouse process management. Information Systems, 25(2), 111-125.
Open DOI reference[John_D._Kelleher_,_Brian_Mac_Namee_,_Aoife_D'Arcy(z-lib.org), p. 87