mirror of
https://github.com/FlipsideCrypto/thorchain-models.git
synced 2026-02-06 13:17:02 +00:00
switched to unopinionated stake events and changed test instead
This commit is contained in:
parent
f7718fca5b
commit
8426e893ae
@ -22,6 +22,6 @@ SELECT
|
||||
) AS _INSERTED_TIMESTAMP
|
||||
FROM
|
||||
{{ ref('bronze__stake_events') }}
|
||||
qualify(ROW_NUMBER() over(PARTITION BY pool, rune_tx, asset_chain, stake_units, rune_addr, asset_tx, asset_addr, block_timestamp
|
||||
qualify(ROW_NUMBER() over(PARTITION BY event_id, pool, rune_tx, asset_chain, stake_units, rune_addr, asset_tx, asset_addr, block_timestamp
|
||||
ORDER BY
|
||||
__HEVO__INGESTED_AT DESC)) = 1
|
||||
|
||||
@ -12,6 +12,7 @@ models:
|
||||
- RUNE_TX_ID
|
||||
- RUNE_ADDRESS
|
||||
- BLOCK_TIMESTAMP
|
||||
- EVENT_ID
|
||||
columns:
|
||||
- name: POOL_NAME
|
||||
tests:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user