cancel
Showing results for 
Search instead for 
Did you mean: 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
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

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