-
Notifications
You must be signed in to change notification settings - Fork 4
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
Warning for query with wrong order (e.g. -q "0.01>E_CC_MP2_2B"
)
#54
Comments
@gabor1 Do you want to support when you have "{value}{operator}{key}" or you want to catch the error? We would have a more complex parser for recognising what "0.01>E_CC_MP2_2B" means at all? |
well binary operators like that work both ways in any programming language, so it would be strange not to support that, no? |
No, it is more like a filter where you have syntax like: {labels} {operators} {values}. Like in a dictionary you have a specific structure (keys and values) and you cannot switch the order. I mean in special cases you can but that will be a completly different object. In the case of the programing language, it is easier because you can evaluate the whole expression. Here have to figure out which one is the label: "0.01" or "E_CC_MP2_2B":
vs
|
fine. we'll call it an |
To implement this issue there could cause a big performance decrease because we have to handle all labels in the query as a regex. I would estimate feature needs more than 2 weeks to implement it properly. |
This was discussed, and we decided that once strings values are indicated with quotes, it should be no problem to have either order around a binary operator. |
The problem is with the ordering of the relation in the above query;
-q "E_CC_MP2_2B<0.01"
would work.Current error message:
The text was updated successfully, but these errors were encountered: