| 1640 | |
| 1641 | namespace { |
| 1642 | std::string throwWindowFunctionDoesntExist(const std::string& name) { |
| 1643 | std::stringstream error; |
| 1644 | error << "Window function doesn't exist: " << name << "."; |
| 1645 | if (exec::windowFunctions().empty()) { |
| 1646 | error << " Registry of window functions is empty. " |
| 1647 | "Make sure to register some window functions."; |
| 1648 | } |
| 1649 | BOLT_USER_FAIL(error.str()); |
| 1650 | } |
| 1651 | |
| 1652 | std::string throwWindowFunctionSignatureNotSupported( |
| 1653 | const std::string& name, |
no test coverage detected