ClickHouse/src/Functions/sqrt.cpp
2022-08-27 22:06:57 +02:00

20 lines
365 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>>;
}
REGISTER_FUNCTION(Sqrt)
{
factory.registerFunction<FunctionSqrt>({}, FunctionFactory::CaseInsensitive);
}
}