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

Method addIntermediateResults

bolt/python/Aggregate.cpp:249–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249void PythonAggregate::addIntermediateResults(
250 char** groups,
251 const SelectivityVector& rows,
252 const std::vector<VectorPtr>& args,
253 bool mayPushdown) {
254 for (const auto& intermediate : args) {
255 pybind11::object** accumulators = asIntermediatePtrTypes(*intermediate);
256 rows.applyToSelected([&](vector_size_t i) {
257 auto& lhs = *value<std::unique_ptr<pybind11::object>>(groups[i]);
258 accumulate(*lhs, *accumulators[i]);
259 });
260 }
261}
262
263void PythonAggregate::extractValues(
264 char** groups,

Callers

nothing calls this directly

Calls 3

asIntermediatePtrTypesFunction · 0.85
accumulateFunction · 0.85
applyToSelectedMethod · 0.80

Tested by

no test coverage detected