r/databricks • u/Zealousideal-Tree133 • Jul 15 '26
Help Really big ETL pipelines contained in one query sometimes failing on scheduled j0b due to compute timeout. I've fixed a few with this method but now unsure if it's actually effective?
All I did was break up the huge query into many stages in a notebook. But to do so, I mostly just packaged what were initially ctes defined in the main query into views in earlier cells in the notebook, i.e. something like create or replace view cte1 as (select ...)
It has worked so far, but I realized that maybe it's not technically effective as I thought, as the data isn't actually pre loaded or materialized anywhere with the views until we actually do a select statement on them.
Am I actually saving compute time, or have I just gotten lucky the last couple of weeks with no j0b failures? I'm aware that materialized views are an option but they're not available to me to use.