blitz-product-recency-update (#49)

* add product test buffer

* switch filter to macro level
This commit is contained in:
Matt Romano 2024-05-14 10:29:33 -07:00 committed by GitHub
parent 825d2673d9
commit eb01b00f31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,6 +34,7 @@ invalid_product_ids as (
select *
from {{ ref('silver__blitz_dim_products') }}
where product_id not in (select product_id from recent_records)
AND block_timestamp < sysdate() - INTERVAL '2 days'
{% if filter %}
AND {{ filter }}
{% endif %}