You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug and expected behavior
Querying an emtpy JSON file results in an (unexpected) error. I was expecting an empty result set, but no error.
Reproduction steps
Input file empty.json:
[ ]
Running query:
$ dsq empty.json "select * from {}"
Input is not an array of objects: empty.json.
The same happens with an empty (no lines) input file empty.jsonl.
Versions
OS: Linux 5.10.0-18-amd64 SMP Debian 5.10.140-1 (2022-09-02) x86_64 GNU/Linux
Shell: bash
dsq version: latest (should be 0.22.0)
Additional context, screenshots
The text was updated successfully, but these errors were encountered:
Describe the bug and expected behavior
Querying an emtpy JSON file results in an (unexpected) error. I was expecting an empty result set, but no error.
Reproduction steps
Input file
empty.json
:Running query:
The same happens with an empty (no lines) input file
empty.jsonl
.Versions
Additional context, screenshots
The text was updated successfully, but these errors were encountered: