Skip to content

Commit

Permalink
Fix get_base_dates for BQ (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
clausherther authored Aug 6, 2023
1 parent a5a2ea3 commit 5489168
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
DBT_PROFILES_DIR: ./integration_tests/ci
DBT_PROJECT_DIR: ./integration_tests
BIGQUERY_SERVICE_KEY_PATH: "/home/circleci/bigquery-service-key.json"
DBT_VERSION: 1.4.1
DBT_VERSION: 1.6.0

steps:
- checkout
Expand Down
4 changes: 2 additions & 2 deletions macros/get_base_dates.sql
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ from
{% macro bigquery__get_base_dates(start_date, end_date, n_dateparts, datepart) %}

{%- if start_date and end_date -%}
{%- set start_date="cast('" ~ start_date ~ "' as date )" -%}
{%- set end_date="cast('" ~ end_date ~ "' as date )" -%}
{%- set start_date="cast('" ~ start_date ~ "' as datetime )" -%}
{%- set end_date="cast('" ~ end_date ~ "' as datetime )" -%}

{%- elif n_dateparts and datepart -%}

Expand Down

0 comments on commit 5489168

Please sign in to comment.