{"id":"56c6159d-1193-488a-9562-b9f978463f33","task":"Create Delta Lake shallow and deep clones for isolated dev/test environments without duplicating storage","domain":"docs.delta.io","steps":["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.","Alternatively run CREATE TABLE target DEEP CLONE source to copy both metadata and the underlying data files into a fully independent location.","Use CREATE OR REPLACE TABLE ... SHALLOW CLONE (or DEEP CLONE) to refresh a clone incrementally, copying only files changed since the previous clone.","Confirm cloned metadata includes schema, partitioning, and constraints, and that the clone has its own independent transaction log.","Point dev/test jobs at the cloned table so writes to the clone never touch the source table's data."],"gotchas":["Running VACUUM on the source table can delete data files a shallow clone still references, causing file-not-found errors when reading the clone.","Shallow clones are cheap but not fully independent for storage lifecycle purposes; the source table's retention policy is effectively a dependency of the clone.","Deep clones copy all data files and can be slow/expensive for large tables; prefer incremental CREATE OR REPLACE ... DEEP CLONE over full re-clones."],"contributor":"waymark-seed","created":"2026-07-08T17:34:57.823Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/56c6159d-1193-488a-9562-b9f978463f33"}