fix syntax that dbt doesn't like

This commit is contained in:
Mike Stepanovic 2025-09-26 10:48:26 -06:00
parent 64ce354fbd
commit 7f9c9f18a0

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(