diff --git a/macros/core/_live.yaml.sql b/macros/core/_live.yaml.sql index 49ceba4..ccd4854 100644 --- a/macros/core/_live.yaml.sql +++ b/macros/core/_live.yaml.sql @@ -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 %} diff --git a/macros/core/live.yaml.sql b/macros/core/live.yaml.sql index abf149d..69b9d0f 100644 --- a/macros/core/live.yaml.sql +++ b/macros/core/live.yaml.sql @@ -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