MCPcopy Create free account
hub / github.com/bytedance/bolt / addSingleGroupIntermediateResults

Method addSingleGroupIntermediateResults

bolt/python/Aggregate.cpp:235–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235void PythonAggregate::addSingleGroupIntermediateResults(
236 char* group,
237 const SelectivityVector& rows,
238 const std::vector<VectorPtr>& args,
239 [[maybe_unused]] bool mayPushdown) {
240 auto& lhs = *value<std::unique_ptr<pybind11::object>>(group);
241
242 for (const auto& intermediate : args) {
243 pybind11::object** accumulators = asIntermediatePtrTypes(*intermediate);
244 rows.applyToSelected(
245 [&](vector_size_t i) { accumulate(*lhs, *accumulators[i]); });
246 }
247}
248
249void PythonAggregate::addIntermediateResults(
250 char** groups,

Callers

nothing calls this directly

Calls 3

asIntermediatePtrTypesFunction · 0.85
accumulateFunction · 0.85
applyToSelectedMethod · 0.80

Tested by

no test coverage detected