cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Workflow Fail safe query

Skully
Visitor

I have a large SQL query that includes multiple Common Table Expressions (CTEs) and joins across various tables, totaling approximately 2,500 lines. I want to ensure that if any part of the query or a specific CTE failsโ€”due to a missing table or columnโ€”the entire workflow or query does not fail. Instead, I would like a mechanism to handle such failures by automatically substituting any missing attributes (columns) with NULL values. This would allow the query to continue executing without interruption.

How can I achieve this, and are there best practices for implementing a fail-safe mechanism for such a large and complex query?

0 REPLIES 0

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group