Bird
0
0

You wrote this test in your schema.yml:

medium📝 Debug Q6 of 15
dbt - Advanced Testing
You wrote this test in your schema.yml:
tests:
- expect_column_values_to_be_in_set:
column: status
values_set: ['active', 'inactive']

But the test always errors out. What is the likely problem?
AThe test name is misspelled
BThe list should be a string, not a list
CThe key should be <code>value_set</code> not <code>values_set</code>
DThe column name is missing
Step-by-Step Solution
Solution:
  1. Step 1: Check parameter names for the test

    The correct parameter is value_set, not values_set.
  2. Step 2: Identify cause of error

    Using wrong key causes test to error because it doesn't recognize the parameter.
  3. Final Answer:

    The key should be value_set not values_set -> Option C
  4. Quick Check:

    Parameter names must be exact [OK]
Quick Trick: Check exact parameter names in docs [OK]
Common Mistakes:
MISTAKES
  • Typos in parameter keys
  • Passing list as string
  • Misspelling test names

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes