ClickHouse/src/Functions/sqrt.cpp
2020-04-03 18:14:31 +03:00

16 lines
375 B
C++

#include <Functions/FunctionMathUnary.h>
#include <Functions/FunctionFactory.h>
namespace DB
{
struct SqrtName { static constexpr auto name = "sqrt"; };
using FunctionSqrt = FunctionMathUnary<UnaryFunctionVectorized<SqrtName, sqrt>>;
void registerFunctionSqrt(FunctionFactory & factory)
{
factory.registerFunction<FunctionSqrt>(FunctionFactory::CaseInsensitive);
}
}