dcapwell commented on code in PR #4153:
URL: https://github.com/apache/cassandra/pull/4153#discussion_r2085650286


##########
src/java/org/apache/cassandra/cql3/transactions/ConditionStatement.java:
##########
@@ -100,12 +100,18 @@ public ConditionStatement prepare(String keyspace, 
VariableSpecifications bindVa
             
             if (lhs instanceof RowDataReference.Raw)
             {
+                if (((RowDataReference.Raw) lhs).column() == null) {
+                    throw new IllegalStateException(String.format("Row 
reference (%s) can only be used with IS NULL/IS NOT NULL conditions", 
lhs.getText()));

Review Comment:
   this check isn't correct
   
   `row IS NULL` and `row IS NOT NULL` both enter this block and this check 
will now reject that.  We need to support checking row nullability.



-- 
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: pr-unsubscr...@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org
For additional commands, e-mail: pr-h...@cassandra.apache.org

Reply via email to