ClickHouse/src/Functions/pow.cpp

21 lines
477 B
C++
Raw Normal View History

#include <Functions/FunctionMathBinaryFloat64.h>
#include <Functions/FunctionFactory.h>
namespace DB
{
2020-09-07 18:00:37 +00:00
namespace
{
struct PowName { static constexpr auto name = "pow"; };
using FunctionPow = FunctionMathBinaryFloat64<BinaryFunctionVectorized<PowName, pow>>;
2020-09-07 18:00:37 +00:00
}
void registerFunctionPow(FunctionFactory & factory)
{
factory.registerFunction<FunctionPow>(FunctionFactory::CaseInsensitive);
factory.registerAlias("power", "pow", FunctionFactory::CaseInsensitive);
}
}