This commit is contained in:
Jensen Yap 2025-07-07 21:02:47 +09:00
parent 21d71a58fd
commit ee86bd480f
2 changed files with 2 additions and 22 deletions

View File

@ -31,24 +31,6 @@
NOT NULL
sql: udf_api
- name: {{ schema }}.udf_api_sync
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: '1'
headers:
- 'fsc-quantum-execution-mode': 'sync'
options: |
NOT NULL
sql: 'v2/udf_api'
- name: {{ schema }}.udf_api_async
signature:
- [method, STRING]
@ -61,10 +43,8 @@
func_type: EXTERNAL
api_integration: '{{ var("API_INTEGRATION") }}'
max_batch_rows: '1'
headers:
- 'fsc-quantum-execution-mode': 'async'
options: |
NOT NULL
sql: 'v2/udf_api'
sql: 'v2/udf_api_async'
{% endmacro %}

View File

@ -46,7 +46,7 @@
):data[0][1]
ELSE
-- Default execution: run regular function
_live.udf_api_sync(
_live.udf_api(
METHOD, URL, HEADERS, DATA, USER_ID, SECRET_NAME
)
END AS results