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:
Avi Kivity
2023-06-30 00:52:52 +03:00
parent 91cdaa72bd
commit 7bd317ace4

View File

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