2017-04-21 17:47:27 +00:00
|
|
|
#include <Functions/FunctionFactory.h>
|
2019-12-29 01:13:17 +00:00
|
|
|
|
2017-04-21 17:47:27 +00:00
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
2018-09-08 22:16:30 +00:00
|
|
|
|
2019-12-29 01:13:17 +00:00
|
|
|
void registerFunctionsArithmetic(FunctionFactory &);
|
|
|
|
void registerFunctionsArray(FunctionFactory &);
|
|
|
|
void registerFunctionsTuple(FunctionFactory &);
|
|
|
|
void registerFunctionsBitmap(FunctionFactory &);
|
|
|
|
void registerFunctionsCoding(FunctionFactory &);
|
|
|
|
void registerFunctionsComparison(FunctionFactory &);
|
|
|
|
void registerFunctionsConditional(FunctionFactory &);
|
|
|
|
void registerFunctionsConversion(FunctionFactory &);
|
|
|
|
void registerFunctionsDateTime(FunctionFactory &);
|
|
|
|
void registerFunctionsEmbeddedDictionaries(FunctionFactory &);
|
|
|
|
void registerFunctionsExternalDictionaries(FunctionFactory &);
|
|
|
|
void registerFunctionsExternalModels(FunctionFactory &);
|
|
|
|
void registerFunctionsFormatting(FunctionFactory &);
|
|
|
|
void registerFunctionsHashing(FunctionFactory &);
|
|
|
|
void registerFunctionsHigherOrder(FunctionFactory &);
|
|
|
|
void registerFunctionsLogical(FunctionFactory &);
|
|
|
|
void registerFunctionsMiscellaneous(FunctionFactory &);
|
|
|
|
void registerFunctionsRandom(FunctionFactory &);
|
|
|
|
void registerFunctionsReinterpret(FunctionFactory &);
|
|
|
|
void registerFunctionsRound(FunctionFactory &);
|
|
|
|
void registerFunctionsString(FunctionFactory &);
|
|
|
|
void registerFunctionsStringArray(FunctionFactory &);
|
|
|
|
void registerFunctionsStringSearch(FunctionFactory &);
|
|
|
|
void registerFunctionsStringRegex(FunctionFactory &);
|
|
|
|
void registerFunctionsStringSimilarity(FunctionFactory &);
|
|
|
|
void registerFunctionsURL(FunctionFactory &);
|
|
|
|
void registerFunctionsVisitParam(FunctionFactory &);
|
|
|
|
void registerFunctionsMath(FunctionFactory &);
|
|
|
|
void registerFunctionsGeo(FunctionFactory &);
|
|
|
|
void registerFunctionsIntrospection(FunctionFactory &);
|
|
|
|
void registerFunctionsNull(FunctionFactory &);
|
|
|
|
void registerFunctionsJSON(FunctionFactory &);
|
|
|
|
void registerFunctionsConsistentHashing(FunctionFactory & factory);
|
|
|
|
|
|
|
|
|
2017-04-21 17:47:27 +00:00
|
|
|
void registerFunctions()
|
|
|
|
{
|
|
|
|
auto & factory = FunctionFactory::instance();
|
|
|
|
|
|
|
|
registerFunctionsArithmetic(factory);
|
|
|
|
registerFunctionsArray(factory);
|
2017-12-25 19:10:25 +00:00
|
|
|
registerFunctionsTuple(factory);
|
2020-04-16 12:31:57 +00:00
|
|
|
#if !defined(ARCADIA_BUILD)
|
2019-01-31 13:26:11 +00:00
|
|
|
registerFunctionsBitmap(factory);
|
2020-04-16 12:31:57 +00:00
|
|
|
#endif
|
2017-04-21 17:47:27 +00:00
|
|
|
registerFunctionsCoding(factory);
|
|
|
|
registerFunctionsComparison(factory);
|
|
|
|
registerFunctionsConditional(factory);
|
|
|
|
registerFunctionsConversion(factory);
|
|
|
|
registerFunctionsDateTime(factory);
|
|
|
|
registerFunctionsEmbeddedDictionaries(factory);
|
|
|
|
registerFunctionsExternalDictionaries(factory);
|
2017-10-17 12:02:30 +00:00
|
|
|
registerFunctionsExternalModels(factory);
|
2017-04-21 17:47:27 +00:00
|
|
|
registerFunctionsFormatting(factory);
|
|
|
|
registerFunctionsHashing(factory);
|
|
|
|
registerFunctionsHigherOrder(factory);
|
|
|
|
registerFunctionsLogical(factory);
|
|
|
|
registerFunctionsMiscellaneous(factory);
|
|
|
|
registerFunctionsRandom(factory);
|
|
|
|
registerFunctionsReinterpret(factory);
|
|
|
|
registerFunctionsRound(factory);
|
|
|
|
registerFunctionsString(factory);
|
|
|
|
registerFunctionsStringArray(factory);
|
|
|
|
registerFunctionsStringSearch(factory);
|
2019-03-29 01:02:05 +00:00
|
|
|
registerFunctionsStringRegex(factory);
|
2019-02-21 05:08:37 +00:00
|
|
|
registerFunctionsStringSimilarity(factory);
|
2017-04-21 17:47:27 +00:00
|
|
|
registerFunctionsURL(factory);
|
|
|
|
registerFunctionsVisitParam(factory);
|
|
|
|
registerFunctionsMath(factory);
|
|
|
|
registerFunctionsGeo(factory);
|
|
|
|
registerFunctionsNull(factory);
|
2019-03-14 02:55:04 +00:00
|
|
|
registerFunctionsJSON(factory);
|
2019-07-29 22:26:44 +00:00
|
|
|
registerFunctionsIntrospection(factory);
|
2019-08-04 14:01:04 +00:00
|
|
|
registerFunctionsConsistentHashing(factory);
|
2017-04-21 17:47:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|