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
Databricks Employee
Databricks Employee

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.

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