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
Databricks Employee
Databricks Employee

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

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now