Snowflake Zero-Copy Cloning: How It Works and Examples
The guide
Query your table as a graph.Petabytes. Subsecond. No data movement.

Snowflake zero-copy cloning makes production-sized test environments practical without first duplicating their table data. The decisions that follow matter just as much: which objects belong in the clone, which historical state to preserve, and how long to retain an environment whose storage can grow as data changes.
This guide explains the storage mechanism, SQL for cloning tables, schemas, and databases, and the operational details that affect costs and isolation. A running example follows a data team investigating a pipeline regression, including how an AI agent could explore the resulting evidence.
What Is Zero-Copy Cloning in Snowflake?
Zero-copy cloning creates a new Snowflake object that initially shares the source object's underlying data storage. A cloned table exposes the source's rows at the selected point in time through a separate, writable table. Subsequent changes to either object remain independent. Snowflake supports this through CREATE ... CLONE.
The main uses are development environments, transformation testing, and investigations that need a preserved starting point. Choose a table for a narrow experiment, a schema for a related collection of objects, or a database when the relevant data spans schemas.
Suppose revenue reconciliation starts failing after a pipeline deployment. An investigating agent needs to distinguish late input data from a faulty transformation, then identify affected reports. A clone provides a stable starting dataset, provided the investigation preserves that baseline. The agent can choose its next question from intermediate evidence while a separate working clone holds proposed repairs.
The examples below concern standard Snowflake tables. Other table types have different cloning rules; native micro-partition behavior should not be generalized to every object Snowflake supports.
How Does Snowflake Zero-Copy Cloning Work?
When a standard table is cloned, Snowflake creates a new table identity and metadata that reference existing micro-partitions. It avoids reading and rewriting the entire dataset into a second physical copy. Snowflake's storage documentation describes the resulting mix of shared and independently owned storage.
Consider a simplified table backed by partitions A, B, and C. Immediately after cloning, both table definitions reference those partitions. If an update in the clone replaces B with B2, the source still references A, B, C, while the clone references A, B2, C. Unchanged storage stays shared.
This is a useful way to understand copy-on-write: independence comes from separate references and newly written storage when needed, rather than duplicating everything before work begins. The partition labels are illustrative, not a measured execution plan.

