[Bug] parse-time validation when unit testing incremental model #9593
Labels
bug
Something isn't working
dbt tests
Issues related to built-in dbt testing functionality
High Severity
bug with significant impact that should be resolved in a reasonable timeframe
incremental
Incremental modeling with dbt
pre-release
Bug not yet in a stable release
unit tests
Issues related to built-in dbt unit testing functionality
Milestone
Is this a new bug in dbt-core?
Current Behavior
Suppose a model includes the
is_incremental()
macro.If a unit test is added for that model, then an override like the following is required or else an error will occur:
Acceptance Criteria
We should have a parse time error when:
is_incremental
is_incremental: true
but NOT providing an input forthis
Steps To Reproduce
models/my_model.sql
models/_unit_tests.yml
💥 See error log below.
In order to work, the following needs to be added within the unit test YAML above:
Relevant log output
Environment
Which database adapter are you using with dbt?
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: