From 649e4dd913595124b0ee59c7aba645f5232baea4 Mon Sep 17 00:00:00 2001 From: antikvist Date: Sat, 20 Jun 2020 19:18:23 +0300 Subject: [PATCH] rank corr --- src/AggregateFunctions/AggregateFunctionRankCorr.cpp | 1 - src/AggregateFunctions/AggregateFunctionRankCorr.h | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/AggregateFunctions/AggregateFunctionRankCorr.cpp b/src/AggregateFunctions/AggregateFunctionRankCorr.cpp index 57d87a0bd81..8d836088607 100644 --- a/src/AggregateFunctions/AggregateFunctionRankCorr.cpp +++ b/src/AggregateFunctions/AggregateFunctionRankCorr.cpp @@ -8,7 +8,6 @@ namespace ErrorCodes { -extern const int NUMBER_OF_ARGUMENTS_DOESNT_MATCH; extern const int NOT_IMPLEMENTED; } diff --git a/src/AggregateFunctions/AggregateFunctionRankCorr.h b/src/AggregateFunctions/AggregateFunctionRankCorr.h index c01f66a8b71..8f1f176a1aa 100644 --- a/src/AggregateFunctions/AggregateFunctionRankCorr.h +++ b/src/AggregateFunctions/AggregateFunctionRankCorr.h @@ -195,7 +195,7 @@ public: while (j < size - 1) { - if (value[j].first == value[j + 1].first) + if (tmp_values[j].first == tmp_values[j + 1].first) { // rank of (j + 1)th number rank += 1; @@ -232,7 +232,7 @@ public: while (j < size - 1) { - if (value[j].second == value[j + 1].second) + if (tmp_values[j].second == tmp_values[j + 1].second) { // rank of (j + 1)th number rank += 1;