mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
16 lines
542 B
C++
16 lines
542 B
C++
#include <AggregateFunctions/AggregateFunctionFactory.h>
|
|
#include <AggregateFunctions/AggregateFunctionStatisticsSimple.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
template <typename T1, typename T2> using AggregateFunctionCorr = AggregateFunctionVarianceSimple<StatFuncTwoArg<T1, T2, CorrMoments>>;
|
|
|
|
void registerAggregateFunctionsStatisticsCorr(AggregateFunctionFactory & factory)
|
|
{
|
|
factory.registerFunction("corr", createAggregateFunctionStatisticsBinary<AggregateFunctionCorr, StatisticsFunctionKind::corr>, AggregateFunctionFactory::CaseInsensitive);
|
|
}
|
|
|
|
}
|