Skip to content

Commit

Permalink
Add missing key column to fct_daily_rt_feed_validation_notices
Browse files Browse the repository at this point in the history
  • Loading branch information
erikamov committed Oct 19, 2024
1 parent b153ba0 commit 663d781
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ daily_feeds_statistics AS (
-- If a code does not appear for a feed on a day, total_notices will be 0.
-- If there a feed was not validated on a day, total_notices will be NULL.
SELECT
{{ dbt_utils.generate_surrogate_key(['daily_feeds_codes.date', 'daily_feeds_codes.base64_url', 'daily_feeds_codes.code', 'daily_feeds_codes.is_critical']) }} AS key,
daily_feeds_codes.date,
daily_feeds_codes.base64_url,
daily_feeds_codes.code,
Expand All @@ -77,4 +78,4 @@ LEFT JOIN outcomes_notices
ON daily_feeds_codes.base64_url = outcomes_notices.base64_url
AND daily_feeds_codes.date = outcomes_notices.extract_date
AND daily_feeds_codes.code = outcomes_notices.code
GROUP BY 1, 2, 3, 4, 5
GROUP BY 1, 2, 3, 4, 5, 6

0 comments on commit 663d781

Please sign in to comment.