Skip to content

Commit

Permalink
feat(dbt): add model-level uniqueness tests in all the layers
Browse files Browse the repository at this point in the history
  • Loading branch information
Hernan Vignolo committed Sep 19, 2024
1 parent 66b8589 commit 077df13
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dbt/superside/models/intermediate/_intermediate__models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ models:
tests:
- dbt_expectations.expect_table_columns_to_contain_set:
column_list: ["project_id", "engagement_id"]
- dbt_expectations.expect_compound_columns_to_be_unique:
column_list: ["project_id", "engagement_id"]
columns:
- name: project_id
data_type: uuid
Expand Down
4 changes: 4 additions & 0 deletions dbt/superside/models/marts/_marts__models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ models:
tests:
- dbt_expectations.expect_table_columns_to_contain_set:
column_list: ["project_id", "engagement_id"]
- dbt_expectations.expect_compound_columns_to_be_unique:
column_list: ["project_id", "engagement_id"]
columns:
- name: project_id
data_type: uuid
Expand Down Expand Up @@ -88,6 +90,8 @@ models:
tests:
- dbt_expectations.expect_table_columns_to_contain_set:
column_list: ["project_id", "engagement_id"]
- dbt_expectations.expect_compound_columns_to_be_unique:
column_list: ["project_id", "engagement_id"]
columns:
- name: project_id
data_type: uuid
Expand Down
2 changes: 2 additions & 0 deletions dbt/superside/models/staging/_clients__models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ models:
tests:
- dbt_expectations.expect_table_columns_to_contain_set:
column_list: ["project_id", "engagement_id"]
- dbt_expectations.expect_compound_columns_to_be_unique:
column_list: ["project_id", "engagement_id"]
columns:
- name: project_id
data_type: uuid
Expand Down

0 comments on commit 077df13

Please sign in to comment.