mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-03 05:26:58 +00:00
cql3: statement_restrictions: replace contains_multi_column_restriction with _has_multi_column
In clustering_key_restrictions_need_filtering(), replace the contains_multi_column_restriction() call (which uses find_binop to search for a tuple_constructor LHS in the expression tree) with the precomputed _has_multi_column boolean that is already tracked incrementally during predicate construction.
This commit is contained in:
@@ -1554,7 +1554,7 @@ size_t statement_restrictions::clustering_columns_restrictions_size() const {
|
||||
}
|
||||
|
||||
bool statement_restrictions::clustering_key_restrictions_need_filtering() const {
|
||||
if (contains_multi_column_restriction(_clustering_columns_restrictions)) {
|
||||
if (_has_multi_column) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user