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

bug: [Python] write_deltalake does not enforce schema #623

Closed
wjones127 opened this issue Jun 5, 2022 · 0 comments · Fixed by #624
Closed

bug: [Python] write_deltalake does not enforce schema #623

wjones127 opened this issue Jun 5, 2022 · 0 comments · Fixed by #624
Labels
binding/python Issues for the Python package bug Something isn't working good first issue Good for newcomers

Comments

@wjones127
Copy link
Collaborator

Environment

Delta-rs version: 0.5.7

Binding: Python

Environment:

  • Cloud provider:
  • OS:
  • Other:

Bug

What happened:

What you expected to happen:

How to reproduce it:

See https://github.com/MrPowers/delta-examples/blob/8d08441ea2e6986fdd4ab0d7d03cca7d64968c99/notebooks/delta-rs/intro-to-delta-rs.ipynb

More details:

We should be enforcing the schema here, when we know the table already exists and we know the schema:

if table: # already exists
if mode == "error":
raise AssertionError("DeltaTable already exists.")
elif mode == "ignore":
return

@wjones127 wjones127 added bug Something isn't working good first issue Good for newcomers binding/python Issues for the Python package labels Jun 5, 2022
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 good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant