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

Method addSingleGroupRawInput

bolt/python/Aggregate.cpp:172–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172void PythonAggregate::addSingleGroupRawInput(
173 char* group,
174 const SelectivityVector& rows,
175 const std::vector<VectorPtr>& args,
176 [[maybe_unused]] bool mayPushdown) {
177 if (!rows.hasSelections()) {
178 return;
179 }
180
181 pybind11::object rhs = [&]() {
182 pybind11::list columns;
183 for (auto& vec : args) {
184 vec->loadedVector();
185 columns.append(pybind11::cast(vec));
186 }
187 return aggregate(aggregatorClass_, std::move(columns));
188 }();
189
190 auto& lhs = *value<std::unique_ptr<pybind11::object>>(group);
191 accumulate(*lhs, rhs);
192}
193
194void PythonAggregate::addRawInput(
195 char** groups,

Callers

nothing calls this directly

Calls 6

castFunction · 0.85
aggregateFunction · 0.85
accumulateFunction · 0.85
hasSelectionsMethod · 0.80
loadedVectorMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected