mirror of
https://github.com/FlipsideCrypto/near-models.git
synced 2026-02-06 14:11:54 +00:00
add manual fix var to load blocks and shards
This commit is contained in:
parent
db8d82cea7
commit
00e87ba56c
@ -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
|
||||
|
||||
@ -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
|
||||
*,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user