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


##########
test/distributed/org/apache/cassandra/distributed/test/CASAddTest.java:
##########
@@ -62,6 +65,48 @@ public void testAddition() throws Throwable
         }
     }
 
+    @Test
+    public void testAdditionNotExists() throws Throwable
+    {
+        try (Cluster cluster = init(Cluster.create(3)))
+        {
+            cluster.schemaChange("CREATE TABLE " + KEYSPACE + ".tbl (pk int 
PRIMARY KEY, a int, b text, undefined blob)");
+
+            // n = n + value where n = null
+            cluster.coordinator(1).execute("UPDATE " + KEYSPACE + ".tbl SET a 
= a + 1, b = b + 'fail' WHERE pk = 1 IF undefined = NULL", 
ConsistencyLevel.QUORUM);

Review Comment:
   from a code point of view partition/row not exist looks the same as column 
not exist... so that should be fine.



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