cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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