Skip to content

Commit

Permalink
date_spine: transform comment to jinja
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikael committed Dec 16, 2021
1 parent eb1ec81 commit 99d2b41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
## 🚨 Breaking changes
- dbt ONE POINT OH is here! This version of dbt-utils requires _any_ version (minor and patch) of v1, which means far less need for compatibility releases in the future.
- The partition column in the `mutually_exclusive_ranges` test is now always called `partition_by_col`. This enables compatibility with `--store-failures` when multiple columns are concatenated together. If you have models built on top of the failures table, update them to reflect the new column name. ([#423](https://github.com/dbt-labs/dbt-utils/issues/423), [#430](https://github.com/dbt-labs/dbt-utils/pull/430))

## Under the hood
- make date_spine macro compatible with the Athena connector (#462)
## Contributors:
- [codigo-ergo-sum](https://github.com/codigo-ergo-sum) (#430)

Expand Down
7 changes: 3 additions & 4 deletions macros/sql/date_spine.sql
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,15 @@

{% macro default__date_spine(datepart, start_date, end_date) %}

/*
call as follows:

{# call as follows:

date_spine(
"day",
"to_date('01/01/2016', 'mm/dd/yyyy')",
"dateadd(week, 1, current_date)"
)
) #}

*/

with rawdata as (

Expand Down

0 comments on commit 99d2b41

Please sign in to comment.