cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
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.

1 REPLY 1

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!

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