Skip to content

Commit

Permalink
Change keyword to where
Browse files Browse the repository at this point in the history
  • Loading branch information
smitsrr committed Jan 16, 2024
1 parent 6b25d11 commit 1993bee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/query_history_enriched.sql
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ query_history as (
{% if is_incremental() %}
-- Conservatively re-process the last 7 days to account for late arriving rates data. Allow an override from project variable
-- which changes the cost per query
and end_time > (select dateadd(day, -{{ var('dbt_snowflake_monitoring_incremental_days', '7') }}, max(end_time)) from {{ this }})
where end_time > (select dateadd(day, -{{ var('dbt_snowflake_monitoring_incremental_days', '7') }}, max(end_time)) from {{ this }})
{% endif %}
),

Expand All @@ -36,7 +36,7 @@ cost_per_query as (
{% if is_incremental() %}
-- Conservatively re-process the last 7 days to account for late arriving rates data. Allow an override from project variable
-- which changes the cost per query
and end_time > (select dateadd(day, -{{ var('dbt_snowflake_monitoring_incremental_days', '7') }}, max(end_time)) from {{ this }})
where end_time > (select dateadd(day, -{{ var('dbt_snowflake_monitoring_incremental_days', '7') }}, max(end_time)) from {{ this }})
{% endif %}
)

Expand Down

0 comments on commit 1993bee

Please sign in to comment.