maedhroz commented on code in PR #2961:
URL: https://github.com/apache/cassandra/pull/2961#discussion_r1434434934
##########
src/java/org/apache/cassandra/cql3/statements/SelectStatement.java:
##########
@@ -404,7 +404,12 @@ public ReadQuery getQuery(QueryOptions options,
boolean isPartitionRangeQuery = restrictions.isKeyRange() ||
restrictions.usesSecondaryIndexing();
if (isPartitionRangeQuery)
+ {
+ if (restrictions.usesSecondaryIndexing() &&
!SchemaConstants.isLocalSystemKeyspace(table.keyspace))
+
Guardrails.nonPartitionRestrictedIndexQueryEnabled.ensureEnabled(state);
Review Comment:
Put another way, `restrictions.usesSecondaryIndexing()` can be `true` even
when the partition key is restricted.
--
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]