prunning on pallet

This commit is contained in:
Eric Laurello 2025-05-02 13:01:36 -04:00
parent 62b8716662
commit e52130c90d

View File

@ -33,11 +33,14 @@ WITH msg_atts_base AS (
)
{% if is_incremental() %}
AND _inserted_timestamp >= (
SELECT
MAX(_inserted_timestamp)
FROM
{{ this }}
AND _inserted_timestamp >= GREATEST(
(
SELECT
MAX(_inserted_timestamp)
FROM
{{ this }}
),
SYSDATE() :: DATE -3
)
{% endif %}