Bird
0
0

If team A's model references team B's model using ref('team_b.orders'), but team B's model is renamed to team_b.customer_orders, what will happen when team A runs their model?

medium📝 Predict Output Q5 of 15
dbt - Governance and Collaboration
If team A's model references team B's model using ref('team_b.orders'), but team B's model is renamed to team_b.customer_orders, what will happen when team A runs their model?
AThe model runs successfully using the old name
BCompilation error due to missing referenced model
CThe model runs but returns empty results
DThe model automatically updates to the new name
Step-by-Step Solution
Solution:
  1. Step 1: Understand model referencing dependency

    dbt requires exact model names in ref(). If the referenced model is renamed, the old reference breaks.
  2. Step 2: Predict the result of a broken reference

    Running the model will cause a compilation error because the referenced model no longer exists under the old name.
  3. Final Answer:

    Compilation error due to missing referenced model -> Option B
  4. Quick Check:

    Broken ref() causes compile error [OK]
Quick Trick: Rename models carefully; update all refs [OK]
Common Mistakes:
MISTAKES
  • Assuming dbt auto-updates references
  • Expecting empty results instead of error
  • Thinking old names still work

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes