cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Which is the recommended way to write the data back to the delta lake?

Krish-685291
New Contributor III

Hi,

I wanted to understand whether my approach to deal with delta lake is correct or not?

1. First time I create a delta lake using the following command. 

  -> df_json.write.mode('overwrite').format('delta').save(delta_silver + json_file_path )

  

2. I create the delta table for the above location using the following command.

  -> deltaTableStore = DeltaTable.forPath(spark, delta_silver + detlta_table1)

3. I perform some operations on this deltaTableStore, such as I merge some data to this delta lake frame.

image

4. My understanding is that, deltaTableStore.merge() operation will update the data in the persistance also. I need do the write back operation.

Please let me know my understanding is correct.

2 REPLIES 2

Kaniz
Community Manager
Community Manager

Hi @Krishna Puthranโ€‹ , This guide provides an introductory overview, quickstarts, and guidance for using Delta Lake on Databricks.

Anonymous
Not applicable

Hey there @Krishna Puthranโ€‹ 

Hope everything is going great!

Does @Kaniz Fatmaโ€‹'s answer help? If it does, would you be happy to mark it as best? If it doesn't, please tell us so we can help you further.

We'd love to hear from you.

Cheers!