Skip to content

Commit

Permalink
Merge pull request #35 from tailsdotcom/ac/exposure_schema
Browse files Browse the repository at this point in the history
Change exposures model to fix uniqueness check issue
  • Loading branch information
alanmcruickshank authored Jul 5, 2021
2 parents c63bc32 + a7e86f9 commit 37061a3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions models/schemas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,10 @@ models:
description: All dbt exposures metadata from every manifest.json.
columns:
- name: manifest_model_id
description: Primary key generated from the command_invocation_id and checksum.
description: |
Primary key generated from the command_invocation_id and checksum. Note,
this is not unique for a given exposure.
tests:
- unique
- not_null
- name: command_invocation_id
description: The id of the command which resulted in the source artifact's generation.
Expand All @@ -149,9 +150,13 @@ models:
- name: maturity
description: User-defined name of the exposure.
- name: output_feeds
description: Unique id for each feed of an exposure, in the form of model.[package_name].[model_name]
description: Models exposed in the exposure, in the form of model.[package_name].[model_name]
- name: package_name
description: Source package in which each feed of an exposure was defined.
tests:
- unique:
# Test that the combination of manifest_mode_id and exposed_model_name is unique
column_name: "manifest_model_id || '-' || output_feeds"

- name: dim_dbt__models
description: All dbt model metadata from every manifest.json.
Expand Down

0 comments on commit 37061a3

Please sign in to comment.