belliottsmith commented on code in PR #4879:
URL: https://github.com/apache/cassandra/pull/4879#discussion_r3518851397


##########
src/java/org/apache/cassandra/cql3/transactions/ConditionStatement.java:
##########
@@ -100,8 +101,19 @@ public ConditionStatement prepare(String keyspace, 
VariableSpecifications bindVa
             RowDataReference reference;
             Term value;
             boolean reversed = false;
-            
-            if (lhs instanceof RowDataReference.Raw)
+
+            if (lhs instanceof RowDataReference.Raw && rhs instanceof 
RowDataReference.Raw)
+            {
+                if (((RowDataReference.Raw) lhs).column() == null)

Review Comment:
   perhaps assign to new variables that have been cast to the correct type, to 
simplify the remaining statements?



-- 
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