adelapena commented on code in PR #2110:
URL: https://github.com/apache/cassandra/pull/2110#discussion_r1099947962


##########
src/java/org/apache/cassandra/cql3/selection/Selection.java:
##########
@@ -187,7 +187,9 @@ public static Selection fromSelectors(TableMetadata table,
                                                                             
factories,
                                                                             
isJson);
 
-        return (processesSelection(selectables) || selectables.size() != 
selectedColumns.size() || hasGroupBy)
+        boolean hasMaskedColumns = 
selectedColumns.stream().anyMatch(ColumnMetadata::isMasked);

Review Comment:
   This is run only once per query, so not in the hot path. It's relatively 
common to use streams while preparing the query.



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