quickwit-datasource icon indicating copy to clipboard operation
quickwit-datasource copied to clipboard

Valid query considered invalid by the editor

Open fmassot opened this issue 1 year ago • 3 comments

image

fmassot avatar Feb 19 '24 13:02 fmassot

This problem comes from the 3rd party parser we use to power the linter on the frontend. Its grammar doesn't support / in field names.

It does not impede the ability to execute the query, query runs are separated from linting.

Long term problem is that this dependency is unmaintained and relies on an unmaintained parser generator itself. We should probably maintain our own parser if there's no better option out there.

ddelemeny avatar Feb 19 '24 15:02 ddelemeny

I don't know if that's actually a good idea, but tantivy query parser is pretty self contained, and shouldn't be too hard to integrate as a wasm module in a js app

trinity-1686a avatar Mar 07 '24 15:03 trinity-1686a

I have the same issue here with the 'IN' https://quickwit.io/docs/reference/query-language#term-set-fieldin-a-b-c image

quanghungb avatar Jun 20 '24 13:06 quanghungb