I prefer actually materializing the tables so then I can check the output for what the transform tables and the joined tables look like.
generally can't just swap transformed in final because final depends on the output of transformed?
generally can't just swap transformed in final because final depends on the output of transformed?
This works as long as your CTE’s are correct SQL and only the logic is wrong or suspect.
From a debug point of view that feels more convenient to _me_.
Edit: also I don’t like to leave a mess behind and CTE’s don’t require cleaning up afterwards.