Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prefix adapter macro with package name (for 091) #34

Merged
merged 1 commit into from
Jan 6, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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