Autoloader update table when new changes are made
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2024 07:15 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2024 07:22 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2024 07:52 AM
What if the only changes made to the new file being ingested is new data appended at the end of the file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2024 12:31 PM
This may be helpful - the bit on allow overwrite
https://docs.databricks.com/en/ingestion/auto-loader/faq.html