Going green: automatic mode works with dates

This commit is contained in:
Daniel García Aubert
2017-06-29 16:57:27 +02:00
parent 6d2934b30b
commit 468f641af8
+2 -2
View File
@@ -14,8 +14,8 @@ var dateIntervalQueryTpl = dot.template([
'WITH',
'dates AS (',
' SELECT',
' MAX({{=it.column}}) AS _end,',
' MIN({{=it.column}}) AS _start',
' MAX({{=it.column}}::timestamp) AS _end,',
' MIN({{=it.column}}::timestamp) AS _start',
' FROM ({{=it.query}}) _cdb_source',
'),',
'interval_in_days AS (',