add manual fix var to load blocks and shards

This commit is contained in:
Jack Forgash 2024-09-24 13:25:03 -06:00
parent db8d82cea7
commit 00e87ba56c
2 changed files with 6 additions and 0 deletions

View File

@ -73,6 +73,9 @@ blocks AS (
LEFT JOIN meta m USING (
_filename
)
{% if not var('MANUAL_FIX') %}
{% if is_incremental() %}
WHERE
_inserted_timestamp >= (
@ -82,6 +85,7 @@ blocks AS (
{{ this }}
)
{% endif %}
{% endif %}
)
SELECT

View File

@ -67,6 +67,7 @@ shards AS (
external_shards e
LEFT JOIN meta m USING (_filename)
{% if not var('MANUAL_FIX') %}
{% if is_incremental() %}
WHERE
_inserted_timestamp >= (
@ -76,6 +77,7 @@ shards AS (
{{ this }}
)
{% endif %}
{% endif %}
)
SELECT
*,