adelapena commented on code in PR #2673:
URL: https://github.com/apache/cassandra/pull/2673#discussion_r1341315868
##########
src/java/org/apache/cassandra/cql3/statements/SelectStatement.java:
##########
@@ -284,11 +288,13 @@ public ResultMessage.Rows execute(QueryState state,
QueryOptions options, long q
ReadQuery query = getQuery(options, state.getClientState(),
selectors.getColumnFilter(),
nowInSec, userLimit, userPerPartitionLimit,
pageSize, aggregationSpec);
+ checkFalse(query.isTopK() && options.getConsistency() !=
ConsistencyLevel.ONE, TOPK_CONSISTENCY_LEVEL_ERROR);
Review Comment:
I think we can also allow `LOCAL_ONE`. IIRC that consistency level also uses
a single replica, so there shouldn't be reconciliation.
--
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]