From ef6d3be53a72b7e5708fe1d2ea701c6e20ff6a6e Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Thu, 21 Dec 2017 04:19:25 +0300 Subject: [PATCH] Simplification of aggregate functions: compatibility details [#CLICKHOUSE-2]. --- .../AggregateFunctionQuantile.cpp | 56 +++++++++---------- .../AggregateFunctionQuantile.h | 16 +++--- dbms/src/AggregateFunctions/QuantileExact.h | 4 +- .../QuantileExactWeighted.h | 4 +- .../QuantileReservoirSampler.h | 4 +- .../QuantileReservoirSamplerDeterministic.h | 4 +- dbms/src/AggregateFunctions/QuantileTDigest.h | 6 +- ...quantiles_empty_levels_segfaults.reference | 8 --- ...00382_quantiles_empty_levels_segfaults.sql | 8 --- 9 files changed, 48 insertions(+), 62 deletions(-) delete mode 100644 dbms/tests/queries/0_stateless/00382_quantiles_empty_levels_segfaults.reference delete mode 100644 dbms/tests/queries/0_stateless/00382_quantiles_empty_levels_segfaults.sql diff --git a/dbms/src/AggregateFunctions/AggregateFunctionQuantile.cpp b/dbms/src/AggregateFunctions/AggregateFunctionQuantile.cpp index d925cd583c9..1978e15ab41 100644 --- a/dbms/src/AggregateFunctions/AggregateFunctionQuantile.cpp +++ b/dbms/src/AggregateFunctions/AggregateFunctionQuantile.cpp @@ -26,7 +26,7 @@ namespace ErrorCodes namespace { -template