Skip to main content

Schema Drift

The Schema Drift page at /data-quality/schema-drift flags any change to a table's schema since the last baseline — added columns, removed columns, type changes, nullability flips, comment changes. It's the early-warning for "the upstream team renamed a column and broke our jobs".

How it works

The drift detector compares the current UC table schema against a saved baseline (created either explicitly via the Set baseline button, or implicitly during the last successful clone).

  • Added column — appeared since baseline; usually safe
  • Removed column — gone since baseline; usually breaks consumers
  • Type changedINT → BIGINT is a drift even if compatible
  • Nullability changedNOT NULL → NULL is a drift
  • Comment changed — informational only

Severity

DriftDefault severity
Added columninfo
Removed columncritical
Type changed (widening)info
Type changed (narrowing)critical
Nullability flipped to nullablewarning
Nullability flipped to not-nullcritical (may invalidate existing data)

Override severity per table in clxs.yaml under data_quality.schema_drift.

Running a check

The page lists all tables with a saved baseline and a status icon. Click Check All to re-evaluate, or click a row to see the drift detail (added / removed / changed lists).

POST /data-quality/schema-drift/check
{ "catalog": "prod_warehouse" } # or specific schema/table

Baseline management

  • Set baseline — captures current schema as the reference point
  • Reset baseline — used after intentional schema change (drift is noise after that)
  • History — see prior baselines and when they were set

The baseline used during clone is auto-recorded — no manual step needed for cloned tables.

Acting on drift

Each drift row links to:

  • ImpactImpact Analysis showing what depends on the changed column
  • Promote to incident — opens an Incident with the drift attached
  • Auto-remediate — apply a Playbook (e.g. add a backwards-compat view)

API

GET  /data-quality/schema-drift?catalog=...
POST /data-quality/schema-drift/check
POST /data-quality/schema-drift/baseline