Bookmarks

ETL — ETL: extract, transform, load

A data integration process: data is extracted from source systems, transformed according to common rules and loaded into a data warehouse for analysis.

Also: data pipeline, data integration process, extract-transform-load

checked 9 Nov

All terms

The accounting system knows a customer by contract number, the CRM by email address, the website by session identifier. ETL collects data from these different systems, brings it to a common form and puts it into a single store — usually overnight on a schedule, and in modern setups as a continuous stream.

Three stages

StageWhat happensExample operations
Extractraw data is copied from the source systems into a temporary area — the staging areatransactional databases, CRM, export files, external service APIs
Transformthe data is cleansed and brought to the warehouse schema according to business rulesremoving duplicates, filling in gaps, uniform date and unit formats, masking of personal data
Loadthe finished data is moved from the staging area to the target warehouseinitial load, periodic additions, full refreshes

A full load transfers everything in one go and is usually run once, on the first execution. After that, incremental load is used more often: the pipeline remembers the marker of the last extraction and picks up only new and changed records — by modification date or from the source’s change log.

Example: a retail chain

Every night, several thousand receipts arrive from each of 1,200 tills. The pipeline merges the extracts, converts the amounts into a single currency, removes the duplicates left over from a till failure and, as a result, puts sales facts and store reference data into the warehouse. By morning, reports and dashboards show yesterday’s data.

ETL and ELT

ELT has the same three stages, but in a different order: the data is loaded into the warehouse first, and the transformation is done by the warehouse itself. This is convenient when the target system is powerful and scales — for example, a cloud warehouse or a data lake: the raw data is kept, and heavy transformations do not burden a separate server before the load. Classic ETL is chosen when the target system is weak, the transformation rules are complex, or the data has to pass checks and audit before loading.

Where it is used

  • feeding data warehouses and data marts for reporting and business intelligence
  • migrating data between systems, including a move to the cloud
  • preparing data for machine learning: collection, cleansing, feature calculation

The approach took shape in the 1970s, together with relational databases, when data from different systems first had to be brought together in one place for computation and analysis. Today, pipelines are assembled from ready-made tools or written in Spark, SQL and Python, and their reliability is tested in the same way as any other code.

Sources

the term is written from these pages

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

  • ELTELT: extract, load, transform

    In ELT the order is different: the data is loaded into the warehouse first and only then transformed — by the warehouse itself.

  • DWHdata warehouse

    DWH is the warehouse itself, the place the data ends up; ETL is the process that delivers the data there and puts it in order.

  • CDCchange data capture

    CDC continuously records changes in the source and often serves as the way of extracting data inside an ETL pipeline.