sei-models/models/bronze/core/bronze__streamline_blocks.sql
Ryan-Loofy 1cfa0d3b5e
Sei txs, blocks, tx count pipeline (#2)
* 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
2023-08-29 12:26:28 -04:00

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"
) }}