up rn declaration (#472)

This commit is contained in:
Jack Forgash 2025-08-29 13:44:16 -06:00 committed by GitHub
parent e22e62ff56
commit e0a7d7c1d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,13 +23,13 @@
SELECT
entry_id,
ROW_NUMBER() over (
PARTITION BY partition_key
ORDER BY
partition_key DESC,
INDEX DESC
) AS rn
FROM
{{ ref('silver_api__transaction_entries') }}
WHERE _inserted_timestamp >= SYSDATE() - INTERVAL '7 days'
WHERE _inserted_timestamp >= SYSDATE() - INTERVAL '10 days'
)
SELECT
entry_id