MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / getKeyExpressions

Function getKeyExpressions

src/processor/map/map_aggregate.cpp:71–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71static 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
82static std::vector<AggregateFunction> getAggFunctions(const expression_vector& aggregates) {
83 std::vector<AggregateFunction> aggregateFunctions;

Callers 1

createHashAggregateMethod · 0.85

Calls 4

emplace_backMethod · 0.80
isFlatMethod · 0.45
getGroupMethod · 0.45
getGroupPosMethod · 0.45

Tested by

no test coverage detected