ClickHouse/src/Functions/FunctionsRound.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
842 B
C++
Raw Normal View History

#include <Functions/FunctionFactory.h>
#include <Functions/FunctionsRound.h>
2019-12-29 01:13:17 +00:00
namespace DB
{
REGISTER_FUNCTION(Round)
{
2022-08-27 20:06:03 +00:00
factory.registerFunction<FunctionRound>("round", {}, FunctionFactory::CaseInsensitive);
factory.registerFunction<FunctionRoundBankers>("roundBankers", {}, FunctionFactory::CaseSensitive);
factory.registerFunction<FunctionFloor>("floor", {}, FunctionFactory::CaseInsensitive);
factory.registerFunction<FunctionCeil>("ceil", {}, FunctionFactory::CaseInsensitive);
factory.registerFunction<FunctionTrunc>("trunc", {}, FunctionFactory::CaseInsensitive);
factory.registerFunction<FunctionRoundDown>();
/// Compatibility aliases.
factory.registerAlias("ceiling", "ceil", FunctionFactory::CaseInsensitive);
factory.registerAlias("truncate", "trunc", FunctionFactory::CaseInsensitive);
}
}