From 3ae66e41437160dfd3cf9bb2cac52cb0df195d23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Tue, 13 Jun 2017 09:30:43 +0200 Subject: [PATCH] Do not filter special values out if aggregation column is not defined --- lib/cartodb/models/dataview/aggregation.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/cartodb/models/dataview/aggregation.js b/lib/cartodb/models/dataview/aggregation.js index 6e46ea31..71574ac5 100644 --- a/lib/cartodb/models/dataview/aggregation.js +++ b/lib/cartodb/models/dataview/aggregation.js @@ -11,12 +11,14 @@ var filteredQueryTpl = dot.template([ ' FROM ({{=it._query}}) _cdb_filtered_source', ' WHERE', ' {{=it._column}} IS NOT NULL', + ' {{?it._aggregationColumn}}', ' AND', ' {{=it._aggregationColumn}} != \'infinity\'::float', ' AND', ' {{=it._aggregationColumn}} != \'-infinity\'::float', ' AND', ' {{=it._aggregationColumn}} != \'NaN\'::float', + ' {{?}}', ')' ].join(' \n'));