Closed erikamov closed 1 month ago
Warehouse report 📦
Legend (in order of precedence)
Resource type | Indicator | Resolution |
---|---|---|
Large table-materialized model | Orange | Make the model incremental |
Large model without partitioning or clustering | Orange | Add partitioning and/or clustering |
View with more than one child | Yellow | Materialize as a table or incremental |
Incremental | Light green | |
Table | Green | |
View | White |
Description
This PR is a second pass on optimizing fct_daily_rt_feed_validation_notices to fix issue #3481.
@ohrite and I split the query into 4 CTEs
This reduced the runtime to < 1m. Since the restructure represents a fundamental change in how the data is aggregated, we are working on validating the output.
Type of change
How has this been tested?
We've queried both production and staging tables, compared row values for 2023-12-28, and generated csv files for 2024-10-16, comparing both files through DIFF and had zero differences.
Used SQLFluff to check the query:
The table was successfully created on staging:
Post-merge follow-ups
Watch the next time the DAG runs to see the results and no more errors.