diff --git a/cql3/statements/select_statement.cc b/cql3/statements/select_statement.cc index 5feedcdfd2..3f13cb480b 100644 --- a/cql3/statements/select_statement.cc +++ b/cql3/statements/select_statement.cc @@ -1719,7 +1719,7 @@ select_statement::prepare_restrictions(data_dictionary::database db, bool allow_filtering) { try { - return ::make_shared(db, schema, statement_type::SELECT, std::move(_where_clause), ctx, + return ::make_shared(db, schema, statement_type::SELECT, _where_clause, ctx, selection->contains_only_static_columns(), for_view, allow_filtering); } catch (const exceptions::unrecognized_entity_exception& e) { if (contains_alias(e.entity)) {