This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
json::coerce_data_type fails if there are no lines to be read from reader #911
Labels
bug
Something isn't working
good first issue
Good for newcomers
no-changelog
Issues whose changes are covered by a PR and thus should not be shown in the changelog
In
ndjson::read::file::infer
, if the reader yields no rows then the method will panic because coerce_data_type expects at least one element in the array.Solution : return an error, or
Ok(DataType::Null)
if there are no recordsThe text was updated successfully, but these errors were encountered: