Key Features of Snowflake Time Travel
Let’s dive into details and see what makes this function unique:- Retrieve Altered or Deleted Data: Easily query data that has been modified or removed in the past. This function eliminates concerns about losing crucial information.
- Create Historical Clones: You can create replicas of entire Tables, Schemas, or even Databases at specific points in time. This is vital for conducting historical analyses or data comparisons.
- Restore Deleted Tables, Schemas, and Databases: In the event of accidental deletions, Time Travel enables you to recover lost Tables, Schemas, and more, providing a safety net for your data.
Data Retention Period in Snowflake Time Travel
The data retention period is crucial in Snowflake Time Travel. It determines how long your historical data is preserved for Time Travel operations like SELECT, CREATE, CLONE, and UNDROP. Here’s how it works across different Snowflake editions:- Snowflake Standard Edition: Users can set the retention period to 0 (or revert to the default of 1 day) at both the account and object levels, including databases, schemas, and tables.
- Snowflake Enterprise Edition (and higher): For transient and temporary databases, schemas, and tables, the retention period can be set to 0 (or reverted to 1 day). For permanent databases, schemas, or tables, the retention period can extend from 0 up to 90 days.
Post-Retention: Moving to Snowflake Fail-Safe
Once the retention period ends, historical data is transferred to Snowflake Fail-Safe with the following consequences:- Inaccessibility of historical data for querying.
- Inability to clone past objects.
- Restoring previously dropped objects becomes impossible.