cancel
Showing results for 
Search instead for 
Did you mean: 
Community Discussions
cancel
Showing results for 
Search instead for 
Did you mean: 

Ingesting Non-Incremental Data into Delta

anonymous_567
New Contributor II

Hello,

I have non-incremental data landing in a storage account. This data contains old data from before as well as new data. I would like to avoid doing a complete table deletion and table creation just to upload the data from storage and have an updated table. I want to be able to scan the data file, check where the new data begins, and ingest only the new data and append that to my existing delta table. Is there a method in which I can go about this type of data ingestion?

1 REPLY 1

AmanSehgal
Honored Contributor III

Well, if you know the conditions to separate new data from old data, then while reading the data in to your dataframe, use filter or where clause to select new data and ingest it in to your delta table.

This is how you can do in general. But if you have a complex use case, then please provide samples of your dataset.

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.