Enable Delta Lake row tracking for stable row IDs across MERGE and UPDATE

domain: data-engineering · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Set delta.enableRowTracking = true in TBLPROPERTIES at CREATE TABLE time, or via ALTER TABLE ... SET TBLPROPERTIES on Delta Lake 3.3+ for existing tables.
  2. To default it for all new tables in a session/cluster, set spark.databricks.delta.properties.defaults.enableRowTracking = true.
  3. Confirm the table's protocol supports it — row tracking requires table-features writer version 7, so older readers/writers may need an explicit protocol upgrade.
  4. Query the stable identifiers via the hidden metadata columns _metadata.row_id and _metadata.row_commit_version instead of relying on physical file/row position, which changes across compaction.
  5. Use the row ID downstream to dedupe or join CDC-style updates without re-deriving a business key, since it survives MERGE/UPDATE rewrites of the underlying file.

Known gotchas

Related routes

Implement Delta Lake MERGE for upsert-based SCD Type 1 with WHEN NOT MATCHED BY SOURCE
delta.io · 5 steps · unrated
Configure Delta Lake Deletion Vectors to accelerate row-level deletes without full file rewrites
delta.io · 5 steps · unrated
Configure Delta Lake Deletion Vectors to enable row-level deletes without full Parquet file rewrites
docs.delta.io · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans