1 | #include <Functions/FunctionFactory.h> |
---|---|
2 | #include <Functions/FunctionsRound.h> |
3 | |
4 | |
5 | namespace DB |
6 | { |
7 | |
8 | void registerFunctionsRound(FunctionFactory & factory) |
9 | { |
10 | factory.registerFunction<FunctionRound>("round", FunctionFactory::CaseInsensitive); |
11 | factory.registerFunction<FunctionRoundBankers>("roundBankers", FunctionFactory::CaseInsensitive); |
12 | factory.registerFunction<FunctionFloor>("floor", FunctionFactory::CaseInsensitive); |
13 | factory.registerFunction<FunctionCeil>("ceil", FunctionFactory::CaseInsensitive); |
14 | factory.registerFunction<FunctionTrunc>("trunc", FunctionFactory::CaseInsensitive); |
15 | factory.registerFunction<FunctionRoundDown>(); |
16 | |
17 | /// Compatibility aliases. |
18 | factory.registerAlias("ceiling", "ceil", FunctionFactory::CaseInsensitive); |
19 | factory.registerAlias("truncate", "trunc", FunctionFactory::CaseInsensitive); |
20 | } |
21 | |
22 | } |
23 |