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

Respect optional/required in table create and schema evolution #115

Merged
merged 2 commits into from
Oct 10, 2023

Conversation

bryanck
Copy link
Contributor

@bryanck bryanck commented Oct 10, 2023

This PR updates auto table create so the required/optional flag from the record schema is applied. Also, changing a required field to optional will be applied to the Iceberg schema.

The optional flag from the record schema is ignored when it is incompatible. For example, adding a column always adds it as optional. Updating a field from optional to required is ignored.

@bryanck bryanck merged commit 0d350a2 into main Oct 10, 2023
@bryanck bryanck deleted the required-cols branch October 10, 2023 21:46
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.

2 participants