Podcast
Questions and Answers
What is the primary purpose of the CLONE command in the given context?
What is the primary purpose of the CLONE command in the given context?
What does the CLONE command support for databases and schemas using the IGNORE TABLES WITH INSUFFICIENT DATA RETENTION parameter?
What does the CLONE command support for databases and schemas using the IGNORE TABLES WITH INSUFFICIENT DATA RETENTION parameter?
How is the value specified for the exact date and time to use for Time Travel?
How is the value specified for the exact date and time to use for Time Travel?
What does the parameter specifying the difference in seconds from the current time for Time Travel support?
What does the parameter specifying the difference in seconds from the current time for Time Travel support?
Signup and view all the answers
What is the requirement for the query ID of a statement to be used as the reference point for Time Travel?
What is the requirement for the query ID of a statement to be used as the reference point for Time Travel?
Signup and view all the answers
What privilege(s) does your current role need to have on the source object to create a clone?
What privilege(s) does your current role need to have on the source object to create a clone?
Signup and view all the answers
What happens if the time specified in the AT | BEFORE clause is beyond the data retention period for any child table in a database?
What happens if the time specified in the AT | BEFORE clause is beyond the data retention period for any child table in a database?
Signup and view all the answers
What happens to the load history of a cloned table in comparison to its source table?
What happens to the load history of a cloned table in comparison to its source table?
Signup and view all the answers
What happens to Automatic Clustering when a new table is created using CREATE TABLE … CLONE syntax?
What happens to Automatic Clustering when a new table is created using CREATE TABLE … CLONE syntax?
Signup and view all the answers
What must be done if a database role is already cloned to the target database when running the CREATE CLONE command?
What must be done if a database role is already cloned to the target database when running the CREATE CLONE command?
Signup and view all the answers
Study Notes
CLONE Command
- Primary purpose of CLONE command is to create a copy of a database, schema, or table.
Clone Command with IGNORE TABLES WITH INSUFFICIENT DATA RETENTION
- Supports cloning of databases and schemas, excluding tables with insufficient data retention.
Time Travel
- Exact date and time for Time Travel is specified using the AT | BEFORE clause.
- Parameter specifying the difference in seconds from the current time for Time Travel is supported.
Query ID Requirement
- Query ID of a statement must be used as the reference point for Time Travel.
Privilege Requirement
- Current role needs to have the relevant privilege on the source object to create a clone.
Data Retention Period
- If the time specified in the AT | BEFORE clause is beyond the data retention period for any child table in a database, the command will not be executed.
Load History of Cloned Table
- Load history of a cloned table is not affected, and it will be the same as its source table.
Automatic Clustering
- When a new table is created using CREATE TABLE … CLONE syntax, Automatic Clustering is disabled.
Creating a Clone
- If a database role is already cloned to the target database when running the CREATE CLONE command, the command will not overwrite the existing clone; instead, the existing clone will be preserved.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Description
Learn about the CLONE command in Snowflake, which is used for creating zero-copy clones of databases, schemas, and other schema objects. This command is useful for quickly duplicating various schema objects such as external stages, file formats, and sequences in Snowflake.