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

Autoloader not detecting changes/updated values for xml file

test_123
New Contributor

if i update the value in xml then autoloader not detecting the changes.
same for delete/remove column or property in xml.  So request to you please help me to fix this issue

1 REPLY 1

Walter_C
Honored Contributor

It seems that the issue you're experiencing with Autoloader not detecting changes in XML files might be related to how Autoloader handles schema inference and evolution.

Autoloader can automatically detect the schema of loaded XML data, allowing you to initialize tables without explicitly declaring the data schema and evolve the table schema as new columns are introduced. However, when Autoloader detects a new column, the stream stops with an UnknownFieldException. This behavior is designed to prevent data loss due to schema changes that Autoloader might not handle correctly.

In your case, when you update the value in XML or delete/remove a column or property in XML, Autoloader might not be able to detect these changes because it's not designed to handle schema changes beyond the addition of new columns.

As a workaround, you could manually set the schema in the Autoloader.

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