Migrate compressed mint calls to streamline 2.0 (#739)

* fix batch size for udf

* update usage to v2
This commit is contained in:
desmond-hui 2024-12-17 07:23:12 -08:00 committed by GitHub
parent b4a953cbf9
commit 63dc6591e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 5 additions and 4 deletions

View File

@ -82,7 +82,7 @@
)
SELECT
ARRAY_AGG(request) AS batch_request,
streamline.udf_decode_compressed_mint_change_logs(batch_request) AS responses,
streamline.udf_decode_compressed_mint_change_logs_v2(batch_request) AS responses,
MIN(event_inserted_timestamp) AS start_inserted_timestamp,
MAX(event_inserted_timestamp) AS end_inserted_timestamp,
concat_ws(

View File

@ -82,6 +82,7 @@
CREATE
OR REPLACE EXTERNAL FUNCTION streamline.udf_decode_compressed_mint_change_logs_v2("JSON" ARRAY)
returns VARIANT
max_batch_rows = 1
api_integration =
{% if target.database == 'SOLANA' -%}
AWS_SOLANA_API_PROD_V2

View File

@ -96,7 +96,7 @@ base AS (
)
SELECT
ARRAY_AGG(request) AS batch_request,
streamline.udf_decode_compressed_mint_change_logs(batch_request) AS responses,
streamline.udf_decode_compressed_mint_change_logs_v2(batch_request) AS responses,
MIN(event_inserted_timestamp) AS start_inserted_timestamp,
MAX(event_inserted_timestamp) AS end_inserted_timestamp,
concat_ws(

View File

@ -81,7 +81,7 @@ base AS (
)
SELECT
ARRAY_AGG(request) AS batch_request,
streamline.udf_decode_compressed_mint_change_logs(batch_request) AS responses,
streamline.udf_decode_compressed_mint_change_logs_v2(batch_request) AS responses,
MIN(decoded_inserted_timestamp) AS start_inserted_timestamp,
MAX(decoded_inserted_timestamp) AS end_inserted_timestamp,
SYSDATE() AS _inserted_timestamp,

View File

@ -81,7 +81,7 @@ base AS (
)
SELECT
ARRAY_AGG(request) AS batch_request,
streamline.udf_decode_compressed_mint_change_logs(batch_request) AS responses,
streamline.udf_decode_compressed_mint_change_logs_v2(batch_request) AS responses,
MIN(decoded_inserted_timestamp) AS start_inserted_timestamp,
MAX(decoded_inserted_timestamp) AS end_inserted_timestamp,
SYSDATE() AS _inserted_timestamp,