Skip to content

Commit

Permalink
Merge pull request dbt-labs#302 from fishtown-analytics/update/date-s…
Browse files Browse the repository at this point in the history
…pine-ex-code

Cross-db-compatible example date_spine code in readme
  • Loading branch information
jtcohen6 authored Dec 1, 2020
2 parents 18f0db1 + 9b7eb73 commit ebda584
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ This macro returns the sql required to build a date spine. The spine will includ
Usage:
```
{{ dbt_utils.date_spine(
datepart="minute",
start_date="to_date('01/01/2016', 'mm/dd/yyyy')",
end_date="dateadd(week, 1, current_date)"
datepart="day",
start_date="cast('2019-01-01' as date)",
end_date="cast('2020-01-01' as date)"
)
}}
```
Expand Down

0 comments on commit ebda584

Please sign in to comment.