Merge pull request #17 from MetricsDAO/hotfix

This commit is contained in:
Chuxin Huang 2022-02-27 00:47:26 +11:00 committed by GitHub
commit b50d6eb591
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 8 deletions

View File

@ -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

View File

@ -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']