Bird
0
0

In a CI/CD pipeline, the command 'dbt run --models +my_model' fails. What is a likely reason?

medium📝 Troubleshoot Q7 of 15
dbt - Production Deployment
In a CI/CD pipeline, the command 'dbt run --models +my_model' fails. What is a likely reason?
AThe '+' selector requires dependent models but they are missing or broken
BThe '+' sign is invalid syntax in dbt
CThe model 'my_model' does not exist in the project
Ddbt run does not accept model selectors
Step-by-Step Solution
Solution:
  1. Step 1: Understand '+' selector in dbt

    '+' means run the model and its dependencies.
  2. Step 2: Reason about failure cause

    If dependencies are missing or broken, the command fails.
  3. Final Answer:

    The '+' selector requires dependent models but they are missing or broken -> Option A
  4. Quick Check:

    '+' selector needs valid dependencies [OK]
Quick Trick: '+' runs model plus dependencies; missing deps cause failure [OK]
Common Mistakes:
MISTAKES
  • Thinking '+' is invalid syntax
  • Assuming model absence is the only cause
  • Believing dbt run ignores selectors

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes