未验证 提交 3f46f35a 编写于 作者: A alexey-milovidov 提交者: GitHub

Merge pull request #10823 from ClickHouse/vitaly-stoyan-patch

Added a patch from Vitaly Stoyan for internal Arcadia repository
......@@ -56,6 +56,15 @@ FunctionOverloadResolverImplPtr FunctionFactory::getImpl(
return res;
}
std::vector<std::string> FunctionFactory::getAllNames() const
{
std::vector<std::string> res;
res.reserve(functions.size());
for (const auto & func : functions)
res.emplace_back(func.first);
return res;
}
FunctionOverloadResolverPtr FunctionFactory::get(
const std::string & name,
const Context & context) const
......
......@@ -39,6 +39,9 @@ public:
registerFunction(name, &Function::create, case_sensitiveness);
}
/// This function is used by YQL - internal Yandex product that depends on ClickHouse by source code.
std::vector<std::string> getAllNames() const;
/// Throws an exception if not found.
FunctionOverloadResolverPtr get(const std::string & name, const Context & context) const;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册