blast-models/macros/streamline/streamline_udfs.sql
xiuy001 5335c7bc05
Update blast model to release 1.2 (#35)
* updated the blast model to use release 1.2

* removed user.ymal

* chainhead history and package temp

* v1.22

* udf name

* package upgrade, config in dbt_project

* chainhead

* updates for quantum and standardization

* remove limits

* removed the 2nd param in the receipts model

* if data_call_function v2

* block number column adj

* removed param

---------

Co-authored-by: drethereum <trevor.wenokur@gmail.com>
Co-authored-by: drethereum <71602799+drethereum@users.noreply.github.com>
2024-05-02 14:21:55 -04:00

22 lines
940 B
SQL

{% macro create_udf_bulk_rest_api_v2() %}
CREATE
OR REPLACE EXTERNAL FUNCTION streamline.udf_bulk_rest_api_v2(
json OBJECT
) returns ARRAY api_integration =
{% if target.name == "prod" %}
aws_blast_api AS 'https://42gzudc5si.execute-api.us-east-1.amazonaws.com/prod/udf_bulk_rest_api'
{% else %}
aws_blast_api_dev AS 'https://y9d0tuavh6.execute-api.us-east-1.amazonaws.com/stg/udf_bulk_rest_api'
{%- endif %};
{% endmacro %}
{% macro create_udf_bulk_decode_logs() %}
CREATE
OR REPLACE EXTERNAL FUNCTION streamline.udf_bulk_decode_logs(
json OBJECT
) returns ARRAY api_integration = {% if target.name == "prod" %}
aws_blast_api AS 'https://42gzudc5si.execute-api.us-east-1.amazonaws.com/prod/bulk_decode_logs'
{% else %}
aws_blast_api_dev AS'https://y9d0tuavh6.execute-api.us-east-1.amazonaws.com/stg/bulk_decode_logs'
{%- endif %};
{% endmacro %}