switched to unopinionated stake events and changed test instead

This commit is contained in:
Mike Stepanovic 2024-12-13 15:33:24 -07:00
parent f7718fca5b
commit 8426e893ae
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -12,6 +12,7 @@ models:
- RUNE_TX_ID
- RUNE_ADDRESS
- BLOCK_TIMESTAMP
- EVENT_ID
columns:
- name: POOL_NAME
tests: