Skip to content

allow_unsafe_rename option stopped working in version 1 #3493

@djouallah

Description

@djouallah

Environment

Delta-rs version: 1

Binding:

Environment:

  • Cloud provider:Fabric
  • OS: Linux
  • Other:

Bug

What happened:

getting error when running this

from  deltalake import write_deltalake
write_deltalake('/lakehouse/default/Tables/aemo/ca' , df, mode="overwrite", storage_options={"allow_unsafe_rename":"true"})
---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
Cell In[7], line 2
      1 from  deltalake import write_deltalake
----> 2 write_deltalake('/lakehouse/default/Tables/aemo/ca' , df, mode="overwrite", storage_options={"allow_unsafe_rename":"true"})

File ~/jupyter-env/python3.11/lib/python3.11/site-packages/deltalake/writer/writer.py:142, in write_deltalake(table_or_uri, data, partition_by, mode, name, description, configuration, schema_mode, storage_options, predicate, target_file_size, writer_properties, post_commithook_properties, commit_properties)
    126     table._table.write(
    127         data=data,
    128         batch_schema=compatible_delta_schema,
   (...)
    139         post_commithook_properties=post_commithook_properties,
    140     )
    141 else:
--> 142     write_deltalake_rust(
    143         table_uri=table_uri,
    144         data=data,
    145         batch_schema=compatible_delta_schema,
    146         partition_by=partition_by,
    147         mode=mode,
    148         schema_mode=schema_mode,
    149         predicate=predicate,
    150         target_file_size=target_file_size,
    151         name=name,
    152         description=description,
    153         configuration=configuration,
    154         storage_options=storage_options,
    155         writer_properties=writer_properties,
    156         commit_properties=commit_properties,
    157         post_commithook_properties=post_commithook_properties,
    158     )

OSError: Generic LocalFileSystem error
          ↳ Unable to rename file
           ↳ No such file or directory (os error 2)

What you expected to happen:

it works fine with previous version when you pick engine as rust

How to reproduce it:

More details:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions