Skip to content

Commit 850f362

Browse files
committed
more docs and tests
1 parent a24c8c4 commit 850f362

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

models/intermediate/intermediate.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,54 @@ models:
161161
value: 52
162162
group_by:
163163
- year_number
164+
- name: prior_year_week_start_date
165+
description: The start date of the week in the prior year
166+
tests:
167+
- not_null
168+
- dbt_expectations.expect_column_distinct_count_to_be_less_than:
169+
value: 55
170+
group_by:
171+
- year_number
172+
- dbt_expectations.expect_column_distinct_count_to_be_greater_than:
173+
value: 52
174+
group_by:
175+
- year_number
176+
- name: prior_year_week_end_date
177+
description: The end date of the week in the prior year
178+
tests:
179+
- not_null
180+
- dbt_expectations.expect_column_distinct_count_to_be_less_than:
181+
value: 55
182+
group_by:
183+
- year_number
184+
- dbt_expectations.expect_column_distinct_count_to_be_greater_than:
185+
value: 52
186+
group_by:
187+
- year_number
188+
- name: iso_week_start_date
189+
description: The start date of the ISO week as per ISO 8601
190+
tests:
191+
- not_null
192+
- dbt_expectations.expect_column_distinct_count_to_be_less_than:
193+
value: 55
194+
group_by:
195+
- year_number
196+
- dbt_expectations.expect_column_distinct_count_to_be_greater_than:
197+
value: 52
198+
group_by:
199+
- year_number
200+
- name: iso_week_end_date
201+
description: The end date of the ISO week as per ISO 8601
202+
tests:
203+
- not_null
204+
- dbt_expectations.expect_column_distinct_count_to_be_less_than:
205+
value: 55
206+
group_by:
207+
- year_number
208+
- dbt_expectations.expect_column_distinct_count_to_be_greater_than:
209+
value: 52
210+
group_by:
211+
- year_number
164212
- name: month_start_date
165213
description: The start date of the month
166214
tests:
@@ -177,6 +225,22 @@ models:
177225
value: 12
178226
group_by:
179227
- year_number
228+
- name: prior_year_month_start_date
229+
description: The start date of the month in the prior year
230+
tests:
231+
- not_null
232+
- dbt_expectations.expect_column_distinct_count_to_equal:
233+
value: 12
234+
group_by:
235+
- year_number
236+
- name: prior_year_month_end_date
237+
description: The end date of the month in the prior year
238+
tests:
239+
- not_null
240+
- dbt_expectations.expect_column_distinct_count_to_equal:
241+
value: 12
242+
group_by:
243+
- year_number
180244
- name: quarter_start_date
181245
description: The start date of the quarter
182246
tests:

0 commit comments

Comments
 (0)