Going green: automatic mode works with dates
This commit is contained in:
@@ -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 (',
|
||||
|
||||
Reference in New Issue
Block a user