fix syntax that dbt doesn't like (#489)
Some checks failed
docs_update / run_dbt_jobs (push) Has been cancelled
docs_update / notify-failure (push) Has been cancelled
dbt_run_streamline_decoded_logs_history / run_dbt_jobs (push) Has been cancelled
dbt_run_streamline_decoded_logs_history / notify-failure (push) Has been cancelled
dbt_run_scheduled_daily / run_dbt_jobs (push) Has been cancelled
dbt_run_scheduled_daily / notify-failure (push) Has been cancelled

Co-authored-by: Mike Stepanovic <mike.stepanovic@flipsidecrypto.com>
This commit is contained in:
Mike Stepanovic 2025-09-26 11:06:10 -06:00 committed by GitHub
parent 64ce354fbd
commit 7549b06024
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,7 +48,7 @@ SELECT
FROM
{{ ref('core__fact_blocks') }}
WHERE
block_timestamp_hour < DATE_TRUNC('hour', systimestamp())
DATE_TRUNC('hour', block_timestamp) < DATE_TRUNC('hour', systimestamp())
{% if is_incremental() %}
AND DATE_TRUNC(