This commit is contained in:
Eric Laurello 2024-08-12 11:39:49 -04:00
parent 2cb35d063b
commit ab92f4b22e
2 changed files with 20 additions and 12 deletions

View File

@ -55,10 +55,15 @@ FROM
{% if is_incremental() %}
WHERE
_inserted_timestamp >= (
_inserted_timestamp >= DATEADD(
'minute',
-30,(
SELECT
MAX(_inserted_timestamp)
MAX(
_inserted_timestamp
)
FROM
{{ this }}
)
)
{% endif %}

View File

@ -66,7 +66,9 @@ WITH b AS (
{% if is_incremental() %}
WHERE
_inserted_timestamp >= (
_inserted_timestamp >= DATEADD(
'minute',
-30,(
SELECT
MAX(
_inserted_timestamp
@ -74,6 +76,7 @@ WHERE
FROM
{{ this }}
)
)
{% endif %}
),
prefinal AS (