From eeea51e10dece2e9d7c99b16b3064373d2661f7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Mon, 5 Jun 2017 17:26:37 +0200 Subject: [PATCH] Removed unused column in group by statement --- lib/cartodb/models/dataview/histogram.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/cartodb/models/dataview/histogram.js b/lib/cartodb/models/dataview/histogram.js index f9162169..cbd9fe20 100644 --- a/lib/cartodb/models/dataview/histogram.js +++ b/lib/cartodb/models/dataview/histogram.js @@ -169,7 +169,7 @@ var dateHistogramQueryTpl = dot.template([ ' count(*) AS freq', 'FROM ({{=it._query}}) _cdb_histogram, basics, bins, nulls', 'WHERE date_part(\'epoch\', {{=it._column}}) IS NOT NULL', - 'GROUP BY bin, bins_number, bin_width, nulls_count, avg_val, start_date', + 'GROUP BY bin, bins_number, bin_width, nulls_count, avg_val', 'ORDER BY bin' ].join('\n')); @@ -180,7 +180,8 @@ var TYPE = 'histogram'; type: 'histogram', options: { column: 'name', - bins: 10 // OPTIONAL + bins: 10, // OPTIONAL + aggregation: 'day' // OPTIONAL } } */