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