| 69 | } |
| 70 | |
| 71 | static expression_vector getKeyExpressions(const expression_vector& expressions, |
| 72 | const Schema& schema, bool isFlat) { |
| 73 | expression_vector result; |
| 74 | for (auto& expression : expressions) { |
| 75 | if (schema.getGroup(schema.getGroupPos(*expression))->isFlat() == isFlat) { |
| 76 | result.emplace_back(expression); |
| 77 | } |
| 78 | } |
| 79 | return result; |
| 80 | } |
| 81 | |
| 82 | static std::vector<AggregateFunction> getAggFunctions(const expression_vector& aggregates) { |
| 83 | std::vector<AggregateFunction> aggregateFunctions; |
no test coverage detected