From 04fc4b1ba9c9d2ebd704083baf70ded436dc8f6e Mon Sep 17 00:00:00 2001 From: Gabriel Elatawna Date: Wed, 13 Apr 2022 14:30:33 +0200 Subject: [PATCH] dates model Snowflake fix --- dbt_project.yml | 2 +- models/gemma_dates.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dbt_project.yml b/dbt_project.yml index 28120ec..8e96a1b 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,7 +1,7 @@ config-version: 2 name: 'gemma_dbt_utils' -version: '0.4.2' +version: '0.4.3' require-dbt-version: ">=1.0.0" diff --git a/models/gemma_dates.sql b/models/gemma_dates.sql index 60d8c1e..d8a65f2 100644 --- a/models/gemma_dates.sql +++ b/models/gemma_dates.sql @@ -159,7 +159,7 @@ '-' || ROW_NUMBER() OVER (ORDER BY NULL) + 1, CURRENT_DATE + INTERVAL '{{ var('gemma:dates:end_date') }}' ) AS date - FROM TABLE (generator(rowcount => $timeframe)) + FROM TABLE (generator(rowcount => {{ timeframe }} )) ), final AS (