-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
enhancementAny new improvement worthy of a entry in the changelogAny new improvement worthy of a entry in the changelog
Description
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
The JSON reader already supports reading JSON files with top-level arrays via the ReaderBuilder::new_with_field method that was introduced by #4905.
However, there doesn't seem to be corresponding functionality in the schema inference logic, which still assumes that the top-level JSON values are objects whose fields map to the fields in the schema being inferred.
Describe the solution you'd like
Either create new complementary schema inference functions, or add an option to the existing functions, that allow the user to infer the schema of a JSON file which is intended for use with ReaderBuilder::new_with_field.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementAny new improvement worthy of a entry in the changelogAny new improvement worthy of a entry in the changelog