cloneTable

Last updated: January 27, 2026

Creates a zero-copy clone of a Snowflake standard table with optional time travel support. Clones can be created from the current state or from a specific point in time within the retention window.

Known limitation: This change type does not support automatic rollback.

Snowflake snapshots created with Liquibase Secure 5.1 are incompatible with earlier versions due to enhanced object type detection for TABLES and VIEWS. Regenerate all snapshots with 5.1 after upgrading to avoid false differences in diff and diff-changelog operations.

Available attributes

Attribute

Type

Description

Required

sourceCatalogName

String

Name of the catalog containing the source table

No

sourceSchemaName

String

Name of the schema containing the source table

No

sourceTableName

String

Name of the table to clone from

Yes

targetCatalogName

String

Name of the catalog for the cloned table

No

targetSchemaName

String

Name of the schema for the cloned table

No

targetTableName

String

Name of the new cloned table

Yes

replaceIfExists

Boolean

If true, replaces existing table with OR REPLACE*

No

ifNotExists

Boolean

If true, only creates if target doesn't exist*

No

copyGrants

Boolean

If true, copies grants from source table**

No

temporary

Boolean

If true, creates a TEMPORARY table (session-scoped)***

No

isTransient

Boolean

If true, creates a TRANSIENT table (no fail-safe)***

No

timeTravelClause

Nested

Time travel options for cloning from historical state

No

*replaceIfExists and ifNotExists are mutually exclusive.

**copyGrants requires replaceIfExists=true.

***temporary and isTransient are mutually exclusive.

timeTravelClause nested attributes

Attribute

Type

Description

Required

timeTravelType

String

Either AT or BEFORE

Yes

timestamp

String

Absolute timestamp or SQL expression****

No

offset

String

Relative seconds (e.g., -3600 for 1 hour ago)****

No

statement

String

Statement ID from query history****

No

****Exactly one of timestamp, offset, or statement must be specified.

loading

loading

loading

loading