#include #include namespace DB { void registerFunctionsRound(FunctionFactory & factory) { factory.registerFunction(); factory.registerFunction(); factory.registerFunction(); factory.registerFunction(); factory.registerFunction("round", FunctionFactory::CaseInsensitive); factory.registerFunction("floor", FunctionFactory::CaseInsensitive); factory.registerFunction("ceil", FunctionFactory::CaseInsensitive); factory.registerFunction("trunc", FunctionFactory::CaseInsensitive); /// Compatibility aliases. factory.registerAlias("ceiling", "ceil", FunctionFactory::CaseInsensitive); factory.registerAlias("truncate", "trunc", FunctionFactory::CaseInsensitive); } }