mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 04:52:10 +00:00
20 lines
390 B
C++
20 lines
390 B
C++
#include <Functions/FunctionMathUnary.h>
|
|
#include <Functions/FunctionFactory.h>
|
|
|
|
namespace DB
|
|
{
|
|
namespace
|
|
{
|
|
|
|
struct SqrtName { static constexpr auto name = "sqrt"; };
|
|
using FunctionSqrt = FunctionMathUnary<UnaryFunctionVectorized<SqrtName, sqrt>>;
|
|
|
|
}
|
|
|
|
void registerFunctionSqrt(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionSqrt>(FunctionFactory::CaseInsensitive);
|
|
}
|
|
|
|
}
|