Skip to content

Commit

Permalink
Merge pull request dbt-labs#34 from fishtown-analytics/fix/adapter-ma…
Browse files Browse the repository at this point in the history
…cro-091

prefix adapter macro with package name (for 091)
  • Loading branch information
drewbanin authored Jan 6, 2018
2 parents af8102f + 1e85599 commit c5a9089
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion macros/cross_db_utils/current_timestamp.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% macro current_timestamp() %}
{{ adapter_macro('current_timestamp') }}
{{ adapter_macro('dbt_utils.current_timestamp') }}
{% endmacro %}

{% macro default__current_timestamp() %}
Expand All @@ -9,3 +9,7 @@
{% macro redshift__current_timestamp() %}
current_timestamp::timestamp
{% endmacro %}

{% macro postgres__current_timestamp() %}
current_timestamp::timestamp
{% endmacro %}
2 changes: 1 addition & 1 deletion macros/cross_db_utils/dateadd.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% macro dateadd(datepart, interval, from_date_or_timestamp) %}
{{ adapter_macro('dateadd', datepart, interval, from_date_or_timestamp) }}
{{ adapter_macro('dbt_utils.dateadd', datepart, interval, from_date_or_timestamp) }}
{% endmacro %}


Expand Down
2 changes: 1 addition & 1 deletion macros/cross_db_utils/split_part.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% macro split_part(string_text, delimiter_text, part_number) %}
{{ adapter_macro('split_part', string_text, delimiter_text, part_number) }}
{{ adapter_macro('dbt_utils.split_part', string_text, delimiter_text, part_number) }}
{% endmacro %}


Expand Down
2 changes: 1 addition & 1 deletion macros/datetime/date_spine.sql
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ all_periods as (

select (
{{
dateadd(
dbt_utils.dateadd(
datepart,
"row_number() over () - 1",
start_date
Expand Down

0 comments on commit c5a9089

Please sign in to comment.