Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delta Table already exists with write_deltalake(..., mode='overwrite', overwrite_schema=True) #2197

Open
rspears74 opened this issue Feb 20, 2024 · 2 comments
Labels
binding/python Issues for the Python package bug Something isn't working

Comments

@rspears74
Copy link

Environment

Delta-rs version: 0.15.1

Binding: Python

Environment:

  • Cloud provider: AWS
  • OS: MacOS
  • Other: Github Action

Bug

What happened:
Calling write_deltalake(path, data, mode='overwrite', overwrite_schema=True, storage_options=...) fails with Delta Table already exists at that location.

What you expected to happen:
The existing Delta table to be overwritten.

How to reproduce it:
Call the above function to write to a path with an existing Delta table.

More details:

@rspears74 rspears74 added the bug Something isn't working label Feb 20, 2024
@rspears74
Copy link
Author

Changing the path seems to have fixed this. But it seems the writer cannot handle a non-existent AWS S3 prefix. So if you have the following bucket structure:
Bucket: bucket

  • path1
  • path2
    And you try to write to s3://bucket/path1/new-table, it works.
    But if you try to write to s3://bucket/path1/new-location/new-table, it doesn't.

@rtyler rtyler added the binding/python Issues for the Python package label Mar 7, 2024
@ion-elgreco
Copy link
Collaborator

@rspears74 is this still the case with latest 0.22.3?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binding/python Issues for the Python package bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants