Dataview formula: count infinities and nans as we do with nulls

This commit is contained in:
Daniel García Aubert 2017-06-23 12:24:22 +02:00
parent 5555b8ad8e
commit 32274e66fd

View File

@ -14,7 +14,7 @@ var formulaQueryTpl = dot.template([
' ,(SELECT count(1) FROM ({{=it._query}}) _cdb_formula_nulls',
' WHERE {{=it._column}} = \'NaN\'::float) AS nans_count{{?}}',
'FROM ({{=it._query}}) _cdb_formula',
'{{?it._isFloatColumn}}WHERE',
'{{?it._isFloatColumn && it._operation !== \'count\'}}WHERE',
' {{=it._column}} != \'infinity\'::float',
'AND',
' {{=it._column}} != \'-infinity\'::float',