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

Function throwAggregateFunctionDoesntExist

bolt/exec/tests/utils/PlanBuilder.cpp:559–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

557namespace {
558
559std::string throwAggregateFunctionDoesntExist(const std::string& name) {
560 std::stringstream error;
561 error << "Aggregate function doesn't exist: " << name << ".";
562 exec::aggregateFunctions().withRLock([&](const auto& functionsMap) {
563 if (functionsMap.empty()) {
564 error << " Registry of aggregate functions is empty. "
565 "Make sure to register some aggregate functions.";
566 }
567 });
568 BOLT_USER_FAIL(error.str());
569}
570
571std::string throwAggregateFunctionSignatureNotSupported(
572 const std::string& name,

Callers 1

resolveAggregateTypeFunction · 0.85

Calls 2

strMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected