solana-models/macros/streamline/bulk_program_parser/udf_program_parser.sql
desmond-hui d21426d01a
Fix/undecoded instructions (#324)
* wip

* fix udf deployment code

* temp change for testing workflow

* update job to use latest model, remove unused var

* should be joined on a cluster key to improve the join perf

---------

Co-authored-by: Desmond Hui <desmondhui@Desmonds-MacBook-Pro.local>
2023-08-10 11:15:13 -07:00

8 lines
449 B
SQL

{% macro udf_bulk_program_parser() %}
CREATE
OR REPLACE EXTERNAL FUNCTION streamline.udf_bulk_program_parser("JSON" OBJECT) returns ARRAY api_integration = aws_solana_api_dev AS {% if target.database == 'SOLANA' -%}
'https://pj4rqb8z96.execute-api.us-east-1.amazonaws.com/prod/bulk_program_parser'
{% else %}
'https://89kf6gtxr0.execute-api.us-east-1.amazonaws.com/dev/bulk_program_parser'
{%- endif %}
{% endmacro %}