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:
  - dbt_utils.unique_combination_of_columns:
      combination_of_columns: ['id', 'date'

But dbt throws a syntax error. What is the likely cause?
AMissing closing bracket for the list of columns.
BIncorrect test name; it should be <code>unique_combination_columns</code>.
CThe test requires a <code>column</code> parameter, not <code>combination_of_columns</code>.
DYAML indentation is incorrect.
Step-by-Step Solution
Solution:
  1. Step 1: Check YAML syntax

    The snippet shows an opening bracket for the list but no closing bracket, causing syntax error.
  2. Step 2: Verify test name and parameters

    The test name and parameter are correct; the error is due to incomplete list syntax.
  3. Final Answer:

    Missing closing bracket for the list of columns. -> Option A
  4. Quick Check:

    Unclosed list brackets cause YAML syntax errors [OK]
Quick Trick: Always close YAML lists with brackets [OK]
Common Mistakes:
MISTAKES
  • Misspelling test names
  • Using wrong parameter names
  • Incorrect YAML indentation

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes