mirror of
https://github.com/FlipsideCrypto/sei-models.git
synced 2026-02-06 10:58:58 +00:00
* Sei txs, blocks, tx count pipeline * Streamline sei pipelines - XXX will be deleted with PROD deployment after approvals - Temp file will be deleted after UDFs are created * Add requirement and update block_number to block_id * Switch to block number * Remove old sources * Update loads and run times * Add prod integration
12 lines
320 B
SQL
12 lines
320 B
SQL
{{ config (
|
|
materialized = 'view'
|
|
) }}
|
|
|
|
{% set model = this.identifier.split("_") [-1] %}
|
|
{{ streamline_external_table_query(
|
|
model,
|
|
partition_function = "CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 3), '_', 1) AS INTEGER)",
|
|
partition_name = "_partition_by_block_id",
|
|
unique_key = "block_number"
|
|
) }}
|