Skip to content

Commit

Permalink
add namespace to fivetran_utils macros, fix #103 (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
bachng2017 authored Nov 2, 2022
1 parent 90935a9 commit ecdf5e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions macros/utils/fivetran_utils/json_extract.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{% macro json_extract(string, string_path) -%}

{{ adapter.dispatch('json_extract') (string, string_path) }}
{{ adapter.dispatch('json_extract','re_data') (string, string_path) }}

{%- endmacro %}

Expand Down Expand Up @@ -37,4 +37,4 @@

{{string}}::json->>{{"'" ~ string_path ~ "'" }}

{% endmacro %}
{% endmacro %}
4 changes: 2 additions & 2 deletions macros/utils/fivetran_utils/percentile.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{% macro percentile(percentile_field, partition_field, percent) -%}

{{ adapter.dispatch('percentile') (percentile_field, partition_field, percent) }}
{{ adapter.dispatch('percentile','re_data') (percentile_field, partition_field, percent) }}

{%- endmacro %}

Expand Down Expand Up @@ -57,4 +57,4 @@
over (partition by {{ partition_field }}
)

{% endmacro %}
{% endmacro %}

0 comments on commit ecdf5e5

Please sign in to comment.