mirror of
https://github.com/FlipsideCrypto/near-models.git
synced 2026-02-06 11:47:00 +00:00
Merge pull request #17 from MetricsDAO/hotfix
This commit is contained in:
commit
b50d6eb591
@ -9,17 +9,13 @@
|
||||
-- WIP -- below serves as example
|
||||
|
||||
with base_txs as (
|
||||
select * from {{ deduped_txs("near_txs") }}
|
||||
select * from {{ ref("stg_txs") }}
|
||||
where {{ incremental_load_filter("block_timestamp") }}
|
||||
),
|
||||
final as (
|
||||
select
|
||||
block_timestamp,
|
||||
tx:nonce::string as nonce,
|
||||
tx_id as tx_hash,
|
||||
-- Build out more columns here from `txs`
|
||||
-- ...
|
||||
*
|
||||
from base_txs
|
||||
where {{ incremental_load_filter("block_timestamp") }}
|
||||
)
|
||||
|
||||
select * from final
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{{
|
||||
config(
|
||||
materialized='incremental',
|
||||
unique_key='tx_id',
|
||||
unique_key='block_id',
|
||||
incremental_strategy = 'delete+insert',
|
||||
tags=['core'],
|
||||
cluster_by=['block_timestamp']
|
||||
|
||||
Loading…
Reference in New Issue
Block a user