-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from VDFaller/main
Change dbt_utils.type_XXX to dbt.type_XXX
- Loading branch information
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 -%} |