Bird
0
0

Given this snippet in a schema.yml file:

medium📝 Predict Output Q13 of 15
dbt - Advanced Testing
Given this snippet in a schema.yml file:
tests:
- expect_column_values_to_be_between:
min_value: 10
max_value: 100

What does this test check for the column?
AValues are between 10 and 100 inclusive
BValues are unique
CValues are not null
DAll values are exactly 10 or 100
Step-by-Step Solution
Solution:
  1. Step 1: Understand the test name

    The test expect_column_values_to_be_between checks if values fall within a range.
  2. Step 2: Interpret parameters

    Parameters min_value: 10 and max_value: 100 mean values must be between 10 and 100, including these limits.
  3. Final Answer:

    Values are between 10 and 100 inclusive -> Option A
  4. Quick Check:

    Between test checks range limits [OK]
Quick Trick: Between test checks inclusive range by default [OK]
Common Mistakes:
MISTAKES
  • Thinking values must be exactly min or max
  • Confusing with null or uniqueness tests
  • Assuming exclusive range instead of inclusive

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes