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

21 lines
452 B
C++

#include <Functions/FunctionMathBinaryFloat64.h>
#include <Functions/FunctionFactory.h>
namespace DB
{
namespace
{
struct PowName { static constexpr auto name = "pow"; };
using FunctionPow = FunctionMathBinaryFloat64<BinaryFunctionVectorized<PowName, pow>>;
}
REGISTER_FUNCTION(Pow)
{
factory.registerFunction<FunctionPow>({}, FunctionFactory::CaseInsensitive);
factory.registerAlias("power", "pow", FunctionFactory::CaseInsensitive);
}
}