-
Notifications
You must be signed in to change notification settings - Fork 7
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
Extra Parenthesis leads to incorrect logic #111
Comments
nelio2k
added a commit
to nelio2k/gojsonsm
that referenced
this issue
Jun 13, 2019
… allow recursive parsing of parenthesis Previous grammar led to incorrectly parsed logic With the new logic, it should output the correct AST based on correctly parsing all of the parenthesis
nelio2k
added a commit
to nelio2k/gojsonsm
that referenced
this issue
Jun 14, 2019
… allow recursive parsing of parenthesis Previous grammar led to incorrectly parsed logic With the new logic, it should output the correct AST based on correctly parsing all of the parenthesis
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For this expression:
(county = "United States" OR country = "Canada" AND type="brewery") OR (type="beer" AND DATE(updated) >= DATE("2019-01-01"))
things work correctly.
However, when extra parenthesis are added:
((county = "United States" OR country = "Canada") AND type="brewery") OR (type="beer" AND DATE(updated) >= DATE("2019-01-01"))
the logic is broken.
Need investigating on why the AST is different.
The text was updated successfully, but these errors were encountered: