Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified as a Fabric Data Engineer: Check your eligibility for a 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700. Get started

Reply
Shanshan533
New Member

Issue with Delta Table Write in notebook

After writing to the Delta table, I noticed the data changed unexpectedly (see pictures below). I verified that the dataframe was correct before writing. Here’s the code used in the notebook:

 

 

df.write.format("delta").mode("overwrite").saveAsTable("properties")

 

 

 

 

Original dataframe Before Write:

591728648822_.pic.jpg

Delta Table After Write:

611728649097_.pic.jpg

 

 

2 ACCEPTED SOLUTIONS
frithjof_v
Super User
Super User

Perhaps this is just because of the sorting order of the rows in the table?

 

You can try to query the table and see if you find the rows.

View solution in original post

v-huijiey-msft
Community Support
Community Support

Hi @Shanshan533 ,

 

Thanks for the reply from frithjof_v .

 

Is my follow-up just to ask if the problem has been solved?

 

If so, can you accept the correct answer as a solution or share your solution to help other members find it faster?

 

Thank you very much for your cooperation!

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

View solution in original post

2 REPLIES 2
v-huijiey-msft
Community Support
Community Support

Hi @Shanshan533 ,

 

Thanks for the reply from frithjof_v .

 

Is my follow-up just to ask if the problem has been solved?

 

If so, can you accept the correct answer as a solution or share your solution to help other members find it faster?

 

Thank you very much for your cooperation!

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

frithjof_v
Super User
Super User

Perhaps this is just because of the sorting order of the rows in the table?

 

You can try to query the table and see if you find the rows.

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

JanFabricDE_carousel

Fabric Monthly Update - January 2025

Explore the power of Python Notebooks in Fabric!

JanFabricDW_carousel

Fabric Monthly Update - January 2025

Unlock the latest Fabric Data Warehouse upgrades!