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: 

How to write to a folder in a Azure Data Lake container using Delta?

KamKam
New Contributor

Hi All,

How to write to a folder in a Azure Data Lake container using Delta?

When I run:

write_mode = 'overwrite'
write_format = 'delta'
save_path = '/mnt/container-name/folder-name'
 
df.write \
    .mode(write_mode) \
    .format(write_format) \
    .save(save_path)

I get an incompatible format error. This does not happen when I write directly to the container ('/mnt/container-name').

I have also tried writing using the SQL commands but I get the same error.

What am I doing wrong?

2 REPLIES 2

jose_gonzalez
Moderator
Moderator

Hi @Kamalen Reddy​ ,

Could you share the error message please?

Hi @Kamalen Reddy​,

Just a friendly follow-up. Do you still need help? please let us know

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