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


##########
src/java/org/apache/cassandra/cql3/Validation.java:
##########
@@ -64,4 +70,28 @@ public static void validateKey(TableMetadata metadata, 
ByteBuffer key)
             throw new InvalidRequestException(e.getMessage());
         }
     }
+
+    public static void validateKeyAndCheckConstraints(TableMetadata metadata, 
ByteBuffer key)
+    {
+        validateKey(metadata, key);
+
+        List<ColumnMetadata> partitionKeys = metadata.partitionKeyColumns();
+        List<ColumnConstraint> partitionKeyConstraints = new 
ArrayList<>(partitionKeys.size());

Review Comment:
   Good catch. Moving it in there.



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