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

fix(arrow-json)!: include null fields in schema inference with a type of Null #4894

Merged
merged 2 commits into from
Oct 5, 2023

Conversation

kskalski
Copy link
Contributor

@kskalski kskalski commented Oct 5, 2023

Which issue does this PR close?

Closes #4814.

Rationale for this change

Preserves fields with unknown type in inferred schema (see more discussion in the issue)

What changes are included in this PR?

  • generally treat null as InferredType::Any such that its inference is delayed
  • refactoring to use a small func to build DataType::List, which shortens unit-tests a lot

Are there any user-facing changes?

Schema inference might produce a field, which was previously skipped

@github-actions github-actions bot added the arrow Changes to the arrow crate label Oct 5, 2023
Copy link
Contributor

@tustvold tustvold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-change Changes to the arrow API arrow Changes to the arrow crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Null fields are omitted by infer_json_schema_from_seekable
2 participants