mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
16 lines
375 B
C++
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);
|
|
}
|
|
|
|
}
|