Working with Sources
What Are Sources?
Defining Sources in YAML
version: 2
sources:
- name: jaffle_shop # Logical name of the source
database: raw # The database where the source is stored (optional)
schema: jaffle_shop # Schema containing the source tables
tables:
- name: orders
columns:
- name: id
tests:
- unique
- not_null
- name: status
tests:
- accepted_values:
values: ['placed', 'shipped', 'completed', 'returned']
- name: customersUsing Sources in Models
Best Practices for Source Organization
Group Related Sources
Document Your Sources
Apply Tests to Sources
Source Freshness
Configuring Freshness Checks
Running Freshness Checks
Table-Specific Freshness
Advanced Source Configurations
Source Overrides by Environment
Filtering Source Data
Automating Source Definitions with DinoAI
Common Source Patterns
Staging Models for Sources
Testing Complex Source Relationships
Last updated
Was this helpful?