mirror of
https://github.com/FlipsideCrypto/near-models.git
synced 2026-02-06 14:11:54 +00:00
22 lines
400 B
SQL
22 lines
400 B
SQL
{{
|
|
config(
|
|
materialized = 'incremental',
|
|
unique_key = 'tx_id',
|
|
tags = ['core'],
|
|
cluster_by = ['block_timestamp']
|
|
)
|
|
}}
|
|
-- WIP -- below serves as example
|
|
|
|
with base_txs as (
|
|
select * from {{ ref("stg_txs") }}
|
|
where {{ incremental_load_filter("block_timestamp") }}
|
|
),
|
|
final as (
|
|
select
|
|
*
|
|
from base_txs
|
|
)
|
|
|
|
select * from final
|