Skip to content

Commit cbf94b6

Browse files
committed
more tests and docs
1 parent 8241cbb commit cbf94b6

File tree

1 file changed

+27
-26
lines changed

1 file changed

+27
-26
lines changed

models/intermediate/intermediate.yml

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,33 @@ models:
312312
description: Whether the date is a holiday
313313
tests:
314314
- not_null
315+
- name: date_day
316+
description: The key date for this dimension
317+
tests:
318+
- not_null
319+
- unique
320+
- dbt_expectations.expect_column_values_to_be_increasing
321+
- name: prior_date_day
322+
description: One day before the date_day
323+
tests:
324+
- not_null
325+
- dbt_expectations.expect_column_values_to_be_increasing
326+
- name: next_date_day
327+
description: One day after the date_day
328+
tests:
329+
- not_null
330+
- dbt_expectations.expect_column_values_to_be_increasing
331+
- name: prior_year_date_day
332+
description: One year before the date_day
333+
tests:
334+
- not_null
335+
- dbt_expectations.expect_column_values_to_be_increasing:
336+
strictly: false
337+
- name: prior_year_over_year_date_day
338+
description: 364 days before the date_day
339+
tests:
340+
- not_null
341+
- dbt_expectations.expect_column_values_to_be_increasing
315342

316343
- name: dim_time
317344
description: A dimension table of time
@@ -377,32 +404,6 @@ models:
377404
- afternoon
378405
- evening
379406
- night
380-
- name: date_day
381-
description: The key date for this dimension
382-
tests:
383-
- not_null
384-
- unique
385-
- dbt_expectations.expect_column_values_to_be_increasing
386-
- name: prior_date_day
387-
description: One day before the date_day
388-
tests:
389-
- not_null
390-
- dbt_expectations.expect_column_values_to_be_increasing
391-
- name: next_date_day
392-
description: One day after the date_day
393-
tests:
394-
- not_null
395-
- dbt_expectations.expect_column_values_to_be_increasing
396-
- name: prior_year_date_day
397-
description: One year before the date_day
398-
tests:
399-
- not_null
400-
- dbt_expectations.expect_column_values_to_be_increasing
401-
- name: prior_year_over_year_date_day
402-
description: 364 days before the date_day
403-
tests:
404-
- not_null
405-
- dbt_expectations.expect_column_values_to_be_increasing
406407

407408
- name: fct_electricity
408409
description: Electricity usage data coming from Fluvius, by quarter

0 commit comments

Comments
 (0)