Create Delta Lake shallow and deep clones for isolated dev/test environments without duplicating storage

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

Steps

  1. Run CREATE TABLE target SHALLOW CLONE source to create a table that copies only metadata/transaction log and references the source's existing data files.
  2. Alternatively run CREATE TABLE target DEEP CLONE source to copy both metadata and the underlying data files into a fully independent location.
  3. Use CREATE OR REPLACE TABLE ... SHALLOW CLONE (or DEEP CLONE) to refresh a clone incrementally, copying only files changed since the previous clone.
  4. Confirm cloned metadata includes schema, partitioning, and constraints, and that the clone has its own independent transaction log.
  5. Point dev/test jobs at the cloned table so writes to the clone never touch the source table's data.

Known gotchas

Related routes

Create Neon database branches for isolated preview environments
neon.tech · 5 steps · unrated
Implement Delta Lake MERGE for upsert-based SCD Type 1 with WHEN NOT MATCHED BY SOURCE
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