ClickHouse/src/Functions/sqrt.cpp
2020-09-07 21:00:37 +03:00

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);
}
}