Skip to content

Commit

Permalink
Update website/blog/2024-11-27-test-smarter-part-2.md
Browse files Browse the repository at this point in the history
Co-authored-by: Joel Labes <[email protected]>
  • Loading branch information
faithebear and joellabes authored Dec 2, 2024
1 parent bf4c7ad commit 421977c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/blog/2024-11-27-test-smarter-part-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ In your intermediate layer, focus on data hygiene and anomaly tests for new colu
- Additionally, consider adding a primary key test to models where the grain *has remained the same* but has been *enriched.* This helps future-proof your enriched models against future developers who may not be able to glean your intention from SQL alone.
- Intermediate models may perform a first set of joins or aggregations to reduce complexity in a final mart.
- Add simple anomaly tests to verify the behavior of your sets of joins and aggregations. This may look like:
- An [accepted_values](https://docs.getdbt.com/reference/resource-properties/data-tests#accepted_values) test on a newly calculated categorical column.
- An [accepted_values](/reference/resource-properties/data-tests#accepted_values) test on a newly calculated categorical column.
- A [mutually_exclusive_ranges](https://docs.getdbt.com/reference/resource-properties/data-tests#accepted_values) test on two columns whose values behave in relation to one another (ex: asserting age ranges do not overlap).
- A [not_constant](https://docs.getdbt.com/reference/resource-properties/data-tests#accepted_values) test on a column whose value should be continually changing (ex: page view counts on website analytics).
- Intermediate models may isolate complex operations.
Expand Down

0 comments on commit 421977c

Please sign in to comment.