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