mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 02:41:59 +00:00
20 lines
365 B
C++
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);
|
|
}
|
|
|
|
}
|