From 42efeac75f5263f381c31dd6e6bcca79c91359f8 Mon Sep 17 00:00:00 2001 From: Tim Kirschke <81677440+tkirschke@users.noreply.github.com> Date: Wed, 24 Jul 2024 11:57:29 +0200 Subject: [PATCH] Fixed to run a COUNT instead of full scan --- macros/tables/snowflake/rec_track_sat.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/tables/snowflake/rec_track_sat.sql b/macros/tables/snowflake/rec_track_sat.sql index 18260bda..19483e34 100644 --- a/macros/tables/snowflake/rec_track_sat.sql +++ b/macros/tables/snowflake/rec_track_sat.sql @@ -81,7 +81,7 @@ WITH {%- set source_in_target = true -%} {%- if execute -%} - {%- set rsrc_static_result = run_query(rsrc_static_query_source) -%} + {%- set rsrc_static_result = run_query(rsrc_static_query_source_count) -%} {%- set row_count = rsrc_static_result.columns[0].values()[0] -%}