Request a demo

Glossary · Data observability and quality

What is data freshness?

Data freshness is how recently a table received new data compared with when it should have. A table is stale when its last update is older than its expected schedule, which is usually the first visible sign of a broken or delayed pipeline.

Also called: freshness, data staleness, data timeliness, data latency, freshness check

Two ways to define fresh

  • Update freshness: when was the table last written? Good for batch tables that should change on a schedule, such as hourly or daily.
  • Content freshness: how recent is the newest event in the table, for example MAX(event_time)? Good for streaming tables, and for catching loads that run on time but deliver old data.

A daily table that was last modified 30 hours ago is stale; so is a table updated five minutes ago whose newest order is from last week. Each table needs its own threshold, ideally learned from its history rather than set by hand.

Check freshness on BigQuery

Update freshness is pure metadata. INFORMATION_SCHEMA.TABLE_STORAGE has the last write time of every table in a region, so this check costs almost nothing and reads no table data:

SELECT
  table_schema AS dataset,
  table_name,
  storage_last_modified_time,
  TIMESTAMP_DIFF(CURRENT_TIMESTAMP(), storage_last_modified_time, HOUR) AS hours_since_update
FROM `region-us`.INFORMATION_SCHEMA.TABLE_STORAGE
WHERE NOT deleted
  AND table_type = 'BASE TABLE'
  AND table_schema IN ('marts', 'reporting')
ORDER BY hours_since_update DESC;

Content freshness needs a query on the table itself, such as SELECT MAX(event_time) FROM analytics.events WHERE DATE(event_time) >= DATE_SUB(CURRENT_DATE(), INTERVAL 2 DAY); the partition filter keeps it cheap.

Thresholds come from history: a table normally updated every hour by 10 past the hour is late at half past; a table that refreshes on business days only should not alert on Sunday. Observability tools learn these patterns per table; Masthead, for example, derives each table's update rhythm from BigQuery logs and metadata without reading data.

Why stale data is dangerous

Stale data rarely raises an error. Dashboards keep rendering yesterday's numbers, models keep scoring on old features, and the first alert is often a business user asking why revenue is flat. That is why freshness is usually the first data SLA a team defines, and why stale tables count toward data downtime.

Common pitfalls

  • Writes that change nothing. A job that runs on time but appends zero rows updates the timestamp. Pair freshness with volume checks.
  • Views. A view has no storage of its own; check the tables it reads.
  • Upstream blindness. A stale mart is a symptom. Lineage shows which upstream table stopped first.

FAQ

How do I check when a BigQuery table was last updated?

Query storage_last_modified_time in INFORMATION_SCHEMA.TABLE_STORAGE, or last_modified_time per partition in INFORMATION_SCHEMA.PARTITIONS. Both come from metadata, so the check does not read the table's data.

What is the difference between freshness and latency?

Latency is how long data takes to travel from the source event to the table. Freshness is how old the newest data in the table is right now. A pipeline can have low latency and still serve stale data if a run was skipped.

Read next

Browse the full glossary

Observability for every BigQuery table, in about 15 minutes

Masthead detects freshness, volume and schema anomalies, monitors pipeline errors and maps column-level lineage across all your projects, from logs and metadata only.