From 9afe5792250807f9f2f14ee518a049c6d544313d Mon Sep 17 00:00:00 2001 From: nikitamikhaylov Date: Wed, 11 Nov 2020 17:36:14 +0300 Subject: [PATCH] small refactor --- .../AggregateFunctionRankCorrelation.h | 153 +++++------------- src/AggregateFunctions/StatSample.h | 68 ++++++++ .../01455_rank_correlation_spearman.sql | 2 +- 3 files changed, 111 insertions(+), 112 deletions(-) create mode 100644 src/AggregateFunctions/StatSample.h diff --git a/src/AggregateFunctions/AggregateFunctionRankCorrelation.h b/src/AggregateFunctions/AggregateFunctionRankCorrelation.h index 75592cf5c9b..3668fc1aa88 100644 --- a/src/AggregateFunctions/AggregateFunctionRankCorrelation.h +++ b/src/AggregateFunctions/AggregateFunctionRankCorrelation.h @@ -1,11 +1,13 @@ #pragma once #include +#include #include #include #include #include #include +#include #include #include #include @@ -21,40 +23,23 @@ #include - +#include namespace DB { -template