Skip to content

Commit

Permalink
Celo 911: updating celo traces (#679)
Browse files Browse the repository at this point in the history
  • Loading branch information
SebMelendez01 authored Dec 15, 2024
1 parent 09f18ef commit ea9ca05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/staging/celo/fact_celo_traces.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ config(materialized="incremental", unique_key="id", snowflake_warehouse="CELO_MD") }}
{{ config(materialized="incremental", unique_key="trace_id", snowflake_warehouse="CELO_LG") }}
with
raw_traces as (
select
Expand Down Expand Up @@ -51,4 +51,4 @@ select
, trace_id
, id
from raw_traces
qualify row_number() over (partition by id order by block_timestamp desc) = 1
qualify row_number() over (partition by trace_id order by block_timestamp desc) = 1

0 comments on commit ea9ca05

Please sign in to comment.