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

Function getMoveAggResultToVectorFuncs

src/processor/map/map_aggregate.cpp:106–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106static std::vector<move_agg_result_to_vector_func> getMoveAggResultToVectorFuncs(
107 std::vector<AggregateFunction>& aggregateFunctions) {
108 std::vector<move_agg_result_to_vector_func> moveAggResultToVectorFuncs;
109 for (auto& aggregateFunction : aggregateFunctions) {
110 if (aggregateFunction.needToHandleNulls) {
111 moveAggResultToVectorFuncs.push_back(writeAggResultWithoutNullToVector);
112 } else {
113 moveAggResultToVectorFuncs.push_back(writeAggResultWithNullToVector);
114 }
115 }
116 return moveAggResultToVectorFuncs;
117}
118
119static const LogicalOperator* unwrapFlattens(const LogicalOperator* op) {
120 while (op->getOperatorType() == LogicalOperatorType::FLATTEN) {

Callers 2

mapAggregateMethod · 0.85
createHashAggregateMethod · 0.85

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected