mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-28 20:27:03 +00:00
cql3: selection: reimplement selection::is_aggregate()
We can get rid of the last use of selector_factories by reimplementing is_aggregate(). It's simple - if we have an inner loop, we're aggregating.
This commit is contained in:
@@ -247,7 +247,7 @@ public:
|
||||
}
|
||||
|
||||
virtual bool is_aggregate() const override {
|
||||
return _factories->does_aggregation();
|
||||
return !_inner_loop.empty();
|
||||
}
|
||||
|
||||
virtual bool is_count() const override {
|
||||
@@ -373,7 +373,7 @@ protected:
|
||||
}
|
||||
|
||||
virtual bool is_aggregate() const override {
|
||||
return _factories->does_aggregation();
|
||||
return !_sel._inner_loop.empty();
|
||||
}
|
||||
|
||||
virtual std::vector<managed_bytes_opt> transform_input_row(result_set_builder& rs) override {
|
||||
|
||||
Reference in New Issue
Block a user