cancel
Showing results for 
Search instead for 
Did you mean: 
Community Discussions
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.

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 II

This may be helpful - the bit on allow overwrite

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

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.