Bird
0
0

You want to analyze failing rows from multiple tests on the customers model. Which approach best helps you combine all failure data for analysis?

hard📝 Application Q15 of 15
dbt - Advanced Testing
You want to analyze failing rows from multiple tests on the customers model. Which approach best helps you combine all failure data for analysis?
AManually export failure tables and merge them outside the database.
BCreate a union query combining all <code>dbt_test__customers__*</code> failure tables.
CRun each test again with <code>store_failures = false</code> to avoid duplicates.
DUse the original <code>customers</code> table and filter rows with errors.
Step-by-Step Solution
Solution:
  1. Step 1: Identify failure tables for each test

    Each test creates a failure table named dbt_test__customers__testname.
  2. Step 2: Combine failure tables using SQL UNION

    Use a UNION query to combine all failure rows from these tables into one result set.
  3. Final Answer:

    Create a union query combining all dbt_test__customers__* failure tables. -> Option B
  4. Quick Check:

    Union failure tables to analyze all failures together [OK]
Quick Trick: Use UNION on all failure tables for combined analysis [OK]
Common Mistakes:
MISTAKES
  • Disabling store_failures loses failure data
  • Merging outside database is inefficient
  • Filtering original table misses failure details

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes