Data Engineering Podcast

Build Your Data Analytics Like An Engineer With DBT

16 snips
May 20, 2019
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ADVICE

Add Schema Tests To Models

  • Add schema tests (unique, not null, referential, accepted values) to models to catch regressions and bad joins early.
  • Write custom tests as SQL that return zero rows when the assertion holds.
INSIGHT

Model As Single Source Of Truth

  • dbt turns reusable SQL select statements into named, versioned database objects that serve as single sources of truth.
  • Updating a model updates all downstream reports without editing each report manually.
INSIGHT

Auto-Generated Data Catalog

  • dbt auto-generates documentation from your models and tests, producing a browsable catalog of your data models.
  • This keeps documentation fresh because it lives with the code and updates as models change.
Get the Snipd Podcast app to discover more snips from this episode
Get the app