A clone does not subscribe to future source changes. In the investigation example, another production pipeline run will not silently update the preserved clone. Creating a fresh baseline is an explicit operation.
Choose CLONE, LIKE, or CTAS according to the task. LIKE creates an empty table with the source's column definitions. CREATE TABLE ... AS SELECT populates a table from query results, which is useful when the test requires a transformed or filtered dataset. CLONE preserves the table's selected data state through shared storage.
Snowflake Zero-Copy Cloning Architecture
Snowflake separates database storage, compute, and cloud services. Each layer explains a different part of cloning.
Storage holds compressed table data in cloud storage. Multiple table objects can reference the same stored partitions.
Cloud services manage metadata and coordinate platform operations, including access control and query planning. Separate object identities let Snowflake distinguish a clone from its source even while their data is shared.
Virtual warehouses supply query compute. A cloned database does not bring a dedicated warehouse with it. Running production and investigation queries on the same warehouse still shares that warehouse's resources; using a separate warehouse separates their compute workloads.
For an agent investigating the reconciliation failure, this distinction matters. A preserved dataset keeps successive tests comparable, while responsive queries let the agent examine more possible explanations. As historical data accumulates and the investigation expands across transformation histories, dataset dependencies, and report definitions, it also needs access to many related tables without exporting a new subset for every lead. Cloning addresses the starting dataset; query execution and relationship discovery remain architectural choices.
How Snowflake Uses Micro-Partitions for Cloning
Snowflake automatically organizes standard table data into compressed, columnar micro-partitions. It records metadata such as column value ranges and distinct-value counts, enabling queries to prune irrelevant partitions. Users do not create these partitions manually.
The stored files are immutable. Snowflake's technical description of micro-partition storage explains that updating a record writes a new micro-partition rather than changing the existing file. This lets another table reference the old version safely.
Consequently, storage growth follows the physical changes an operation causes. Updating a small fraction of rows spread throughout a table can affect many partitions. A test that rewrites every row may lose much of the initial sharing advantage. Some operations, such as deleting an entire table's contents, can instead be handled through metadata, so not every modification means rewriting every affected file.
For the pipeline investigation, scope repair experiments to the relevant runs and time window where possible. This makes the experiment easier to interpret and gives Snowflake useful predicates for pruning; cloning alone does not make an expensive query inexpensive.
How to Clone a Table in Snowflake
Assume PROD.OPS.PIPELINE_RUNS exists with RUN_ID, STATUS, and STARTED_AT columns, and SANDBOX.OPS already exists. These examples are adaptable SQL snippets for that schema.
The executing role needs SELECT on the source table, access to its containing database and schema, and CREATE TABLE in the destination schema, with access to the destination database. Querying the result also requires warehouse access. Create the clone with the table cloning syntax:
CREATE TABLE SANDBOX.OPS.PIPELINE_RUNS_TEST
CLONE PROD.OPS.PIPELINE_RUNS;
SELECT RUN_ID, STATUS, STARTED_AT
FROM SANDBOX.OPS.PIPELINE_RUNS_TEST
ORDER BY STARTED_AT DESC
LIMIT 20;For a new clone that should inherit the source table's explicit grants, append COPY GRANTS after the source name. Ownership is excluded. With this option, the clone does not inherit destination future grants; without it, applicable destination future grants apply instead of the source's explicit grants. Review that choice for a sandbox: production access grants may be broader than the investigation needs.
To capture an earlier state, add a Time Travel clause:
CREATE TABLE SANDBOX.OPS.PIPELINE_RUNS_EARLIER
CLONE PROD.OPS.PIPELINE_RUNS
AT (OFFSET => -3600);This requests the state one hour earlier. To exclude a specific bad statement's effects, use its actual query ID:
CREATE TABLE SANDBOX.OPS.PIPELINE_RUNS_BEFORE_FIX
CLONE PROD.OPS.PIPELINE_RUNS
BEFORE (STATEMENT => '<query_id_of_bad_statement>');Replace the placeholder before execution. AT includes changes at the selected point, while BEFORE selects the preceding state. Statement IDs identify a point on the timeline; they do not undo only that statement while preserving every later change. The query ID must refer to a statement executed within the last 14 days; use a timestamp for older retained history.
Historical cloning requires available Time Travel retention. Standard Edition supports up to one day; Enterprise Edition and higher support up to 90 days for permanent objects. Check the actual configured retention and choose a time after the table was created. Increasing retention does not restore history already purged or moved into Fail-safe. Fail-safe is outside the user-queryable Time Travel window, so it cannot supply an older state for these commands.
How to Clone a Schema in Snowflake
Clone a schema when the investigation needs related tables together, such as pipeline runs, transformation definitions, and dataset dependencies:
CREATE SCHEMA SANDBOX.OPS_CASE
CLONE PROD.OPS;CREATE SCHEMA ... CLONE creates a new schema and clones eligible contained objects. The role needs CREATE SCHEMA on the target database plus appropriate source and container privileges. Inspect the resulting object inventory rather than assuming every source object was included.
A schema clone is useful when table-by-table cloning would leave related evidence captured at different moments. For a historical investigation, specify one retained timestamp:
CREATE SCHEMA SANDBOX.OPS_BEFORE_DEPLOY
CLONE PROD.OPS
AT (TIMESTAMP => '2026-12-02 08:00:00 +00:00'::TIMESTAMP_TZ);Replace the example timestamp with the incident's actual baseline. Every required table must have the relevant history available. The option IGNORE TABLES WITH INSUFFICIENT DATA RETENTION allows eligible historical cloning to continue while skipping tables whose history is unavailable. For an investigation, explicitly assess how skipped tables affect the available evidence.
Inspect dependencies as well. A cloned view can retain a fully qualified reference such as PROD.OPS.PIPELINE_RUNS in its definition. Validate those references before treating queries against the cloned schema as isolated from production.
How to Clone a Database in Snowflake
A database clone suits investigations that cross schema boundaries, such as operational pipeline records in OPS and reconciliation outputs in FINANCE:
CREATE DATABASE INCIDENT_REVIEW
CLONE PROD;The CREATE DATABASE reference also supports a historical clone:
CREATE DATABASE INCIDENT_BASELINE
CLONE PROD
AT (OFFSET => -3600);The role needs the account-level CREATE DATABASE privilege and the required source access. Choose the smallest scope that contains the evidence you need. A database-wide clone reduces manual assembly, but also creates more objects whose permissions, dependencies, and lifecycle need attention.
Snowflake's cloning considerations distinguish grants on containers from grants on their children: child-object grants are inherited, while the cloned database or schema itself does not inherit the source container's grants. Tasks included in a clone start suspended. Review their definitions and destinations before resuming them.
Object types also matter. External tables are excluded from database and schema cloning, and hybrid tables have different cloning and storage behavior. Coordinate source DDL changes during cloning, especially renames and drop/recreate operations, which can cause conflicts. Database cloning should be followed by an inventory and dependency check before the environment is handed to an investigating agent.
Storage Costs and Billing for Zero-Copy Clones
Initially shared table storage is not billed once for the source and again for each clone. Costs grow as new data is written and as old data must remain available. An untouched clone can keep partitions referenced even after the source has replaced or deleted that data.
Snowflake calculates monthly storage charges from average daily compressed storage. Budget for the environment's lifetime, not just its creation:
| Cost component | What to watch |
|---|---|
| New active storage | Inserts, updates, and rewrites in the source or clone |
| Historical storage | Data retained for Time Travel and, where applicable, Fail-safe |
| Storage retained for clones | Older data still referenced by surviving clones |
| Compute | Warehouses running queries and repair experiments |
Use TABLE_STORAGE_METRICS to inspect storage attribution across the account, with a role authorized to query Account Usage:
SELECT TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME,
ID, CLONE_GROUP_ID,
DELETED, TABLE_DROPPED, TABLE_ENTERED_FAILSAFE,
ACTIVE_BYTES, TIME_TRAVEL_BYTES,
FAILSAFE_BYTES, RETAINED_FOR_CLONE_BYTES
FROM SNOWFLAKE.ACCOUNT_USAGE.TABLE_STORAGE_METRICS
ORDER BY CLONE_GROUP_ID, ID;CLONE_GROUP_ID connects related tables. RETAINED_FOR_CLONE_BYTES identifies owned bytes kept after deletion because clones or WORM backups still reference them; it is not the total data a clone can read. For a specific investigation, filter by the relevant CLONE_GROUP_ID, retaining source and dropped-table records. Filtering by database names can exclude dropped tables in Fail-safe because those names can be null. Account Usage metrics can lag recent operations.
Give each investigation environment an owner and a cleanup date. Consider transient tables for reproducible scratch work: they have no Fail-safe and limited Time Travel. Keep evidence that needs stronger recovery protection in an appropriate permanent environment. Dropping an unused clone ends its active use, but retention and other surviving references determine when storage can disappear.
How Changes to Source and Cloned Objects Are Managed
An update to the cloned pipeline-run table affects that table alone:
UPDATE SANDBOX.OPS.PIPELINE_RUNS_TEST
SET STATUS = 'REVIEW_REQUIRED'
WHERE RUN_ID = 'RUN-2048';If that run exists, its status changes in the test table. The source keeps its own value. Subsequent source inserts, column additions, and table renames do not automatically propagate to the clone. Dropping the source table also does not remove the clone's data, but views that still reference source objects need separate review.
Preserve an unchanged baseline and make repair experiments in a working clone. Record the source, clone time, and transformation version alongside the investigation. Cloning provides no automatic merge-back workflow: promote a reviewed transformation or apply a deliberate data repair through the team's normal deployment process.
Before promoting a repair tested in the working clone, trace which downstream reports the pipeline change could affect. PuppyGraph helps an agent follow the relationships between pipeline runs, transformations, datasets, and reports while keeping the investigation on the existing data platform.
PuppyGraph is a data engine for building AI agents that query enterprise data in place. It connects to SQL databases, data warehouses, and lakehouses, including direct reads of Iceberg and Delta Lake tables. Its built-in AI assistant proposes a graph model mapping connected tables to nodes and edges for review; agents can explore that model through MCP and query it with openCypher or Gremlin. Agents can work across 3,000 tables through a unified model, while the distributed engine scales to petabytes and supports subsecond traversals on supported workloads, helping agents test successive hypotheses. With no data movement into a separate graph database, the same tables remain available to SQL workloads.

