run_query (#496)
Some checks failed
docs_update / run_dbt_jobs (push) Has been cancelled
docs_update / notify-failure (push) Has been cancelled

This commit is contained in:
stanz 2025-10-28 00:17:42 +07:00 committed by GitHub
parent 27e3414619
commit 211547b74b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,7 +24,7 @@ WHERE
) {% endset %}
{% set min_block_timestamp_hour = run_query(query).columns [0].values() [0] %}
{% if min_block_timestamp_hour is none %}
{% set min_block_timestamp_hour = "DATE_TRUNC('hour', CURRENT_TIMESTAMP - INTERVAL '3 days')" %}
{% set min_block_timestamp_hour = run_query("SELECT DATE_TRUNC('hour', CURRENT_TIMESTAMP - INTERVAL '3 days')").columns[0].values()[0] %}
{% endif %}
{% endif %}
{% endif %}