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

22 lines
412 B
C++

#include <Functions/FunctionFactory.h>
#include <Functions/FunctionMathBinaryFloat64.h>
namespace DB
{
namespace
{
struct HypotName
{
static constexpr auto name = "hypot";
};
using FunctionHypot = FunctionMathBinaryFloat64<BinaryFunctionVectorized<HypotName, hypot>>;
}
REGISTER_FUNCTION(Hypot)
{
factory.registerFunction<FunctionHypot>({}, FunctionFactory::CaseInsensitive);
}
}