QuestionQ47
VerifiedYou have created a model named stg_tasks and now need to implement tests.
You provide the following in schema.yml:
version: 2
models:
- name: stg_tasks
columns:
- name: completed_at
tests:
- not_null:
- config:
where: "state = 'completed'"
You receive this compilation error:
[WARNING]: Did not find matching node for patch with name 'stg_tasks' in the 'models' section of file 'models/example/schema.yml'
How can you change the configuration of the not_null test to fix this compiler error?
Configuration A:
tests:
- not_null:
- config:
where: "state = 'completed'"
Configuration B:
tests:
- not_null:
config:
where: "state = 'completed'"
Configuration C:
tests:
- not_null:
config:
where: "state = 'completed'"
Configuration D:
tests:
- not_null:
- config:
where: "state = 'completed'"
Community Discussion