The Lakeflow pipelines API for change data capture: it merges incoming changes into a streaming table, keeping either just the latest values (SCD 1) or full history (SCD 2), and uses an ordering column to cope with records that arrive late. A snapshot variant also exists.
Also called formerly APPLY CHANGES, APPLY CHANGES.
Read more: Microsoft Learn
In the Ultra Transcenders books
Each book explains AUTO CDC in context, with comparison tables and the common traps.
Terms in this definition
- Lakeflow Pipelines
Formerly Delta Live Tables, this framework has engineers state which datasets they want. Databricks then looks after orchestration, retries and much of the incremental processing.
- API
Short for application programming interface: a contract that client code calls programmatically, for example a web API secured with tokens or the Files, Images or Responses APIs.
- CDC
Change data capture: rather than reloading whole snapshots, you process just the rows a source has added, changed or removed, with each change carrying its kind and an ordering value. Lakeflow pipelines handle such feeds through
AUTO CDC. - Streaming table
Delta table built for incremental loading, declared with
CREATE STREAMING TABLE(Databricks SQL or Lakeflow pipelines). Wrapping sources inSTREAM, as inSTREAM read_files(...), reads them as streams. - VALUES
Returns in DAX the distinct column values, or table rows, still visible after filters are applied, sometimes with an extra blank entry. CALCULATE often takes the result as a table filter.
- SCD
Slowly changing dimension. Type 1 keeps only current attribute values; type 2 retains every past version, bounded by
__START_ATand__END_AT. Pipelines get both viaAUTO CDC(STORED AS SCD TYPE 1orSTORED AS SCD TYPE 2), whileTRACK HISTORY ONnames which columns produce history. - COPE
Company-owned Android Enterprise devices that people may also use privately. A work profile keeps work apart, and Intune manages that profile as well as the device as a whole.
- snapshot
Captures a VM's disk state, power state, settings and, if requested, memory at a moment in time, using one delta disk per virtual disk. Snapshots should not be relied on as backups.
Related terms
- APPLY AS TRUNCATE WHEN
Tells an AUTO CDC flow which incoming events should empty the entire target table. It only works with SCD Type 1.
- Bitemporal AUTO CDC
A Beta form of AUTO CDC that adds a second time axis to SCD type 2.
SEQUENCE BYsupplies business time andSYSTEM SEQUENCE BYsupplies system time, which makes it possible to see what the system held to be true at an earlier point. - CDF
Change data feed. When switched on for a Delta table it records which rows changed from version to version, exposing extra columns that give the kind of change and the commit version. You can query it with
table_changes(), stream from it, or feed it toAUTO CDC. - COLUMNS clause
Controls column handling in
AUTO CDC.COLUMNS TO UPDATEpoints to anarray<string>field in the source listing what a given record changes, whileCOLUMNSsets what reaches the target: everything unless restricted, for instance with* EXCEPT (...). - CREATE FLOW
Lets pipeline SQL declare a flow on its own, away from the table it writes to. Streaming tables can receive
REPLACE WHEREandAUTO CDC ... INTOflows declared this way. - History tracking
Retains previous versions of a row instead of replacing them. Lakeflow Connect tables leave it off by default, and in AUTO CDC the
TRACK HISTORYoption restricts which columns create new versions. - Iceberg
An open format for tables. Within Unity Catalog, managed ones are available and foreign ones can only be read, while the docs cover
USING ICEBERGon materialized views but not on AUTO CDC streaming tables. - IGNORE NULL UPDATES
Stops nulls in incoming AUTO CDC data from replacing what the target already holds, which they otherwise would. Unless a column list is given, a genuine null then has no way through.