Skip to content

Commit

Permalink
Fixed dates in staging
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Higgs committed Aug 30, 2020
1 parent c47b1da commit 38f0477
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: snowflakeDemo
profile: snowflake-demo
version: '4.0'
version: '4.1'
require-dbt-version: ['>=0.14.0', '<0.18.0']
config-version: 1

Expand Down
4 changes: 2 additions & 2 deletions models/stage/v_stg_inventory.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ WITH staging AS (


SELECT *,
{{ var('load_date') }} AS LOADDATE,
{{ var('load_date') }} AS EFFECTIVE_FROM
TO_DATE('{{ var('load_date') }}') AS LOADDATE,
TO_DATE('{{ var('load_date') }}') AS EFFECTIVE_FROM
FROM staging
2 changes: 1 addition & 1 deletion models/stage/v_stg_orders.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ WITH staging AS (


SELECT *,
{{ var('load_date') }} AS LOADDATE
TO_DATE('{{ var('load_date') }}') AS LOADDATE
FROM staging

0 comments on commit 38f0477

Please sign in to comment.