stellar-models/macros/streamline/streamline_udfs.sql
eric-laurello 0d19dfd4f7
AN-5791 observe models (#10)
* observe models

* wf, yml

* spelling, scheduling, comments
2025-04-03 13:22:07 -04:00

11 lines
509 B
SQL

{% macro create_udf_bulk_rest_api_v2() %}
CREATE
OR REPLACE EXTERNAL FUNCTION streamline.udf_bulk_rest_api_v2(
json OBJECT
) returns ARRAY {% if target.database == 'STELLAR' -%}
api_integration = aws_stellar_api_prod_v2 AS 'https://qavdasgp43.execute-api.us-east-1.amazonaws.com/prod/udf_bulk_rest_api'
{% else %}
api_integration = aws_stellar_api_stg_v2 AS 'https://q75hks23yb.execute-api.us-east-1.amazonaws.com/stg/udf_bulk_rest_api'
{%- endif %}
{% endmacro %}