smiklosovic commented on code in PR #3562:
URL: https://github.com/apache/cassandra/pull/3562#discussion_r1916825525


##########
src/java/org/apache/cassandra/cql3/statements/UpdateStatement.java:
##########
@@ -93,7 +100,9 @@ public void addUpdateForKey(PartitionUpdate.Builder 
updateBuilder, Clustering<?>
             for (int i = 0, isize = updates.size(); i < isize; i++)
                 updates.get(i).execute(updateBuilder.partitionKey(), params);
 
-            updateBuilder.add(params.buildRow());
+            Row row = params.buildRow();
+            evaluateConstraintsForRow(row);

Review Comment:
   @bbotella `metadata` can hold if there are some columns on constraints, when 
not, we can just skip call this method so we wont iterate over anything. 



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