Skip to content

Commit

Permalink
Updated to include descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
vinooganesh committed Jul 30, 2023
1 parent 26afbf7 commit e2c9e00
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions chapter5/models/schema.yml
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."

0 comments on commit e2c9e00

Please sign in to comment.