This commit is contained in:
Alexey Milovidov 2018-07-05 02:24:36 +03:00
parent 018e48399e
commit c45aa180e8
2 changed files with 11 additions and 7 deletions

View File

@ -1,11 +1,13 @@
#include "AggregateFunctionHistogram.h"
#include "AggregateFunctionFactory.h"
#include "FactoryHelpers.h"
#include "Helpers.h"
#include <AggregateFunctions/AggregateFunctionHistogram.h>
#include <AggregateFunctions/AggregateFunctionFactory.h>
#include <AggregateFunctions/FactoryHelpers.h>
#include <AggregateFunctions/Helpers.h>
#include <Common/FieldVisitors.h>
namespace DB {
namespace DB
{
namespace ErrorCodes
{
@ -14,7 +16,8 @@ namespace ErrorCodes
extern const int BAD_ARGUMENTS;
}
namespace {
namespace
{
AggregateFunctionPtr createAggregateFunctionHistogram(const std::string & name, const DataTypes & arguments, const Array & params)
{

View File

@ -185,7 +185,8 @@ private:
public:
void insertResultInto(ColumnVector<Mean> & to_lower, ColumnVector<Mean> & to_upper, ColumnVector<Weight> & to_weights, UInt32 max_bins)
{
if (!points) return;
if (!points)
return;
compress(max_bins);
unique();