-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
26afbf7
commit e2c9e00
Showing
1 changed file
with
10 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,22 @@ | ||
|
||
version: 2 | ||
|
||
# To Do: | ||
# 1. Include some of the built in dbt tests into the columns. | ||
# 2. Create a custom dbt test to that will fail if any of the cohorts have more than 110 distinct adids. | ||
|
||
models: | ||
- name: adid_data | ||
columns: | ||
- name: adid | ||
tests: | ||
- unique | ||
- not_null | ||
description: "The advertisting ID for this data point. Every value in column should be a distinct ad_id. This value is required." | ||
- name: latitude | ||
tests: | ||
- not_null | ||
description: "The latitude of the data point. This value is required." | ||
- name: longitude | ||
tests: | ||
- not_null | ||
description: "The longitude of the data point. This value is required." | ||
- name: city | ||
tests: | ||
- not_null | ||
description: "The city of the data point. This value is required." | ||
- name: eventdate | ||
tests: | ||
- not_null | ||
description: "The date of the data point. This value is required." | ||
- name: cohort | ||
tests: | ||
- not_null | ||
description: "The cohort of the adid. Theree are only 6 cohorts, each named either 'one', 'two', 'three', 'four', 'five', or 'six'. This value is required. Each cohort should have a maximum of 110 distinct adids." |