For this scenario, configure the Snowflake connector and graph mappings to the investigation database, with USAGE on the warehouse, database, and schema, and SELECT on the mapped tables. An agent could test whether inputs arrived late, follow affected transformations if timing rules that out, and compare downstream reports with unaffected branches. Each result guides its next step. With strict schema validation enabled, PuppyGraph rejects openCypher queries referencing undefined entities or relationships before execution and returns feedback the agent can use to correct them. Snowflake supplies the isolated data state; PuppyGraph supplies relationship exploration over it. The agent's conclusion still needs evidence from the records, not merely a connecting path.


Conclusion
Snowflake zero-copy cloning separates a new object's lifecycle from its source while initially sharing table storage. Choose the clone scope around the work, verify Time Travel availability and dependencies, and monitor storage as the objects diverge. For investigations, preserve a baseline and give experiments their own working environment.
Try the forever-free PuppyGraph Developer Edition and book a demo with the team to see how openCypher and Gremlin queries connect warehouse and lakehouse tables, with no graph-specific ETL, so agents can investigate which downstream reports a pipeline change affects.
Keep learning
Database Concept
Snowflake Semantic Views: Architecture & Features
Learn how Snowflake semantic views work, explore their architecture, logical tables, facts, dimensions, metrics, SQL and YAML creation, and integration with Cortex AI.
Database Concept
Schema Drift: Detection, Causes, and Management
Understand schema drift in data engineering, its common causes, impact on data pipelines, detection methods, and strategies for managing unexpected schema changes.
Database Concept
Primary Key in DBMS: Definition & Types
Learn what a primary key is in DBMS, how primary key constraints work, SQL syntax, examples, types, and differences between primary keys and other database keys.
Start free. Pay when it goes to production.
Contact us for any questions about capabilities, sizing and support.
* No payment required to start either one.
$ docker run -p 8081:8081 \
-p 8182:8182 -p 7687:7687 \
puppygraph/puppygraph:latestPulling puppygraph/puppygraph:latestStarting PuppyGraphWeb console listening on 0.0.0.0:8081Gremlin endpoint listening on 0.0.0.0:8182PuppyGraph is running# no pipelines · no second database · no data movement




