Files
dbt-f2dq/macros/utils/in_compile.sql
T
M7XBeastandCursor ff096b51b5 Initial publish of dbt_f2dq (f2dq) package v0.12.1.
Clean package repo for Gitea installs via packages.yml git URL.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-11 17:37:40 +03:00

16 lines
449 B
SQL

{% macro in_compile() %}
{%- call statement('in_compile', fetch_result=True) -%}
select * from {{ ref('f2dq_run_started_at') }}
{%- endcall -%}
{% if execute %}
{%- set result = load_result('in_compile')['data'][0][0] -%}
{% if result == run_started_at.timestamp() * 1000000 %}
{{ return(False) }}
{% else %}
{{ return(True) }}
{% endif %}
{% endif %}
{% endmacro %}