driftx commented on code in PR #2399:
URL: https://github.com/apache/cassandra/pull/2399#discussion_r1223744839
##########
src/java/org/apache/cassandra/cql3/statements/schema/CreateTableStatement.java:
##########
@@ -218,6 +218,13 @@ public TableMetadata.Builder builder(Types types)
if (clusteringOrder.size() > clusteringColumns.size())
throw ire("Only clustering columns can be defined in CLUSTERING
ORDER directive");
+ for (ColumnIdentifier orederId: clusteringOrder.keySet())
+ {
+ if (!clusteringColumns.contains(orederId)){
Review Comment:
+1, good catch
--
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]