Models and Transformations
What Are Models?
Creating Your First Model
-- models/staging/stg_customers.sql
SELECT
id as customer_id,
first_name,
last_name,
email,
date_joined
FROM {{ source('jaffle_shop', 'customers') }}Using Common Table Expressions (CTEs)
Model Dependencies with ref()
Model Configuration with config()
Using Jinja for Dynamic SQL
Conditional Logic
Looping
Variables
Model Organization Best Practices
Staging Models
Intermediate Models
Mart Models
Troubleshooting Models
Compiling Without Running
Execute Specific Models
Check Logs
Advanced Model Techniques
Custom Schemas
Post-Hooks
Documentation in Models
Last updated
Was this helpful?