Skip to content

Commit 5489168

Browse files
authored
Fix get_base_dates for BQ (#106)
1 parent a5a2ea3 commit 5489168

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
DBT_PROFILES_DIR: ./integration_tests/ci
1414
DBT_PROJECT_DIR: ./integration_tests
1515
BIGQUERY_SERVICE_KEY_PATH: "/home/circleci/bigquery-service-key.json"
16-
DBT_VERSION: 1.4.1
16+
DBT_VERSION: 1.6.0
1717

1818
steps:
1919
- checkout

macros/get_base_dates.sql

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ from
3434
{% macro bigquery__get_base_dates(start_date, end_date, n_dateparts, datepart) %}
3535

3636
{%- if start_date and end_date -%}
37-
{%- set start_date="cast('" ~ start_date ~ "' as date )" -%}
38-
{%- set end_date="cast('" ~ end_date ~ "' as date )" -%}
37+
{%- set start_date="cast('" ~ start_date ~ "' as datetime )" -%}
38+
{%- set end_date="cast('" ~ end_date ~ "' as datetime )" -%}
3939

4040
{%- elif n_dateparts and datepart -%}
4141

0 commit comments

Comments
 (0)