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

The specified column query is invalid #2011

Closed
yangjinming1062 opened this issue Sep 24, 2022 · 4 comments
Closed

The specified column query is invalid #2011

yangjinming1062 opened this issue Sep 24, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@yangjinming1062
Copy link

Describe the bug
image.
The fuzzy query lists some existing data, and then queries according to the id result but cannot find the content.

Expected behavior
How to find specific document.

Configuration:
Please provide:

  1. quickwit --version: 0.3.1
  2. The index_config.yaml
    image
@yangjinming1062 yangjinming1062 added the bug Something isn't working label Sep 24, 2022
@fulmicoton
Copy link
Contributor

I am not sure how to fix this but this is a UI bug.

The first screen is actually the wrong one.
The JSON API is returning a different value, but the browser, as it parses the JSON, uses a 64 bit float point, and cannot represent this number

One easy way to confirm is to run this in a browser console.

s = "{\"id\": 106698291236395745351}";
'{"id": 106698291236395745351}'
v = JSON.parse(s)
{id: 106698291236395750000}

Two workarounds in the meanwhile:

  • Redo you test without using the UI. You can hit the API with query=*, get the real id, and run the search query with the correct id value.
  • Index your id as a raw text.

You can also wait for us to come up with a fix :)

@yangjinming1062
Copy link
Author

I am not sure how to fix this but this is a UI bug.

The first screen is actually the wrong one. The JSON API is returning a different value, but the browser, as it parses the JSON, uses a 64 bit float point, and cannot represent this number

One easy way to confirm is to run this in a browser console.

s = "{\"id\": 106698291236395745351}";
'{"id": 106698291236395745351}'
v = JSON.parse(s)
{id: 106698291236395750000}

Two workarounds in the meanwhile:

  • Redo you test without using the UI. You can hit the API with query=*, get the real id, and run the search query with the correct id value.
  • Index your id as a raw text.

You can also wait for us to come up with a fix :)

Thanks, I confim that is a BUG of UI

@fulmicoton
Copy link
Contributor

I'll create a separate issue so we can track it.

@fulmicoton
Copy link
Contributor

@yangjinming1062 thank you for all of the bug reports! It is really helpful for us.

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

2 participants