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

Improvements to inferring schema with null and empty values #162

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

bryanck
Copy link
Contributor

@bryanck bryanck commented Nov 21, 2023

This PR updates schema inference so that empty values are ignored and are not added as part of table create or schema evolution. Empty values include nulls, lists with no elements, lists with the first element as null, lists with the first element as an empty object, objects with no fields, and objects with all fields set to empty values.

When possible, using a message schema is strongly preferred over relying on schema inference.

@bryanck bryanck changed the title Improved handling of null and empty values when inferring schema Improved handling of inferring schema from null and empty values Nov 21, 2023
@bryanck bryanck changed the title Improved handling of inferring schema from null and empty values Improved handling of inferring schema with null and empty values Nov 21, 2023
@bryanck bryanck changed the title Improved handling of inferring schema with null and empty values Improvements to inferring schema with null and empty values Nov 22, 2023
@bryanck bryanck merged commit afb2aaf into main Nov 22, 2023
1 check passed
@bryanck bryanck deleted the schema-infer-empty-handling branch November 22, 2023 16:25
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