Bird
0
0

What will happen if you run a dbt test with store_failures = true but no rows fail the test?

medium📝 Predict Output Q5 of 15
dbt - Advanced Testing
What will happen if you run a dbt test with store_failures = true but no rows fail the test?
AThe failure table will be created but empty.
BThe failure table will not be created.
CThe test run will fail with an error.
DThe failure table will contain all rows.
Step-by-Step Solution
Solution:
  1. Step 1: Understand behavior when no failures occur

    dbt still creates the failure table to keep schema consistent.
  2. Step 2: Confirm content of failure table

    Since no rows failed, the table will be empty but exist.
  3. Final Answer:

    The failure table will be created but empty. -> Option A
  4. Quick Check:

    No failures means empty failure table exists [OK]
Quick Trick: Empty failure table still created if no failures [OK]
Common Mistakes:
MISTAKES
  • Assuming no table is created
  • Expecting an error on no failures
  • Thinking table contains all rows

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes