mirror of
https://github.com/FlipsideCrypto/solana-models.git
synced 2026-02-06 09:41:44 +00:00
* updated the dbt model for adding the solana parser * updated * updated * updated * updated
13 lines
403 B
SQL
13 lines
403 B
SQL
{{ config (
|
|
materialized = 'view'
|
|
) }}
|
|
|
|
{% set model = this.identifier.split("_") [-2] + '_' + this.identifier.split("_") [-1] %}
|
|
{{ streamline_external_table_FR_query(
|
|
model,
|
|
partition_function = "CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER )",
|
|
partition_name = "_partition_by_block_id",
|
|
unique_key = "block_id",
|
|
other_cols = "tx_id,index,program_id"
|
|
) }}
|