add debug logs to create_udf_bulk_rest_api

This commit is contained in:
shah 2024-03-05 11:28:59 -08:00
parent e2435fd2d5
commit 9c315334ea
2 changed files with 9 additions and 1 deletions

View File

@ -9,4 +9,6 @@ tag:
get_latest_tags:
@echo "Latest $(MAX_COUNT) tags:"
@echo $$(tput setaf 2) `git describe --tags $(git rev-list --tags --max-count=$(MAX_COUNT))` $$(tput sgr0)
@git rev-list --tags --max-count=$(MAX_COUNT) | while read hash; do \
echo $$(tput setaf 2) `git describe --tags $$hash` $$(tput sgr0); \
done

View File

@ -1,6 +1,12 @@
{% macro create_udf_bulk_rest_api_v2() %}
{{ log("Creating udf udf_bulk_rest_api for target:" ~ target.name ~ ", schema: " ~ target.schema ~ ", DB: " ~ target.database, info=True) }}
{{ log("role:" ~ target.role ~ ", user:" ~ target.user, info=True) }}
{{ log("var(\"config\")[target.name]: " ~ var("config")[target.name], info=True) }}
{{ log("var(\"config\")[\"dev\"]: " ~ var("config")["dev"], info=True) }}
{{ log("var(\"API_INTEGRATION\") : " ~ var("API_INTEGRATION"), info=True) }}
{{ log("var(\"EXTERNAL_FUNCTION_URI\"): " ~ var("EXTERNAL_FUNCTION_URI"), info=True) }}
{% set sql %}
CREATE OR REPLACE EXTERNAL FUNCTION streamline.udf_bulk_rest_api_v2(json variant) returns variant api_integration =
{% if target.name == "prod" %}