| 557 | namespace { |
| 558 | |
| 559 | std::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 | |
| 571 | std::string throwAggregateFunctionSignatureNotSupported( |
| 572 | const std::string& name, |
no test coverage detected