Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
dapollak committed Nov 26, 2023
1 parent 494d016 commit f45b9cd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions models/edr/alerts/alerts_dbt_source_freshness.sql
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@ select
sources.owner,
sources.package_name,
sources.path,
null as freshness_error_after,
null as freshness_warn_after,
null as freshness_filter
-- These columns below are deprecated. We add them since this view
-- was used to be loaded into an incremental model with those columns, their names were later changed
-- and Databricks doesn't respect `on_schema_change = 'append_new_columns'` properly, as described here -
-- https://docs.databricks.com/en/delta/update-schema.html#automatic-schema-evolution-for-delta-lake-merge
results.error_after as freshness_error_after,
results.warn_after as freshness_warn_after,
results.filter as freshness_filter
from results
join sources on results.unique_id = sources.unique_id
where {{ not elementary.get_config_var('disable_source_freshness_alerts') }} and lower(status) != 'pass'

0 comments on commit f45b9cd

Please sign in to comment.