Do not filter special values out if aggregation column is not defined

This commit is contained in:
Daniel García Aubert 2017-06-13 09:30:43 +02:00
parent 227937bf4c
commit 3ae66e4143

View File

@ -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'));