2017-04-01 09:19:00 +00:00
|
|
|
#include <Functions/FunctionFactory.h>
|
|
|
|
#include <Functions/FunctionsRound.h>
|
2014-08-22 00:57:20 +00:00
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
void registerFunctionsRound(FunctionFactory & factory)
|
|
|
|
{
|
2017-04-01 07:20:54 +00:00
|
|
|
factory.registerFunction<FunctionRoundToExp2>();
|
|
|
|
factory.registerFunction<FunctionRoundDuration>();
|
|
|
|
factory.registerFunction<FunctionRoundAge>();
|
2017-09-16 22:11:20 +00:00
|
|
|
|
2018-02-06 19:34:53 +00:00
|
|
|
factory.registerFunction<FunctionRound>("round", FunctionFactory::CaseInsensitive);
|
|
|
|
factory.registerFunction<FunctionFloor>("floor", FunctionFactory::CaseInsensitive);
|
|
|
|
factory.registerFunction<FunctionCeil>("ceil", FunctionFactory::CaseInsensitive);
|
|
|
|
factory.registerFunction<FunctionTrunc>("trunc", FunctionFactory::CaseInsensitive);
|
2017-09-16 22:11:20 +00:00
|
|
|
|
|
|
|
/// Compatibility aliases.
|
2018-02-06 19:34:53 +00:00
|
|
|
factory.registerFunction<FunctionCeil>("ceiling", FunctionFactory::CaseInsensitive);
|
|
|
|
factory.registerFunction<FunctionTrunc>("truncate", FunctionFactory::CaseInsensitive);
|
2014-08-22 00:57:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|