Skip to content

Commit

Permalink
Merge pull request dbt-labs#93 from DanielWFrancis/patch-1
Browse files Browse the repository at this point in the history
casting timestamp to date for BQ
  • Loading branch information
drewbanin authored Nov 29, 2018
2 parents ff47e6d + 29050ee commit 0d2276b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/cross_db_utils/dateadd.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{% macro bigquery__dateadd(datepart, interval, from_date_or_timestamp) %}

date_add(
{{ from_date_or_timestamp }},
cast( {{ from_date_or_timestamp }} as date),
interval {{ interval }} {{ datepart }}
)

Expand Down

0 comments on commit 0d2276b

Please sign in to comment.