Skip to content

Commit 03b1e1d

Browse files
committed
Upgrade project to dbt 1.9
* set dbt version minimum to 1.9.0 * use new time spine config
1 parent 5e96cf8 commit 03b1e1d

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

dbt_project.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# and underscores. A good package name should reflect your organization's
33
# name or the intended use of these models
44
name: "dbt_business_intelligence"
5-
version: "1.7.0"
5+
version: "1.9.0"
66
config-version: 2
7-
require-dbt-version: ">=1.7.0"
7+
require-dbt-version: ">=1.9.0"
88
# This setting configures which "profile" dbt uses for this project.
99
profile: "dbt_business_intelligence"
1010
# These configurations specify where dbt should look for different types of files.

models/schema.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,8 @@ models:
298298

299299
- name: dim_date
300300
description: The Order Date dimension allows you to analyze metrics across time periods at many levels of granularity (year, quarter, month, day).
301+
time_spine:
302+
standard_granularity_column: date_day
301303
config:
302304
contract:
303305
enforced: false
@@ -315,6 +317,7 @@ models:
315317
- type: primary_key
316318
warn_unenforced: false
317319
- name: date_day
320+
granularity: day
318321
data_type: date
319322
meta:
320323
label: Order Date

models/staging/metricflow_time_spine.sql

Lines changed: 0 additions & 7 deletions
This file was deleted.

models/staging/stg_date_dimension.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
{%- set start_date = dates['data'][0][0] -%}
1212
{%- set end_date = dates['data'][0][1] -%}
1313

14-
{{ dbt_date.get_date_dimension(start_date, end_date) }}
14+
{{ dbt_date.get_date_dimension(start_date, end_date) }}

0 commit comments

Comments
 (0)