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

Function getAggFunctions

src/processor/map/map_aggregate.cpp:82–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82static std::vector<AggregateFunction> getAggFunctions(const expression_vector& aggregates) {
83 std::vector<AggregateFunction> aggregateFunctions;
84 for (auto& expression : aggregates) {
85 auto aggExpr = expression->constPtrCast<AggregateFunctionExpression>();
86 aggregateFunctions.push_back(aggExpr->getFunction().copy());
87 }
88 return aggregateFunctions;
89}
90
91static void writeAggResultWithNullToVector(ValueVector& vector, uint64_t pos,
92 AggregateState* aggregateState) {

Callers 2

mapAggregateMethod · 0.85
createHashAggregateMethod · 0.85

Calls 3

push_backMethod · 0.45
copyMethod · 0.45
getFunctionMethod · 0.45

Tested by

no test coverage detected