mirror of
https://github.com/FlipsideCrypto/thorchain-models.git
synced 2026-02-06 13:57:17 +00:00
added event_id to qualify(). I don't know if there can be one-to-many tx_ids / event_ids but it won't hurt
This commit is contained in:
parent
0ca7f48c1a
commit
4d99b5ff69
@ -19,7 +19,7 @@ FROM
|
||||
{{ ref('bronze__trade_account_deposit_events') }}
|
||||
QUALIFY(
|
||||
ROW_NUMBER() OVER (
|
||||
PARTITION BY tx_id
|
||||
PARTITION BY tx_id, event_id
|
||||
ORDER BY __HEVO__LOADED_AT DESC
|
||||
) = 1
|
||||
)
|
||||
@ -19,7 +19,7 @@ FROM
|
||||
{{ ref('bronze__trade_account_withdraw_events') }}
|
||||
QUALIFY(
|
||||
ROW_NUMBER() OVER (
|
||||
PARTITION BY tx_id
|
||||
PARTITION BY tx_id, event_id
|
||||
ORDER BY __HEVO__LOADED_AT DESC
|
||||
) = 1
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user