update dev endpoint | add udf_api_batched to _live

This commit is contained in:
shah 2025-05-21 20:04:57 -07:00
parent d42b520543
commit c6525fb6ad
2 changed files with 18 additions and 1 deletions

View File

@ -73,7 +73,7 @@ vars:
# The keys correspond to dbt profiles and are case sensitive
dev:
API_INTEGRATION: AWS_LIVE_QUERY_STG
EXTERNAL_FUNCTION_URI: u5z0tu43sc.execute-api.us-east-1.amazonaws.com/stg/
EXTERNAL_FUNCTION_URI: yn4219e0o6.execute-api.us-east-1.amazonaws.com/stg/
ROLES:
- INTERNAL_DEV
MAX_BATCH_ROWS: 10

View File

@ -1,5 +1,21 @@
{% macro config_core__live(schema="_live") %}
- name: {{ schema }}.udf_api_batched
signature:
- [method, STRING]
- [url, STRING]
- [headers, OBJECT]
- [DATA, VARIANT]
- [user_id, STRING]
- [SECRET, STRING]
return_type: VARIANT
func_type: EXTERNAL
api_integration: '{{ var("API_INTEGRATION") }}'
max_batch_rows: '{{ var("MAX_BATCH_ROWS") }}'
options: |
NOT NULL
sql: udf_api
- name: {{ schema }}.udf_api
signature:
- [method, STRING]
@ -14,4 +30,5 @@
options: |
NOT NULL
sql: udf_api
{% endmacro %}