As a data analyst, when I debug a view, I spent a lot of time going through each CTE and tracing the logic from one CTE to the other. It would be cool if there a way to automatically split a query into its CTEs, and possible materialize each one. Then I could inspect them separately without having to copy/paste code all over the place. I know that Count has a demo where the splitting would be done automatically in their UI, but I can't find it anymore.
As a data analyst, when I debug a view, I spent a lot of time going through each CTE and tracing the logic from one CTE to the other. It would be cool if there a way to automatically split a query into its CTEs, and possible materialize each one. Then I could inspect them separately without having to copy/paste code all over the place. I know that Count has a demo where the splitting would be done automatically in their UI, but I can't find it anymore.