Skip to content

Commit c5a9089

Browse files
authored
Merge pull request #34 from fishtown-analytics/fix/adapter-macro-091
prefix adapter macro with package name (for 091)
2 parents af8102f + 1e85599 commit c5a9089

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

macros/cross_db_utils/current_timestamp.sql

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% macro current_timestamp() %}
2-
{{ adapter_macro('current_timestamp') }}
2+
{{ adapter_macro('dbt_utils.current_timestamp') }}
33
{% endmacro %}
44

55
{% macro default__current_timestamp() %}
@@ -9,3 +9,7 @@
99
{% macro redshift__current_timestamp() %}
1010
current_timestamp::timestamp
1111
{% endmacro %}
12+
13+
{% macro postgres__current_timestamp() %}
14+
current_timestamp::timestamp
15+
{% endmacro %}

macros/cross_db_utils/dateadd.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% macro dateadd(datepart, interval, from_date_or_timestamp) %}
2-
{{ adapter_macro('dateadd', datepart, interval, from_date_or_timestamp) }}
2+
{{ adapter_macro('dbt_utils.dateadd', datepart, interval, from_date_or_timestamp) }}
33
{% endmacro %}
44

55

macros/cross_db_utils/split_part.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% macro split_part(string_text, delimiter_text, part_number) %}
2-
{{ adapter_macro('split_part', string_text, delimiter_text, part_number) }}
2+
{{ adapter_macro('dbt_utils.split_part', string_text, delimiter_text, part_number) }}
33
{% endmacro %}
44

55

macros/datetime/date_spine.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ all_periods as (
2222

2323
select (
2424
{{
25-
dateadd(
25+
dbt_utils.dateadd(
2626
datepart,
2727
"row_number() over () - 1",
2828
start_date

0 commit comments

Comments
 (0)