maedhroz commented on code in PR #2916:
URL: https://github.com/apache/cassandra/pull/2916#discussion_r1402666179


##########
src/java/org/apache/cassandra/index/sai/plan/QueryController.java:
##########
@@ -248,10 +242,11 @@ public void finish()
     public KeyRangeIterator getTopKRows(RowFilter.Expression expression)
     {
         assert expression.operator() == Operator.ANN;
-        var planExpression = new Expression(getContext(expression))
-                             .add(Operator.ANN, 
expression.getIndexValue().duplicate());
+        StorageAttachedIndex index = indexFor(expression);
+        assert index != null;

Review Comment:
   nit: worth a quick message?



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