ekaterinadimitrova2 commented on code in PR #3444:
URL: https://github.com/apache/cassandra/pull/3444#discussion_r1725521636


##########
pylib/cqlshlib/cql3handling.py:
##########
@@ -738,11 +738,12 @@ def working_on_keyspace(ctxt):
                     ;
 <whereClause> ::= <relation> ( "AND" <relation> )*
                 ;
-<relation> ::= [rel_lhs]=<cident> ( "[" <term> "]" )? ( "=" | "<" | ">" | "<=" 
| ">=" | "CONTAINS" ( "KEY" )? ) <term>
+<relation> ::= [rel_lhs]=<cident> ( "[" <term> "]" )? ( "=" | "<" | ">" | "<=" 
| ">=" | "CONTAINS" ( "KEY" )? | "NOT CONTAINS" ( "KEY" )? ) <term>
              | token="TOKEN" "(" [rel_tokname]=<cident>
                                  ( "," [rel_tokname]=<cident> )*
-                             ")" ("=" | "<" | ">" | "<=" | ">=") 
<tokenDefinition>
+                             ")" ("=" | "!=" | "<" | ">" | "<=" | ">=") 
<tokenDefinition>
              | [rel_lhs]=<cident> "IN" "(" <term> ( "," <term> )* ")"
+             | [rel_lhs]=<cident> "NOT IN" "(" <term> ( "," <term> )* ")"

Review Comment:
   `I don't think it exactly claims that it works, just that it is accepted by 
syntax, albeit it will produce a meaningful validation error. I'm not sure we 
want to change that, and for sure this ticket wouldn't be the place to do so.`
   The way it is it makes suggestion that IN would work after TOKEN, which is 
not the case. We do not support such syntax. I moved it up together with 
CONTAINS, the same way CONTAINS is added and now it is suggested with where 
clauses but not after TOKEN. I am testing now and I will push a branch soon so 
you can see the exact changes. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to