Skip to content

Commit a24c8c4

Browse files
committed
more docs and tests
1 parent 89116a8 commit a24c8c4

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

models/intermediate/intermediate.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,62 @@ models:
137137
- dbt_expectations.expect_column_values_to_be_between:
138138
min_value: 1
139139
max_value: 12
140+
- name: week_start_date
141+
description: The start date of the week
142+
tests:
143+
- not_null
144+
- dbt_expectations.expect_column_distinct_count_to_be_less_than:
145+
value: 55
146+
group_by:
147+
- year_number
148+
- dbt_expectations.expect_column_distinct_count_to_be_greater_than:
149+
value: 52
150+
group_by:
151+
- year_number
152+
- name: week_end_date
153+
description: The end date of the week
154+
tests:
155+
- not_null
156+
- dbt_expectations.expect_column_distinct_count_to_be_less_than:
157+
value: 55
158+
group_by:
159+
- year_number
160+
- dbt_expectations.expect_column_distinct_count_to_be_greater_than:
161+
value: 52
162+
group_by:
163+
- year_number
164+
- name: month_start_date
165+
description: The start date of the month
166+
tests:
167+
- not_null
168+
- dbt_expectations.expect_column_distinct_count_to_equal:
169+
value: 12
170+
group_by:
171+
- year_number
172+
- name: month_end_date
173+
description: The end date of the month
174+
tests:
175+
- not_null
176+
- dbt_expectations.expect_column_distinct_count_to_equal:
177+
value: 12
178+
group_by:
179+
- year_number
180+
- name: quarter_start_date
181+
description: The start date of the quarter
182+
tests:
183+
- not_null
184+
- dbt_expectations.expect_column_distinct_count_to_equal:
185+
value: 4
186+
group_by:
187+
- year_number
188+
- name: quarter_end_date
189+
description: The end date of the quarter
190+
tests:
191+
- not_null
192+
- dbt_expectations.expect_column_distinct_count_to_equal:
193+
value: 4
194+
group_by:
195+
- year_number
140196

141197

142198
- name: dim_time

0 commit comments

Comments
 (0)