Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error querying empty json file #97

Open
mariadb-ChristianBauer opened this issue Oct 13, 2022 · 0 comments
Open

Error querying empty json file #97

mariadb-ChristianBauer opened this issue Oct 13, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@mariadb-ChristianBauer
Copy link

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

@mariadb-ChristianBauer mariadb-ChristianBauer added the bug Something isn't working label Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant