update to segregated livetable quicknode ep

This commit is contained in:
shah 2025-04-30 16:50:03 -07:00
parent ff266cd801
commit 451300fd0c
3 changed files with 8 additions and 8 deletions

View File

@ -23,7 +23,7 @@ rm_logs:
# deploy live table udtfs
deploy_live_table_udtfs: rm_logs
dbt run \
-s near_models.deploy.near.live__table \
-s near_models.deploy.livetable \
--vars '{UPDATE_UDFS_AND_SPS: true, ENABLE_LIVE_TABLE: true, LIVE_TABLE_MATERIALIZATION: ephemeral}' \
--profiles-dir ~/.dbt \
--profile near \

View File

@ -15,7 +15,7 @@ WITH rpc_call AS (
'params' : {'finality' : 'final'}
},
_utils.UDF_WHOAMI(),
'Vault/prod/near/quicknode/mainnet'
'Vault/prod/near/quicknode/livetable/mainnet'
):data::object AS rpc_result
)
SELECT
@ -85,7 +85,7 @@ FROM
SELECT
block_height,
DATE_PART('EPOCH', SYSDATE()) :: INTEGER AS request_timestamp,
live_table.lt_blocks_udf_api(
livetable.lt_blocks_udf_api(
'POST',
'{Service}',
{'Content-Type' : 'application/json'},
@ -96,7 +96,7 @@ SELECT
'params':{'block_id': block_height}
},
_utils.UDF_WHOAMI(),
'Vault/prod/near/quicknode/mainnet'
'Vault/prod/near/quicknode/livetable/mainnet'
):data.result AS rpc_data_result
from
{{spine}}

View File

@ -37,7 +37,7 @@
bch.chunk_hash,
bch.chunk_height_created,
bch.chunk_height_included,
live_table.lt_chunks_udf_api(
livetable.lt_chunks_udf_api(
'POST',
'{Service}',
{'Content-Type' : 'application/json'},
@ -48,7 +48,7 @@
'params': {'chunk_id': bch.chunk_hash}
},
_utils.UDF_WHOAMI(),
'Vault/prod/near/quicknode/mainnet'
'Vault/prod/near/quicknode/livetable/mainnet'
):data:result AS chunk_data
FROM block_chunk_hashes bch
),
@ -77,7 +77,7 @@
tx.chunk_hash,
tx.chunk_height_created,
tx.chunk_height_included,
live_table.lt_tx_udf_api(
livetable.lt_tx_udf_api(
'POST',
'{Service}',
{'Content-Type' : 'application/json', 'fsc-compression-mode' : 'auto'},
@ -92,7 +92,7 @@
}
},
_utils.UDF_WHOAMI(),
'Vault/prod/near/quicknode/mainnet'
'Vault/prod/near/quicknode/livetable/mainnet'
):data:result AS tx_result
FROM chunk_txs tx
)