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;