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:ย 

Updates of Materialized Views in Lakeflow Pipelines Produce MetadataChangedException the masses

StephanK8
New Contributor

Hi,

We've set up materialized views (as dlt.table()) for something like 300 tables in a single Lakeflow pipeline. The pipeline is triggered externally by a workflow job (to run twice a day). Running the pipeline we experience something strange. A large number of tables fail to update with a MetadataChangedException. The number of tables that fail varies from run to run, but also which tables fail varies. What puzzles us most is that the concurrent metadata write is done by the same pipeline run. I.e., the pipeline run seems to work on the same table in two threads concurrently. The common property of the failing tables is that they do not receive any new data. But this condition alone is insufficient. Many tables not receiving any new data are processed successfully. 

The DataBricks AI recommendation is to use a retry mechanism for setting up the table. But adding one does not make any difference. Tables keep failing to update.

Any idea what goes on here? Any help is much appreciated.

Thanks, Stephan

0 REPLIES 0

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now