Bird
0
0

You wrote this dbt model for source table products:

medium📝 Debug Q14 of 15
dbt - Project Organization
You wrote this dbt model for source table products:
select * from source('inventory', 'products')
But dbt throws an error. What is the problem?
AModel file name does not match source table
BWrong source table name
CMissing double curly braces around the source function
DUsing select * is not allowed
Step-by-Step Solution
Solution:
  1. Step 1: Check dbt source function syntax and identify issue

    The source function must be wrapped in double curly braces: {{ source(...) }}. The model uses source(...) without {{ }}, causing a syntax error.
  2. Final Answer:

    Missing double curly braces around the source function -> Option C
  3. Quick Check:

    dbt functions need {{ }} [OK]
Quick Trick: Always wrap dbt functions in {{ }} [OK]
Common Mistakes:
MISTAKES
  • Forgetting {{ }} around source()
  • Assuming select * is disallowed
  • Ignoring model file naming conventions

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes