Suspend, resume and change a pipeline safely
Suspension stops automatic refresh work; the stored result remains queryable but can become stale. Lifecycle changes need a dependency-aware plan.
Understand the idea
Pause the consumer-facing table when ending a lab session. In this pipeline the clean intermediate has DOWNSTREAM and no other timed consumer, so it has no independent schedule. Explicitly suspend both to make the intent clear.
| Concept | What it means |
|---|---|
| Suspend | Pause refresh scheduling. |
| Resume | Allow scheduling again. |
| Retention | Limits how long change history remains usable. |
| Reinitialization | Rebuild state; can affect dependent objects. |
A concrete example
Pause the consumer-facing table when ending a lab session. In this pipeline the clean intermediate has DOWNSTREAM and no other timed consumer, so it has no independent schedule. Explicitly suspend both to make the intent clear.
Remember: Retention and source changes can require rebuilding state; plan recovery and downstream consumer reconciliation.
Explain it step by step · full theory
Understand the concept
Pause the consumer-facing table when ending a lab session. In this pipeline the clean intermediate has DOWNSTREAM and no other timed consumer, so it has no independent schedule. Explicitly suspend both to make the intent clear.
Suspension does not mean storage is free or that every running operation has already finished. Inspect refresh history and scheduling state. After a long pause, required history may no longer be available and recovery can require reinitialization.
Apply it to our pipeline
Changing lag or the warehouse is different from replacing a query definition. Replacement may rebuild output and affect dependent incremental tables or streams. Preserve grants and dependencies, plan a maintenance window and compare results before reconnecting consumers.
For a practice restart, resume the upstream table and then the leaf, refresh and inspect history. Do not blindly reset streams to suppress stale-state errors: that can discard the processing boundary needed by a consumer.
Words used in this lesson
- Suspend
- Pause refresh scheduling.
- Resume
- Allow scheduling again.
- Retention
- Limits how long change history remains usable.
- Reinitialization
- Rebuild state; can affect dependent objects.
See how it works
Choose a step to explore the idea at your own pace.
Open the interactive explanation
Suspend, resume and change a pipeline safely
Read the dependency
Suspension stops automatic refresh work; the stored result remains queryable but can become stale. Lifecycle changes need a dependency-aware plan.
Automatic playback is off for reduced motion. Select any step or use Previous and Next. Illustrations explain behavior; they are not live measurements.
Read the complete diagram explanation
- Read the dependency
Suspension stops automatic refresh work; the stored result remains queryable but can become stale. Lifecycle changes need a dependency-aware plan.
- Observe the result
Both main tables should report suspended scheduling after the commands. Stored results remain readable. FULL_COMPARISON has no timed consumer; it was only initialized for comparison.
Try the SQL or command
Read → predict → run in your learning environment → compare. You can also learn by reading without an account.
New to SQL? Where to run it and how to read it
A query is a question written in SQL. Snowflake runs it and returns a result table. This website shows examples; it does not connect to your account.
- No account yet? Read and predict the output first. Follow the account and Snowsight lesson when you are ready.
- For SQL practice, use a learning account in Snowsight and select an authorized role and warehouse. A role determines permissions; a warehouse supplies processing power. Follow the example’s database/schema setup when it refers to stored objects.
- Read the entire example, including comments beginning with
--. Run the selected statement or labeled block in the stated order. Examples labeled Python, shell or HTTP belong in that client, not in a SQL editor. - Compare values and row counts with the explained result. If an example deliberately causes an error, follow its rollback and cleanup steps before continuing.
- SELECT / FROM
- Choose the values to return / identify their input.
- VALUES / COLUMN1
- VALUES supplies tiny example rows. COLUMN1 means their first column, COLUMN2 their second.
- AS / WITH
- AS gives a result a readable name. WITH names a temporary query step within one statement.
- NULL / ::
- NULL means missing or unknown. The :: notation converts a value to a named data type.
- Session
- One connection and its settings. Keep related transaction steps in the same session.
- Database.schema.table
- A full address for stored data. It is separate from the warehouse that processes queries.
Need the L2_OBJECTS_LAB setup? Open the first database-object lesson →
Help with common practice errors
- No active warehouse: select a warehouse your role can use. Do not assume you need to create a new one.
- Object missing or not authorized: check the full name, required setup and active role. Ask the account owner for access if needed.
- Object already exists: setup may already have run. Read the current state or choose a fresh lab name consistently; do not add OR REPLACE blindly.
- Different result: check whether an earlier INSERT or UPDATE changed the data. VALUES examples provide their own fresh input for each statement.
Before running this lesson
Manual Snowflake practice only. This website does not run SQL or provision compute. Refreshing dynamic tables uses billable resources.
Suspend, resume and change a pipeline safely — manual SQL
Definition: Suspension stops automatic refresh work; the stored result remains queryable but can become stale. Lifecycle changes need a dependency-aware plan.
When to use: Practise in the isolated M12_LAB schema.
Example: Both main tables should report suspended scheduling after the commands. Stored results remain readable. FULL_COMPARISON has no timed consumer; it was only initialized for comparison.
ALTER DYNAMIC TABLE CUSTOMER_TOTALS SUSPEND;
ALTER DYNAMIC TABLE CLEAN_ORDERS SUSPEND;
SHOW DYNAMIC TABLES IN SCHEMA L2_OBJECTS_LAB.M12_LAB;
-- Optional restart when continuing the lab:
-- ALTER DYNAMIC TABLE CLEAN_ORDERS RESUME;
-- ALTER DYNAMIC TABLE CUSTOMER_TOTALS RESUME;
-- ALTER DYNAMIC TABLE CUSTOMER_TOTALS REFRESH;What to expect and why
Both main tables should report suspended scheduling after the commands. Stored results remain readable. FULL_COMPARISON has no timed consumer; it was only initialized for comparison.
Check your understanding
Choose an answer, then check your reasoning. This is practice, not a scored test.
Try it yourself
Explain why: Is an indefinitely suspended pipeline guaranteed to resume without recovery?
Compare your reasoning
Retention and source changes can require rebuilding state; plan recovery and downstream consumer reconciliation.