Urgent.News

What's breaking now, across hundreds of outlets.

Tech

dbt source freshness: the check you configured but never run

It's easy to add a freshness: block to a dbt source and assume you're covered. Whether anything actually runs it is a separate question, and it matters, because freshness is the one dbt check that catches a source that simply stopped arriving. not_null , unique and accepted_values all pass happily on yesterday's data. This post covers how dbt freshness works, the parts of the config that trip…

In the dbt source freshness: the check you configured but never run article, the author highlights that adding a freshness block to a dbt source is easy, but it's crucial to ensure that the check actually runs. The freshness check is the only dbt check that detects when a source stops delivering data. The article covers how dbt freshness works, the configuration options that people often overlook, and how to integrate it into a schedule for a more robust system.

It explains that dbt build does not evaluate freshness thresholds by default, and using the dbt source freshness command or dbt freshness command is necessary to evaluate them. The article also discusses the importance of using a load timestamp field rather than a business event timestamp for freshness checks, and provides several options for fetching the load timestamp from various database systems.

The article concludes by suggesting that it's best to run freshness checks before building models to ensure that stale data doesn't get processed.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Jensen Huang Returns to Work

Geoff Weiss, reporting for Business Insider: Nvidia employees gathered at headquarters to mark the moment, chanting “Jensen!

  • Jensen Huang returned to Nvidia headquarters on Monday.
  • Employees celebrated his reinstatement enthusiastically.
  • Huang expressed remorse and pledged to be a better CEO.

More from Monday 23 November →