cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results for 
Search instead for 
Did you mean: 

Autoloader update table when new changes are made

anonymous_567
New Contributor II

Hello,

Everyday a new file of the same name gets sent to my storage account with old and new data appended at the end.  Columns may also be added during one of these file updates. This file does a complete overwrite of the previous file. Is it possible to configure autoloader so that it does a full scan of the changes and updates the delta table only where changes exist?

Below is an example of the file updates I am referring to
Day 1 file: A
Day 2 file: AB

Day 3 file: A'BC

*each letter represents new data and
**a letter followed by an apostrophe is altered data

3 REPLIES 3

Ajay-Pandey
Esteemed Contributor III

Hi @anonymous_567 

With the help of autoloader, you can not do it as autoloader work at the file level, not the data level, to achieve this you can go with SCD or CDF approach.

Ajay Kumar Pandey

anonymous_567
New Contributor II

What if the only changes made to the new file being ingested is new data appended at the end of the file?

data-grassroots
New Contributor III

This may be helpful - the bit on allow overwrite

https://docs.databricks.com/en/ingestion/auto-loader/faq.html

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