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

feat(python): validate schema in write_deltalake #624

Merged
merged 3 commits into from
Jun 6, 2022

Conversation

wjones127
Copy link
Collaborator

Description

Changes:

  • Fixes write_deltalake() to enforce the existing schema of the table
  • Makes most arguments of write_deltalake() keyword-only. This is nice because it means re-ordering them later will no longer be a breaking change.
  • Added overwrite_schema argument, which allows providing a new schema when mode="overwrite". This is meant to parallel the PySpark option option(“overwriteSchema”, “true”).

Related Issue(s)

Documentation

@wjones127 wjones127 marked this pull request as ready for review June 5, 2022 22:25
@wjones127 wjones127 changed the title Validate schema feat(python): validate schema in write_deltalake Jun 5, 2022
@wjones127 wjones127 merged commit bbf4cc2 into delta-io:main Jun 6, 2022
@wjones127 wjones127 deleted the validate-schema branch June 6, 2022 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: [Python] write_deltalake does not enforce schema
2 participants