Skip to content

Commit 7f4148e

Browse files
committed
fix: satisfy dim_model_7 contract in integration_tests_sl
The SL migration added a date_day time dimension to dim_model_7's YAML but never projected the column in the SQL and never set its data_type. Fusion's strict contract check fails on both counts. Emit a date literal as date_day in the SELECT and declare `data_type: date` in the YAML.
1 parent 2e1a7fd commit 7f4148e

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

integration_tests_sl/models/marts/intermediate/_dim_model_7.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ models:
1717
dimension:
1818
type: categorical
1919
- name: date_day
20+
data_type: date
2021
dimension:
2122
type: time
2223
granularity: day

integration_tests_sl/models/marts/intermediate/dim_model_7.sql

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@
66
}}
77

88
-- {{ ref('int_model_5') }}
9-
select * from {{ ref('stg_model_4') }}
9+
select
10+
*,
11+
cast('2024-01-01' as date) as date_day
12+
from {{ ref('stg_model_4') }}

0 commit comments

Comments
 (0)