Defining Your Sources in sources.yml
What is sources.yml?
Basic Structure
version: 2
sources:
- name: jaffle_shop # Source system name
database: raw # Optional: database where source is stored
schema: jaffle_shop # Schema containing the source tables
tables:
- name: orders # Table name as it exists in the database
- name: customersRequired and Optional Fields
Field
Required?
Description
Detailed Source Configuration
Referencing Sources in Models
Testing Sources
Source Freshness
Configuring Freshness Checks
Running Freshness Checks
Advanced Source Configurations
Dynamic Schema Resolution
Quoting Configuration
External Tables
Best Practices for Source Configuration
Practice
Description
Organizing source.yml Files
Single File Approach
Source-by-Source Approach
Alongside Related Models
Last updated
Was this helpful?