Pipelines
Keep a Pipeline in sync with its source
Source schemas keep changing after you build a Pipeline. Sync from Source compares the Pipeline with the current sources, adds what is new, and flags what has gone. Mappings whose source has gone are called stale, and a Pipeline with stale mappings has drift.
In the app: Data Model › Pipelines › your Pipeline › Sync from Source
Before you start¶
- Your organization must not be read-only. Sync, resolve, and re-finalize are disabled in a read-only organization.
Sync from source¶
- Open the Pipeline’s mapping editor.
- Click
Sync from Source. - If nothing changed, you see
Everything up to date — no changes found. -
Otherwise the
Sync Summarydialog lists what happened:Line Meaning N tables added,N views addedNew source tables and views, now included with the Truncate & Reloadstrategy.N columns addedNew columns on tables you already map. N columns reboundA column was dropped and re-created with the same name. The mapping now points at the new column and keeps your destination name and settings. N tables flagged stale,N columns flagged staleThe source no longer has them. When anything is stale, a
Drift detectedsection lists each item.
Sync keeps your destination names, keys, load strategies, and calculated-column choices. A table that is dropped and re-created with the same name is re-linked the same way columns are, instead of being flagged stale.
If the Pipeline was finalized and sync changes anything, it goes back to Mapping In Progress.
Recognize drift¶
- On the Pipelines page, the card shows a
Drift detectedbadge. Hover for the last sync time. - In the mapping editor, a banner reads, for example,
3 stale mappings — Sync ran <date>. - Stale table and column rows are tinted and carry a
Staletag. Hover it for the reason. - Validation reports each stale mapping as an error, so you cannot finalize until you deal with it.
Resolve stale mappings¶
Stale mappings point at sources that no longer exist, so the fix is to remove them.
- In the drift banner, click
Resolve stale mappings. - The
Resolve Stale Mappingsconfirmation says how many mappings will be removed. This cannot be undone. - Click
Resolve. - You see, for example,
Resolved 1 table and 2 columns.
Tables that lost a column have their load code marked Stale so you remember to regenerate it.
Tip: When a source table is renamed, sync adds it under the new name as a new table and flags the old name stale. Set up the new mapping’s destination name, keys, and strategy to match the old one before you resolve the stale mapping.
Re-finalize¶
Re-finalize appears in the toolbar when a finalized Pipeline has drift or out-of-date load code. It runs the catch-up steps in order:
- Syncs from the source.
- Validates. If there are errors, the
Validation Resultsdialog opens and it stops there. - Opens the
Finalize Pipelinedialog so you can confirm.
Re-finalize does not regenerate the load code. Afterwards, open the destination schema’s Pipeline tab and click Regenerate All.