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
|
|
|
}
|
|
|
|
|
2022-07-04 07:01:39 +00:00
|
|
|
REGISTER_FUNCTION(Pow)
|
2018-12-03 03:17:06 +00:00
|
|
|
{
|
2022-08-27 20:06:03 +00:00
|
|
|
factory.registerFunction<FunctionPow>({}, FunctionFactory::CaseInsensitive);
|
2018-12-03 03:17:06 +00:00
|
|
|
factory.registerAlias("power", "pow", FunctionFactory::CaseInsensitive);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|