select * from {{ ref('source_table') }} where status = 'active'
Think about the filter condition in the SQL query.
The model filters rows where status is 'active'. Since 200 rows match, the output table will have 200 rows.
select id, amount, case when amount > 100 then true else false end as is_high_value from {{ ref('orders') }}
Check the condition amount > 100 carefully.
Amounts greater than 100 get true, others false. So 50 is false, 150 is true.
select id, amount from {{ ref('orders') }} where amount > 100
Check the syntax of the Jinja ref function.
The ref function is missing a closing brace '}}', causing compilation failure.
Think about how to isolate domain ownership in dbt.
Separate dbt projects per domain allow teams to own and manage their data independently, aligning with data mesh principles.
Consider how freshness impacts trust in shared data.
Source freshness checks help teams monitor data recency, ensuring domains provide up-to-date data, which is critical for trust in data mesh.