Skip to content

Commit

Permalink
Update README.md (#104)
Browse files Browse the repository at this point in the history
Update the example so that it doesn't mislead the user to think that the end date is included. This also follows the (less misleading even though not clearly stated) example here:
https://github.com/dbt-labs/dbt-utils#date_spine-source
  • Loading branch information
tgmof authored Jul 31, 2023
1 parent b495b29 commit f801db7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ For example, use `America/New_York` for East Coast Time.

A wrapper around [`dbt_utils.date_spine`](https://github.com/dbt-labs/dbt-utils#date_spine-source) that allows you to specify either `start_date` and `end_date` for your date spine, or specify a number of periods (`n_dateparts`) in the past from today.

Usage:
Usage to build a daily date dimension for the years 2015 to 2022:

```sql
{{ dbt_date.get_base_dates(start_date="2015-01-01", end_date="2022-12-31") }}
{{ dbt_date.get_base_dates(start_date="2015-01-01", end_date="2023-01-01") }}
```

or to build a daily date dimension for the last 3 years:
Expand Down

0 comments on commit f801db7

Please sign in to comment.