add partition_key filter

This commit is contained in:
tarikceric 2025-01-07 09:30:36 -08:00
parent 0dd027391c
commit 28659259c0

View File

@ -26,6 +26,15 @@ WHERE
FROM
{{ this }}
)
AND partition_key > (
SELECT
COALESCE(
MAX(partition_key),
0
)
FROM
{{ this }}
)
{% else %}
{{ ref('bronze__FR_transactions') }}
{% endif %}