By Rohit Ray · Independent educational lesson · Explore this visual lab

Module 12 · Lesson 6 of 9Detailed study · about 20 min

Read refresh history before changing the warehouse

Refresh history connects symptoms such as stale results to the actual refresh attempts, their status and the source-data timestamp they represent.

Understand the idea

If a dashboard looks old, first distinguish a failed refresh, a suspended table and a slow successful refresh. Increasing warehouse size does not fix a missing source privilege or an invalid query definition.

Key ideas in simple English
ConceptWhat it means
STATEWhether a refresh succeeded, failed or is still running.
DATA_TIMESTAMPThe data point represented by that refresh.
Refresh durationTime spent doing the refresh work.
Error detailsEvidence for the next repair step.

A concrete example

If a dashboard looks old, first distinguish a failed refresh, a suspended table and a slow successful refresh. Increasing warehouse size does not fix a missing source privilege or an invalid query definition.

Remember: Freshness depends on successful refreshes and represented source data, not merely on a recent attempt.

Explain it step by step · full theory

Understand the concept

If a dashboard looks old, first distinguish a failed refresh, a suspended table and a slow successful refresh. Increasing warehouse size does not fix a missing source privilege or an invalid query definition.

Read the most recent successful refresh as well as recent failures. The start time of a failed attempt is not proof that newer source data is visible. Refresh history access depends on the monitoring privileges your administrator grants.

Apply it to our pipeline

When work is slow, use the associated query profile to inspect scans, joins, grouping, spilling and warehouse contention. Consider change volume and repeated full recomputation before resizing. Test operational changes in your own environment; no timing claim can be inferred from this tiny dataset.

Freshness measurements must be interpreted with source activity and scheduling information. A quiet source and a stuck pipeline may both have old timestamps. Monitor failures and the freshness requirement together instead of alarming on one number without context.

Words used in this lesson
STATE
Whether a refresh succeeded, failed or is still running.
DATA_TIMESTAMP
The data point represented by that refresh.
Refresh duration
Time spent doing the refresh work.
Error details
Evidence for the next repair step.

See how it works

Choose a step to explore the idea at your own pace.

Open the interactive explanation
Interactive explainer1 / 2

Read refresh history before changing the warehouse

RAW_ORDERS
CLEAN_ORDERS
CUSTOMER_TOTALS

Read the dependency

Refresh history connects symptoms such as stale results to the actual refresh attempts, their status and the source-data timestamp they represent.

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
  1. Read the dependency

    Refresh history connects symptoms such as stale results to the actual refresh attempts, their status and the source-data timestamp they represent.

  2. Observe the result

    History shows your actual runs, so timestamps and row counts are not predetermined. Inspect STATE, DATA_TIMESTAMP, refresh start/end and error details. An empty result may require checking name, time window and privileges.

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.

  1. No account yet? Read and predict the output first. Follow the account and Snowsight lesson when you are ready.
  2. 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.
  3. 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.
  4. 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.

Read refresh history before changing the warehouse — manual SQL

Definition: Refresh history connects symptoms such as stale results to the actual refresh attempts, their status and the source-data timestamp they represent.

When to use: Practise in the isolated M12_LAB schema.

Example: History shows your actual runs, so timestamps and row counts are not predetermined. Inspect STATE, DATA_TIMESTAMP, refresh start/end and error details. An empty result may require checking name, time window and privileges.

SQL · example
SELECT *
FROM TABLE(L2_OBJECTS_LAB.INFORMATION_SCHEMA.DYNAMIC_TABLE_REFRESH_HISTORY(
 NAME=>'L2_OBJECTS_LAB.M12_LAB.CUSTOMER_TOTALS', RESULT_LIMIT=>20
)) ORDER BY REFRESH_START_TIME DESC;
SHOW DYNAMIC TABLES IN SCHEMA L2_OBJECTS_LAB.M12_LAB;

What to expect and why

History shows your actual runs, so timestamps and row counts are not predetermined. Inspect STATE, DATA_TIMESTAMP, refresh start/end and error details. An empty result may require checking name, time window and privileges.

Check your understanding

Choose an answer, then check your reasoning. This is practice, not a scored test.

Does a recent failed attempt prove that the stored result is current?

Try it yourself

Explain why: Does a recent failed attempt prove that the stored result is current?

Compare your reasoning

Freshness depends on successful refreshes and represented source data, not merely on a recent attempt.

Official sources and curriculum

Module 12 · See module scope