From 9eddf8570df0add31a90a30c0f544575743d78e8 Mon Sep 17 00:00:00 2001 From: Vince Faller Date: Fri, 24 Feb 2023 12:41:47 -0800 Subject: [PATCH] Change dbt_utils.type_XXX to dbt.type_XXX --- macros/dbt_date/calendar_date/convert_timezones.sql | 2 +- macros/dbt_utils/cross_db_utils/hash.sql | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/macros/dbt_date/calendar_date/convert_timezones.sql b/macros/dbt_date/calendar_date/convert_timezones.sql index 2e32d5c..1a29a76 100644 --- a/macros/dbt_date/calendar_date/convert_timezones.sql +++ b/macros/dbt_date/calendar_date/convert_timezones.sql @@ -1,3 +1,3 @@ {%- macro athena__convert_timezone(column, target_tz, source_tz) -%} - CAST({{ column }} as {{ dbt_utils.type_timestamp() }}) AT TIME ZONE '{{ source_tz }}' AT TIME ZONE '{{ target_tz }}' + CAST({{ column }} as {{ dbt.type_timestamp() }}) AT TIME ZONE '{{ source_tz }}' AT TIME ZONE '{{ target_tz }}' {%- endmacro -%} diff --git a/macros/dbt_utils/cross_db_utils/hash.sql b/macros/dbt_utils/cross_db_utils/hash.sql index 2899a4e..de0ccdb 100644 --- a/macros/dbt_utils/cross_db_utils/hash.sql +++ b/macros/dbt_utils/cross_db_utils/hash.sql @@ -1,8 +1,8 @@ {%- macro hash(field) -%} - {{ return(adapter.dispatch('hash', 'dbt_utils') (field)) }} + {{ return(adapter.dispatch('hash', 'dbt') (field)) }} {%- endmacro -%} {%- macro athena__hash(field) -%} - to_hex(sha256(to_utf8(cast({{field}} as {{dbt_utils.type_string()}})))) + to_hex(sha256(to_utf8(cast({{field}} as {{dbt.type_string()}})))) {%- endmacro -%}