solana-models/models/bronze/streamline/bronze__streamline_program_parser.sql
xiuy001 3707093464
Add solana parser jobs and models (#316)
* updated the dbt model for adding the solana parser

* updated

* updated

* updated

* updated
2023-07-21 18:33:08 +02:00

13 lines
400 B
SQL

{{ config (
materialized = 'view'
) }}
{% set model = this.identifier.split("_") [-2] + '_' + this.identifier.split("_") [-1] %}
{{ streamline_external_table_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"
) }}