Skip to content

Commit

Permalink
Fixed to run a COUNT instead of full scan
Browse files Browse the repository at this point in the history
  • Loading branch information
tkirschke authored Jul 24, 2024
1 parent b1840f9 commit 42efeac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/tables/snowflake/rec_track_sat.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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] -%}

Expand Down

0 comments on commit 42efeac

Please sign in to comment.