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: 

DLT-META requires ddl when using cdc_apply_changes

m_weirath
New Contributor

We are setting up new DLT Pipelines using the DLT-Meta package. Everything is going well in bringing our data in from Landing to our Bronze layer when we keep the onboarding JSON fairly vanilla. However, we are hitting an issue when using the cdc_apply_changes feature. As soon as we add that feature, the package will look for a .ddl schema file. Since we aren't using one, the package will fail when we start the pipelines.  Complaining it can't parse a null file

For a bit of background, we plan on using schema evolution and would like to use the cdc_apply_changes to keep the bronze tables mostly similar to the source systems.

The cdc_apply_changes doesn't need a schema file, so I am confused about why one is now required. Is this just a bug in the DLT-Meta package? Does anyone have any suggestions?

2 REPLIES 2

Tanay
New Contributor II

<p>You're hitting a bug or an unexpected behavior in the DLT-Meta package. Normally, the <code>cdc_apply_changes</code> feature shouldn't require a <code>.ddl</code> schema file, especially if you're relying on schema evolution.</p>

<ul>
<li><strong>Check the package version</strong>: Ensure you're using the latest version of the DLT-Meta package. Sometimes, bugs are fixed in newer releases.</li>
<li><strong>Look for a workaround</strong>: If the schema file is being incorrectly required, see if there's a way to bypass this by providing a minimal or empty schema file as a temporary fix.</li>
<li><strong>Reach out to support</strong>: If it seems like a bug, reporting it to the maintainers of the DLT-Meta package might help. They might already have a fix or workaround.</li>
</ul>

<p>In the meantime, consider testing with a simple schema file to keep your pipeline moving forward.</p>

dbuser17
New Contributor II

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