Skip to content

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