Closed thekaveman closed 2 weeks 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 |
~This PR is currently on top of #3515, so I could test this locally more easily. Once that PR is merged, this can be rebased on
main
.~Description
Follow up to #3468.
The
UNION DISTINCT
was producing strange results, e.g. combining results from different columns into the same output column.This was due to one or both of:
This PR alphabetizes the fields in both
SELECT
statements, and ensures that the transformSELECTS
all fields from the baseline CTE.A minor side effect of this cleanup was to remove the transform CTE in favor of a direct
SELECT
statement. This simplifies the back-and-forth to keep the field order straight.This is a full list of the fields in alphabetical order (from BigQuery)
Type of change
How has this been tested?
Post-merge follow-ups