Closed henridf closed 4 years ago
Verified in zq
commit a14daef
. The original repro steps now generate an appropriate error message rather than a crash.
$ echo '{"_path":"panic","f":"foo"}' | zq -t -j panic.json -
/dev/stdin: format detection error
tzng: line 1: strconv.ParseUint: parsing "{\"_path\"": invalid syntax
zeek: line 1: bad types/fields definition in zeek header
ndjson: line 1: field "f" (type array[int64]): expected container type, got primitive
zjson: undefined type ID: 0
zng: malformed zng record
parquet: auto-detection not supported
Thanks @henridf!
The typed ndjson reader panics upon reading a record where a field that is expected to contain an array instead contains a scalar.