2020-11-03 12:59:27 +00:00
|
|
|
#include <Functions/FunctionFactory.h>
|
2020-11-03 15:32:04 +00:00
|
|
|
#include <Functions/FunctionMathBinaryFloat64.h>
|
2020-11-03 12:59:27 +00:00
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
namespace
|
|
|
|
{
|
2020-11-03 15:32:04 +00:00
|
|
|
struct HypotName
|
|
|
|
{
|
|
|
|
static constexpr auto name = "hypot";
|
|
|
|
};
|
|
|
|
using FunctionHypot = FunctionMathBinaryFloat64<BinaryFunctionVectorized<HypotName, hypot>>;
|
2020-11-03 12:59:27 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2022-07-04 07:01:39 +00:00
|
|
|
REGISTER_FUNCTION(Hypot)
|
2020-11-03 12:59:27 +00:00
|
|
|
{
|
2022-08-27 20:06:03 +00:00
|
|
|
factory.registerFunction<FunctionHypot>({}, FunctionFactory::CaseInsensitive);
|
2020-11-03 12:59:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|