mirror of
https://github.com/FlipsideCrypto/near-models.git
synced 2026-02-06 13:56:44 +00:00
dedupe bronze tx_hash
This commit is contained in:
parent
42cabf96f8
commit
e29fc47069
@ -26,9 +26,11 @@ WITH core_tx AS (
|
||||
SELECT * FROM {{ ref('core__fact_transactions') }}
|
||||
),
|
||||
bronze_tx AS (
|
||||
SELECT * FROM {{ ref('bronze__FR_transactions') }}
|
||||
SELECT
|
||||
btx.*
|
||||
FROM {{ ref('bronze__FR_transactions') }} btx
|
||||
QUALIFY ROW_NUMBER() OVER (PARTITION BY btx.data:transaction:hash ORDER BY btx.value:block_id DESC) = 1
|
||||
)
|
||||
|
||||
SELECT
|
||||
tx_hash,
|
||||
block_id,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user