Merge pull request #5750 from hczhcz/patch-7

Refactor: Improve function registering
This commit is contained in:
alexey-milovidov 2019-06-28 14:50:38 +03:00 committed by GitHub
commit b9cbd36487
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 14 deletions

View File

@ -28,6 +28,9 @@ void registerAggregateFunctionTopK(AggregateFunctionFactory &);
void registerAggregateFunctionsBitwise(AggregateFunctionFactory &);
void registerAggregateFunctionsBitmap(AggregateFunctionFactory &);
void registerAggregateFunctionsMaxIntersections(AggregateFunctionFactory &);
void registerAggregateFunctionHistogram(AggregateFunctionFactory &);
void registerAggregateFunctionRetention(AggregateFunctionFactory &);
void registerAggregateFunctionTimeSeriesGroupSum(AggregateFunctionFactory &);
void registerAggregateFunctionMLMethod(AggregateFunctionFactory &);
void registerAggregateFunctionEntropy(AggregateFunctionFactory &);
void registerAggregateFunctionSimpleLinearRegression(AggregateFunctionFactory &);
@ -41,9 +44,6 @@ void registerAggregateFunctionCombinatorMerge(AggregateFunctionCombinatorFactory
void registerAggregateFunctionCombinatorNull(AggregateFunctionCombinatorFactory &);
void registerAggregateFunctionCombinatorResample(AggregateFunctionCombinatorFactory &);
void registerAggregateFunctionHistogram(AggregateFunctionFactory & factory);
void registerAggregateFunctionRetention(AggregateFunctionFactory & factory);
void registerAggregateFunctionTimeSeriesGroupSum(AggregateFunctionFactory & factory);
void registerAggregateFunctions()
{
{

View File

@ -1,6 +1,5 @@
#include <Functions/FunctionFactory.h>
#include <Functions/registerFunctions.h>
#include "config_core.h"
namespace DB
{
@ -40,11 +39,6 @@ void registerFunctionsGeo(FunctionFactory &);
void registerFunctionsNull(FunctionFactory &);
void registerFunctionsFindCluster(FunctionFactory &);
void registerFunctionsJSON(FunctionFactory &);
void registerFunctionTransform(FunctionFactory &);
#if USE_ICU
void registerFunctionConvertCharset(FunctionFactory &);
#endif
void registerFunctions()
{
@ -83,11 +77,6 @@ void registerFunctions()
registerFunctionsNull(factory);
registerFunctionsFindCluster(factory);
registerFunctionsJSON(factory);
registerFunctionTransform(factory);
#if USE_ICU
registerFunctionConvertCharset(factory);
#endif
}
}

View File

@ -1,3 +1,5 @@
#include "config_core.h"
namespace DB
{
@ -45,6 +47,11 @@ void registerFunctionJoinGet(FunctionFactory &);
void registerFunctionFilesystem(FunctionFactory &);
void registerFunctionEvalMLMethod(FunctionFactory &);
void registerFunctionBasename(FunctionFactory &);
void registerFunctionTransform(FunctionFactory &);
#if USE_ICU
void registerFunctionConvertCharset(FunctionFactory &);
#endif
void registerFunctionsMiscellaneous(FunctionFactory & factory)
{
@ -90,6 +97,11 @@ void registerFunctionsMiscellaneous(FunctionFactory & factory)
registerFunctionFilesystem(factory);
registerFunctionEvalMLMethod(factory);
registerFunctionBasename(factory);
registerFunctionTransform(factory);
#if USE_ICU
registerFunctionConvertCharset(factory);
#endif
}
}