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


##########
src/java/org/apache/cassandra/cql3/Validation.java:
##########
@@ -64,4 +67,20 @@ public static void validateKey(TableMetadata metadata, 
ByteBuffer key)
             throw new InvalidRequestException(e.getMessage());
         }
     }
+
+    public static void checkConstraints(TableMetadata metadata, ByteBuffer key)
+    {
+        List<ColumnConstraint> partitionKeyConstraints = 
metadata.partitionKeyConstraints;

Review Comment:
   @bbotella I believe this might be "cached" too. 
`metadata.hasPartitionKeyConstraints()` returning a boolean



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