From c2bf3b86cf5d7e6a083e47c51949651b3a0d0e10 Mon Sep 17 00:00:00 2001 From: NGUYEN HUU BACH Date: Sat, 29 Oct 2022 10:14:08 +0000 Subject: [PATCH] add namespace to fivetran_utils macros, fix #103 --- macros/utils/fivetran_utils/json_extract.sql | 4 ++-- macros/utils/fivetran_utils/percentile.sql | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/macros/utils/fivetran_utils/json_extract.sql b/macros/utils/fivetran_utils/json_extract.sql index f947d9a..835f84c 100644 --- a/macros/utils/fivetran_utils/json_extract.sql +++ b/macros/utils/fivetran_utils/json_extract.sql @@ -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 %} @@ -37,4 +37,4 @@ {{string}}::json->>{{"'" ~ string_path ~ "'" }} -{% endmacro %} \ No newline at end of file +{% endmacro %} diff --git a/macros/utils/fivetran_utils/percentile.sql b/macros/utils/fivetran_utils/percentile.sql index 4a8e556..8ce621c 100644 --- a/macros/utils/fivetran_utils/percentile.sql +++ b/macros/utils/fivetran_utils/percentile.sql @@ -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 %} @@ -57,4 +57,4 @@ over (partition by {{ partition_field }} ) -{% endmacro %} \ No newline at end of file +{% endmacro %}