From 32ff24fe127bf88cd1917765ec8042f4533c3056 Mon Sep 17 00:00:00 2001 From: Julius Remigio <14811322+juls858@users.noreply.github.com> Date: Tue, 12 Mar 2024 14:14:11 -0700 Subject: [PATCH] Refactor macro names and add deployment model for _live schema --- macros/core/_live.yaml.sql | 10 +++++----- models/deploy/core/{_live.yml => _live._yml} | 0 2 files changed, 5 insertions(+), 5 deletions(-) rename models/deploy/core/{_live.yml => _live._yml} (100%) diff --git a/macros/core/_live.yaml.sql b/macros/core/_live.yaml.sql index f852572..04e4ae0 100644 --- a/macros/core/_live.yaml.sql +++ b/macros/core/_live.yaml.sql @@ -1,6 +1,6 @@ {% macro config_core__live(schema="_live") %} -- name: {{ schema }}._udf_api +- name: {{ schema }}.udf_api signature: - [method, STRING] - [url, STRING] @@ -16,7 +16,7 @@ RETURNS NULL ON NULL INPUT sql: udf_api -- name: {{ schema }}.udf_rest_api_args_only +{# - name: {{ schema }}.udf_rest_api_args_only signature: - [method, STRING] - [url, STRING] @@ -35,9 +35,9 @@ 'headers': headers, 'data': data, 'secret_name': SECRET_NAME - } + } #} -- name: {{ schema }}.udf_api +{# - name: {{ schema }}.udf_api description: | This function is used to select the appropriate function to call based on the user_id signature: @@ -58,7 +58,7 @@ WHEN user_id ilike 'AWS_%' THEN {{ schema }}.udf_rest_api_args_only(method, url, headers, DATA, SECRET)::VARIANT ELSE {{ schema }}._udf_api(method, url, headers, DATA, user_id, SECRET) - END + END #} {% endmacro %} \ No newline at end of file diff --git a/models/deploy/core/_live.yml b/models/deploy/core/_live._yml similarity index 100% rename from models/deploy/core/_live.yml rename to models/deploy/core/_live._yml