Calculate aggregation filtering out special float values

This commit is contained in:
Daniel García Aubert
2017-06-12 19:45:06 +02:00
parent 962fa05574
commit 8b2fa27ba7
2 changed files with 22 additions and 3 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ var rankedCategoriesQueryTpl = dot.template([
'categories AS(',
' SELECT {{=it._column}} AS category, {{=it._aggregation}} AS value,',
' row_number() OVER (ORDER BY {{=it._aggregation}} desc) as rank',
' FROM ({{=it._query}}) _cdb_aggregation_all',
' FROM filtered_source',
' {{?it._aggregationColumn!==null}}WHERE {{=it._aggregationColumn}} IS NOT NULL{{?}}',
' GROUP BY {{=it._column}}',
' ORDER BY 2 DESC',