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

Can't use parentheses as expected in filter expressions #15754

Closed
mazameli opened this issue Apr 22, 2021 · 1 comment
Closed

Can't use parentheses as expected in filter expressions #15754

mazameli opened this issue Apr 22, 2021 · 1 comment
Assignees
Labels
Priority:P2 Average run of the mill bug Querying/Notebook Items specific to the Custom/Notebook query builder .Reproduced Issues reproduced in test (usually Cypress) Type:Bug Product defects
Milestone

Comments

@mazameli
Copy link
Contributor

mazameli commented Apr 22, 2021

This was in both master and in the 0.39.0.1 jar.

I was trying to create a simple (if goofy) custom filter expression in the notebook which used parentheses to clarify the order in which I wanted the different logical bits to be evaluated. But I hit an error message: Expected closing parenthesis but found 'OR'

image

Here's the expression: ([ID] > 2 OR [Subtotal] = 100) and [Tax] < 4

My assumption is that parentheses are pretty vital for cases like this, and I validated with @ariya that this is a valid expression that MB should accept.

@mazameli mazameli added Type:Bug Product defects Priority:P2 Average run of the mill bug Querying/Notebook Items specific to the Custom/Notebook query builder labels Apr 22, 2021
@ariya ariya self-assigned this Apr 22, 2021
nemanjaglumac added a commit that referenced this issue Apr 22, 2021
@nemanjaglumac nemanjaglumac added the .Reproduced Issues reproduced in test (usually Cypress) label Apr 22, 2021
@ariya
Copy link
Contributor

ariya commented Apr 27, 2021

This is fixed with PR #15802.

This was referenced Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:P2 Average run of the mill bug Querying/Notebook Items specific to the Custom/Notebook query builder .Reproduced Issues reproduced in test (usually Cypress) Type:Bug Product defects
Projects
None yet
Development

No branches or pull requests

4 participants